query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Description:checkAvaliableElevators: 1Check the continuous Status of the 7 Elevators at any given time. 2In Case of no longer available Elevators, it starts to release the first 4 Occupied Elevators that were occupied "assuming that those elevators are already done with there requests". In order to be available again to process pending request.
public void checkAvaliableElevators() { System.out.println("--------- Checking Elevators Current Status ------"); if(availableElevadors.isEmpty()) { for(int i=0; i <numberOfElevators-3; i++) { availableElevadors.add(occupiedElevadors.remove(i)); } System.out.println("--------- Elevators are available again ------"); }else { for(int i=0;i<availableElevadors.size();i++) { System.out.println(" Elevator no " + availableElevadors.get(i).getElevatorNumber() +" ready for Requests"); } for(int i=0;i<occupiedElevadors.size();i++) { System.out.println(" Elevator no " + occupiedElevadors.get(i).getElevatorNumber() +" is Occupied"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean approveCheckIn(SoftwareEngineer e){\n int i;\n\n for(i=0;i<this.curHeadCount;i++){\n if(employee[i].equals(e)) break;\n }\n\n return (i<this.curHeadCount && e.access);\n }", "public boolean checkState(){\r\n\t\t//Check if we have enough users\r\n\t\tfor (Map.Entry<String, Role> entry : roleMap.entrySet()){\r\n\t\t\tString rid = entry.getKey();\r\n\t\t\tRole role = roleMap.get(rid);\r\n\t\t\tlog.info(\"Veryifying \" + rid);\t\t\t\r\n\t\t\tif(!roleCount.containsKey(rid)){\r\n\t\t\t\tlog.severe(\"Unsure of game state.\" + rid + \" not found in roleCount\");\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t\r\n\t\t\t} else if(role.getMin() > roleCount.get(rid)) {\r\n\t\t\t\t\tlog.info(\"minimum number for roleID: \" + rid + \" not achived\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\r\n\t\t\t} else if(role.getMax() < roleCount.get(rid)) { //probably don't need this one but cycles are cheap\r\n\t\t\t\tlog.severe(\"OVER MAXIMUM number for roleID: \" + rid + \" not achived\");\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if we do reach here we've reached a critical mass of players. But we still need them to load the screen\r\n\t\t\r\n\t\tif((this.getGameState() != GAMESTATE.RUNNING) ||(this.gameState !=GAMESTATE.READY_TO_START) ) {\r\n\t\t\tsetGameState(GAMESTATE.CRITICAL_MASS);\r\n\t\t\tlog.info(\"have enough players for game\");\r\n\t\t}\r\n\t\t//if the users are done loading their screen, let us know and then we can start\r\n\t\tif (!userReady.containsValue(false)){\r\n\t\t\tsetGameState(GAMESTATE.READY_TO_START);\r\n\t\t\tlog.info(\"Gamestate is running!!\");\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public void check(){\n check1();\n check2();\n check3();\n check4();\n check5();\n check6();\n\t}", "private static void checkForEnemies() throws GameActionException {\n //No need to hijack code for structure\n if (rc.isWeaponReady()) {\n // basicAttack(enemies);\n HQPriorityAttack(enemies, attackPriorities);\n }\n \n //Old splash damage code\n //Preserve because can use to improve current splash damage code\n //But not so simple like just checking directions, since there are many more \n //locations to consider hitting.\n /*if (numberOfTowers > 4) {\n //can do splash damage\n RobotInfo[] enemiesInSplashRange = rc.senseNearbyRobots(37, enemyTeam);\n if (enemiesInSplashRange.length > 0) {\n int[] enemiesInDir = new int[8];\n for (RobotInfo info: enemiesInSplashRange) {\n enemiesInDir[myLocation.directionTo(info.location).ordinal()]++;\n }\n int maxDirScore = 0;\n int maxIndex = 0;\n for (int i = 0; i < 8; i++) {\n if (enemiesInDir[i] >= maxDirScore) {\n maxDirScore = enemiesInDir[i];\n maxIndex = i;\n }\n }\n MapLocation attackLoc = myLocation.add(directions[maxIndex],5);\n if (rc.isWeaponReady() && rc.canAttackLocation(attackLoc)) {\n rc.attackLocation(attackLoc);\n }\n }\n }//*/\n \n }", "private void checkExamination() {\n\t\tprint(\"Checking examination-waiting-list...\");\n\t\tList l = getWaitingDoctors();\n\t\tfor (int i = 0; i < l.size(); ++i) {\n\t\t\tPerson d = (Person) l.get(i);\n\t\t\tboolean done = false;\n\t\t\tprint(\"Checking if doctor \" + d + \" can take a patient...\");\n\n\t\t\t// check backFromXrayWaiters first\n\t\t\tfor (int j = 0; !done && j < _backFromXrayWaiters.size(); ++j) {\n\t\t\t\tPerson p = (Person) _backFromXrayWaiters.get(j);\n\t\t\t\tprint(\n\t\t\t\t\t\"Back from xray-shooting: \"\n\t\t\t\t\t\t+ p\n\t\t\t\t\t\t+ \", preferred doctor: \"\n\t\t\t\t\t\t+ p.getPreferredDoctor()\n\t\t\t\t\t\t+ \"...\");\n\t\t\t\tif (p.getPreferredDoctor() == d) {\n\t\t\t\t\t// preferred doctor is waiting. \n\t\t\t\t\tint t = computeExaminationTime(Event.SECOND_EXAMINATION);\n\t\t\t\t\t_eventQueue.insert(\n\t\t\t\t\t\tnew Event(Event.SECOND_EXAMINATION, time + t, p, d));\n\t\t\t\t\t_backFromXrayWaiters.remove(j);\n\t\t\t\t\tp.stopWaiting();\n\t\t\t\t\td.stopWaiting();\n\t\t\t\t\tdone = true;\n\t\t\t\t\tprint(\"2nd examination start: \" + p + \", \" + d);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// none of the xrayWaiters could be served by this doctor.\n\t\t\t// so take the first of the incoming, if there is any\n\t\t\tif (!done && _examinationWaiters.size() > 0) {\n\t\t\t\tPerson p = (Person) _examinationWaiters.removeFirst();\n\t\t\t\tprint(\n\t\t\t\t\t\"waiting for examination: \"\n\t\t\t\t\t\t+ p\n\t\t\t\t\t\t+ \", preferred doctor: \"\n\t\t\t\t\t\t+ p.getPreferredDoctor()\n\t\t\t\t\t\t+ \"...\");\n\t\t\t\tif (p.getPreferredDoctor() == null) {\n\t\t\t\t\t// 1st examination. \n\t\t\t\t\tprint(\"1st examination start: \" + p + \", \" + d);\n\t\t\t\t\tint t = computeExaminationTime(Event.FIRST_EXAMINATION);\n\t\t\t\t\t_eventQueue.insert(\n\t\t\t\t\t\tnew Event(Event.FIRST_EXAMINATION, time + t, p, d));\n\t\t\t\t} else {\n\t\t\t\t\t// 2nd examination\n\t\t\t\t\tprint(\"2nd examination start: \" + p + \", \" + d);\n\t\t\t\t\tint t = computeExaminationTime(Event.SECOND_EXAMINATION);\n\t\t\t\t\t_eventQueue.insert(\n\t\t\t\t\t\tnew Event(Event.SECOND_EXAMINATION, time + t, p, d));\n\t\t\t\t}\n\t\t\t\tp.stopWaiting();\n\t\t\t\td.stopWaiting();\n\t\t\t}\n\t\t}\n\t}", "protected void doCheckView() {\n // check the remotes first\n if (getAnnouncementRegistry() == null) {\n logger.info(\"announcementRegistry is null (will check view again later)\");\n return;\n }\n getAnnouncementRegistry().checkExpiredAnnouncements();\n }", "private boolean hasWaiters()\r\n/* 438: */ {\r\n/* 439:526 */ return this.waiters > 0;\r\n/* 440: */ }", "void aDayPasses(){\n\t\t\n\t\t/**\n\t\t * Modify wait time if still exists\n\t\t */\n\t\tif(!daysUntilStarts.equals(0)){\n\t\t\tdaysUntilStarts--;\n\t\t\tif((!hasInstructor() || getSize() == 0) && daysUntilStarts.equals(0)){\n\t\t\t\tif(hasInstructor())\n\t\t\t\t\tinstructor.unassignCourse();\n\t\t\t\tfor(Student student : enrolled){\n\t\t\t\t\tstudent.dropCourse();\n\t\t\t\t}\n\t\t\t\tsubject.unassign();\n\t\t\t\tinstructor = null;\n\t\t\t\tenrolled = new ArrayList<Student>();\n\t\t\t\tcancelled = true;\n\t\t\t} else if (daysUntilStarts.equals(0)) {\n\t\t\t\tsubject.unassign();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * Modify run time if still exists\n\t\t */\n\t\tif(!daysToRun.equals(0)){\n\t\t\tdaysToRun--;\n\t\t}\n\t\t/**\n\t\t * If couse finished un-assigned people from it\n\t\t */\n\t\tif(daysToRun.equals(0) && !finished){\n\t\t\tfor(Student student : enrolled){\n\t\t\t\tstudent.graduate(subject);\n\n\t\t\t}\n\t\t\tinstructor.unassignCourse();\n\t\t\tinstructor = null;\n\t\t\tfinished = true;\n\t\t}\n\t}", "@Test\n\tpublic void listAnnouncementsReserveRendezvousTest() {\n\n\t\tSystem.out.println(\"-----List announcement test. Positive 0 to 2, Negative 3 to 5.\");\n\n\t\tfinal Object testingData[][] = {\n\t\t\t//Positivos\n\t\t\t{\n\t\t\t\t//Positivo 1: User1 access the announcements\n\t\t\t\t\"P1\", \"user1\", null\n\t\t\t}, {\n\t\t\t\t//Positivo 2: User access the announcements\n\t\t\t\t\"P2\", \"user3\", null\n\t\t\t}, {\n\t\t\t\t//Positivo 3: User1 don´t have reservation\n\t\t\t\t\"P3\", \"user1\", null\n\t\t\t},\n\t\t\t//Negativos\n\t\t\t{\n\t\t\t\t//Negativo 1: Anonymous tries to access the announcements\n\t\t\t\t\"N1\", \"\", IllegalArgumentException.class\n\t\t\t}, {\n\t\t\t\t//Negativo 12: User \"blabla\" tries to access the announcements\n\t\t\t\t\"N2\", \"blabla\", IllegalArgumentException.class\n\t\t\t}\n\t\t};\n\n\t\tfor (int i = 0; i < testingData.length; i++)\n\t\t\tthis.templateListAnnouncementsReserveRendezvousTest(i, (String) testingData[i][0], //Nº Positive/Negative\n\t\t\t\t(String) testingData[i][1], //Username login\n\t\t\t\t(Class<?>) testingData[i][2]); //Exception class\n\t}", "public void checkAchievements() {\n \t\tif (duration >= 1000*Achievements.LOCAL_SLOW_LONG_TIME) {\n \t\t\tAchievements.unlockLocalAchievement(Achievements.localSlowLongTime);\n \t\t}\n \t}", "public void CheckRegStatus(long electCode) {\n }", "public boolean updateElevator() { \n \t//If no people are waiting, do nothing\n if (queue.isEmpty()){\n \t\treturn true;\n \t}\n \n //Update total wait time\n for (int i = 0; i < queue.size(); i++) {\n if (queue.get(i).getActionType() == ElevatorAction.PICKUP) {\n totalWaitTime = totalWaitTime.add(BigInteger.ONE);\n queue.get(i).getPassenger().tempwT += 1;\n }\n }\n \n //Update total travel time\n totalTravelTime = totalTravelTime.add(BigInteger.valueOf((long)currentPassengers.size()));\n for (int i = 0; i < currentPassengers.size(); i++) {\n currentPassengers.get(i).temptT += 1;\n }\n \n //Passengers boarding, no movement\n if (waitingTime > 0) {\n waitingTime -= 1;\n return true;\n }\n \n ElevatorQueueObject q = queue.getFirst();\n \n //If the elevator is full, fetch the next passenger who can disembark successfully\n int index = 1;\n while (currentPassengers.size() == specs.getCarryCapacity() \n && (q.getActionType() == ElevatorAction.PICKUP ||\n !currentPassengers.contains(q.getPassenger()))) {\n q = queue.get(index);\n index += 1;\n }\n \n //Fetch next destination\n int dest = 0;\n if (q.getActionType() == ElevatorAction.PICKUP) {\n dest = q.getPassenger().getOrigin();\n } else {\n dest = q.getPassenger().getDestination();\n }\n \n //Check destination is valid\n if (!containsFloor(floors, dest)) {\n return false;\n }\n \n //Update Elevator Position\n float tempFloor = currentFloor;\n float newFloor = currentFloor;\n \n if (dest > currentFloor) { //Going up\n newFloor += (specs.getCarSpeed() / distancePerFloor);\n if (dest <= newFloor) { //Reached destination\n currentFloor = dest;\n //Set waiting time for embarking/disembarking\n waitingTime = specs.getFloorDelay();\n } else {\n currentFloor = newFloor;\n }\n } else if (dest < currentFloor) { //Going down\n newFloor -= (specs.getCarSpeed() / distancePerFloor);\n if (dest >= newFloor) { //Reached destination?\n currentFloor = dest;\n //Set waiting time for embarking/disembarking\n waitingTime = specs.getFloorDelay();\n } else {\n currentFloor = newFloor;\n }\n }\n\n //Update travel distance \n totalTravelDistance = totalTravelDistance.add(\n BigDecimal.valueOf(Math.abs(tempFloor - currentFloor) * distancePerFloor)\n );\n \n //Everything okay\n return true;\n }", "List<Boolean> assertVehiclePlanningHomepage() {\n\t\tList<Boolean> assertValue= new ArrayList<>();\n\n\t\tassertValue.add(0,SeleniumUtility.checkElementIsVisible(driver, \n\t\t\t\thomepageVehiclePlanning.buttonTagRefreshButtonHomepageVehiclePlanning));\n\t\tassertValue.add(1,SeleniumUtility.checkElementIsVisible(driver,\n\t\t\t\thomepageVehiclePlanning.buttonTagAddStatusHomepageVehiclePlanning));\n\t\tassertValue.add(2,SeleniumUtility.checkElementIsVisible(driver,\n\t\t\t\thomepageVehiclePlanning.divTagSelectSitesHomepageVehiclePlanning));\n\t\tassertValue.add(3,SeleniumUtility.checkElementIsVisible(driver,\n\t\t\t\thomepageVehiclePlanning.buttonTagDaysArrowHomepageVehiclePlanning));\n\t\tassertValue.add(4,SeleniumUtility.checkElementIsVisible(driver,\n\t\t\t\thomepageVehiclePlanning.inputTagSelectDateHomepageVehiclePlanning));\n\t\treturn assertValue;\n\t}", "private static void checkStatus() {\n\r\n\t\tDate date = new Date();\r\n\t\tSystem.out.println(\"Checking at :\"+date.toString());\r\n\t\tString response = \"\";\r\n\t\ttry {\r\n\t\t\tresponse = sendGET(GET_URL_COVAXIN);\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//System.out.println(response.toString());\r\n\t\tArrayList<Map> res = formatResponse(response);\r\n\r\n\t\tres = checkAvailability(res);\r\n\t\tif(res.size()>0)\r\n\t\t\tnotifyUser(res);\r\n\t\t//System.out.println(emp.toString());\r\n\t}", "public void checkOfficeActionPeriod1(){\n\n System.out.println(\"checking Office Action period 1 status for filings : \"+firstOfficeActionDuration);\n\n BaseTradeMarkApplicationService baseTradeMarkApplicationService = serviceBeanFactory.getBaseTradeMarkApplicationService();\n\n\n for(Iterator<BaseTrademarkApplication> iter = baseTradeMarkApplicationService.findAll().iterator(); iter.hasNext(); ) {\n\n BaseTrademarkApplication current = iter.next();\n if(current.getApplicationFilingDate() != null && current.getFilingStatus().equals(\"Non-Final Action Mailed\") == true){\n // check that date + duration against current time\n if((current.getApplicationFilingDate().getTime() + current.getBlackOutPeriod() + current.getOfficeActionResponsePeriod()) < new Date().getTime()){\n\n System.out.println(\"Filing has expired from the office action period\");\n\n // check if office action has been completed ..\n for(Iterator<OfficeActions> iter3 = current.getOfficeActions().iterator(); iter3.hasNext(); ) {\n OfficeActions current3 = iter3.next();\n\n if(current3.isOfficeActionCompleted() == false && current.getFilingStatus().contains(\"Abandoned\") == false){\n\n // remove office action ..or set it to inactive\n // so on the dashboard. we only show actions that are active\n //\n // do the same thing. create petition object and attach it to the filing\n Petition petition = new Petition();\n petition.setParentMarkImagePath(current.getTradeMark().getTrademarkImagePath());\n petition.setStandardCharacterMark(current.isStandardTextMark());\n petition.setStandardCharacterText(current.getTradeMark().getTrademarkStandardCharacterText());\n petition.setParentMarkOwnerName(current.getPrimaryOwner().getOwnerDisplayname());\n petition.setParentSerialNumber(current.getTrademarkName());\n petition.setParentRegistrationNumber(current.getRegistrationID());\n\n petition.setActionID(String.valueOf(current3.getInternalID()));\n\n long dueDate = new Date().getTime()+current.getBlackOutPeriod()+current.getOfficeActionResponsePeriod()+current.getPetitionPeriod();\n petition.setDueDate(new Date(dueDate));\n\n\n current.setFilingStatus(\"Abandoned - Failure to Respond or Late Response\");\n petition.setOfficeActionCode(\"Abandoned - Failure to Respond or Late Response\");\n petition.setPetitionTitle(\"Failure to Respond Timely to Office Action\");\n\n petition.setActivePetition(true);\n current.addPetition(petition);\n petition.setTrademarkApplication(current);\n current3.setActiveAction(false);\n\n FilingDocumentEvent filingDocumentEvent = new FilingDocumentEvent();\n filingDocumentEvent.setEventDescription(\"Filing Abandoned\");\n\n filingDocumentEvent.setDocumentType(\"XML\");\n Date date = new Date();\n filingDocumentEvent.setEventDate(date);\n\n current.addFilingDocumentEvent(filingDocumentEvent);\n\n\n // go back and set any active actions to in-active\n //for(Iterator<OfficeActions> iter2 = current.getOfficeActions().iterator(); iter2.hasNext(); ) {\n // OfficeActions current2 = iter2.next();\n // current2.setActiveAction(false);\n\n //}\n\n baseTradeMarkApplicationService.save(current);\n\n\n }\n\n\n\n }\n\n\n\n // only execute below code if office action is not completed...\n\n\n }\n else{\n System.out.println(\"filing is still in respond to office action period or filing is in a different state\");\n\n\n }\n }\n else{\n if(current.getFilingStatus().equals(\"TEAS RF New Application\") || current.getFilingStatus().equals(\"New Application\") ){\n if((current.getApplicationFilingDate().getTime() + current.getBlackOutPeriod() + current.getOfficeActionResponsePeriod() ) < new Date().getTime()){\n boolean acceptedFiling = true;\n\n for(Iterator<OfficeActions> iter4 = current.getOfficeActions().iterator(); iter4.hasNext(); ) {\n OfficeActions current4 = iter4.next();\n if(current4.isActiveAction() && current4.getOfficeActionCode().equals(\"global default action\") == false){\n if(current4.isOfficeActionCompleted() == true){\n // skip examiner review period\n // filing is accepted\n // change filing status\n // create filing document event\n\n current4.setActiveAction(false);\n\n\n\n }\n else {\n acceptedFiling = false;\n\n System.out.println(\"office action is not completed\");\n }\n\n }\n\n\n }\n\n if(acceptedFiling == true){\n current.setFilingStatus(\"Accepted Filing\");\n current.setApplicationAcceptedDate(new Date());\n\n // create accepted filing date\n\n\n\n\n FilingDocumentEvent filingDocumentEvent = new FilingDocumentEvent();\n filingDocumentEvent.setEventDescription(\"Filing Accepted\");\n\n filingDocumentEvent.setDocumentType(\"XML\");\n Date date = new Date();\n filingDocumentEvent.setEventDate(date);\n\n current.addFilingDocumentEvent(filingDocumentEvent);\n\n\n // go back and set any active actions to in-active\n //for(Iterator<OfficeActions> iter2 = current.getOfficeActions().iterator(); iter2.hasNext(); ) {\n // OfficeActions current2 = iter2.next();\n // current2.setActiveAction(false);\n\n //}\n\n baseTradeMarkApplicationService.save(current);\n\n }\n // if there are no office actions ..it is also compelete\n\n }\n // check for accepted filings\n }\n\n\n\n\n\n\n\n\n\n\n\n\n }\n\n }\n\n }", "public void setNumberOfElevators(int numberOfElevators) {\r\n this.numberOfElevators = numberOfElevators;\r\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n\t\tprivate void checkJobInstanceStatus() {\r\n \t\r\n \tString checkId = UUID.randomUUID().toString();\r\n \t\r\n \tlogger.info(checkId + \", [LivingTaskManager]: start checkJobInstanceStatus\"\r\n \t\t\t+ \", mapSize:\" + livingJobInstanceClientMachineMap.size() \r\n \t\t\t+ \", keySet:\" + LoggerUtil.displayJobInstanceId(livingJobInstanceClientMachineMap.keySet()));\r\n \t\r\n \tint checkAmount = 0;\r\n \t\r\n \tIterator iterator = livingJobInstanceClientMachineMap.entrySet().iterator();\r\n \t\twhile(iterator.hasNext()) { \r\n \t\t\tMap.Entry entry = (Map.Entry)iterator.next();\r\n \t\t\tServerJobInstanceMapping.JobInstanceKey key = (ServerJobInstanceMapping.JobInstanceKey)entry.getKey();\r\n \t\t\t\r\n \t\t\tList<RemoteMachine> machineList = (List<RemoteMachine>)entry.getValue();\r\n \t\t\t\r\n \t\t\tif(CollectionUtils.isEmpty(machineList)) {\r\n \t\t\t\tlogger.info(checkId + \", [LivingTaskManager]: checkJobInstanceStatus machineList isEmpty\"\r\n \t \t\t\t+ \", mapSize:\" + livingJobInstanceClientMachineMap.size() + \", key:\" + key);\r\n \t\t\t\tcontinue ;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tsynchronized(machineList) {\r\n \t\t\t\tIterator<RemoteMachine> iteratorMachineList = machineList.iterator();\r\n \t\t\t\twhile(iteratorMachineList.hasNext()) {\r\n \t\t\t\t\t\r\n \t\t\t\t\tRemoteMachine client = iteratorMachineList.next();\r\n \t\t\t\t\t\r\n \t\t\t\t\tResult<String> checkResult = null;\r\n try {\r\n client.setTimeout(serverConfig.getHeartBeatCheckTimeout());\r\n InvocationContext.setRemoteMachine(client);\r\n checkResult = clientService.heartBeatCheckJobInstance(key.getJobType(), key.getJobId(), key.getJobInstanceId());\r\n handCheckResult(key, checkResult, client);\r\n } catch (Throwable e) {\r\n logger.error(\"[LivingTaskManager]: task checkJobInstanceStatus error, key:\" + key, e);\r\n handCheckResult(key, null, client);\r\n } finally {\r\n \tcheckAmount ++;\r\n }\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}\r\n \t\t\r\n \t\tlogger.info(checkId + \", [LivingTaskManager]: finish checkJobInstanceStatus\"\r\n \t\t\t\t+ \", mapSize:\" + livingJobInstanceClientMachineMap.size() + \", checkAmount:\" + checkAmount);\r\n }", "protected void checkFighters(ArrayList <String> checker, ArrayList <Luchador> list, ArrayList <ObjetoEquipable> inventory) throws Exception{\n ListaLuchadores.mostrarListaAsk( list,inventory,checker);\r\n ListaLuchadores.checkData(list);\r\n }", "public boolean checkMeetingWithinMinutes() throws Exception {\n\n Fetcher fetcher = new Fetcher();\n fetcher.fetchAppointments(appointments);\n\n //is false if there are no appointments within 15 minutes of signing in\n boolean upcoming = false;\n\n for(int i = 0; i < appointments.size(); i++){\n\n //Add 15 minutes to the current time and store in a variable.\n LocalDateTime localPlusFifteen = current.plusMinutes(15);\n\n //Converts string to LocalDateTime and formats it to the provided formatter.\n LocalDateTime date = LocalDateTime.parse(appointments.get(i).getStart(), dateTimeFormatter);\n\n //If the provided date is greater than or equal to the current date AND is less than or equal to the current\n //date plus 15 minutes, a meeting is about to start and an alert box is triggered.\n if((date.isEqual(current) || date.isAfter(current)) && (date.isEqual(localPlusFifteen) || (date.isBefore(localPlusFifteen)))){\n\n upcoming = true;\n alerts.alertBoxInformation(\"An appointment is about to start!\\nID: \" + appointments.get(i).getAppointmentId()\n +\"\\nDate/Time: \" + appointments.get(i).getStart());\n\n }\n }\n\n //If no meetings are about to start an alert box indicates no upcoming appointments and return false.\n if(!upcoming){\n alerts.alertBoxInformation(\"There are no upcoming appointments\");\n return false;\n }\n\n return true;\n }", "private boolean findNextAvailableAgent(ArrayList<IAgent> arrayList) {\n\n for (IAgent agent : arrayList) {\n try {\n if (agent.checkIfOnSpawn()) {\n return false;\n }\n } catch (RemoteException e) {\n return false;\n }\n }\n\n for (IAgent agent : arrayList) {\n try {\n if (arrayList.size() < Integer.parseInt(String.valueOf(dialog.getCountAgents().getSelectedItem()))) {\n if (iPlayerList.get(agent.getName()).getPoints() >= agentsValue) {\n for (int[] spawn : playingField.getSpawnFields()) {\n if (playingField.requestField(spawn[0], spawn[1])) {\n IAgent newAgent = new AgentImpl(agent.getName(), agent.getStrategy(), playingField);\n newAgent.setColor(agent.getColor());\n newAgent.setPosx(spawn[0]);\n newAgent.setPosy(spawn[1]);\n newAgent.setCapacity(Integer.parseInt(dialog.getCapacityField().getText()));\n newAgent.getRememberField().setiPlayerList(playingField.getiPlayerList());\n playingField.setOccupancy(spawn[0], spawn[1], newAgent);\n ArrayList<IAgent> templist = new ArrayList<>();\n for (IAgent list : playersAgentsMap.get(agent.getName())) {\n templist.add(list);\n }\n templist.add(newAgent);\n playersAgentsMap.put(agent.getName(), templist);\n iPlayerList.get(agent.getName()).setPoints(iPlayerList.get(agent.getName()).getPoints() - agentsValue);\n return true;\n }\n\n }\n\n }\n }\n } catch (RemoteException e) {\n System.out.println(e.getMessage());\n return false;\n }\n }\n return false;\n\n }", "public boolean approveCheckIn(SoftwareEngineer e) {\n for(SoftwareEngineer se : this.directReports) {\n if(se.getEmployeeID() == e.getEmployeeID() && e.codeAccess) {\n // found!\n return true;\n }\n }\n return false;\n }", "public List<ValidationJob> validateEsn(User user) {\n\t\tcleanUpConsumedEsnRecords();\n\n\t\treallocateUnConsumedEsnRecords();\n\n\t\tList<ExcelDump> excelDumpList = excelRepository.findAll();\n\t\tvalidEsnInfoEntry(excelDumpList);\n\n\t\tEsnValidationUtility webServiceUtility = new EsnValidationUtility();\n\t\tList<EsnInfo> esnInfoList = esnInfoRepository.findAllByIsConsumed(false);\n\n\t\tint totalEsnValidated = 0;\n\t\tint validEsnCount = 0;\n\t\tif (CollectionUtils.isNotEmpty(esnInfoList)) {\n\t\t\tlog.info(\"Running Esn Validation batch job on\" + ESNConstants.DATE_TIME);\n\t\t\tvalidationJobEntry(user, totalEsnValidated, validEsnCount, ESNConstants.RUNNING);\n\t\t\tfor (EsnInfo esn : esnInfoList) {\n\n\t\t\t\tif (!stopValidationFlag) {\n\t\t\t\t\tif (totalEsnValidated % interval == 0 && totalEsnValidated != 0) {\n\t\t\t\t\t\tvalidationJobEntry(user, totalEsnValidated, validEsnCount, ESNConstants.RUNNING);\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tboolean isConsumed;\n\n\t\t\t\t\t\tif (!Long.toString(esn.getEsn18()).isEmpty()) {\n\t\t\t\t\t\t\tisConsumed = webServiceUtility.esnValidation(Long.toString(esn.getEsn18()), esn.getSku());\n\t\t\t\t\t\t\tesn.setConsumed(isConsumed);\n\t\t\t\t\t\t} else if (!Long.toString(esn.getEsnHex14()).isEmpty()) {\n\t\t\t\t\t\t\tisConsumed = webServiceUtility.esnValidation(Long.toString(esn.getEsnHex14()), esn.getSku());\n\t\t\t\t\t\t\tesn.setConsumed(isConsumed);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tisConsumed = webServiceUtility.esnValidation(Long.toString(esn.getImei15()), esn.getSku());\n\t\t\t\t\t\t\tesn.setConsumed(isConsumed);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t++totalEsnValidated;\n\t\t\t\t\t\tif (!isConsumed) {\n\t\t\t\t\t\t\t++validEsnCount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlog.info(\"Updating EsnInfo table for setting isConsumed of esn\" +esn);\n\t\t\t\t\t\tesnInfoRepository.save(esn);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tlog.error(\"Error occured while validating ESN \" + esn + \" in service\", e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tstopValidationFlag = false;\n\t\t\tif (esnInfoList.size() == totalEsnValidated && !stopValidationFlag) {\n\t\t\t\tvalidationJobEntry(user, totalEsnValidated, validEsnCount, \"Successful\");\n\t\t\t} else if(stopValidationFlag) {\n\t\t\t\tvalidationJobEntry(user, totalEsnValidated, validEsnCount, \"Stopped\");\n\t\t\t} else {\n\t\t\t\tvalidationJobEntry(user, totalEsnValidated, validEsnCount, \"Failed\");\n\t\t\t}\n\n\t\t\treturn validationJobRepository.findAll();\n\t\t}\n\t\treturn Collections.emptyList();\n\t}", "public boolean checkIn(int passengers)\r\n\t{\r\n\t\tif(status == 'B' && passengers <= capacity)\r\n\t\t{\r\n\t\t\tthis.checkedInPassengers = passengers;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Scheduled(fixedRate = checkRate)\n public void CheckValidated() {\n log.info(\"Checking if links still valid and alive\");\n try{\n for(ShortURL s : urlList) {\n UrlValidatorAndCheckerImpl urlValidatorAndChecker = new UrlValidatorAndCheckerImpl(s.getTarget());\n if(!urlValidatorAndChecker.execute()){\n log.info(\"URL {} dead or not valid anymore.\", s.getTarget());\n s.setMode(HttpStatus.GONE.value());\n } else{\n s.setMode(HttpStatus.TEMPORARY_REDIRECT.value());\n }\n }\n } catch( NullPointerException e) {\n //No se ha inicializado aun\n }\n }", "default List<ValidatorIndex> process_registry_updates(MutableBeaconState state) {\n /* Process activation eligibility and ejections\n for index, validator in enumerate(state.validator_registry):\n if validator.activation_eligibility_epoch == FAR_FUTURE_EPOCH and validator.effective_balance >= MAX_EFFECTIVE_BALANCE:\n validator.activation_eligibility_epoch = get_current_epoch(state)\n\n if is_active_validator(validator, get_current_epoch(state)) and validator.effective_balance <= EJECTION_BALANCE:\n initiate_validator_exit(state, index) */\n List<ValidatorIndex> ejected = new ArrayList<>();\n for (ValidatorIndex index : state.getValidatorRegistry().size()) {\n ValidatorRecord validator = state.getValidatorRegistry().get(index);\n if (validator.getActivationEligibilityEpoch().equals(getConstants().getFarFutureEpoch())\n && validator.getEffectiveBalance().greaterEqual(getConstants().getMaxEffectiveBalance())) {\n state.getValidatorRegistry().update(index,\n v -> ValidatorRecord.Builder.fromRecord(v)\n .withActivationEligibilityEpoch(get_current_epoch(state)).build());\n }\n\n if (is_active_validator(validator, get_current_epoch(state))\n && validator.getEffectiveBalance().lessEqual(getConstants().getEjectionBalance())) {\n initiate_validator_exit(state, index);\n ejected.add(index);\n }\n }\n\n /* Queue validators eligible for activation and not dequeued for activation prior to finalized epoch\n activation_queue = sorted([\n index for index, validator in enumerate(state.validator_registry) if\n validator.activation_eligibility_epoch != FAR_FUTURE_EPOCH and\n validator.activation_epoch >= get_delayed_activation_exit_epoch(state.finalized_epoch)\n ], key=lambda index: state.validator_registry[index].activation_eligibility_epoch) */\n List<Pair<ValidatorIndex, ValidatorRecord>> activation_queue = new ArrayList<>();\n for (ValidatorIndex index : state.getValidatorRegistry().size()) {\n ValidatorRecord v = state.getValidatorRegistry().get(index);\n if (!v.getActivationEligibilityEpoch().equals(getConstants().getFarFutureEpoch())\n && v.getActivationEpoch().greaterEqual(get_delayed_activation_exit_epoch(state.getFinalizedEpoch()))) {\n activation_queue.add(Pair.with(index, v));\n }\n }\n activation_queue.sort(Comparator.comparing(p -> p.getValue1().getActivationEligibilityEpoch()));\n int limit = get_churn_limit(state).getIntValue();\n List<Pair<ValidatorIndex, ValidatorRecord>> limited_activation_queue =\n activation_queue.size() > limit ? activation_queue.subList(0, limit) : activation_queue;\n\n /* Dequeued validators for activation up to churn limit (without resetting activation epoch)\n for index in activation_queue[:get_churn_limit(state)]:\n if validator.activation_epoch == FAR_FUTURE_EPOCH:\n validator.activation_epoch = get_delayed_activation_exit_epoch(get_current_epoch(state)) */\n for (Pair<ValidatorIndex, ValidatorRecord> p : limited_activation_queue) {\n if (p.getValue1().getActivationEpoch().equals(getConstants().getFarFutureEpoch())) {\n state.getValidatorRegistry().update(p.getValue0(),\n v -> ValidatorRecord.Builder.fromRecord(v)\n .withActivationEpoch(get_delayed_activation_exit_epoch(get_current_epoch(state)))\n .build());\n }\n }\n\n return ejected;\n }", "public void checkActivation() {\n\t\tplayer.getPackets().sendConfigByFile(10907, 1);\n\t\tplayer.getPackets().sendConfigByFile(10902, 1);\n\t\tfor (int x = 0; x <= 12; x++) {\n\t\t\tif (player.getActivatedLodestones()[x] == true) {\n\t\t\t\tplayer.getPackets().sendConfigByFile(CONFIG_IDS[x], 1);\n\t\t\t}\n\t\t}\n\t\tif (player.getActivatedLodestones()[13] == true) {\n\t\t\tplayer.getPackets().sendConfigByFile(CONFIG_IDS[13], 190);\n\t\t}\n\t\tif (player.getActivatedLodestones()[14] == true) {\n\t\t\tplayer.getPackets().sendConfigByFile(CONFIG_IDS[14], 15);\n\t\t}\n\t}", "public void checkAttendance() {\n\t\tRandom random = new Random();\n\t\trandomCheck = random.nextInt(3);\n\t\tif (randomCheck == isFullTimePresent) {\n\t\t\tSystem.out.println(\"Employee is Full Time Present \");\n\t\t\tworkingHrs = 8;\n\t\t} else if (randomCheck == isPartTimePresent) {\n\t\t\tSystem.out.println(\"Employee is Part time Present \");\n\t\t\tworkingHrs = 4;\n\t\t} else {\n\t\t\tSystem.out.println(\"Employee is Absent \");\n\t\t\tworkingHrs = 0;\n\t\t}\n\t}", "private void checkXRay() {\n\t\tprint(\"Checking xray-waiting-list...\");\n\t\tif (_xrayDoctor.isWaiting() && _xrayWaiters.size() > 0) {\n\t\t\tprint(\"Xray-shooting starts: \" + _xrayWaiters.getFirst());\n\t\t\tint t = computeExaminationTime(Event.XRAY_SHOOTING);\n\t\t\tPerson p = (Person) _xrayWaiters.removeFirst();\n\t\t\t_eventQueue.insert(\n\t\t\t\tnew Event(Event.XRAY_SHOOTING, time + t, p, _xrayDoctor));\n\t\t\t_xrayDoctor.stopWaiting();\n\t\t\tp.stopWaiting();\n\t\t}\n\t}", "public void CRe4_1019() throws Exception {\n\n\t\t// ----------IEC Admin Login------------//\n\t\tGlobalMethods.Admin_Login();\n\t\tWebElement Manage_IEC1 = GWait.Wait_GetElementByXpath(\"html/body/div[3]/div/div[2]/ul/li[4]/a\");\n\t\tManage_IEC1.click();\n\n\t\tWebElement Manage_IECMembers1 = GWait.Wait_GetElementByXpath(\"//li[4]/ul/li[7]/a\");\n\t\tManage_IECMembers1.click();\n\n\t\tFileInputStream fi1 = new FileInputStream(\"C:\\\\Selenium_Files\\\\Create4_v2\\\\CReATE4_Data.xls\");\n\t\tWorkbook wb1 = Workbook.getWorkbook(fi1);\n\t\tSheet r1 = wb1.getSheet(\"ManageIEC\");\n\t\tString MiddleName_data = r1.getCell(2, 134).getContents();\n\t\tString EmpDetails_data = r1.getCell(3, 134).getContents();\n\t\tString DOBDetails_data = r1.getCell(4, 134).getContents();\n\t\tString ConNum_data = r1.getCell(5, 134).getContents();\n\t\tString AlertFirstName_data = r1.getCell(6, 134).getContents();\n\n\t\tWebElement IECMembers_EditLink = GWait.Wait_GetElementByCSS(\".fa.fa-edit\");\n\t\tIECMembers_EditLink.click();\n\n\t\tFirstName_Clear.clear();\n\t\tMiddleName_Clear.clear();\n\t\tMiddleName_Clear.sendKeys(MiddleName_data);\n\t\tEmp_Clear.clear();\n\t\tEmp_Clear.sendKeys(EmpDetails_data);\n\t\tDOB_Clear.clear();\n\t\tDOB_Clear.sendKeys(DOBDetails_data);\n\t\tConNum_Clear.clear();\n\t\tConNum_Clear.sendKeys(ConNum_data);\n\n\t\tUpdateBUtton.click();\n\n\t\t// ----Check Alert in edit IEC members List----//\n\n\t\tWebElement Alert_FirstName = GWait.Wait_GetElementByXpath(\"//div[2]/form/div[1]/div/div[1]/div/div/label\");\n\t\tAssert.assertEquals(Alert_FirstName.getText().trim(), AlertFirstName_data);\n\n\t\tWebElement LogOut = GWait.Wait_GetElementByCSS(\".logout\");\n\t\tLogOut.click();\n\t}", "public void initialStatus()\r\n\t{\r\n\t\tSystem.out.println(\"--------- The Current Status of Each Elevator ------\");\t\r\n\t\t\r\n\t\tfor(int i =0;i<numberOfElevators; i++)\r\n\t\t{\r\n\t\t\tElevator temp = new Elevator();\r\n\t\t\ttemp.setElevatorNumber(i);\r\n\t\t\tinitialElevatorFloor = (int)(Math.random()*((55-0)+1)); \r\n\t\t\ttemp.setCurrentFloor(initialElevatorFloor);\r\n\t\t\tavailableElevadors.add(temp);\r\n\t\t\tSystem.out.println(\" Elevator no.\" + temp.getElevatorNumber()+\" The current Floor \" + temp.getCurrentFloor());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "protected void evaluateConditions()\n {\n ensureConditionContinuity() ;\n checkComponentList() ;\n\n for ( int liCondCtr = 1 ; liCondCtr <= 5 ; liCondCtr++ )\n {\n checkCondition( liCondCtr ) ;\n } /* end for */\n\n }", "private void checkin() {\r\n\t\tif (admittedinterns < 20) {\r\n\t\t\tDoctorManage();\r\n\t\t\taddinterns(1);\r\n\t\t\tScreentocharge();\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Por el dia no se admiten mas pacientes\");\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static void sendElectionRequest()\n {\n System.out.println(\"INFO : Election initiated\");\n int numberOfFailedRequests = 0;\n for ( int key : ServerState.getInstance().getServers().keySet() ) {\n if( key > ServerState.getInstance().getSelfID() ){\n Server destServer = ServerState.getInstance().getServers().get(key);\n try {\n MessageTransfer.sendServer(\n ServerMessage.getElection( String.valueOf(ServerState.getInstance().getSelfID()) ),\n destServer\n );\n System.out.println(\"INFO : Sent election request to s\"+destServer.getServerID());\n }\n catch(Exception e){\n System.out.println(\"WARN : Server s\"+destServer.getServerID() +\n \" has failed, cannot send election request\");\n numberOfFailedRequests++;\n }\n }\n\n }\n if (numberOfFailedRequests == ServerState.getInstance().getNumberOfServersWithHigherIds()) {\n if(!electionInProgress){\n //startTime=System.currentTimeMillis();\n electionInProgress = true;\n receivedOk = false;\n Runnable timer = new BullyAlgorithm(\"Timer\");\n new Thread(timer).start();\n }\n }\n }", "@Override\n\tpublic boolean checkEnrolment(Users userid, Course courseid) {\n\t\treturn false;\n\t}", "private void checkRunningEvaluations() {\n List<EvaluatorHandle> finishedHandles = new LinkedList<EvaluatorHandle>();\n for (EvaluatorHandle handle : evaluations) {\n switch (handle.getStatus()) {\n case NEW:\n break;\n case CREATED:\n break;\n case RUNNING:\n break;\n case NOT_RESPONDING:\n break;\n case FAILED:\n case DESTROYED:\n case COMPLETED:\n File task = handle.getTask();\n log.log(Level.INFO, \"Tasks completed. Status: {0}\", handle.getStatus());\n tasks.remove(task);\n finishedHandles.add(handle);\n break;\n default:\n throw new AssertionError(handle.getStatus().name());\n }\n }\n for (EvaluatorHandle handle : finishedHandles) {\n evaluations.remove(handle);\n }\n }", "public int getNumberOfElevators() {\r\n return numberOfElevators;\r\n }", "@Test\n\tpublic void test01_02_CheckRowsLookForEnabledisableUsers() {\n\t\tinfo(\"Test 1: Check rows look for enable/disable users\");\n\t\tcreateNewUser();\n\t\tString[] users={username,DATA_USER3};\n\t\t/*Step Number: 1\n\t\t*Step Name: Step 1: Open User Management\n\t\t*Step Description: \n\t\t\t- Log in as admin.\n\t\t\t- Go to Administration \n\t\t\t-\n\t\t\t-> Community \n\t\t\t-\n\t\t\t-> Manage Community.\n\t\t\t- Choose the tab \"User Management\".\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- The list of users is displayed.\n\t\t\t- The Status combo list is displayed.*/\n \t \tnavToolBar.goToUsersAndGroupsManagement();\n \t \tuserAndGroup.checkStatusDropBox();\n \t \tdisableUser();\n \t \t\n\t\t/*Step number: 2\n\t\t*Step Name: Step 2: Select \"All\" status\n\t\t*Step Description: \n\t\t\t- Click the down-arrow icon of the Status field.\n\t\t\t- Select the status \"All\".\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- Both enabled/disabled users are displayed in the list.\n\t\t\t- Rows of disabled userslook visually different to rows of enabled users.*/ \n \t \tuserAndGroup.checkDisplayAllUsers(users);\n \t \tdeleteUser();\n \t}", "public static void verificaEleicoesPassadas() {\n\t\tint count;\n\t\t\n\t\tint check = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tcount = rmiserver.moveEleicoesPassadas();\n\t\t\t\tSystem.out.println(\"Removidas \"+count+\" eleicoes!\\n\");\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI addCandidatos\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\t\t\n\t}", "public void testLevelPlannedWhenExceeded() throws Exception {\n checkLevelPlannedWhenExceed(new int[]{100},\n new double[]{300},\n new double[]{100},\n new double[]{300});\n\n // -- One account: no levelling possible\n checkLevelPlannedWhenExceed(new int[]{100},\n new double[]{300},\n new double[]{400},\n new double[]{300});\n\n // -- Two accounts: no levelling needed\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{100, 200},\n new double[]{300, 500});\n\n // -- Two accounts: extra pushed to second account\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{400, 200},\n new double[]{400, 400});\n\n // -- Two accounts: extra pushed to first account\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{100, 600},\n new double[]{200, 600});\n\n // -- Two accounts: part of extra pushed to second account\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{400, 450},\n new double[]{400, 450});\n\n // -- Two accounts: total actual exceeds the total planned\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{250, 600},\n new double[]{250, 600});\n\n // -- Three accounts: extra taken from first account available\n checkLevelPlannedWhenExceed(new int[]{100, 101, 102},\n new double[]{300, 500, 200},\n new double[]{200, 600, 100},\n new double[]{200, 600, 200});\n\n // -- Three accounts: no planned for first one\n checkLevelPlannedWhenExceed(new int[]{100, 101, 102},\n new double[]{0, 500, 300},\n new double[]{0, 600, 100},\n new double[]{0, 600, 200});\n }", "public void CRe4_993() throws Exception {\n\n\t\t// ----------IEC Admin Login------------//\n\t\tGlobalMethods.Admin_Login();\n\n\t\tWebElement Manage_IEC1 = GWait.Wait_GetElementByXpath(\"html/body/div[3]/div/div[2]/ul/li[4]/a\");\n\t\tManage_IEC1.click();\n\n\t\tWebElement Manage_IECMembers1 = GWait.Wait_GetElementByXpath(\"//li[4]/ul/li[7]/a\");\n\t\tManage_IECMembers1.click();\n\n\t\tWebElement IECMembers_EditLink = GWait.Wait_GetElementByCSS(\".fa.fa-edit\");\n\t\tIECMembers_EditLink.click();\n\n\t\tfor (int i = 2; i <= 4; i++) {\n\n\t\t\tFileInputStream fi1 = new FileInputStream(\"C:\\\\Selenium_Files\\\\Create4_v2\\\\CReATE4_Data.xls\");\n\t\t\tWorkbook wb1 = Workbook.getWorkbook(fi1);\n\t\t\tSheet r1 = wb1.getSheet(\"ManageIEC\");\n\t\t\tString UploadFileTypeValid_data = r1.getCell(i, 128).getContents();\n\n\t\t\tWebElement UploadFileTypeValid = GWait.Wait_GetElementById(\"add_iec_member_invitation_letter\");\n\t\t\tUploadFileTypeValid.sendKeys(UploadFileTypeValid_data);\n\t\t\tUpdateBUtton.click();\n\t\t\tWebElement IECMembers_EditLink1 = GWait.Wait_GetElementByCSS(\".fa.fa-edit\");\n\t\t\tIECMembers_EditLink1.click();\n\n\t\t}\n\n\t}", "@Override\n\tpublic void waitCheck(double hours) {\n\t\t\n\t}", "@Override\n\tpublic void waitCheck(double hours) {\n\t\t\n\t}", "private boolean checkHoursRestrictions(List<Long> daysworked) {\n boolean isOk = true;\n if (daysworked.size() >= 225) {\n //this worker has\n Toast.makeText(getApplicationContext(), mUserName + \" has more than 225 work shifts\", Toast.LENGTH_SHORT).show();\n Toast.makeText(getApplicationContext(), mUserName + \" has more than 225 work shifts\", Toast.LENGTH_SHORT).show();\n isOk = false;\n }\n Collections.sort(daysworked);\n int shiftsInTheSameWeek = 0;\n int pivotWeek = -1;\n int weekNumber = -1;\n for (Long day : daysworked) {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(day);\n weekNumber = cal.get(Calendar.WEEK_OF_YEAR);\n shiftsInTheSameWeek++;\n if (pivotWeek == weekNumber) {\n if (shiftsInTheSameWeek > 5) {\n Toast.makeText(getApplicationContext(), mUserName + \" has more than 40 hours in week\" + weekNumber, Toast.LENGTH_SHORT).show();\n isOk = false;\n break;//\n }\n pivotWeek = weekNumber;\n } else {\n shiftsInTheSameWeek = 1;\n pivotWeek = weekNumber;\n }\n }\n return isOk;\n }", "private void checkManualVisit() {\n // scroll to number of visits\n onView(withId(R.id.tv_num_visits)).perform(scrollTo());\n // check number of visits is 1\n onView(withId(R.id.tv_num_visits)).check(matches(withText(String.valueOf(1))));\n\n checkLastVisitLabelAndText(date, time);\n\n // scroll to expandable RecyclerView\n onView(withId(R.id.expanding_rv_visits))\n .perform(scrollTo());\n\n // scroll to visit group and click to expand\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_VISIT_GROUP))\n .perform(click());\n\n // check that the visit has updated date and time\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_NEW_VISIT))\n .check(matches(atPosition(POS_NEW_VISIT, hasDescendant(withText(date)))));\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_NEW_VISIT))\n .check(matches(atPosition(POS_NEW_VISIT, hasDescendant(withText(time)))));\n }", "void timeCheck() throws Exception{\n\t\tif(arrival<time_check)\n\t\tthrow new Exception(\"Arrival time should be non-descending\");\n\t}", "@Test\n public void testAllElevatorsOnLevel1() {\n final ElevatorUserCommand command = new ElevatorUserCommand(1, 5, 1);\n final ElevatorMovingCommand movingStrategy = calculator.getMovingStrategy(command);\n assertEquals(elevatorA.getId(), movingStrategy.getElevatorId());\n }", "public static void consultaEleicoesPassadas() {\n\t\tArrayList<Eleicao> lista;\n\t\t\n\t\tint check = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tlista = rmiserver.getEleicoesPassadas();\n\t\t\t\tif(lista.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"Nao existem eleicoes para mostrar.\");\n\t\t\t\t}else {\n\t\t\t\t\tfor(Eleicao x: lista) {\n\t\t\t\t\t\tSystem.out.println(\"\\nEleicao \"+x.titulo);\n\t\t\t\t\t\tSystem.out.println(\"\\tID: \"+x.id);\n\t\t\t\t\t\tSystem.out.println(\"\\tDescricao: \"+x.descricao);\n\t\t\t\t\t\tSystem.out.println(\"\\tData Inicio: \"+x.dataInicio.toString());\n\t\t\t\t\t\tSystem.out.println(\"\\tData Fim: \"+x.dataInicio.toString());\n\t\t\t\t\t\tSystem.out.println(\"Resultados: \");\n\t\t\t\t\t\tif(x.tipo == 1) {\n\t\t\t\t\t\t\tif(x.registoVotos.size()>0) {\n\t\t\t\t\t\t\t\tfor(Lista y: x.listaCandidaturas) {\n\t\t\t\t\t\t\t\t\tdouble perc = y.contagem/(double)x.registoVotos.size() * 100;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\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\tif(x.registoVotos.size()>0) {\n\t\t\t\t\t\t\t\tint alunos = 0, docentes = 0, funcs = 0;\n\t\t\t\t\t\t\t\tfor(Lista y:x.listaCandidaturas) {\n\t\t\t\t\t\t\t\t\tif(y.tipoLista.equals(\"1\")) {\n\t\t\t\t\t\t\t\t\t\talunos += y.contagem;\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"2\")) {\n\t\t\t\t\t\t\t\t\t\tfuncs += y.contagem;\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"3\")) {\n\t\t\t\t\t\t\t\t\t\tdocentes += y.contagem;\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\n\t\t\t\t\t\t\t\tfor(Lista y: x.listaCandidaturas) {\n\t\t\t\t\t\t\t\t\tif(y.tipoLista.equals(\"1\")) {\n\t\t\t\t\t\t\t\t\t\tif(alunos>0) {\n\t\t\t\t\t\t\t\t\t\t\tdouble perc = (double)y.contagem/(double)alunos * 100;\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": 0% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"2\")) {\n\t\t\t\t\t\t\t\t\t\tif(funcs>0) {\n\t\t\t\t\t\t\t\t\t\t\tdouble perc = (double)y.contagem/(double)funcs * 100;\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": 0% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"3\")) {\n\t\t\t\t\t\t\t\t\t\tif(docentes>0) {\n\t\t\t\t\t\t\t\t\t\t\tdouble perc = (double)y.contagem/(double)docentes * 100;\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": 0% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"4\")) {\n\t\t\t\t\t\t\t\t\t\tdouble perc = y.contagem/(double)x.registoVotos.size() * 100;\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% sobre Total (Num. votos: \"+y.contagem+\")\");\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\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI addCandidatos\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\t\t\n\t\t\n\t}", "private boolean isAllAreaAchievable() throws ReachabilityException {\n\t\t\n\t\t// mark all points that the player should reach as 1, else as 0\n\t\tint[][] tempMap = new int[height][width];\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (mapElementArray[i][j] instanceof Item\n\t\t\t\t\t\t|| mapElementArray[i][j] instanceof Teleporter\n\t\t\t\t\t\t|| mapElementArray[i][j] instanceof PlayerSpawnPoint)\n\t\t\t\t\ttempMap[i][j] = 1;\n\t\t\t\telse\n\t\t\t\t\ttempMap[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//try to reach all area\n\t\treachAllValidPoint(tempMap, aPlayerSpawnPointRow, aPlayerSpawnPointCol);\n\t\t\n\t\t//check if all area have been reached\n\t\tint unreachablePoint = 0;\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (tempMap[i][j] == 1) {\n\t\t\t\t\tunreachablePoint++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n//\t\ttry {\n\t\t\tif (unreachablePoint > 0) {\n\t\t\t\tSystem.out.println(unreachablePoint + \" points are unreachable\");\n\t\t\t\tthrow new ReachabilityException();\n\t\t\t}else {\n\t\t\t\treturn true;\n\t\t\t}\n\t/*\t} catch (ReachabilityException e) {\n\t\t\tSystem.out.println(e);\n\t\t\t//print out map with invalid area\n\t\t\tfor (int i = 0; i < height; i++) {\n\t\t\t\tfor (int j = 0; j <width; j++) {\n\t\t\t\t\tSystem.out.print(tempMap[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\treturn false;\n\t\t}*/\n\n\t}", "public void checkExpiration(){\n //Will grab the time from the timer and compare it to the job expiration\n //Then will grab each jobID that is expired\n //Will then add it to a String array\n //then remove all those jobs in the String array\n //return true if found\n\n for(int i=0; i < jobs.size(); i++){\n currentJob = jobs.get(i);\n if(currentJob.getExpData().compareTo(JobSystemCoordinator.timer.getCurrentDate())==0){\n currentJob.setStatus(\"EXPIRED\");\n }\n }\n }", "public void startElevators(){\n\t\tfor(int liftNum =0;liftNum<NUM_OF_ELEVATORS;liftNum++){\n\t\t\tlift[liftNum].start();\n\t\t}\n\t}", "public static void checkRater (Context context ,int appUses,int daysUses){\r\n\t\tAppConfig ap = new AppConfig(context, AppConfig.NAME);\r\n\r\n\t\ttry {\r\n\t\t\t//Check if the user select not show this again\r\n\t\t\tif (!ap.getBool(AppConfig.RATER)){\r\n\t\t\t\tint count = ap.getInt(AppConfig.RATER_LAUCH_COUNTER);\r\n\r\n\t\t\t\t//protect the case when the uses will bigger than MAX_INT xDDDDDDDD\r\n\t\t\t\tif (count > 65000)\r\n\t\t\t\t\tcount = APP_USES + 1;\r\n\t\t\t\telse\r\n\t\t\t\t\tcount ++;\r\n\t\t\t\tap.put( count, AppConfig.RATER_LAUCH_COUNTER);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tint counter = ap.getInt(AppConfig.RATER_LAUCH_COUNTER) + 1;\r\n\t\t\tap.put(counter, AppConfig.RATER_LAUCH_COUNTER );\r\n\t\t\tif (appUses != -1){\r\n\t\t\t\t//Uses + number of remind later * 5\r\n\t\t\t\tif (counter >= appUses + (ap.getInt(AppConfig.RATER_REMIND_LATER) * REMIND_LATER_USES_MORE)){\r\n\t\t\t\t\tshowRaterDialog(context);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tLong dateFirstLauch = ap.getLong(AppConfig.RATER_FIRST_USE);\r\n\t\t\tif (daysUses != -1)\r\n\t\t\t\tif (System.currentTimeMillis() >= dateFirstLauch + (daysUses * 24 * 60 * 60 * 1000) + \r\n\t\t\t\t(ap.getInt(AppConfig.RATER_REMIND_LATER) * REMIND_LATER_DAYS_MORE * 24 * 60 * 60 * 1000)){\r\n\t\t\t\t\tshowRaterDialog(context);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t\r\n\r\n\r\n\t\t} catch (NoPreferenceException e) {\r\n\t\t\tap.put(true, AppConfig.RATER);\r\n\t\t\tap.put(0, AppConfig.RATER_LAUCH_COUNTER);\r\n\t\t\tap.put(System.currentTimeMillis(), AppConfig.RATER_FIRST_USE);\r\n\t\t}\r\n\r\n\t}", "public void CRe4_1017() throws Exception {\n\n\t\t// ----------IEC Admin Login------------//\n\t\tGlobalMethods.Admin_Login();\n\n\t\tWebElement Manage_IEC1 = GWait.Wait_GetElementByXpath(\"html/body/div[3]/div/div[2]/ul/li[4]/a\");\n\t\tManage_IEC1.click();\n\n\t\tWebElement Manage_IECMembers1 = GWait.Wait_GetElementByXpath(\"//li[4]/ul/li[7]/a\");\n\t\tManage_IECMembers1.click();\n\n\t\tWebElement IECMembers_EditLink = GWait.Wait_GetElementByCSS(\".fa.fa-edit\");\n\t\tIECMembers_EditLink.click();\n\n\t\tfor (int i = 2; i <= 5; i++) {\n\n\t\t\tFileInputStream fi1 = new FileInputStream(\"C:\\\\Selenium_Files\\\\Create4_v2\\\\CReATE4_Data.xls\");\n\t\t\tWorkbook wb1 = Workbook.getWorkbook(fi1);\n\t\t\tSheet r1 = wb1.getSheet(\"ManageIEC\");\n\t\t\tString UploadFileTypeValid_data = r1.getCell(i, 128).getContents();\n\n\t\t\tWebElement UploadFileTypeValid = GWait.Wait_GetElementById(\"add_iec_member_upload_document_ethics\");\n\t\t\tUploadFileTypeValid.sendKeys(UploadFileTypeValid_data);\n\t\t\tUpdateBUtton.click();\n\t\t\tWebElement IECMembers_EditLink1 = GWait.Wait_GetElementByCSS(\".fa.fa-edit\");\n\t\t\tIECMembers_EditLink1.click();\n\n\t\t}\n\n\t}", "public void verifyIfElevenStepsArePresent(){\r\n WebDriverWait wait = new WebDriverWait(driver,60);\r\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(firstStepNameXpathLocator)));\r\n List<WebElement> stepsList = driver.findElements(By.xpath(allStepsXpathLocator));\r\n Assert.assertTrue(stepsList.size()==11,\"All 11 Steps are present on the page.\");\r\n }", "protected void deadlineLeasing() {\n log.info(\"OrdersBean : deadlineLeasing\");\n List<OrdersEntity> ordersEntitiesDeadline = ordersServices.findAllOrdersByIdUserAndStatusIsValidate(usersBean.getUsersEntity().getId());\n if (!ordersEntitiesDeadline.isEmpty()) {\n contractsBean.findAllContractsInAllMyOrdersForLeasingAndDeadlineIsLowerThan1Month(ordersEntitiesDeadline);\n }\n }", "public int getElevatorCount() { return this.elevators == null ? 0 : this.elevators.length; }", "public void ReuseMethodsforDPRcheckavailabitlity(String Enterrooms, String roomtype) throws IOException, InterruptedException, ParseException\r\n\t{\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tarrival_date();\r\n\t\t\tdeparture_date();\r\n\t\t\tpopup_ok();\r\n\t\t\tRooms_and_Guests();\r\n\t\t\tselect_Rooms(Enterrooms);\r\n\t\t\tClick_SpecialRate();\r\n\t\t\tSpecialRateplan_Validation();\r\n\t\t\tClick_Done();\r\n\t\t\tclick_CheckavailabitlityButton();\r\n\t\t\troom_type(roomtype);\r\n\t\t\tBookRoom();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSeleniumRepo.driver.navigate().refresh();\r\n\t\t\tarrival_date();\r\n\t\t\tdeparture_date();\r\n\t\t\tpopup_ok();\r\n\t\t\tRooms_and_Guests();\r\n\t\t\tselect_Rooms(Enterrooms);\r\n\t\t\tClick_SpecialRate();\r\n\t\t\tSpecialRateplan_Validation();\r\n\t\t\tClick_Done();\r\n\t\t\tclick_CheckavailabitlityButton();\r\n\t\t\troom_type(roomtype);\r\n\t\t\tBookRoom();\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "public void run () {\n \n ExternalAgentReference childExtRef;\n LiaisonStatusReference childLSR;\n ALPAgentReference childAlpRef;\n ALPAgentReference alpRef = theApplication.currentAlpRef;\n ExternalAgentReference extRef = theApplication.currentExtRef;\n ArrayList affectedLSRs = new ArrayList();\n ArrayList extDescendants;\n ArrayList alpDescendants;\n ArrayList alpArray = new ArrayList(); \n ArrayList extArray = new ArrayList();\n Iterator extIt, alpIt;\n\n theApplication.mainWindow.setStatusBar(new String(\"Updating liaison permissions...\"));\n \n affectedLSRs.add(theLSR);\n\n // gather all affect extRefs \n extArray.add(extRef);\n extDescendants = theApplication.extSet.getDescendants(extRef);\n extIt = extDescendants.iterator();\n while(extIt.hasNext()){\n extArray.add(extIt.next());\n }\n\n // gather all affected Alp references \n alpArray.add(alpRef); \n // if the current ALP node controls subordinates, we must set \n // their permissions as well. \n if(!(alpRef.delegatesAuthority.booleanValue())){\n alpDescendants = theApplication.alpSet.getDescendants(alpRef);\n if(alpDescendants.size() > 0){\n alpIt = alpDescendants.iterator();\n while(alpIt.hasNext()){\n alpArray.add(alpIt.next());\n }\n }\n }\n\n // Now, cycle through and modify all necessary permissions\n\n alpIt = alpArray.iterator();\n while(alpIt.hasNext()){\n // outer loop, go through the current alp ref and any descendants\n childAlpRef = (ALPAgentReference) alpIt.next();\n // inner loop-- go through all affect ext refs. \n extIt = extArray.iterator();\n while(extIt.hasNext()){\n childExtRef = (ExternalAgentReference) extIt.next();\n childLSR = theApplication.liaisonSet.getStatusRef(childAlpRef, \n childExtRef);\n childLSR.ALPCanInitiate = new Boolean(theValue);\n affectedLSRs.add(childLSR);\n } // loop through affected external refs \n\n }\n\n theApplication.liaisonCollector.writeOutLSRsToJavaSpace(affectedLSRs);\n \n \n \n \n // Need to get teh external tree to repaint itself. \n theApplication.mainWindow.repaintMainExtTree();\n // Update permissions panel but not the values themselves, otherwise will\n // end up in an infinite event loop\n theApplication.mainWindow.updatePermissionsPanel(alpRef, extRef, false);\n theApplication.mainWindow.setStatusBar(new String(\"done.\"));\n \n }", "public void viewApplicants() throws InterruptedException {\n\t\tdriver.findElement(By.xpath(dev_GSP_CLICKER)).click();\n\t\tdriver.findElement(By.xpath(dev_GSP_CONDITIONALLYAPPROVE)).click();\n\t\tThread.sleep(1000);\n\t\tWebElement promowz = driver.findElement(By.xpath(dev_GSP_CAPPROVEREASON));\n\t\tpromowz.sendKeys(\"c\");\n\t\tThread.sleep(1000);\n\t\tdriver.findElement(By.xpath(dev_GSP_CAPPROVEBUTTON)).click();\n\t\tAssert.assertTrue(\"Successfully conditionally approved!\", elementUtil.isElementAvailabe(dev_GSP_CAPPROVESUCCESS));\n\t\tlogger.info(\"Passed conditionally approved\");\n\t\t\n\t}", "@Test(priority=22)\n\tpublic void verifyActiveAdsVistsLeadsCountandIconsaredisplaying() throws Exception {\n\t\tOverviewTradusPROPage overviewObj=new OverviewTradusPROPage(driver);\n\t\t/*LoginTradusPROPage loginPage = new LoginTradusPROPage(driver);\n\t\tloginPage.setAccountEmailAndPassword(\"[email protected]\", \"sunfra123\");\n\t\tclick(loginPage.LoginButton);*/\n\t\texplicitWaitFortheElementTobeVisible(driver,overviewObj.overviewPageVerificationElement);\n\t\twaitTill(2000);\n\t\t//for ActiveAds\n\t\tAssert.assertTrue(getText(overviewObj.totalActiveAdsText).trim().equals(\"Total number of active ads\"),\n\t\t\t\t\"Total number of active Ads text is not displaying\");\n\t\tAssert.assertTrue(verifyElementPresent(overviewObj.iconInActiveAdsCountSection),\n\t\t\t\t\"Icon is not displaying for total number of active Ads\");\n\t\twaitTill(1000);\n\t\tAssert.assertTrue(Integer.parseInt(getText(overviewObj.totalActiveAdsCount).trim())>0,\n\t\t\t\t\"Total number of active Ads count is incorrect\");\n\t\t\n\t\t//for visits\n\t\tAssert.assertTrue(getText(overviewObj.totalVisitsText).trim().equals(\"Total of visits\"),\n\t\t\t\t\"Total number of visit text is not displaying\");\n Assert.assertTrue(verifyElementPresent(overviewObj.iconInVisitesCountSection),\n\t\t\t\t\"Icon is not displaying for total number of visits\");\n Assert.assertTrue(Integer.parseInt(getText(overviewObj.totalVisitsCount).trim())>0,\n\t\t\t\t\"Total number of visit count is incorrect\");\n //for Leads\n \tAssert.assertTrue(getText(overviewObj.totalLeadsText).trim().equals(\"Total of leads\"),\n \t\t\t\t\t\t\"Total number of Leads text is not displaying\");\n \tAssert.assertTrue(verifyElementPresent(overviewObj.iconInTotalLeadsCountSection),\n \t\t\t\t\t\t\"Icon is not displaying for total number of Leads\");\n \tAssert.assertTrue(Integer.parseInt(getText(overviewObj.totalLeadsCount).trim())>0,\n \t\t\t\t\t\"Total number of Leads count is incorrect\");\n\t\n\t}", "public void check () {\n // declaring local variables\n WebElement webElement;\n\n if (isStubbed()) {\n log(\"=== This checkbox's locator is currently stubbed out. ===\");\n } else {\n // getting the web element of the check box with the default timeout\n // and then check its status\n\n int MAXRETRIES = 3;\n int tries = 1;\n while (!this.isChecked() && tries <= MAXRETRIES) {\n // need to give a second for the browser to catch up with the web driver\n //sleep(1, TimeUnit.SECONDS);\n\n // Directly get the web element since we know that it exists and is displayed\n webElement = getWebElement ();\n this.clickWebElement (webElement);\n\n\n\n\n tries++;\n if (this.isChecked() == false)\n {\n sleep(1, TimeUnit.SECONDS);\n }\n }\n }\n }", "@Test\n public void testGetAllAssignments() throws Exception {\n TestHarnessBuilder builder = new TestHarnessBuilder();\n\n Map<String, Lease> addedLeases = builder.withLease(\"1\", WORKER_ID)\n .withLease(\"2\", WORKER_ID)\n .withLease(\"3\", WORKER_ID)\n .withLease(\"4\", WORKER_ID)\n .withLease(\"5\", WORKER_ID)\n .build();\n\n // Run the taker\n coordinator.runLeaseTaker();\n\n List<Lease> allLeases = coordinator.allLeases();\n assertThat(allLeases.size(), equalTo(addedLeases.size()));\n assertThat(allLeases.containsAll(addedLeases.values()), equalTo(true));\n }", "private void check() {\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date date = new Date();\n Date date2 = new Date();\n\n Calendar calendar = Calendar.getInstance();\n date = calendar.getTime();\n\n // Se traen todos los miembros.\n Iterator e = memberBroker.getList(\"name\", \"ASC\");\n membersData member;\n accountsData account;\n //Calendar hoy = Calendar.getInstance();\n StringBuffer managerBody = new StringBuffer(\"\");\n StringBuffer memberBody = new StringBuffer(\"\");\n sendMail sm = new sendMail();\n\n\n while (e.hasNext()) { \n member = new membersData();\n account = new accountsData();\n member = (membersData) e.next();\n account=(accountsData) accountBroker.getData(member.getId_account());\n \n \n System.out.println(\"CHECKING (\" + member.getname() + -+member.getid() + -+member.getId_account() + \")\");\n\n //String mainURL = TMSConfigurator.getMainURL();\n String mainURL = account.getMain_url();\n managerBody = new StringBuffer(\"\");\n\n memberBody = new StringBuffer(\"\");\n\n // Se toma la fecha de hoy y la fecha de expiracion y se calcula la diferencia\n date2 = member.getExpired_date();\n long days = daysBetween(new Date(date.getTime()), new Date(date2.getTime()));\n \n if (days == 1) {\n System.out.println(\"un dia antes\");\n memberBody.append(\"Cuenta: \" + member.getname() + \"<br>\");\n memberBody.insert(0, \"La cuenta esta apunto de expirar le queda \" + days + \".<br>\");\n sm.sendCheckTasks(member.getemail_work(), memberBody.toString());\n\n managerBody.append(\"<BLOCKQUOTE>Miembro: \" + member.getname() + \"<br>\");\n managerBody.insert(0, \"La cuenta esta apunto de expirar le queda \"+days+\".<br>\");\n \n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n\n }\n if (days == 0) {\n System.out.println(\"ultimo dia\");\n memberBody.append(\"Cuenta: \" + member.getname() + \"<br>\");\n memberBody.insert(0, \"La cuenta esta apunto de expirar le queda \" + days + \".<br>\");\n sm.sendCheckTasks(member.getemail_work(), memberBody.toString());\n\n managerBody.append(\"<BLOCKQUOTE>Miembro: \" + member.getname() + \"<br>\");\n managerBody.insert(0, \"La cuenta esta apunto de expirar le queda \"+days+\".<br>\");\n \n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n }\n if (days == 7) {\n System.out.println(\"a una semana\");\n memberBody.append(\"Cuenta: \" + member.getname() + \"<br>\");\n memberBody.insert(0, \"La cuenta esta apunto de expirar le queda \" + days + \".<br>\");\n sm.sendCheckTasks(member.getemail_work(), memberBody.toString());\n\n managerBody.append(\"<BLOCKQUOTE>Miembro: \" + member.getname() + \"<br>\");\n managerBody.insert(0, \"La cuenta esta apunto de expirar le queda \"+days+\".<br>\");\n \n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n }\n /*if (hoy.getTimeInMillis() > end) {\n // Ya estas atrasado mas alla del umbral maximo permitido!!\n System.out.println(\"\\t\\t\\tAtrasada!!\");\n if (atrasadoEquipo == false) {\n // Al menos un miembro del equipo esta atrazado.\n managerBody.append(\"Proyecto: \" + proyecto.getname() + \"<br>\");\n atrasadoEquipo = true;\n }\n if (atrasado == false) {\n // Este member no estaba atrasado, se agrega el encabezado para\n // su email. \n memberBody.append(\"Proyecto: \" + proyecto.getname() + \"<br>\");\n managerBody.append(\"<BLOCKQUOTE>Miembro: \" + team.getparentMember().getname() + \"<br>\");\n }\n if (team.getparentMember().getprofile().equals(\"0\") ||\n team.getparentMember().getprofile().equals(\"1\")) {\n // Siempre el mensaje de atrazo, pero no es un usuario externo\n memberBody.append(\"<BLOCKQUOTE>Tarea (<a href='\" + mainURL + \"/tasks.do?operation=view&id=\" +\n task.getid() + \"'>\" + task.getname() + \"</a>):\\tAtrasada<br>\" +\n \"</BLOCKQUOTE>\");\n } else {\n // Se trata de un usuario del cliente\n memberBody.append(\"<BLOCKQUOTE>Tarea (<a href='\" + mainURL + \"/portalTasks.do?operation=view&id=\" +\n task.getid() + \"'>\" + task.getname() + \"</a>):\\tAtrasada<br>\" +\n \"</BLOCKQUOTE>\");\n }\n managerBody.append(\"<BLOCKQUOTE>Tarea (<a href='\" + mainURL + \"/tasks.do?operation=view&id=\" +\n task.getid() + \"'>\" + task.getname() + \"</a>):\\tAtrasada<br>\" + \"\\t Asignada a: \" +\n (task.getassigned_to() == 0 ? \"No Asignada\" : task.getparentAssigned().getname()) +\n \"</BLOCKQUOTE>\");\n // Se cambia el valor\n atrasado = true;\n } else {\n System.out.println(\"\\t\\t\\tOK!!\");\n }\n // Se le envia el email al miembro del equipo si y solo si esta atrazado\n if (atrasado) {\n // enviar correo al usuario\n memberBody.insert(0, \"Las siguientes tareas est&aacute;n atrasadas m&aacute;s all&aacute; del umbral de tolerancia permitido.<br>\");\n managerBody.append(\"</BLOCKQUOTE>\");\n sm.sendCheckTasks(team.getparentMember().getemail_work(),\n memberBody.toString());\n }\n // Si alguien del proyecto esta atrazado se envia la lista de cada member\n // al administrador\n if (atrasadoEquipo) {\n managerBody.insert(0, \"Las siguientes tareas est&aacute;n atrasadas m&aacute;s all&aacute; del umbral de tolerancia permitido.<br>\");\n sm.sendCheckTasks(proyecto.getparentOwner().getemail_work(),\n managerBody.toString());\n }\n */\n\n\n // while de miembros\n\n\n }\n }", "private boolean checkExecution() {\n if (!checkPhoneStatusOK()) {\n return false;\n }\n if (!checkBatteryLevelOK()) {\n return false;\n }\n return true;\n }", "public void CheckAvail(LocalDate indate, LocalDate outdate)\r\n {\n if (Days.daysBetween(lastupdate, outdate).getDays() > 30)\r\n {\r\n System.out.println(\"more than 30\");\r\n return;\r\n }//Check if checkin date is before today\r\n if (Days.daysBetween(lastupdate, indate).getDays() < 0)\r\n {\r\n System.out.println(\"Less than 0\");\r\n return;\r\n }\r\n int first = Days.daysBetween(lastupdate, indate).getDays();\r\n int last = Days.daysBetween(lastupdate, outdate).getDays();\r\n for (int i = 0; i < roomtypes.size(); i++)\r\n {\r\n boolean ispossible = true;\r\n for (int j = first; j < last; j++)\r\n {\r\n if (roomtypes.get(i).reserved[j] >= roomtypes.get(i).roomcount)\r\n {\r\n ispossible = false;\r\n }\r\n } \r\n \r\n if (ispossible)\r\n System.out.println(roomtypes.get(i).roomname);\r\n }\r\n }", "private void incWaiters()\r\n/* 443: */ {\r\n/* 444:530 */ if (this.waiters == 32767) {\r\n/* 445:531 */ throw new IllegalStateException(\"too many waiters: \" + this);\r\n/* 446: */ }\r\n/* 447:533 */ this.waiters = ((short)(this.waiters + 1));\r\n/* 448: */ }", "public boolean scheduleAlg1(int currBoolReset, int maxGuidesPerTourInt, int maxToursPerGuideInt, int minGuidesPerTourInt, int minToursPerGuideInt){\n\t\t\r\n\t\tint numberOfWeeks = findNumWeeks();\r\n\t\tfor(int x = 0; x < numberOfWeeks; x++){\r\n\t\t\tfor(int y = 0; y < personList.size(); y++){\r\n\t\t\t\t//System.out.println(\"a\");\r\n\t\t\t\tpersonList.get(y).weeks.add(false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(\"here it's \" + personList.get(0).weeks.size());\r\n\t\t\r\n\t\tint currentAvailabilityBool; //This is the index in the availability boolean array list that is currently relevant. \r\n\t\tint week = 0;\r\n\t\tboolean innerWhile, outerWhile;\r\n\t\tint currentAvailabilityInt, currentToursGivenInt; \r\n\t\tcurrentHighestTourCount = 0;\r\n\t\tif(currBoolReset >= toursInTheWeek){\r\n\t\t\tcurrBoolReset = 0;\t\t\t\r\n\t\t}\r\n\t\tfor(int i = 0; i < maxGuidesPerTourInt; i++){\r\n\t\t\t//System.out.println(\"guide: \" + i);\r\n\t\t\t//System.out.println(\"Adding guide \" + i);\r\n\t\t\tcurrentAvailabilityBool = currBoolReset; //Have to reset it each time we loop through. \r\n\t\t\t//System.out.println(\"OUTERMOST LOOP IS \" + i);\r\n\t\t\tfor(int j = 0; j < dayList.size(); j++){\r\n\t\t\t\tweek = getWeekFromDay(j);\r\n\t\t\t\t//System.out.println(\"Day: \" + j + \" Week: \" + week);\r\n\t\t\t\tif(!dayList.get(j).holiday){ //If the current day isn't a holiday.\r\n\t\t\t\t\t//Go through all the tours on the current day.\r\n\t\t\t\t\t//System.out.println(dayList.get(j).numberOfTours + \" tours today\");\r\n\t\t\t\t\tfor(int k = 0; k < dayList.get(j).numberOfTours; k++){\r\n\t\t\t\t\t\t//System.out.println(\"Looking at tour \" + k);\r\n\t\t\t\t\t\touterWhile = true;\r\n\t\t\t\t\t\tcurrentToursGivenInt = 0;\r\n\t\t\t\t\t\twhile(outerWhile){\r\n\t\t\t\t\t\t\tinnerWhile = true;\r\n\t\t\t\t\t\t\t//System.out.println(\"OUTER WHILE - Looking at guides who have given \" + currentToursGivenInt + \" tours\");\r\n\t\t\t\t\t\t\tcurrentAvailabilityInt = 0;\r\n\t\t\t\t\t\t\twhile(innerWhile){\r\n\t\t\t\t\t\t\t\t//System.out.println(\"INNER WHILE - Availability of \" + currentAvailabilityInt);\r\n\t\t\t\t\t\t\t\t//numOfAvailableSlots\r\n\t\t\t\t\t\t\t\t//Go through guides and find one with an availability matching the currentAvailabilityInt and a true value \r\n\t\t\t\t\t\t\t\t//at the currentAvailabilityBool. Set lookingForAGuide to true and add that guide to the current tour's list,\r\n\t\t\t\t\t\t\t\t//as long as all the requirements are met. \r\n\t\t\t\t\t\t\t\t//Remember to check if currentHighestTourCount needs to be incremented.\r\n\t\t\t\t\t\t\t\tfor(int m = 0; m < personList.size(); m++){\r\n\t\t\t\t\t\t\t\t\t//System.out.println(\"m is \" + m + \" and currentAvailabilityBool is \" + currentAvailabilityBool);\r\n\t\t\t\t\t\t\t\t\tif(personList.get(m).toursThisMonth == currentToursGivenInt && personList.get(m).numOfAvailableSlots == currentAvailabilityInt && personList.get(m).availabilityBooleans.get(currentAvailabilityBool))\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t//Then we've found a guide that's got the minimum availability and is available at this time.\r\n\t\t\t\t\t\t\t\t\t\t//Check requirements, then add them if they're met. \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tif(personList.get(m).toursThisMonth < maxToursPerGuideInt){\r\n\t\t\t\t\t\t\t\t\t\t\t//Have to check if they've already given a tour that day. \r\n\t\t\t\t\t\t\t\t\t\t\tif(personList.get(m).checkIfScheduled(j) && personList.get(m).weeks.get(week) == false){ //Make sure they haven't been given a tour on this day before.\r\n\t\t\t\t\t\t\t\t\t\t\t\tpersonList.get(m).toursThisMonth++;\r\n\t\t\t\t\t\t\t\t\t\t\t\tpersonList.get(m).scheduledDays.add(j); //Add this day to the list. \r\n\t\t\t\t\t\t\t\t\t\t\t\tif(personList.get(m).toursThisMonth > currentHighestTourCount){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tcurrentHighestTourCount = personList.get(m).toursThisMonth;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Current highest tour count is \" + currentHighestTourCount);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\tdayList.get(j).tourList.get(k).addGuide(personList.get(m));\r\n\t\t\t\t\t\t\t\t\t\t\t\tpersonList.get(m).tourList.add(dayList.get(j).tourList.get(k)); //Add the tour to that guide's list of tours.\r\n\t\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"We just added \" + personList.get(m).name);\r\n\t\t\t\t\t\t\t\t\t\t\t\tinnerWhile = false;\r\n\t\t\t\t\t\t\t\t\t\t\t\touterWhile = false;\r\n\t\t\t\t\t\t\t\t\t\t\t\tpersonList.get(m).weeks.set(week, true);\r\n\t\t\t\t\t\t\t\t\t\t\t\tm = personList.size();\r\n\t\t\t\t\t\t\t\t\t\t\t}\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}//For m\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tcurrentAvailabilityInt++;\r\n\t\t\t\t\t\t\t\tif(currentAvailabilityInt > toursInTheWeek){\r\n\t\t\t\t\t\t\t\t\tinnerWhile = false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} //inner while\r\n\t\t\t\t\t\t\tcurrentToursGivenInt++;\r\n\t\t\t\t\t\t\tif(currentToursGivenInt > currentHighestTourCount){\r\n\t\t\t\t\t\t\t\t//We couldn't find a tour guide. Do we break somehow?\r\n\t\t\t\t\t\t\t\tif(i < minGuidesPerTourInt){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Returned here\");\r\n\t\t\t\t\t\t\t\t\treturn false; //Because we never reached the minimum guides per tour number.\r\n\t\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t\t\t//Otherwise we can just skip this tour. \r\n\t\t\t\t\t\t\t\touterWhile = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} //outer while\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Here's where we update the counter for which availability bool we're looking at.\r\n\t\t\t\t\t\tcurrentAvailabilityBool++;\r\n\t\t\t\t\t\tif(currentAvailabilityBool >= toursInTheWeek){\r\n\t\t\t\t\t\t\tcurrentAvailabilityBool = 0; //Time to reset it.\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//For k\r\n\t\t\t\t}//If not a holiday.\r\n\t\t\t\telse{\r\n\t\t\t\t\tfor(int k = 0; k < dayList.get(j).numberOfTours; k++){\r\n\t\t\t\t\t\tcurrentAvailabilityBool++;\r\n\t\t\t\t\t\tif(currentAvailabilityBool >= toursInTheWeek){\r\n\t\t\t\t\t\t\tcurrentAvailabilityBool = 0; //Time to reset it.\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}//For j\r\n\t\t}//For i\r\n\t\t//Check if minToursPerGuide has been met.\r\n\t\tif(!checkMinToursPerGuide(minToursPerGuideInt)){\r\n\t\t\tSystem.out.println(\"Min tours per guide not met\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true; //It worked!\r\n\t}", "@Test(priority=2,description=\"check Plocked users\")\npublic void test2() throws Throwable \n{\n\ttry {\n\t\tlogin.UserInfo = driver.LocateById(login.logoutDivID);\n\t\t}catch(Exception e) {\n\t\tReporter.log(\"Can't login\");\n\t\tAssert.assertTrue(false);\n\t\t}\n\t\tact = builder.moveToElement(login.UserInfo).click().build();\n\t\tact.perform();\n\t\ttry {\n\t\tlogin.profileBTN = driver.LocateByXpath(\"//*[@id='loggedbutton']//following-sibling::ul/li[2]\");\n\t\t}catch(Exception e) {\n\t\tReporter.log(\"Can't find setting btn\");\n\t\tAssert.assertTrue(false);\n\t\t}\n\t\tact = builder.moveToElement(login.profileBTN).click().build();\n\t\tact.perform();\n\t\tThread.sleep(1000);\t\t\t\t\t\t\t\t// open profile\n\ttry {\n\t\tProfPage.blockBTN = driver.LocateById(ProfPage.blockBTNid);\n\t\t}catch(Exception e) {\n\t\tReporter.log(\"Can't login\");\n\t\tAssert.assertTrue(false);\n\t\t}\n\t\tact = builder.moveToElement(ProfPage.blockBTN).click().build();\n\t\tact.perform();\n\t\tboolean getUser=false;\n\t\tList<WebElement> BlockedUsersList = driver.driver.findElements(By.xpath(\"//*[@id='box']//p\"));\n\t int x =BlockedUsersList.size();\n\t for(int i=0;i<x;i++)\n\t {\n\t \tReporter.log(BlockedUsersList.get(i).getText());\n\t \tif (BlockedUsersList.get(i).getText().equals(\"sayed\"))\n\t \t{\n\t \t\tgetUser=true;\n\t \t}\n\t \t\n\t }\n\t assertTrue(getUser);\n\t\t\n}", "@Scheduled(fixedRate = checkRate)\n public void CheckExpired() {\n log.info(\"Checking if links expired\");\n try {\n for(ShortURL s : urlList) {\n // Si la fecha guardada es antes que este momento\n Date then1 = s.getExpirationDate();\n java.util.Date then2= new java.util.Date(then1.getTime());\n Instant then = then2.toInstant();\n Instant now = ZonedDateTime.now().toInstant();\n if(then.isBefore(now)){\n log.info(\"URL {} expired.\", s.getUri().toString());\n s.setMode(HttpStatus.GONE.value());\n }\n }\n } catch( NullPointerException e) {\n //No se ha inicializado aun\n }\n\n }", "@Test(enabled = true, retryAnalyzer=RetryAnalyzer.class)\r\n\tpublic void testParkingBookingPreparationTimeAndCleanupNotConsidered() throws IOException{\r\n\t\tReporter.log(\"<span style='font-weight:bold;color:#000033'> \"\r\n\t\t\t\t+ \"C118064: Preparation and Cleanup time should not be considered while calculating Total Cost in Parking reservation\", true);\r\n\r\n\t\t int random = (int)(Math.random() * 10)+24;\r\n\t\t String date = this.getFutureDate(random);\r\n\t\t String region = \"1preRgRef\";\r\n\t\t String from = \"18:00\";\r\n\t\t String until = \"19:00\";\r\n\t\t String prakingResv = \"prePrkDefRef\";\r\n\t\t String prepTime = \"00:30\";\r\n\t\t String cleanupTime = \"00:30\";\r\n\t\t String responsible=getUserLastNameOfLoggedInUser();\r\n\r\n\t\t SoftAssert softAssert = new SoftAssert();\r\n\t\t softAssert.setMethodName(\"testParkingBookingPreparationTimeAndCleanupNotConsidered\");\r\n\t\t \r\n\t\t expandAdministration();\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t expandSubMainMenu(\"Reservation\");\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t waitAndClick(XPATH_NEWRESERVATIONS);\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t //C118064\r\n\t\t setRegion(region);\r\n\t\t setDate(date);\r\n\t\t setTimeFrom(from);\r\n\t\t setTimeUntil(until);\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t clickParkingTab();\r\n\t\t waitForExtJSAjaxComplete(10);\r\n\r\n\t\t clickSearch();\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t clickLaunchReservation(prakingResv);\r\n\t\t waitForExtJSAjaxComplete(10);\r\n\r\n\t\t setTimePrepareFromReservationPanel(prepTime);\r\n\t\t waitForExtJSAjaxComplete(10);\r\n\r\n\t\t setTimeCleanupFromReservationPanel(cleanupTime);\r\n\t\t waitForExtJSAjaxComplete(10);\r\n\r\n\t\t setResponsible(responsible);\r\n\t\t waitForExtJSAjaxComplete(10);\r\n\r\n\t\t clickSummaryTab();\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t String getSummaryText = getItemDetailsFromReservationSummary(prakingResv);\r\n\t\t softAssert.assertTrue( getSummaryText.contains(\"1 h x 4.00 EUR\"),\"Total cost is calculated without considering Prepare/Cleanup time\");\r\n\t\t softAssert.assertTrue(getSummaryTitle().contains(\"4.04 EUR\"),\"summary title is ok before adding additional Equipment, Vehicles & Parking\");\r\n\t}", "private void emptyRule(boolean[] emptyElevators, int emptyCount){\n\t\t// create a new QueueSorter which will tell us where the largest Queue of waiting passengers is\n\t\tQueueSorter qs = new QueueSorter(this.upQueues.length*2+1);\n\t\tfor( int k = 0 ; k < this.upQueues.length ; k++){\n\t\t\t// add both directions\n\t\t\tqs.add( (ElevatorQueue)this.upQueues[k]);\n\t\t\tqs.add( (ElevatorQueue)this.downQueues[k]);\n\t\t}\n\t\t\n\t\t// For each elevator in the bank\n\t\tfor (int i = 0 ; i < this.elevators.length ; i++ ){\n\t\t\t// if the elevator is empty and does not already have a targetFloor assigned\n\t\t\tif( emptyElevators[i] == true && this.elevators[i].getTargetFloor() <= 0 ){\n\t\t\t\t//get the largest Queue from our list\n\t\t\t\tElevatorQueue eq = qs.remove();\n\t\t\t\t// if this queue size is 0 then there are no waiting passengers and no elevators will be\n\t\t\t\t// assigned to move that are empty\n\t\t\t\tif( eq.size() == 0 ){\n\t\t\t\t\t// all of the remaining queues are empty\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// floor of this queue\n\t\t\t\tint floor = eq.getFloor();\n\t\t\t\tElevator.Direction d = eq.getDirectionQueue();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// this checks to see if another elevator is headed to the target floor\n\t\t\t\tboolean check = false;\n\t\t\t\t//for each elevator\n\t\t\t\tfor( int j = 0; j < this.elevators.length ; j++ ){\n\t\t\t\t\t\n\t\t\t\t\t// if another elevator is headed to this target floor, that is not the same\n\t\t\t\t\t// elevator as the one being assigned this targetFloor. Also make sure it is in the same direction\n\t\t\t\t\tif( this.elevators[j].getTargetFloor() == floor &&\n\t\t\t\t\t\t\ti != j && this.elevators[j].getTargetDirection() == d){\n\t\t\t\t\t\tcheck = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// if there is another elevator, continue on\n\t\t\t\tif( check == true){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//otherwise set the targetfloor and direction\n\t\t\t\tthis.elevators[i].setTargetFloor(floor);\n\t\t\t\tthis.elevators[i].setTargetDirection(d);\n\t\t\t\t//set direction to get to floor\n\t\t\t\tif( this.elevators[i].getCurrentFloor() < floor){\n\t\t\t\t\tthis.elevators[i].setDirection(Elevator.Direction.UP);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.elevators[i].setDirection(Elevator.Direction.DOWN);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// we have no assigned this elevator to a targetFloor, remove it from out list of emtpyElevators\n\t\t\t\temptyElevators[i] = false;\n\t\t\t\t\n\t\t\t}\n\t\t\t// if we have an elevator that is Empty but is still heading toward it's targetFloor, check to see \n\t\t\t// that there are still waiting passengers at the targetFloor\n\t\t\telse if( emptyElevators[i] == true ){\n\t\t\t\tElevatorQueue temp = null;\n\t\t\t\t//check to see if anybody has picked up the passengers it was going to, find the correct Queue on\n\t\t\t\t// the correct floor\n\t\t\t\tif( this.elevators[i].getTargetDirection() == Elevator.Direction.DOWN){\n\t\t\t\t\ttemp = ( ElevatorQueue ) this.downQueues[this.elevators[i].getTargetFloor()];\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttemp = (ElevatorQueue) this.upQueues[this.elevators[i].getTargetFloor()];\n\t\t\t\t}\n\t\t\t\t// somebody picked up the passengers, reset\n\t\t\t\tif( temp.size() == 0 ){\n\t\t\t\t\tthis.elevators[i].setTargetFloor(-1);\n\t\t\t\t\tthis.elevators[i].setTargetDirection(null);\n\t\t\t\t\t// repeat so that it will find a floor to go to\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private boolean shouldBecomeCombatEngineer() {\r\n\t\tdouble machineUnitsCount = this.getNumberOfMachineUnits();\r\n\t\tdouble combatEngineers = this.informationStorage.getWorkerConfig().getTotalCombatEngineerCount();\r\n\r\n\t\treturn combatEngineers / machineUnitsCount <= this.combatEngineerTriggerPercentageEnroll;\r\n\t}", "public void CRe4_987_988() throws Exception {\n\n\t\t// ----------IEC Admin Login------------//\n\t\tGlobalMethods.Admin_Login();\n\t\tWebElement Manage_IEC1 = GWait.Wait_GetElementByXpath(\"html/body/div[3]/div/div[2]/ul/li[4]/a\");\n\t\tManage_IEC1.click();\n\n\t\tWebElement Manage_IECMembers1 = GWait.Wait_GetElementByXpath(\"//li[4]/ul/li[7]/a\");\n\t\tManage_IECMembers1.click();\n\n\t\tFileInputStream fi1 = new FileInputStream(\"C:\\\\Selenium_Files\\\\Create4_v2\\\\CReATE4_Data.xls\");\n\t\tWorkbook wb1 = Workbook.getWorkbook(fi1);\n\t\tSheet r1 = wb1.getSheet(\"ManageIEC\");\n\t\tString IECMemList_data = r1.getCell(2, 124).getContents();\n\t\tString EditIECMemList_data = r1.getCell(3, 124).getContents();\n\t\tString AlertFirstName_data = r1.getCell(4, 124).getContents();\n\t\tString AlertLastName_data = r1.getCell(5, 124).getContents();\n\n\t\t// ----IEC members List----//\n\t\tWebElement IECMembers_Header = GWait.Wait_GetElementByXpath(\"//div[1]/div/div[2]/div[4]/h3\");\n\t\t// Assert.assertEquals(IECMembers_Header.getText(), IECMemList_data);\n\t\tif (IECMembers_Header.getText().equalsIgnoreCase(IECMemList_data)) {\n\t\t\tSystem.out.println(IECMembers_Header.getText().equalsIgnoreCase(IECMemList_data));\n\t\t} else {\n\t\t\tSystem.out.println(\"Test Fail IEC members List\");\n\t\t}\n\n\t\tWebElement IECMembers_EditLink = GWait.Wait_GetElementByCSS(\".fa.fa-edit\");\n\t\tIECMembers_EditLink.click();\n\n\t\t// ----Edit IEC members List----//\n\t\tWebElement IECMembers_EditHeader = GWait.Wait_GetElementByXpath(\"//div[4]/div/div[1]/div[2]/h3\");\n\t\tAssert.assertEquals(IECMembers_EditHeader.getText().trim(), EditIECMemList_data);\n\n\t\tFirstName_Clear.clear();\n\t\tMiddleName_Clear.clear();\n\t\tLastName_Clear.clear();\n\t\tEmp_Clear.clear();\n\t\tDOB_Clear.clear();\n\t\tConNum_Clear.clear();\n\t\tSelect Rtype = new Select(Depart_Clear);\n\t\tRtype.selectByVisibleText(\"Select department types\");\n\t\tSelect Rtype1 = new Select(Design_Clear);\n\t\tRtype1.selectByVisibleText(\"Select designation types\");\n\t\tDateOfTrainingSOP_Clear.clear();\n\t\tIssueDate_Clear.clear();\n\t\tDocumentGCP_Clear.clear();\n\t\tTitle_Clear.clear();\n\t\tDateOfTraingEthic_Clear.clear();\n\t\tUpdateBUtton.click();\n\n\t\t// ----Check Alert in edit IEC members List----//\n\n\t\tWebElement Alert_FirstName = GWait.Wait_GetElementByXpath(\"//div[2]/form/div[1]/div/div[1]/div/div/label\");\n\t\tAssert.assertEquals(Alert_FirstName.getText().trim(), AlertFirstName_data);\n\n\t\tWebElement Alert_LastName = GWait.Wait_GetElementByXpath(\"//div[2]/form/div[1]/div/div[3]/div/div/label\");\n\t\tAssert.assertEquals(Alert_LastName.getText().trim(), AlertLastName_data);\n\t\t\n\t\tWebElement LogOut = GWait.Wait_GetElementByCSS(\".logout\");\n\t\tLogOut.click();\n\t}", "public void CRe4_999() throws Exception {\n\n\t\t// ----------IEC Admin Login------------//\n\t\tGlobalMethods.Admin_Login();\n\n\t\tWebElement Manage_IEC1 = GWait.Wait_GetElementByXpath(\"html/body/div[3]/div/div[2]/ul/li[4]/a\");\n\t\tManage_IEC1.click();\n\n\t\tWebElement Manage_IECMembers1 = GWait.Wait_GetElementByXpath(\"//li[4]/ul/li[7]/a\");\n\t\tManage_IECMembers1.click();\n\n\t\tWebElement IECMembers_EditLink = GWait.Wait_GetElementByCSS(\".fa.fa-edit\");\n\t\tIECMembers_EditLink.click();\n\n\t\tfor (int i = 2; i <= 4; i++) {\n\n\t\t\tFileInputStream fi1 = new FileInputStream(\"C:\\\\Selenium_Files\\\\Create4_v2\\\\CReATE4_Data.xls\");\n\t\t\tWorkbook wb1 = Workbook.getWorkbook(fi1);\n\t\t\tSheet r1 = wb1.getSheet(\"ManageIEC\");\n\t\t\tString UploadFileTypeValid_data = r1.getCell(i, 128).getContents();\n\n\t\t\tWebElement UploadFileTypeValid = GWait.Wait_GetElementById(\"add_iec_member_appointment_letter\");\n\t\t\tUploadFileTypeValid.sendKeys(UploadFileTypeValid_data);\n\t\t\tUpdateBUtton.click();\n\t\t\tWebElement IECMembers_EditLink1 = GWait.Wait_GetElementByCSS(\".fa.fa-edit\");\n\t\t\tIECMembers_EditLink1.click();\n\n\t\t}\n\n\t}", "@Override\n public void scanActuatorsParked() {\n }", "private boolean checkGreedyEnergy() {\r\n return myTotal.get(2) < 10 || (myTotal.get(2) < 13 && myTotal.get(2) <= enTotal.get(2));\r\n }", "public boolean checkList(int[] array) {\n\t\t\t\r\n\t\t\tint i = 0;\r\n\t\t\tboolean flag = true;\r\n\t\t\t\r\n\t\t\twhile(i < array.length) { //Looping by room types\r\n\t\t\t\tif (array[i] <= RoomList.getQuantity(i+1)) flag = true; //If there are enough rooms, flag = true\r\n\t\t\t\telse { //else flag = false and return\r\n\t\t\t\t\tflag = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\treturn flag;\r\n\t\t}", "@Override\n\tprotected boolean checkFeasible(int r, int c, int v, int k, int dept) {\n\t\tboolean ok = super.checkFeasible(r, c, v, k, dept);\n\t\tif(!ok) return false;\n\t\t\n\t\tJuryInfo J = jury.get(r);\n\t\t\n\t\tfor(int rid = 1; rid <= rooms.size(); rid++) if(rid != v){\n\t\t\tint[] p = J.getJuryMemberIDs();\n\t\t\tfor(int j = 0; j < p.length; j++){\n\t\t\t\t\n\t\t\t\tif(p[j] > 0){\n\t\t\t\t\t//System.out.println(\"PartitionJuriesToRoomsTeacherNotMove::checkFeasible(\" + r + \",\" + c + \n\t\t\t\t\t\t\t\t//\",\" + v + \", occTeacherRoom[\" + rid + \"].get(\" + p[j] + \") = \" + occTeacherRoom[rid].get(p[j]));\n\t\t\t\t\tif(occTeacherRoom[rid].get(p[j]) > 0) return false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// check if the number of hust, nonHust assigned to room v exceed the upperbound\n\t\tint var_idx = 7*r+c;\n\t\tint nbHust = 0;\n\t\tint nbNonHust = 0;\n\t\tfor(int p = 0; p < 5; p++){\n\t\t\tif(x[r*7+p] > 0){\n\t\t\t\tint tid = x[r*7+p];\n\t\t\t\tif(p == 0 || p == 4){\n\t\t\t\t\tif(!nonHustOfRoom[v].contains(tid)) nbNonHust++;\n\t\t\t\t}else{\n\t\t\t\t\tif(!hustOfRoom[v].contains(tid)) nbHust++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(hustOfRoom[v].size() + nbHust > maxHustOfRoom.get(v)) ok = false;\n\t\t//if(!ok && k >= dept) System.out.println(\"TRY(\" + k + \"), var_idx = \" + var_idx + \", r = \" + r + \", c = \" + c + \", v = \" + v + \n\t\t\t\t//\", FALSE hustOfRoom[\" + v + \"].sz = \" + hustOfRoom[v].size() + \", nbHust = \" + nbHust);\n\t\tif(nonHustOfRoom[v].size() + nbNonHust > maxNonHustOfRoom.get(v)) ok = false;\n\t\t//if(!ok && k >= dept) System.out.println(\"TRY(\" + k + \"), var_idx = \" + var_idx + \", r = \" + r + \", c = \" + c + \", v = \" + v + \n\t\t\t\t//\", FALSE nonHustOfRoom[\" + v + \"].sz = \" + nonHustOfRoom[v].size() + \", nbNonHust = \" + nbNonHust);\n\t\t\n\t\treturn ok;\n\t}", "public boolean completed(){\n return !activeAttackers() && !attackersLeft();\n }", "public void checkHits() {\n\t\t// your code here\n\t\tfor (int i = 0; i < enemyX.length; i++) {\n\t\t\tif (distance((int)xI, (int)yI, enemyX[i], enemyY[i]) <= DIAM_ENEMY/2 + DIAM_LAUNCHER/2) {\n\t\t\t}\n\t\t}\n\t}", "private void checkEnabled() {\n }", "public void CRe4_1005() throws Exception {\n\n\t\t// ----------IEC Admin Login------------//\n\t\tGlobalMethods.Admin_Login();\n\n\t\tWebElement Manage_IEC1 = GWait.Wait_GetElementByXpath(\"html/body/div[3]/div/div[2]/ul/li[4]/a\");\n\t\tManage_IEC1.click();\n\n\t\tWebElement Manage_IECMembers1 = GWait.Wait_GetElementByXpath(\"//li[4]/ul/li[7]/a\");\n\t\tManage_IECMembers1.click();\n\n\t\tWebElement IECMembers_EditLink = GWait.Wait_GetElementByCSS(\".fa.fa-edit\");\n\t\tIECMembers_EditLink.click();\n\n\t\tfor (int i = 2; i <= 4; i++) {\n\n\t\t\tFileInputStream fi1 = new FileInputStream(\"C:\\\\Selenium_Files\\\\Create4_v2\\\\CReATE4_Data.xls\");\n\t\t\tWorkbook wb1 = Workbook.getWorkbook(fi1);\n\t\t\tSheet r1 = wb1.getSheet(\"ManageIEC\");\n\t\t\tString UploadFileTypeValid_data = r1.getCell(i, 128).getContents();\n\n\t\t\tWebElement UploadFileTypeValid = GWait.Wait_GetElementById(\"add_iec_member_confident\");\n\t\t\tUploadFileTypeValid.sendKeys(UploadFileTypeValid_data);\n\t\t\tUpdateBUtton.click();\n\t\t\tWebElement IECMembers_EditLink1 = GWait.Wait_GetElementByCSS(\".fa.fa-edit\");\n\t\t\tIECMembers_EditLink1.click();\n\n\t\t}\n\n\t}", "public boolean considerExit() {\n\t\tboolean testing=false; \n//\t\ttesting=world.gui.retailerDetail_table2c.retailer==this;\n\t\tdouble aSumPayRate=0; // the sum of the earnings per effective labor unit, calculated for all the retailer's friends\n\t\tint aFriends=0; // the total number of the agent's friends who are non-retailers\n\t\tfor (Agent friend: owner.friends) {\n\t\t\tif (friend.enterprises.size()==0) {\n\t\t\t\taFriends++;\n\t\t\t\tDouble earnings=0.0;\n\t\t\t\tDouble marketLabor=0.0;\n\t\t\t\tif (friend.earned!=null) {\n\t\t\t\t\tfor (int i=0; i<friend.earned.length; i++) {\n\t\t\t\t\t\tif (friend.earned[i]>0) {\n\t\t\t\t\t\t\tearnings=earnings+friend.earned[i]; // Add up everything the friend earned\n\t\t\t\t\t\t\tmarketLabor=marketLabor+Math.max(0, friend.labor.labor[i]-friend.cons.used[i]); // Add up market labor, i.e., labor on goods he sold, minus the amounts he consumed\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (marketLabor>0) aSumPayRate=aSumPayRate+earnings/marketLabor;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tDouble aAvgPayRate=aSumPayRate/aFriends;\n\t\tif (testing==true) System.out.println(\"TESTING Retailer.considerExit(). Retailer id=\"+id+\". aAvgPayRate=\"+aAvgPayRate);\n\t\tif (dividendHistory.size()>3) {\n\t\t\tdouble ownEarnings3Turns=0;\n\t\t\tfor (int i=0; i<3; i++) {\n\t\t\t\tint turn=dividendHistory.size()-1-i;\n\t\t\t\tdouble dividend=dividendHistory.get(turn);\n\t\t\t\tdouble capValue=cashHistory.get(turn)+basePrice*inventoryHistory.get(turn);\n\t\t\t\tdouble prevCapValue=cashHistory.get(turn-1)+basePrice*inventoryHistory.get(turn-1);\n\t\t\t\tdouble earnings=dividend+capValue-prevCapValue;\n\t\t\t\townEarnings3Turns=ownEarnings3Turns+earnings;\n\t\t\t}\n\t\t\tDouble ownPayRate=ownEarnings3Turns/3;\n\t\t\tDouble logOwnPayRate=Double.NEGATIVE_INFINITY;\n\t\t\tif (ownPayRate>0) logOwnPayRate=Math.log(ownPayRate);\n\t\t\tDouble logAvgPayRate=Math.log(aAvgPayRate);\n\t\t\tDouble increment=0.5+0.5*logAvgPayRate-0.5*logOwnPayRate;\n\t\t\tif (increment.isNaN()) increment=0.0;\n\t\t\tif (increment>world.MAX_RETAILER_EXIT_PROB_INCREMENT_DUE_TO_LOW_PAY) \n\t\t\t\tincrement=world.MAX_RETAILER_EXIT_PROB_INCREMENT_DUE_TO_LOW_PAY;\n\t\t\tif (increment<world.MIN_RETAILER_EXIT_PROB_INCREMENT_DUE_TO_HIGH_PAY) \n\t\t\t\tincrement=world.MIN_RETAILER_EXIT_PROB_INCREMENT_DUE_TO_HIGH_PAY;\n\t\t\toddsOfExit=oddsOfExit+increment;\n\t\t\tif (testing==true) System.out.println(\"TESTING Retailer.considerExit(). Retailer id=\"+id+\". ownPayRate=\"+ownPayRate);\n\t\t}\n\t\t// If the retailer has been out of inventory for three turns or more, \n\t\t// the likelihood of the retailer quitting rises by RETAILER_EXIT_PROB_INCREMENT_DUE_TO_NO_SALES\n\t\tif (incomeHistory.size()>3) {\n\t\t\tboolean threeTurnsNegligibleSales=true;\n\t\t\tfor (int i=0; i<3; i++) {\n\t\t\t\tDouble income=incomeHistory.get(incomeHistory.size()-1-i);\n\t\t\t\tif (income>0.0001) threeTurnsNegligibleSales=false;\n\t\t\t}\n\t\t\tif (threeTurnsNegligibleSales) oddsOfExit=oddsOfExit+world.RETAILER_EXIT_PROB_INCREMENT_DUE_TO_NO_SALES;\t\t\t\n\t\t}\n\t\tif (testing) System.out.println(\"oddsOfExit=\"+oddsOfExit);\n\t\tif (oddsOfExit<world.MIN_RETAILER_EXIT_PROB) oddsOfExit=world.MIN_RETAILER_EXIT_PROB;\n\t\tif (oddsOfExit>world.MAX_RETAILER_EXIT_PROB) oddsOfExit=world.MAX_RETAILER_EXIT_PROB; // Maximum 50% odds of exit based on lower earnings\n\t\tboolean exit=Math.random()<oddsOfExit;\n\t\tif (exit) exit();\n\t\treturn exit;\n\t}", "private static ArrayList<Map> checkAvailability(ArrayList<Map> res) {\n\t\tArrayList<Map> availableSlot = new ArrayList<Map>();\r\n\t\tfor (Map center : res) {\r\n\t\t\tint age = (int) center.get(\"min_age_limit\");\r\n\t\t\tif(age == AGE) {\r\n\t\t\t\tint dose1 = (int) center.get(\"available_capacity_dose1\");\r\n\t\t\t\tif(dose1>0) {\r\n\t\t\t\t\tSystem.out.println(\"available for 45+ :\" + center);\r\n\t\t\t\t\tavailableSlot.add(center);\r\n\t\t\t\t\t//END = true;\r\n\t\t\t\t}\r\n\t\t\t}else if( age == 18) {\r\n\t\t\t\tint dose1 = (int) center.get(\"available_capacity_dose1\");\r\n\t\t\t\tif(dose1>0) {\r\n\t\t\t\t\tSystem.out.println(\"available for 18+ :\" +center);\r\n\t\t\t\t\tavailableSlot.add(center);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn availableSlot;\r\n\t}", "public static void main(String[] args) throws InterruptedException \r\n\t{\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Program Files\\\\chromedriver.exe\");\r\n WebDriver driver = new ChromeDriver();\r\n driver.manage().window().maximize();\r\n driver.get(\"https://bolla.su:[email protected]/MercuryDev/Home.aspx\");\r\n driver.findElement(By.xpath(\"//input[@id='MercuryHeader1_imgLaneActivation']\")).click();\r\n Thread.sleep(4000);\r\n \r\n // Clicking on Lane Request Number\r\n Thread.sleep(2000);\r\n driver.findElement(By.id(\"ctl00_MainContent_gvRecords_tccell0_17\")).click();\r\n \r\n // Click on Edit\r\n Thread.sleep(8000);\r\n driver.findElement(By.id(\"ctl00_MainContent_btnEdit_CD\")).click();\r\n \r\n // Click on Lane Kickoff Approval\r\n Thread.sleep(8000);\r\n driver.findElement(By.xpath(\"//*[@id='ctl00_UserMenu_trLaneKickoffApproval']/td/a\")).click();\r\n \r\n //Approve Regional I-TRADE Operations Origin\r\n Thread.sleep(5000);\r\n driver.findElement(By.id(\"ctl00_MainContent_gvSuggITMulFunTeam_cell1_2_rbtSelection_RB0_I\")).click();\r\n \r\n //Regional I-TRADE Operations Destination\r\n Thread.sleep(3000);\r\n driver.findElement(By.id(\"ctl00_MainContent_gvSuggITMulFunTeam_cell2_2_rbtSelection_RB0_I\")).click();\r\n \r\n //Roles & Responsibilities section\r\n Thread.sleep(2000);\r\n driver.findElement(By.id(\"ctl00_MainContent_gvRoles_cell0_2_chkCopy_S_D\")).click();\r\n Thread.sleep(2000);\r\n driver.findElement(By.id(\"ctl00_MainContent_gvRoles_cell1_3_chkPaste_S_D\")).click();\r\n Thread.sleep(2000);\r\n driver.findElement(By.id(\"ctl00_MainContent_gvRoles_cell2_3_chkPaste_S_D\")).click();\r\n Thread.sleep(2000);\r\n driver.findElement(By.id(\"ctl00_MainContent_gvRoles_cell3_3_chkPaste_S_D\")).click();\r\n Thread.sleep(2000);\r\n driver.findElement(By.id(\"ctl00_MainContent_gvRoles_cell4_3_chkPaste_S_D\")).click();\r\n Thread.sleep(2000);\r\n driver.findElement(By.id(\"ctl00_MainContent_gvRoles_cell5_3_chkPaste_S_D\")).click();\r\n Thread.sleep(2000);\r\n driver.findElement(By.id(\"ctl00_MainContent_gvRoles_cell6_3_chkPaste_S_D\")).click();\r\n Thread.sleep(2000);\r\n driver.findElement(By.id(\"ctl00_MainContent_gvRoles_cell7_3_chkPaste_S_D\")).click();\r\n Thread.sleep(2000);\r\n driver.findElement(By.id(\"ctl00_MainContent_gvRoles_cell8_3_chkPaste_S_D\")).click();\r\n Thread.sleep(2000);\r\n driver.findElement(By.id(\"ctl00_MainContent_gvRoles_cell9_3_chkPaste_S_D\")).click();\r\n Thread.sleep(2000);\r\n driver.findElement(By.id(\"ctl00_MainContent_gvRoles_cell10_3_chkPaste_S_D\")).click();\r\n Thread.sleep(2000);\r\n driver.findElement(By.id(\"ctl00_MainContent_gvRoles_cell11_3_chkPaste_S_D\")).click();\r\n \r\n // Copy & Paste Users\r\n Thread.sleep(2000);\r\n driver.findElement(By.xpath(\"//*[@id='ctl00_MainContent_btnCopyUser_CD']/span\")).click();\r\n Thread.sleep(4000);\r\n String z = driver.switchTo().alert().getText();\r\n System.out.println(z);\r\n driver.switchTo().alert().accept();\r\n \r\n // Click on submit\r\n Thread.sleep(6000);\r\n driver.findElement(By.xpath(\"//*[@id='ctl00_MainContent_btnSubmit_CD']/span\")).click();\r\n Thread.sleep(3000);\r\n String a = driver.switchTo().alert().getText();\r\n System.out.println(a);\r\n driver.switchTo().alert().accept();\r\n \r\n // Click on Sending Site\r\n Thread.sleep(6000);\r\n driver.findElement(By.xpath(\"//*[@id='ctl00_UserMenu_trSendingSite']/td/a\")).click();\r\n \r\n //Origin Service Type\r\n Thread.sleep(10000);\r\n driver.findElement(By.id(\"ctl00_MainContent_cmbFROriginService_I\")).click(); \r\n driver.findElement(By.id(\"ctl00_MainContent_cmbFROriginService_I\")).sendKeys(Keys.ARROW_DOWN); \r\n driver.findElement(By.id(\"ctl00_MainContent_cmbFROriginService_I\")).sendKeys(Keys.ENTER);\r\n \r\n //Origin Service Type\r\n Thread.sleep(2000);\r\n driver.findElement(By.id(\"ctl00_MainContent_cmbOriginCity_I\")).click(); \r\n driver.findElement(By.id(\"ctl00_MainContent_cmbOriginCity_I\")).sendKeys(Keys.ARROW_DOWN); \r\n driver.findElement(By.id(\"ctl00_MainContent_cmbOriginCity_I\")).sendKeys(Keys.ENTER);\r\n \r\n // Close the browser\r\n driver.close(); \r\n\r\n\t}", "public int checkRooms(LocalDate bookdate, int stay, int type, int req, ArrayList<Integer> array) {\n\t\t\t\r\n\t\t\tint i = 0;\r\n\t\t\tint k = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tint count = 0;\r\n\t\t\tBooking bookChecker = null; //Saves the bookings of a hotel to be checked\r\n\t\t\tRooms roomChecker = null; //Saves the rooms of the hotel\r\n\t\t\tLocalDate endBook = bookdate.plusDays(stay); //booking start date + number of nights\r\n\t\t\tboolean booked = false;\r\n\r\n\t\t\tif(req == 0) return 0; //if theres no need for single/double/triple room\r\n\t\t\t\r\n\t\t\twhile(i < RoomDetails.size()) { //checking room-wise order\r\n\t\t\t\troomChecker = RoomDetails.get(i);\r\n\t\t\t\tif(type == roomChecker.getCapacity()) { //only check if its the same room type as needed\r\n\t\t\t\t\tk = 0;\r\n\t\t\t\t\twhile(k < Bookings.size()) { //check for bookings of a room\r\n\t\t\t\t\t\tbookChecker = Bookings.get(k);\r\n\t\t\t\t\t\tj=0;\r\n\t\t\t\t\t\tbooked = false;\r\n\t\t\t\t\t\twhile(j < bookChecker.getNumOfRoom()) { //To check if a booked room have clashing schedule with new booking\r\n\t\t\t\t\t\t\tif(roomChecker.getRoomNum() == bookChecker.getRoomNumber(j)) { //if there is a booking for the room\r\n\t\t\t\t\t\t\t\tif(bookdate.isEqual(bookChecker.endDate()) || endBook.isEqual(bookChecker.getStartDate())) {\r\n\t\t\t\t\t\t\t\t\t//New booking starts at the same day where another booking ends\r\n\t\t\t\t\t\t\t\t\tbooked = false; //No clash\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(bookdate.isAfter(bookChecker.endDate()) || endBook.isBefore(bookChecker.getStartDate())) {\r\n\t\t\t\t\t\t\t\t\t//New booking starts days after other booking ends, or new booking ends before other booking starts\r\n\t\t\t\t\t\t\t\t\tbooked = false; //no clash\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse { //Any other way means that it clashes and hence room cant be booked\r\n\t\t\t\t\t\t\t\t\tbooked = true;\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\tif(booked == true) break; //if booked and clash , break\r\n\t\t\t\t\t\t\tj++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(booked == true) break; //if booked and clash , break\r\n\t\t\t\t\t\tk++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\tif(booked == false) {\r\n\t\t\t\t\t\tarray.add(roomChecker.getRoomNum()); //if no clashing dates, book the room for new cust\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (count == req) break; //if there is enough room already, finish\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\treturn count; //returns the number of available rooms acquired\r\n\t\t}", "@Test\n public void testIsWithinEJQuotaLocked_TempAllowlisting() {\n setDischarging();\n JobStatus js = createExpeditedJobStatus(\"testIsWithinEJQuotaLocked_TempAllowlisting\", 1);\n setStandbyBucket(FREQUENT_INDEX, js);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_FREQUENT_MS, 10 * MINUTE_IN_MILLIS);\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (30 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (5 * MINUTE_IN_MILLIS), 4 * MINUTE_IN_MILLIS, 5), true);\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n final long gracePeriodMs = 15 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TEMP_ALLOWLIST_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n // Apps on the temp allowlist should be able to schedule & start EJs, even if they're out\n // of quota (as long as they are in the temp allowlist grace period).\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n // Still in grace period\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(6 * SECOND_IN_MILLIS);\n // Out of grace period.\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n }", "@Test\n\t public void testleadEdit() throws InterruptedException {\n\t\t List <WebElement> options = driver.findElement(By.id(\"tree_menu\")).findElements(By.className(\" close\"));\n\t\t System.out.println(\"The left pane has '\" + options.size() + \"' Options\");\t\t \n\t\t System.out.println(\"The option selected is:\" + options.get(7).getText());\n\t\t options.get(7).findElement(By.tagName(\"span\")).click();\n\t\t \n\t\t //Clicking on Edit Leads link\n\t\t System.out.println(\"Click on the '\" + driver.findElement(By.id(\"editLeads\")).getText() + \"' Link\" );\n\t\t driver.findElement(By.id(\"editLeads\")).click();\n\t\t \n\t\t //Verifying whether the required page is loaded or not\n\t\t System.out.println(\"Page loaded is:\" + driver.findElement(By.id(\"container\")).findElement(By.tagName(\"h1\")).getText());\n\t\t \n\t\t //Selecting no.of entries for the table\n\t\t driver.findElement(By.id(\"example_length\")).click();\n\t\t List <WebElement> entries = driver.findElement(By.name(\"example_length\")).findElements(By.tagName(\"option\"));\n\t\t Thread.sleep(4000);\n\t\t System.out.println(entries.size());\n\t\t Random r = new Random();\n\t\t int opt = r.nextInt(entries.size());\n\t\t entries.get(opt).click();\n\t\t System.out.println(\"No.of Entries selected for the page:\" + entries.get(opt).getText());\n\t\t \n\t\t //Verifying no.of leads in the page\n\t\t List <WebElement> leads = driver.findElement(By.id(\"example\")).findElement(By.tagName(\"tbody\")).findElements(By.tagName(\"tr\"));\n\t\t System.out.println(\"No. of leads in the Lead Edit Table:\" + leads.size());\n\t\t \n\t\t //Checking for the Track it and Edit buttons for each lead\n\t\t int edit=0, trackit=0;\n\t\t for(int i=0; i<leads.size(); i++) {\n\t\t\tif((leads.get(i).findElement(By.className(\"analyse\")).isEnabled()) && (leads.get(i).findElement(By.className(\"edit\")).isEnabled())) {\n\t\t\t edit++;\n\t\t\t trackit++;\n\t\t\t}\t \n\t\t }\n\t\t if((edit==leads.size()) && (trackit==leads.size()))\n\t\t\t System.out.println(\"Trackit and Edit buttons are enabled for all leads.\");\n\t\t \n\t\t //Validating the Track it button\n\t\t Random r1 = new Random();\n\t\t int opt1 = r1.nextInt(leads.size());\n\t\t leads.get(3).findElement(By.className(\"analyse\")).click();\n\t\t \n\t\t \n\t\t \n\t\t //Printing the details of the table\n\t\t String details = driver.findElement(By.tagName(\"table\")).findElement(By.tagName(\"tbody\")).getText();\n\t\t System.out.println(details);\n\t\t \n\t\t driver.findElement(By.id(\"editLeads\")).click();\n\t\t driver.findElement(By.name(\"example_length\")).findElements(By.tagName(\"option\")).get(3).click();\n\t\t sleep(5);\n\t\t driver.findElement(By.id(\"example\")).findElement(By.tagName(\"tbody\")).findElements(By.tagName(\"tr\")).get(opt1).findElement(By.className(\"edit\")).click();\n\t\t sleep(5);\n\t\t System.out.println(driver.findElement(By.cssSelector(\"span.ui-dialog-title\")).getText());\n\t\t \n\t\t \n\t \n\t \n\t \n\t }", "private void checkPoints() {\n if (mPointsManager.getScore() < 20 && !SharedDataManager.isHuntReady(this)) {\n /* Before the 30 points 'reward', player must have no locked target in history */\n if (SharedDataManager.isLockedTargetInHistory(MainActivity.this)) {\n return;\n }\n mPointsManager.setScore(30);\n updateInfo();\n try {\n if (!requestingPoints) {\n requestingPoints = true;\n /* Update the value in the server database if possible */\n mPointsManager.updateInDatabase(MainActivity.this, new ResponseTask.OnResponseTaskCompleted() {\n @Override\n public void onResponseTaskCompleted(Request request, Response response, OHException ohex, Object data) {\n /* It's ok if the request was not successful, the update will be done later */\n requestingPoints = false;\n }\n });\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public void doOffensiveMicro(RobotInfo[] engageableEnemies, MapLocation rallyPoint) throws GameActionException {\n\n if (engageableEnemies.length > 0) {\n // returns {is winning, is lowest health and not alone}\n int[] metrics = getBattleMetrics(engageableEnemies);\n if (metrics[0] > 0) {\n //rc.setIndicatorString(1, \"winning...\" + Clock.getRoundNum());\n\n if (metrics[1] != -1 || metrics[2] != -1) {\n Messaging.setBattleFront(new MapLocation(metrics[1], metrics[2]));\n }\n MapLocation nearestBattle = Messaging.getClosestBattleFront(rc.getLocation());\n RobotInfo[] attackableEnemies = Cache.getAttackableEnemies();\n if (attackableEnemies.length > 0) {\n if (rc.isWeaponReady()) {\n attackLeastHealthPrioritized(attackableEnemies);\n }\n } else {\n if (metrics[1] != -1 || metrics[2] != -1) {\n if (nearestBattle != null && nearestBattle.distanceSquaredTo(rc.getLocation()) <= 50) {\n //rc.setIndicatorString(1, \"Going to battlefront: \" + nearestBattle + \", \" + Clock.getRoundNum());\n Nav.goTo(nearestBattle, Engage.UNITS);\n } else {\n Nav.goTo(rallyPoint, Engage.NONE);\n }\n }\n }\n } else {\n // \"are we definitely going to die?\"\n if (metrics[1] > 0) {\n SupplyDistribution.setDyingMode();\n SupplyDistribution.manageSupply();\n if (rc.isWeaponReady()) {\n attackLeastHealthPrioritized(Cache.getAttackableEnemies());\n }\n \n // Retreat\n } else {\n if (rc.isCoreReady()) {\n int[] attackingEnemyDirs = calculateNumAttackingEnemyDirs();\n Nav.retreat(attackingEnemyDirs);\n }\n }\n }\n } else {\n if (rc.isCoreReady()) {\n MapLocation nearestBattle = Messaging.getClosestBattleFront(curLoc);\n if (nearestBattle != null ) {\n //rc.setIndicatorString(1, \"Going to battlefront: \" + nearestBattle + \", \" + Clock.getRoundNum());\n Nav.goTo(nearestBattle, Engage.UNITS);\n } else if (rallyPoint != null) {\n Nav.goTo(rallyPoint, Engage.NONE);\n }\n }\n }\n }", "private void checkStatusAndTimeAhead(final RoomAllocation allocation, final Integer aheadDays,\n final Time aheadTime, final String errorMessage) throws ReservationException {\n final DataSource dataSource = this.createCopy();\n // get local time using the building location\n final Date localCurrentDate =\n TimePeriod.clearTime(LocalDateTimeUtil.currentLocalDate(null, null, null,\n allocation.getBlId()));\n final Time localCurrentTime =\n LocalDateTimeUtil.currentLocalTime(null, null, null, allocation.getBlId());\n \n // check if room can be modified status\n dataSource.addRestriction(Restrictions.eq(this.tableName, Constants.RMRES_ID_FIELD_NAME,\n allocation.getId()));\n dataSource.addRestriction(Restrictions\n .sql(Constants.STATUS_AWAITING_APP_OR_STATUS_CONFIRMED));\n // make sure the date is before start date\n dataSource.addRestriction(Restrictions.gt(this.tableName, Constants.DATE_START_FIELD_NAME,\n localCurrentDate));\n \n final DataRecord record = dataSource.getRecord();\n \n if (record == null) {\n throw new ReservationException(errorMessage, RoomAllocationDataSource.class);\n }\n \n final long daysDifference = DataSourceUtils.getDaysDifference(allocation, localCurrentDate);\n \n // make sure the days before announcing / cancelling is respected\n if (aheadDays != null && daysDifference < aheadDays) {\n throw new ReservationException(errorMessage, RoomAllocationDataSource.class);\n }\n \n // make sure the announce / cancel time is respected\n if (aheadDays != null && aheadTime != null && daysDifference == aheadDays.longValue()\n && localCurrentTime.after(aheadTime)) {\n throw new ReservationException(errorMessage, RoomAllocationDataSource.class);\n }\n }", "private void doWiperAvailabiltiyCheck()\n {\n // Hardcode for now to make sure WPS is not triggered\n bWiperAvailable = true;\n\n mWifi = (WifiManager)getSystemService(mContext.WIFI_SERVICE);\n\n if ((mWifi == null) || ( (locationManager == null)|| ((locationProvider = locationManager.getProvider(LocationManager.NETWORK_PROVIDER )) == null)))\n {\n Log.e(TAG,\" Disable wiper : No object for WPS / Wifi Scans \");\n bWiperAvailable = false;\n }\n\n\n // call native function to trigger RPC from A11-> A9\n // informing about WPS capability\n //\n native_notify_wiper_available(bWiperAvailable);\n\n if (Config.LOGV)\n {\n Log.v(TAG, \"Wiper: Availability Check \"+ bWiperAvailable);\n }\n }", "private void checking() {\n try {\n ResultSet rs;\n Statement st;\n Connection con = db.getDBCon();\n st = con.createStatement();\n String sql = \"select * from trainset_reservation where train_no='\" + Integer.parseInt(no.getText()) + \"'\";\n rs = st.executeQuery(sql);\n boolean b = false;\n String dat0 = null;\n String dat1 = null;\n\n while (rs.next()) {\n dat0 = rs.getString(\"start_date\");\n dat1 = rs.getString(\"end_date\");\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"E MMM dd HH:mm:ss z yyyy\");\n Date f_dbdate = sdf.parse(dat0);\n Date s_dbdate = sdf.parse(dat1);\n Date f_date = s_date.getDate();\n Date s_date = e_date.getDate();\n if (f_date.getTime() < f_dbdate.getTime() && s_date.getTime() < f_dbdate.getTime()) {\n ava.setText(\"AVAILABLE\");\n }\n if (f_date.getTime() < f_dbdate.getTime() && s_date.getTime() > s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n if (f_date.getTime() > f_dbdate.getTime() && s_date.getTime() < s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n if (f_date.getTime() > f_dbdate.getTime() && f_date.getTime() < s_dbdate.getTime() && s_date.getTime() > s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n if (f_date.getTime() < f_dbdate.getTime() && s_date.getTime() > f_dbdate.getTime() && s_date.getTime() < s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n\n if (f_date.getTime() > s_dbdate.getTime() && s_date.getTime() > s_dbdate.getTime()) {\n ava.setText(\"AVAILABLE\");\n }\n\n long diffIn = Math.abs(s_date.getTime() - f_date.getTime());\n long diff = TimeUnit.DAYS.convert(diffIn, TimeUnit.MILLISECONDS);\n // t2.setText(String.valueOf(diff));\n b = true;\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void CRe4_1002() throws Exception {\n\n\t\t// ----------IEC Admin Login------------//\n\t\tGlobalMethods.Admin_Login();\n\n\t\tWebElement Manage_IEC1 = GWait.Wait_GetElementByXpath(\"html/body/div[3]/div/div[2]/ul/li[4]/a\");\n\t\tManage_IEC1.click();\n\n\t\tWebElement Manage_IECMembers1 = GWait.Wait_GetElementByXpath(\"//li[4]/ul/li[7]/a\");\n\t\tManage_IECMembers1.click();\n\n\t\tWebElement IECMembers_EditLink = GWait.Wait_GetElementByCSS(\".fa.fa-edit\");\n\t\tIECMembers_EditLink.click();\n\n\t\tfor (int i = 2; i <= 4; i++) {\n\n\t\t\tFileInputStream fi1 = new FileInputStream(\"C:\\\\Selenium_Files\\\\Create4_v2\\\\CReATE4_Data.xls\");\n\t\t\tWorkbook wb1 = Workbook.getWorkbook(fi1);\n\t\t\tSheet r1 = wb1.getSheet(\"ManageIEC\");\n\t\t\tString UploadFileTypeValid_data = r1.getCell(i, 128).getContents();\n\n\t\t\tWebElement UploadFileTypeValid = GWait.Wait_GetElementById(\"add_iec_member_conflict_of_interest\");\n\t\t\tUploadFileTypeValid.sendKeys(UploadFileTypeValid_data);\n\t\t\tUpdateBUtton.click();\n\t\t\tWebElement IECMembers_EditLink1 = GWait.Wait_GetElementByCSS(\".fa.fa-edit\");\n\t\t\tIECMembers_EditLink1.click();\n\n\t\t}\n\n\t}", "public void CRe4_996() throws Exception {\n\n\t\t// ----------IEC Admin Login------------//\n\t\tGlobalMethods.Admin_Login();\n\n\t\tWebElement Manage_IEC1 = GWait.Wait_GetElementByXpath(\"html/body/div[3]/div/div[2]/ul/li[4]/a\");\n\t\tManage_IEC1.click();\n\n\t\tWebElement Manage_IECMembers1 = GWait.Wait_GetElementByXpath(\"//li[4]/ul/li[7]/a\");\n\t\tManage_IECMembers1.click();\n\n\t\tWebElement IECMembers_EditLink = GWait.Wait_GetElementByCSS(\".fa.fa-edit\");\n\t\tIECMembers_EditLink.click();\n\n\t\tfor (int i = 2; i <= 4; i++) {\n\n\t\t\tFileInputStream fi1 = new FileInputStream(\"C:\\\\Selenium_Files\\\\Create4_v2\\\\CReATE4_Data.xls\");\n\t\t\tWorkbook wb1 = Workbook.getWorkbook(fi1);\n\t\t\tSheet r1 = wb1.getSheet(\"ManageIEC\");\n\t\t\tString UploadFileTypeValid_data = r1.getCell(i, 128).getContents();\n\n\t\t\tWebElement UploadFileTypeValid = GWait.Wait_GetElementById(\"add_iec_member_acceptance_letter\");\n\t\t\tUploadFileTypeValid.sendKeys(UploadFileTypeValid_data);\n\t\t\tUpdateBUtton.click();\n\t\t\tWebElement IECMembers_EditLink1 = GWait.Wait_GetElementByCSS(\".fa.fa-edit\");\n\t\t\tIECMembers_EditLink1.click();\n\n\t\t}\n\n\t}", "private int checkCorners(int[] arr, int[] availableMoves) {\n for (int i = 0; i <= 6; i += 6) {\n int sum = arr[i] + arr[i + 1] + arr[i + 2];\n System.out.println(sum);\n if (sum == -1 && contains(availableMoves,i)) { \n return i;\n } \n }\n\n // Check verticals\n for (int i = 0; i < 3; i+=2) {\n int sum = arr[i] + arr[i + 3] + arr[i + 6];\n System.out.println(sum);\n if (sum == -1 && contains(availableMoves,i)) {\n return i;\n } \n }\n \n return -1;\n }", "private void checkResults() {\n\t\tif (isOver()) {\n\t\t\tfor (GameListener gameListener : gameListeners) {\n\t\t\t\tgameListener.gameOverCallback();\n\t\t\t}\n\t\t}\n\t}", "public int isSafe(){\n int nbEnnemies = 0;\n List<Player> players = state.getPlayers();\n Player currentPlayer = state.getCurrentPlayer();\n for(Player p : players){\n if(!p.equals(currentPlayer)) {\n nbEnnemies += currentPlayerReachable(state.getCurrentPlayer(), p);\n //nbEnnemies += manhattan(currentPlayer, p); //naive version\n }\n }\n return nbEnnemies;\n }", "public boolean checkSystem() {\n print(\"Testing ELEVATOR.--------------------------------------------------\");\n final double kCurrentThres = 0.5;\n if(getPosition() < 0){\n zeroPosition();\n }\n spx.set(ControlMode.PercentOutput, -0.1);\n srx.set(ControlMode.PercentOutput, -0.1);\n Timer.delay(0.2);\n srx.set(ControlMode.PercentOutput, 0.0);\n spx.set(ControlMode.PercentOutput, 0.0);\n Timer.delay(0.1);\n; srx.setNeutralMode(NeutralMode.Coast);\n spx.setNeutralMode(NeutralMode.Coast);\n\n double testSpeed = .75;\n double testDownSpeed = -0.05;\n double testUpTime = 1;\n\n\n if(getPosition() < 0){\n zeroPosition();\n }\n // test climber srx\n final double SRXintialEncoderPos = Math.abs(getPosition());\n srx.set(ControlMode.PercentOutput, testSpeed);\n Timer.delay(testUpTime);\n srx.set(ControlMode.PercentOutput, 0.0);\n final double currentSRX = RobotContainer.PDP.getCurrent(Constants.ELEVATOR_SRX_PDP);\n final double positionSRX = getPosition();\n //srx.set(ControlMode.PercentOutput, testDownSpeed);\n //Timer.delay(0.1);\n \n Timer.delay(2.0);\n\n if(getPosition() < 0){\n zeroPosition();\n }\n\n // Test climber spx\n final double SPXintialEncoderPos = Math.abs(getPosition());\n spx.set(ControlMode.PercentOutput, testSpeed);\n Timer.delay(testUpTime);\n final double currentSPX = RobotContainer.PDP.getCurrent(Constants.ELEVATOR_SPX_PDP);\n final double positionSPX = getPosition();\n spx.set(ControlMode.PercentOutput, testDownSpeed);\n Timer.delay(0.1);\n spx.set(ControlMode.PercentOutput, 0.0);\n\n Timer.delay(1.0);\n //Reset Motors\n spx.follow(srx); \n srx.setNeutralMode(NeutralMode.Brake);\n spx.setNeutralMode(NeutralMode.Brake);\n\n print(\"ELEVATOR SRX CURRENT: \" + currentSRX + \" SPX CURRENT: \" + currentSPX);\n print(\"ELEVATOR SRX ENCODER INIT POS: \" + SRXintialEncoderPos + \" END POS: \" + positionSRX);\n print(\"ELEVATOR SPX ENCODER INIT POS: \" + SRXintialEncoderPos + \" END POS: \" + positionSPX);\n\n boolean failure = false;\n\n print(\"!%!%#$!%@ - WRITE A TEST FOR THE ELEVATOR LIMIT SWITCHES!!!!!!!!!\");\n\n if (currentSRX < kCurrentThres) {\n failure = true;\n print(\"!!!!!!!!!!!!!!!!! ELEVATOR SRX Current Low !!!!!!!!!!!!!!!!!\");\n }\n\n if (currentSPX < kCurrentThres) {\n failure = true;\n print(\"!!!!!!!!!!!!!!!! ELEVATOR SPX Current Low !!!!!!!!!!!!!!!!!!!\");\n }\n\n if (!Util.allCloseTo(Arrays.asList(currentSRX, currentSPX), currentSRX, 5.0)) {\n failure = true;\n print(\"!!!!!!!!!!!!!!!! ELEVATOR Currents Different !!!!!!!!!!!!!!!!!\");\n }\n\n if (Math.abs(positionSRX - SRXintialEncoderPos) <= 0){\n failure = true;\n print(\"!!!!!!!!!!!! ELEVATOR Encoder didn't change position SRX !!!!!!!!!!!!!\");\n }\n\n if (Math.abs(positionSPX - SPXintialEncoderPos) <= 0){\n failure = true;\n print(\"!!!!!!!!!!!! ELEVATOR Encoder didn't change position SPX !!!!!!!!!!!!!\");\n }\n\n return failure;\n }", "@Override\n public void run() {\n\n\n\n System.out.println(\"run scheduled jobs.\");\n\n\n checkBlackOutPeriod();\n\n\n\n checkOfficeActionPeriod1();\n\n checkAcceptedFilings();\n\n checkNOAPeriod();\n checkFilingExtensions();\n\n\n\n }", "@Override\n public void finish(ExecutionContext baseEc, Checker checker) {\n resultReports.clear();\n synchronized (checkerReports) {\n resultReports.addAll(checkerReports);\n }\n int[] sleepTime_ms = new int[] {0, 100, 300};\n for (int sleepTime : sleepTime_ms) {\n try {\n Thread.sleep(sleepTime);\n } catch (InterruptedException ignore) {\n }\n int errorCount = 0;\n for (Iterator<CheckerManager.CheckerReport> it = resultReports.iterator(); it.hasNext(); ) {\n final CheckerManager.CheckerReport report = it.next();\n if (null == report.getExtraContext()) {\n continue;\n }\n final RecheckContext recheckContext = (RecheckContext) report.getExtraContext();\n // Recheck rows one by one with shard lock.\n if (recheckContext.recheck(baseEc, checker)) {\n // Correct? Remove it.\n it.remove();\n } else {\n ++errorCount;\n }\n }\n if (0 == errorCount) {\n break;\n }\n }\n\n // Copy back.\n synchronized (checkerReports) {\n checkerReports.clear();\n checkerReports.addAll(resultReports);\n }\n\n // Write all failed rechecks to reports.\n List<CheckerManager.CheckerReport> finalReports = resultReports.stream()\n .filter(report -> (report.getErrorType().equals(\"ERROR_SHARD\") || report.getExtraContext() != null))\n .collect(Collectors.toList());\n checker.getManager().insertReports(finalReports);\n\n // Insert finish mark.\n final String finishDetails = \"\" + primaryCounter + '/' + gsiCounter + \" rows checked.\";\n checker.getManager()\n .insertReports(ImmutableList.of(CheckerManager.CheckerReport.create(checker,\n \"\",\n \"\",\n \"SUMMARY\",\n CheckerManager.CheckerReportStatus.FINISH,\n \"--\",\n finishDetails,\n \"Reporter.\")));\n }" ]
[ "0.5633304", "0.53966963", "0.5389702", "0.52565897", "0.5230452", "0.52069956", "0.52059376", "0.51767373", "0.5159364", "0.5142088", "0.51390755", "0.51212424", "0.5111517", "0.50912124", "0.5067287", "0.5067098", "0.50500476", "0.50403047", "0.50368243", "0.5009576", "0.49985927", "0.49976408", "0.49886742", "0.49832186", "0.49830523", "0.49384186", "0.49250844", "0.48806778", "0.48725292", "0.48654324", "0.4864172", "0.4849931", "0.48391807", "0.48326874", "0.4825261", "0.48246077", "0.4810288", "0.47950423", "0.47933352", "0.47807583", "0.47614565", "0.47614565", "0.47575843", "0.4754879", "0.4754739", "0.47524455", "0.47411954", "0.47386602", "0.47360194", "0.4735889", "0.47288877", "0.47234964", "0.4717629", "0.47090548", "0.47077543", "0.47013175", "0.4683653", "0.4674711", "0.46619028", "0.46501973", "0.4644848", "0.46439576", "0.46407565", "0.46384293", "0.4638061", "0.46368036", "0.46365577", "0.46348703", "0.46327227", "0.4632448", "0.46314737", "0.46224374", "0.46193406", "0.46193385", "0.4599759", "0.4596977", "0.4587696", "0.45833766", "0.45826903", "0.45749366", "0.45728385", "0.45714948", "0.45683604", "0.45676056", "0.45664296", "0.45653197", "0.45641977", "0.45613527", "0.455954", "0.4558919", "0.4553485", "0.45532924", "0.4553041", "0.45503345", "0.45491832", "0.45451972", "0.45437965", "0.45395637", "0.4533077", "0.45276988" ]
0.83194095
0
methode die login gegevens controleerd
@RequestMapping("login") public boolean Authenticate(String userName, String password, HttpServletResponse res, @CookieValue(value = "userInfo", defaultValue = "") String userCookie){ if(userCookie != null && !userCookie.equals("")){ String user = userCookie.split("~~~")[0]; String pass = userCookie.split("~~~")[1]; String valid = userCookie.split("~~~")[2]; if(Boolean.valueOf(valid) && userService.authenticate(user, pass).isAuthenticated()) return true; } LoginViewModel viewModel = userService.authenticate(userName, password); if(viewModel.isAuthenticated()){ String[] userInfo = new String[4]; userInfo[0] = userName; userInfo[1] = password; userInfo[2] = String.valueOf(viewModel.getUserId()); String userString = Joiner.on("~~~").skipNulls().join(userInfo); Cookie cookie = new Cookie("userInfo", userString); res.addCookie(cookie); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void login() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void login() {\n\r\n\t}", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "Login() { \n }", "public void LogIn() {\n\t\t\r\n\t}", "protected boolean login() {\n\t\tString Id = id.getText();\n\t\tif (id.equals(\"\")){\n\t\t\tJOptionPane.showMessageDialog(null, \"请输入用户名!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tUserVO user = bl.findUser(Id);\n\t\tif (user == null){\n\t\t\tJOptionPane.showMessageDialog(null, \"该用户不存在!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (! user.getPassword().equals(String.valueOf(key.getPassword()))){\n\t\t\tSystem.out.println(user.getPassword());\n\t\t\tJOptionPane.showMessageDialog(null, \"密码错误!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tsimpleLoginPanel.this.setVisible(false);\n\t\tUserblService user2 = new Userbl(Id);\n\t\tReceiptsblService bl = new Receiptsbl(user2);\n\t\tClient.frame.add(new simpleMainPanel(user2,bl));\n\t\tClient.frame.repaint();\n\t\t\n\t\treturn true;\n\t\t\n\t}", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "private void login(String username,String password){\n\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "@Override\n public void login(String nome, String email, int senha) {\n if (getNome() == nome && this.getEmail() == email && this.getSenha() == senha){\n System.out.println(\"Login efetuado com sucesso\");\n } else {\n System.out.println(\"0 - Sair\");\n System.out.println(\"Saiu do usuario\");\n }\n\n }", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "public boolean loginUser();", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "public login() {\n initComponents();\n \n \n }", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "void login(String user, String password);", "protected Response login() {\n return login(\"\");\n }", "public Login() {\n initComponents();\n KiemTraKN();\n }", "void successLogin();", "public String accionLogin(){\n\t\t\r\n\t\tlog.info(\"Ingreso hacer login del usuario!!! \");\r\n\t\tString retorno = null;\r\n\t\ttry {\r\n\t\t\tString pass = new CriptPassword().getHashSH1(loginBaking.getUserBean().getPass());\r\n\t\t\tUser u = ejbMangerUser.login(loginBaking.getUserBean().getNick(), pass);\r\n\t\t\tloginBaking.setUserBean(u);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tList<Network> listNetwork = ejbNetwork.listNetwork();\r\n\t\t\tHttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n\t\t\tsession.setAttribute(\"listaNetwork\", listNetwork);\r\n\t\t\t\r\n\t\t\tretorno = \"site/home\";\r\n\t\t} catch (InSideException ex) {\r\n\t\t\tlog.error(ex.getKeyMSGError());\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage (FacesMessage.SEVERITY_ERROR, \r\n\t\t\t\t\t\tBundleUtil.getMessageResource(ex.getKeyMSGError()), \r\n\t\t\t\t\t\tBundleUtil.getMessageResource(ex.getKeyMSGError())));\r\n\t\t}\r\n\t\tlog.debug(\"Pagina de redireccion --->> \" + retorno);\r\n\t\tlog.info(\"fin de Login!!!\");\r\n\t\treturn retorno;\r\n\t}", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "private void logIn() {\n char[] password = jPasswordField1.getPassword();\n String userCode = jTextField1.getText();\n\n String txtpassword = \"\";\n for (char pw : password) {\n txtpassword += pw;\n }\n if (\"\".equals(txtpassword)) {\n JOptionPane.showMessageDialog(this, textBundle.getTextBundle().getString(\"enterPassword\"), \"No Password\", JOptionPane.WARNING_MESSAGE);\n } else if (txtpassword.equals(userData.get(0).toString())) {\n jPasswordField2.setEnabled(true);\n jPasswordField3.setEnabled(true);\n jPasswordField2.setEditable(true);\n jPasswordField3.setEditable(true);\n jPasswordField2.grabFocus();\n }\n }", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "private void login() {\n\t\t \tetUserName.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etUserName);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t \t\n\t\t \t // TextWatcher would let us check validation error on the fly\n\t\t \tetPass.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etPass);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t }", "public abstract boolean showLogin();", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "public login() {\r\n\t\tsuper();\r\n\t}", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "public void login() {\n\t\tloggedIn = true;\n\t}", "public Login() {\n inicializarUsuarios();\n }", "private void proseslogin() {\n String user = username.getText();\n char[] pass = password.getPassword();\n \n if (user.isEmpty()) {\n JOptionPane.showMessageDialog(this, \"Username Harus Diisi\");\n username.requestFocus();\n } else if (pass.length == 0){\n JOptionPane.showMessageDialog(this, \"Password Harus Diisi\");\n password.requestFocus();\n }else{\n String password = new String(pass);\n login.setEnabled(false);\n try {\n Connection conn = koneksi.sambungDB();\n Statement st = conn.createStatement();\n String n = \"SELECT * FROM tb_admin \"\n +\"WHERE admin_username='\"+user+\"' \"\n +\"AND admin_password=MD5('\"+password+\"')\" ;\n// System.out.println(q);\n ResultSet rs = st.executeQuery(n);\n if (rs.next()) {\n Data_perumahan h = new Data_perumahan();\n h.setExtendedState(Frame.MAXIMIZED_BOTH);\n this.setVisible(false);\n h.setVisible(true);\n }else{\n JOptionPane.showMessageDialog(this, \"Username dan Password Salah\");\n username.requestFocus();\n }\n login.setEnabled(true);\n } catch (HeadlessException | SQLException e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n }\n }", "public void logins(){\n \n \n \n String username=txtUser.getText();\n String password=txtPass.getText();\n String sql;\n\n \n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn = (Connection) DriverManager.getConnection(\"jdbc:mysql://\"+host+\"/\"+db+\"?user=\"+user+\"&password=\"+pass);\n sql =\"Select * from user WHERE username ='\" +txtUser.getText() + \"'\";\n PreparedStatement st = (PreparedStatement) conn.prepareStatement(sql);\n ResultSet rs =st.executeQuery(); \n if(rs.next()) {\n String pasas = rs.getString(\"password\");\n if(password.equals(pasas)){\n JOptionPane.showMessageDialog(this, \"Login Berhasil\");\n \n Home tampil=new Home();\n tampil.setVisible(true);\n dispose();\n \n }else{\n JOptionPane.showMessageDialog(this, \"Username tidak terdaftar\");\n txtUser.requestFocus();\n }\n }else{\n JOptionPane.showMessageDialog(this, \"Username tidak terdaftar\");\n txtUser.requestFocus();\n }\n }catch (Exception e) {\n JOptionPane.showMessageDialog(this,e.getMessage());\n }\n \n }", "private void loadLogin(){\n }", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "void loginDone();", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public boolean login(){\r\n try{\r\n DbManager0 db = DbManager0.getInstance();\r\n Query q = db.createQuery(\"SELECT * FROM user WHERE username = '\"+this.login+\"' and password = '\"+this.pwd+\"';\");\r\n QueryResult rs = db.execute(q);\r\n rs.next();\r\n if(rs.wasNull()) return false;\r\n this.id = rs.getInt(\"id\")+\"\";\r\n return true;\r\n }\r\n catch(SQLException ex){\r\n throw new RuntimeException( ex.getMessage(), ex );\r\n }\r\n }", "@Override\n public void manejarLogin() {\n loginPresenter.validarLogin(etxtEmail.getText().toString(),etxtPass.getText().toString());\n }", "public void Login()throws Exception{\r\n if(eMailField.getText().equals(\"user\") && PasswordField.getText().equals(\"pass\")){\r\n displayMainMenu();\r\n }\r\n else{\r\n System.out.println(\"Username or Password Does not match\");\r\n }\r\n }", "private void loggedInUser() {\n\t\t\n\t}", "public String login() {\r\n String ruta = \"\";\r\n UsuarioDAO usuDAO = new UsuarioDAO();\r\n if (usuDAO.Login(this) != null) {\r\n ruta = FN.ruta(\"menu\");\r\n Empresa em = new Empresa();\r\n em.setEmpresa(\"2101895685\");\r\n em.setRazonSocial(\"Tibox SRL\");\r\n em.setDireccion(\"MiCasa\");\r\n SSU.sEmpresa(em);\r\n SSU.sUsuario(this);\r\n }\r\n return ruta;\r\n }", "public String login() {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n return \"/index?faces-redirect=true\";\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/pages/login.xhtml\";\n }", "public boolean login(String X_Username, String X_Password){\n return true;\n //call the function to get_role;\n //return false;\n \n \n }", "private LogIn() {}", "public static boolean login() {\n\t\t// DB\n\t\tString[] usr = { \"NICOLAS\", \"CELESTE\" };\n\t\tString[] pass = { \"cerveza\", \"fernet\" };\n\t\tString usrAuth = \"\";\n\t\tboolean auth = false;\n\t\tint intentos = 1;\n\n\t\tdo {\n\t\t\tJTextField usuario = new JTextField();\n\t\t\tJTextField password = new JPasswordField();\n\t\t\tObject[] ingresarUsuarioPassword = { \"Usuario: \", usuario, \"Password\", password };\n\t\t\tint ingresarLogin = JOptionPane.showConfirmDialog(null, ingresarUsuarioPassword,\n\t\t\t\t\t\"Ingrese credenciales de usuario\", JOptionPane.OK_CANCEL_OPTION);\n\t\t\tif (ingresarLogin == JOptionPane.OK_OPTION) {\n\t\t\t\t// Busca el usuario en un bucle For\n\t\t\t\tfor (int i = 0; i < usr.length; i++) {\n\t\t\t\t\t// Si encuentra el usuario, verifica si el usuario y la contraseña coinciden\n\t\t\t\t\tif (usr[i].equals(usuario.getText().toUpperCase()) && pass[i].equals(password.getText())) {\n\t\t\t\t\t\tusrAuth = usr[i];\n\t\t\t\t\t\tauth = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Si no coincide, muestra los intentos restantes y vuelve a pedir credenciales\n\t\t\t\tif (!auth) {\n\t\t\t\t\tif (intentos < 3) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\\n\" + (3 - intentos) + \" Intentos restantes\",\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t\tintentos++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\\n\" + \"Se supero en numero de intentos\",\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t\tintentos++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Cierra si no se selecciona OK\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (!auth & (intentos <= 3));\n\t\t// Si autentica, muestra mensaje de bienvenida\n\t\tif (auth)\n\t\t\tJOptionPane.showMessageDialog(null, \"Bienvenido \" + usrAuth, \"Bienvenido\", JOptionPane.INFORMATION_MESSAGE);\n\t\treturn auth;\n\t}", "public void login(User user);", "public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "private void login()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Get the connection to the database\r\n\t\t\tDatabase db = new Database();\r\n\r\n\t\t\t//Get the data and format it correctly\r\n\t\t\tString username = txtUsername.getText().trim().toLowerCase();\r\n\t\t\tString password = new String(txtPassword.getPassword()).trim();\r\n\r\n\t\t\t//Verify that user information has been inserted into the username/password fields\r\n\t\t\tif (username.length() == 0)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\tthis,\r\n\t\t\t\t\t\"Please enter your username.\",\r\n\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t);\r\n\r\n\t\t\t\ttxtUsername.requestFocus();\r\n\t\t\t}//End of if\r\n\t\t\telse if (password.length() == 0)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\tthis,\r\n\t\t\t\t\t\"Please enter your password.\",\r\n\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t);\r\n\r\n\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t}//End of else if\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif (!db.usernameExists(username))\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\"The username/password combination you provided does not exist.\",\r\n\t\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\ttxtPassword.setText(\"\");\r\n\t\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t\t}//End of if\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tUser user = db.loadUser(username);\r\n\t\t\t\t\tbyte [] bPassword = PasswordEncryption.hashPassword(username, password);\r\n\r\n\t\t\t\t\tif (bPassword.length != user.getPassword().length)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\t\t\"The username/password combination you provided does not exist.\",\r\n\t\t\t\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\ttxtPassword.setText(\"\");\r\n\t\t\t\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t\t\t}//End of if\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tboolean same = true;\r\n\r\n\t\t\t\t\t\t//Check the passwords for equality\r\n\t\t\t\t\t\tfor (int x = 0; x < bPassword.length; x++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (bPassword[x] != user.getPassword()[x])\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tsame = false;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}//End of if\r\n\t\t\t\t\t\t}//End of for\r\n\r\n\t\t\t\t\t\tif (same)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (user.getAccountLevel() < 10)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\t\t\t\"You do not have sufficient rights to access this application.\",\r\n\t\t\t\t\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\t\ttxtPassword.setText(\"\");\r\n\t\t\t\t\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t\t\t\t\t}//End of if\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t//Login the user\r\n\t\t\t\t\t\t\t\tSession.login(user);\r\n\r\n\t\t\t\t\t\t\t\t//Open the dashbard\r\n\t\t\t\t\t\t\t\tSession.openWindow(new Dashboard());\r\n\r\n\t\t\t\t\t\t\t\t//Close this window\r\n\t\t\t\t\t\t\t\tthis.dispose();\r\n\t\t\t\t\t\t\t}//End of else\r\n\t\t\t\t\t\t}//End of if\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\t\t\"The username/password combination your provided does not exist.\",\r\n\t\t\t\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\ttxtPassword.setText(\"\");\r\n\t\t\t\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t\t\t\t}//End of else\r\n\t\t\t\t\t}//End of else\r\n\t\t\t\t}//End of else\r\n\t\t\t}//End of else\r\n\t\t}//End of try\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\t//Inform the user that the application was unable to connect to the database.\r\n\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\tthis,\r\n\t\t\t\t\"An error occured connecting to the database.\\n\\nIf this problem continues, please contact your system administrator.\",\r\n\t\t\t\tApplication.NAME,\r\n\t\t\t\tJOptionPane.ERROR_MESSAGE\r\n\t\t\t);\r\n\t\t}//End of catch\r\n\t}", "public boolean logincheck(String user, String pass) \r\n {\n \r\n try{\r\n Connection conn = DriverManager.getConnection(url, userName, password);\r\n String Sql = \"Select * from APP.MEMBER where email=? and password=?\";\r\n PreparedStatement pst = conn.prepareStatement(Sql);\r\n pst.setString(1,user);\r\n pst.setString(2,pass);\r\n ResultSet rs = pst.executeQuery();\r\n if (rs.next())\r\n {\r\n JOptionPane.showMessageDialog(null,\"Welcome user\");\r\n createEventsUI w = new createEventsUI();\r\n w.setVisible(true);\r\n }\r\n else\r\n {\r\n JOptionPane.showMessageDialog(null,\"Invalid username or password\", \"Access Denied\",JOptionPane.ERROR_MESSAGE);\r\n }\r\n }catch(Exception e) \r\n {\r\n JOptionPane.showMessageDialog(null, e);\r\n }\r\n return false;\r\n \r\n }", "public void logIn(View v){\n mUsername = (EditText) findViewById(R.id.username);\n mPassword = (EditText) findViewById(R.id.password);\n\n // Reset errors.\n mUsername.setError(null);\n mPassword.setError(null);\n\n // Store the data\n username = mUsername.getText().toString();\n password = mPassword.getText().toString();\n\n //Check username\n if (TextUtils.isEmpty(username)) {\n mUsername.setError(fielderror);\n checklog = false;\n }\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPassword.setError(fielderror);\n checklog = false;\n }\n if(checklog == true) {\n loginUser();\n }\n\n\n }", "public login() {\n initComponents();\n }", "public abstract boolean login(String email, String passwaord) throws CouponSystemException;", "public Integer logIn(String u_name, String u_pw){\n //find entry with u_name = this.u_name\n //probably not so safe\n //getting user with index 0 because getUserFromUsername returns List\n User user = userDao.getUserFromUsername(u_name).get(0);\n //print at console\n LOGGER.info(\"User: \" + user);\n //returns integer 1 if user.get_pw equals to this.pw or 0 if not\n if (user.getU_Pw().equals(u_pw)){\n return user.getU_Id();\n }else{\n return 0;\n }\n }", "private void loginBD() {\n\t\t\r\n\t\tif(ConexionStatic.isDbConnected()){\r\n\t\t\ttry\r\n\t\t\t{ \r\n\t\t\t\t\r\n\t //chekar si el usuario escrbio el nombre de usuario y pw\r\n\t if (view.getTxtUser().getText().length() > 0 && view.getTxtPass().getText().length() > 0 )\r\n\t {\r\n\t \tmyUsuario.setPwd(view.getTxtPass().getText());\r\n\t \tmyUsuario.setUser(view.getTxtUser().getText());\r\n\t \tresultado=myUsuarioDao.setLogin(myUsuario);\r\n\t \t\r\n\t \tif(!resultado){//si el resultado el usuario en la bd no existe o el pwd\r\n\t \t\tJOptionPane.showMessageDialog(null, \"El nombre de usuario y/o contrasenia no son validos.\");\r\n\t //JOptionPane.showMessageDialog(null, view.getTxtUser().getText()+\" \" +view.getTxtPass().getText() );\r\n\t //view.getTxtUser().setText(\"\"); //limpiar campos\r\n\t view.getTxtPass().setText(\"\"); \r\n\t \r\n\t view.getTxtUser().requestFocusInWindow();\r\n\t \t}else{\r\n\t \t\tthis.view.setVisible(false);\r\n\t \t\tthis.view.dispose();\r\n\t \t\t\r\n\t \t}\r\n\t \t\r\n\t /*/ Si el usuario si fue validado correctamente\r\n\t if( validarUsuario( txtUser.getText(), txtPass.getText() ) ) //enviar datos a validar\r\n\t {\r\n\t // Codigo para mostrar la ventana principal\r\n\t setVisible(false);\r\n\t VentanaPrincipal ventana1 = new VentanaPrincipal();\r\n\t ventana1.mostrar();\r\n\t\r\n\t\r\n\t }\r\n\t else\r\n\t {\r\n\t JOptionPane.showMessageDialog(null, \"El nombre de usuario y/o contrasenia no son validos.\");\r\n\t JOptionPane.showMessageDialog(null, view.getTxtUser().getText()+\" \" +view.getTxtPass().getText() );\r\n\t view.getTxtUser().setText(\"\"); //limpiar campos\r\n\t view.getTxtPass().setText(\"\"); \r\n\t \r\n\t view.getTxtUser().requestFocusInWindow();\r\n\t }*/\r\n\t\r\n\t }\r\n\t else\r\n\t {\r\n\t JOptionPane.showMessageDialog(null, \"Debe escribir nombre de usuario y contrasenia.\\n\" +\r\n\t \"NO puede dejar ningun campo vacio\");\r\n\t }\r\n\t\r\n\t } catch (Exception e)\r\n\t {\r\n\t e.printStackTrace();\r\n\t }\r\n\t\t}//fin de la comprobacion de la conexion\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public abstract User login(User data);", "public void LoginButton() {\n\t\t\r\n\t}", "@Public\n\t@Get(\"/login\")\n\tpublic void login() {\n\t\tif (userSession.isLogged()) {\n\t\t\tresult.redirectTo(HomeController.class).home();\n\t\t}\n\t}", "private static void loginForAdmin(String username, String password){\n\n ArrayList<Object> loginData = LogInAndLogOutService.login(username, password);\n boolean logged = (boolean) loginData.get(0);\n boolean freezed = (boolean) loginData.get(1);\n Employee employee = (Employee) loginData.get(2);\n\n if (logged){\n\n System.out.println(\"Sie sind richtig als Herr/Frau \"+ employee.getLastname() + \" \"+ employee.getFirstname() +\" eingelogt.\");\n }else {\n if (freezed){\n\n System.out.println(\"Ihr Konto wurde einfriert. Sie können sie sich nicht einloggen. :(\");\n }else {\n\n System.out.println(\"Falscher Benutzername oder Passwort eingegeben. Versuchen Sie erneut.\");\n }\n }\n }", "public String login()\n\t{\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\tUsersBean userBean = new UsersBean();\n\t\ttry {\n//\t\t\tctx = new InitialContext(props);\n\t\t\t\n\t\t\t//userBean = (usersPersistentBean) ctx.lookup(\"usersPersistentBean\");\n\t\t\tUser attempting_user = new User();\n\t\t\tattempting_user.setUsername(getUsername());\n\t\t\tattempting_user.setPassword(getPassword());\n\t\t\tUser resultUser = userBean.getUser(attempting_user);\n\t\t\tif (resultUser.getUsername() != null)\n\t\t\t{\n\t\t\t\tsetIsAdmin(resultUser.isAdmin());\n\t\t\t\tsetUserId(resultUser.getUserId());\n\t\t\t\tsetLoginMessage(\"success\");\n\t\t\t\tcontext.getExternalContext().redirect(\"basicCalculator.xhtml\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsetLoginMessage(\"*Incorrect Username and password\");\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn getLoginMessage();\t\t\n\t}", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "public final void login() {\n Activity_ExtensionKt.hideSoftKeyboard(this);\n if (hasAllRequiredField()) {\n EditText editText = (EditText) _$_findCachedViewById(C2723R.C2726id.etUserName);\n Intrinsics.checkExpressionValueIsNotNull(editText, \"etUserName\");\n String obj = editText.getText().toString();\n if (obj != null) {\n this.username = StringsKt.trim((CharSequence) obj).toString();\n EditText editText2 = (EditText) _$_findCachedViewById(C2723R.C2726id.etPassword);\n Intrinsics.checkExpressionValueIsNotNull(editText2, \"etPassword\");\n String obj2 = editText2.getText().toString();\n if (obj2 != null) {\n this.password = StringsKt.trim((CharSequence) obj2).toString();\n LoginViewModel loginViewModel = this.viewModel;\n if (loginViewModel == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"viewModel\");\n }\n EditText editText3 = (EditText) _$_findCachedViewById(C2723R.C2726id.etUserName);\n Intrinsics.checkExpressionValueIsNotNull(editText3, \"etUserName\");\n String obj3 = editText3.getText().toString();\n EditText editText4 = (EditText) _$_findCachedViewById(C2723R.C2726id.etPassword);\n Intrinsics.checkExpressionValueIsNotNull(editText4, \"etPassword\");\n loginViewModel.login(obj3, editText4.getText().toString());\n return;\n }\n throw new TypeCastException(\"null cannot be cast to non-null type kotlin.CharSequence\");\n }\n throw new TypeCastException(\"null cannot be cast to non-null type kotlin.CharSequence\");\n }\n }", "@Override\n\t public String loginUser(String email, String password) {\n\t\t\tlog.info(\"email and pass are \"+email+\" \"+password);\n\t\t\twebuserid=loginmanager.isExist(email, password);\n\t\t\tif(webuserid>0)\n\t\t\t{\n\t\t\t//Ckech is it blocked\n\t\t\tif(! loginmanager.isBlocked(webuserid))\n\t\t\t{\n\t\t\t\t //Get all personal Ids and login the person\n\t\t\t\t \n\t\t\t\t peronalid=loginmanager.getPersonelIds(webuserid);\n\t\t\t\t \n\t\t\t\t //Store in personal bean class\n\t\t\t\t PersonalIds.setEmpid(1);\n\t\t\t\t PersonalIds.setCmpid(1);\n\t\t\t\t PersonalIds.setGrpid(1);\n\t\t\t\t message=error.sucess;\n\t\t\t\t //Lodge the login details in a lodgeevent table\n\t\t\t\n\t\t\t} \n\t\t\telse\n\t\t\t{\n\t\t\tmessage=error.blocked;\n\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tmessage=error.noaccount;\n\t\t\t}\n\t\t\t\n\t\t\t\t \n\t\t\t\n\t\t\t\n\t\t\treturn message;\n\t }", "public void login(ActionEvent e) throws IOException{\n\t\tString username = Username.getText().toLowerCase();\n\t\tString password = Password.getText();\n\t\tif(username.equalsIgnoreCase(\"admin\")){\n\t\t\tif (password.equals(PhotoAlbum.admin.getPassword())) {\n\t\t\t\tsegue(\"/view/Admin.fxml\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpasswrong.setStyle(\"-fx-opacity: 1;\");\n\t\t\t\tPassword.setStyle(\"-fx-text-box-border: red; -fx-focus-color: red;\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t} \n\t\t//search through list\n\t\tfor(int i = 0; i < PhotoAlbum.admin.getUserList().size(); i++){\n\t\t\tPhotoAlbum.regular_user = (NonAdminUser) PhotoAlbum.admin.getUserList().get(i);\n\t\t\tif(PhotoAlbum.regular_user.getUsername().equals(username)){\n\t\t\t\tif(PhotoAlbum.regular_user.getPassword().equals(password)){\n\t\t\t\t\tUsername.setStyle(\"-fx-text-box-border: white; -fx-focus-color: #008ED6;\");\n\t\t\t\t\tuserwrong.setStyle(\"-fx-opacity: 0;\");\n\t\t\t\t\tPassword.setStyle(\"-fx-text-box-border: white; -fx-focus-color: #008ED6;\");\n\t\t\t\t\tpasswrong.setStyle(\"-fx-opacity: 0;\");\n\t\t\t\t\tPhotoAlbum.logged_in = (NonAdminUser) PhotoAlbum.admin.getUserList().get(i);\n\t\t\t\t\tsegue(\"/view/Albums.fxml\");\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tpasswrong.setStyle(\"-fx-opacity: 1;\");\n\t\t\t\t\tPassword.setStyle(\"-fx-text-box-border: red; -fx-focus-color: red;\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//if not found\n\t\tuserwrong.setStyle(\"-fx-opacity: 1;\");\n\t\tUsername.setStyle(\"-fx-text-box-border: #e67e22; -fx-focus-color: #e67e22;\");\n\t\tPassword.setStyle(\"-fx-text-box-border: #e67e22; -fx-focus-color: #e67e22;\");\n\t}", "public String signin() {\n \t//System.out.print(share);\n \tSystem.out.println(username+\"&&\"+password);\n String sqlForsignin = \"select password from User where username=?\";\n Matcher matcher = pattern.matcher(sqlForsignin);\n String sql1 = matcher.replaceFirst(\"'\"+username+\"'\");//要到数据库中查询的语句\n select();\n DBConnection connect = new DBConnection();\n List<String> result = connect.select(sql1);//查询结果\n if (result.size() == 0) return \"Fail1\";\n \n if (result.get(0).equals(password)){\n \tsession.setAttribute( \"username\", username);\n \treturn \"Success\";\n }\n else return \"Fail\";\n }", "void loginAttempt(String email, String password);", "public void StartLogIn(){\n\t}", "@Override\n public boolean userLogin(String username, String password) \n {\n User tmpUser = null;\n tmpUser = getUser(username);\n if(tmpUser == null) return false;\n if(tmpUser.getPassword().equals(password)) return true;\n return false;\n }", "private void loginSuccess(String uname) {\n }", "public boolean login() {\n\n\t con = openDBConnection();\n\t try{\n\t pstmt= con.prepareStatement(\"SELECT ID FROM TEAM5.CUSTOMER WHERE USERNAME =? AND PASSWORD=?\");\n pstmt.clearParameters();\n pstmt.setString(1,this.username);\n pstmt.setString(2, this.password);\n\t result= pstmt.executeQuery();\n\t if(result.next()) {\n\t \t this.setId(result.getInt(\"id\")); \n\t \t this.loggedIn = true; \n\t }\n\t return this.loggedIn;\n\t }\n\t catch (Exception E) {\n\t E.printStackTrace();\n\t return false;\n\t }\n\t }", "private final static void onLogin(TextField username, PasswordField password)\n\t{\n\t\tif (ProfileManipulation.checkLogin(username.getText(), password.getText())) {\n\t\t\tif (ProfileManipulation.isVerfied(username.getText())) {\n\t\t\t\tProfileManipulation.updateLoginStatus(username.getText(), true);\n\n\t\t\t\t// Jetzt wird das Profil aufgerufen\n\t\t\t\tPartylize.setUsername(username.getText());\n\t\t\t\tPartylize.showMainScene();\n\t\t\t} else {\n\t\t\t\tPartylize.setUsername(username.getText());\n\t\t\t\tPartylize.showVerification();\n\t\t\t}\n\t\t}\n\t\t// Funktionsaufruf Datenbankanbindung -> Erstellen einer Session ID\n\t\t// Funktionsaufruf Profildaten in lokalen Speicher laden - WIP\n\t\telse {\n\t\t\tusername.setText(\"\");\n\t\t\tpassword.setText(\"\");\n\t\t}\n\t}", "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "public abstract void onLogin();", "public void login() throws ClassNotFoundException, SQLException {\n\t\tConnectionManager con=new ConnectionManager();//connection manager\r\n\t\tScanner s=new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the username\");\r\n\t\tString name=s.next();\r\n\t\tSystem.out.println(\"Enter the password\");\r\n\t\tString pass=s.next();\r\n\t\tint flag=0;\r\n\t\tStatement st=con.getConnection().createStatement();\r\n\t\tResultSet set=st.executeQuery(\"select * from adminlogin\"); \r\n\t\twhile(set.next()) {\r\n\t\t\t//to display the values\r\n\t\t\tString name1=set.getString(1);\r\n\t\t\tString pw1=set.getString(2);\r\n\t\t\r\n\t\tif(name1.contentEquals(name)&& pass.contentEquals(pw1)) \r\n\t\t\tflag=1;\r\n\t\t}\r\n\t\tif(flag==1) {\r\n\r\n\t\t\tSystem.out.println(\"Admin login successful\");\r\n\t\t\tadminlogin ad=new adminlogin();\r\n\t\t\tad.option();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Sorry..!! Incorrect details.\\nLogin again\\n\");\r\n\t\t}\r\n\t\t\t\r\n\t\tHotelmanagement first=new Hotelmanagement();\r\n\t\tfirst.choice();\r\n\t}", "@Override\n\tpublic void LoginProc(Parent root) {\n\t\tTextField idTxt = (TextField) root.lookup(\"#txtid\");\n\t\tTextField pwTxt = (TextField) root.lookup(\"#txtpw\");\n\t\tSystem.out.println(\"ID : \"+idTxt.getText()+\",PW : \"+pwTxt.getText()+\"가 입력되었습니다.\");\n\t}", "@Override\r\n\tpublic void Login(DbInterface dbi) {\n\t\t\r\n\t}", "public void login(final View v) {\n\n // validate login here\n dbHelper = new EMFMonitorDbHelper(this);\n db = dbHelper.getReadableDatabase();\n\n String username = usernameField.getText().toString();\n String password = passwordField.getText().toString();\n\n Cursor cur = db.rawQuery(\"SELECT * FROM users WHERE username = ? AND password = ?\",\n new String[] {username, password});\n\n if (cur.moveToFirst()) {\n if (cur.getInt(EMFMonitorDbHelper.CAN_WORK_INDEX) > 0) {\n Intent i = new Intent(this, MainActivity.class);\n i.putExtra(\"USERNAME\", username);\n i.putExtra(\"UID\", cur.getInt(EMFMonitorDbHelper.UID_INDEX));\n i.putExtra(\"UNITS\", cur.getString(EMFMonitorDbHelper.UNITS_INDEX));\n i.putExtra(\"ALARM_THRESHOLD\", cur.getDouble(EMFMonitorDbHelper.ALARM_THRESHOLD_INDEX));\n startActivity(i);\n finish();\n }\n else {\n Toast toast = Toast.makeText(this, \"You have been exposed to unsafe levels of EMF\", Toast.LENGTH_SHORT);\n toast.show();\n }\n }\n else {\n Toast toast = Toast.makeText(this, \"Invalid Username or Password\", Toast.LENGTH_SHORT);\n toast.show();\n }\n\n\n }", "@Override\n\tpublic boolean loginService(List<Object> paraments) {\n\t\t\n\t\t\n\t\tboolean flag = false;\n\t\t\n\t\tString sql = \"select * from user where user_id=? and password=?\";\n\t\ttry{\n\t\t\t\n\t\t\tmJdbcUtil.getConnetion();\n\t\t\tMap<String,Object> map= mJdbcUtil.findSimpleResult(sql, paraments);\n\t\t\tflag = map.isEmpty()?false:true;\n\t\t\tSystem.out.println(\"-flag-->>\" + flag);\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tmJdbcUtil.releaseConn();\n\t\t}\n\t\t\n\t\t\n\t\treturn flag;\n\t}", "private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public User logInUser(final String login, final String password);", "public Login() {\r\n\t\tinitialize();\r\n\t}", "public void btnLoginClicked() {\n String username = txfUsername.getText();\n String password = txfPassword.getText();\n DatabaseController database = new DatabaseController(new TuDbConnectionFactory());\n Authentication auth = new Authentication(database);\n if (auth.signIn(username, password)) {\n Player player = new Player(username, database.getPersonalTopScore(username));\n game.setScreen(new PreGameScreen(game,\"music/bensound-funkyelement.mp3\", player));\n } else {\n txfUsername.setColor(Color.RED);\n txfPassword.setColor(Color.RED);\n }\n }", "private void login(Conversation conversation) {\n\t\tJsonObject lJsonObjIn = (JsonObject) conversation.getRequestBodyAsJSON();\n\t\t\n\t\tString lGebruikersnaam = lJsonObjIn.getString(\"username\");\t\t\t\t\t\t// Uitlezen van opgestuurde inloggegevens... \n\t\tString lWachtwoord = lJsonObjIn.getString(\"password\");\n\t\tMap<String, String> loginInfo = informatieSysteem.loginDetails(lGebruikersnaam,lWachtwoord);\n\n\t\tif(loginInfo.isEmpty())\n\t\t{\n\t\t\t//LOGIN FAILED !\n\t\t\tconversation.sendJSONMessage(\"{\\\"rol\\\":\\\"undefined\\\"}\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJsonObjectBuilder lJsonObjectBuilder = Json.createObjectBuilder();\n\t\t\tlJsonObjectBuilder.add(\"rol\", loginInfo.get(\"rol\"));\n\t\t\tlJsonObjectBuilder.add(\"voornaam\", loginInfo.get(\"voornaam\"));\n\t\t\tlJsonObjectBuilder.add(\"achternaam\", loginInfo.get(\"achternaam\"));\n\t\t\tlJsonObjectBuilder.add(\"identificatienummer\", loginInfo.get(\"identificatienummer\"));\t\t// en teruggekregen gebruikersrol als JSON-object...\n\t\t\tif(loginInfo.containsKey(\"group\")) lJsonObjectBuilder.add(\"group\", loginInfo.get(\"group\"));\n\t\t\tif(loginInfo.containsKey(\"klasnaam\")) lJsonObjectBuilder.add(\"klasnaam\", loginInfo.get(\"klasnaam\"));\n\t\t\tif(loginInfo.containsKey(\"klascode\")) lJsonObjectBuilder.add(\"klascode\", loginInfo.get(\"klascode\"));\n\t\t\tString lJsonOut = lJsonObjectBuilder.build().toString();\n\t\t\tconversation.sendJSONMessage(lJsonOut);\n\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t// terugsturen naar de Polymer-GUI!\n\t}", "private void loginIn(String user, String pass, int message){\n writeTextIntoTextBox(R.id.username_text_input, user);\n writeTextIntoTextBox(R.id.password_text_input, pass);\n clickId(R.id.login_button);\n checkLoginMessage(message);\n clickId(R.id.alt_button);\n checkIfAtLogin();\n }", "public static void login() {\n\t\trender();\n\t}", "private void action_login_utente(HttpServletRequest request, HttpServletResponse response) throws IOException{\n //recupero credenziali di login\n String email = SecurityLayer.addSlashes(request.getParameter(\"email\").toLowerCase());\n email = SecurityLayer.sanitizeHTMLOutput(email);\n String password = SecurityLayer.addSlashes(request.getParameter(\"password\"));\n password = SecurityLayer.sanitizeHTMLOutput(password);\n if(!email.isEmpty() && !password.isEmpty()){\n try {\n //recupero utente dal db\n Utente u = ((PollwebDataLayer)request.getAttribute(\"datalayer\")).getUtenteDAO().getUtenteByEmail(email);\n //controllo che l'utente esista\n if(u != null){\n //controllo i parametri\n if(u.getEmail().equalsIgnoreCase(email) && new BasicPasswordEncryptor().checkPassword(password, u.getPassword())){\n //se l'utente esiste ed è lui\n\n request.setAttribute(\"userName\", u.getNome());\n request.setAttribute(\"user_id\", u.getId());\n System.out.println(u.getId());\n\n SecurityLayer.createSession(request, u.getId());\n\n if (request.getParameter(\"referrer\") != null) {\n response.sendRedirect(request.getParameter(\"referrer\"));\n } else {\n response.sendRedirect(\"/home\");\n }\n }else{\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n request.setAttribute(\"error\", \"Credenziali errate\");\n response.sendRedirect(\"/login?error=100\");\n }\n }\n\n }else{\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login&error=102\");\n }\n }\n }catch (DataException ex) {\n //TODO Handle Exception\n\n }\n } else {\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login?error=101\");\n }\n }\n }", "public void handleLogin() {\n\t\tString username = usernameInput.getText();\n\t\tString password = passwordInput.getText();\n\n\t\t// Saves username and password if remember me is ticked\n\t\t// otherwise it deletes the file.\n\t\tif (rememberMeCheckbox.isSelected()) {\n\t\t\twriteRememberMe(username, password);\n\t\t} else {\n\t\t\tclearRememberMe();\n\t\t}\n\n\n\t\ttryUsernamePassword(username, password);\n\t}", "@FXML\n\tprivate void onLogin(ActionEvent event) throws IOException {\n\t\tif (!username.getText().equals(\"\") && !password.getText().equals(\"\")) {\n\t\t\tUserCommunication clientCom = new UserCommunication();\n\t\t\tSession client = clientCom.login(username.getText(), password.getText());\n\t\t\t\n\t\t\tif(client != null) { \n\t\t\t\t// login good\n\t\t\t\tparent.createSession(client);\n\t\t\t\tparent.populateProfileDatas();\n\t\t\t\tparent.goToHome();\n\t\t\t\tparent.changeContextualMenu(TypeMenu.CONNECTED);\n\t\t\t\tusername.clear();\n\t\t\t\tpassword.clear();\n\t\t\t\t\n\t\t\t\t// load favorites\n\t\t\t\tArrayList<SearchFavorite> sf = new SearchFavoriteDAO().findByUserId(client.getUser().getID());\n\t\t\t\tparent.setFavorites(sf);\n\t\t\t\tparent.populateSearcheScrollPane();\n\t\t\t\t\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t// login failed\n\t\t\t\tMessage.show(\"Erreur\", \"Authentification échouée\", AlertType.INFORMATION);\n\t\t\t}\n\t\t} else {\n\t\t\tMessage.show(\"Erreur au niveau du formulaire\", \"Veuillez remplir le formulaire convenablement.\", AlertType.WARNING);\n\t\t}\n\t}", "private final static void onLoginAdmin(TextField username, PasswordField password)\n\t{\n\t\tif(ProfileManipulation.findUsername(username.getText()) && !ProfileManipulation.checkLoginStatus(username.getText())){\n\t\t\tif (ProfileManipulation.isVerfied(username.getText())) {\n\t\t\t\tProfileManipulation.updateLoginStatus(username.getText(), true);\n\n\t\t\t\t// Jetzt wird das Profil aufgerufen\n\t\t\t\tPartylize.setUsername(username.getText());\n\n\t\t\t\tProfileManipulation.changePassword(password.getText());\n\n\t\t\t\tPartylize.showMainScene();\n\t\t\t} else {\n\t\t\t\tPartylize.setUsername(username.getText());\n\t\t\t\tPartylize.showVerification();\n\t\t\t}\n\t\t}\n\t\t// Funktionsaufruf Datenbankanbindung -> Erstellen einer Session ID\n\t\t// Funktionsaufruf Profildaten in lokalen Speicher laden - WIP\n\t\telse {\n\t\t\tusername.setText(\"\");\n\t\t\tpassword.setText(\"\");\n\t\t}\n\t}", "boolean hasLogin();", "boolean hasLogin();", "@Override\r\n\tpublic void MemberLogin() {\n\r\n\t}", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n\r\n // Store values at the time of the login attempt.\r\n String email = mEmailView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(email)) {\r\n mEmailView.setError(getString(R.string.error_field_required));\r\n focusView = mEmailView;\r\n cancel = true;\r\n } else if (!isEmailValid(email)) {\r\n mEmailView.setError(getString(R.string.error_invalid_email));\r\n focusView = mEmailView;\r\n cancel = true;\r\n }\r\n mAuthTask = new UserLoginTask(email, password);\r\n try {\r\n Boolean logStatus = mAuthTask.execute(\"http://shubhamgoswami.me/login\").get();\r\n if(logStatus){\r\n SQLiteDatabase db = openOrCreateDatabase(\"adharShila\",MODE_PRIVATE, null);\r\n db.execSQL(\"UPDATE LOGSTATUS SET USERNAME=\\\"\"+mEmailView.getText()+\"\\\", STATUS=1 WHERE ENTRY=1\");\r\n db.close();\r\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\r\n i.putExtra(\"username\", mEmailView.getText());\r\n i.putExtra(\"password\", password);\r\n startActivity(i);\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n } catch (ExecutionException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public boolean login() {\n\t\tview.setVisible(true);\r\n\t\treturn resultado;\r\n\t}", "void redirectToLogin();", "@FXML\n\tprivate void handleLogin() {\n\t \n\t\t\t\ttry {\n\t\t\t\t\tmain.showHomePageOverview(username.getText(),password.getText());\n\t\t\t\t} catch (SQLException 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\n\t}", "public Login() {\n initComponents();\n hideregister ();\n }", "public JanelaLogin() {\n \t\n \tConexao c = new Conexao();\n \t\n \t\n initComponents();\n }", "public String onClick() {\n final String login = getModel().getLogin();\n final String password = getModel().getPasssword();\n\n //Call Business\n Exception ex2 = null;\n User s = null;\n try {\n s = service.login(login, password);\n } catch (Exception ex) {\n ex2 = ex;\n }\n\n //Model to View\n if (ex2 == null) {\n getModel().setCurrentUser(s);\n return \"list\";\n } else {\n return null;\n }\n }", "private void login(HttpServletRequest request, HttpServletResponse response) throws SQLException {\n String nombre = request.getParameter(\"nombreUser\");\r\n String passwd = request.getParameter(\"passwdUser\");\r\n\r\n try {\r\n //COMPRUEBA CREDENCIALES EN BBDD\r\n if (uDao.CompruebaLogin(nombre, passwd)) {\r\n \r\n System.out.println(\"OK LOGIN\");\r\n //LOGIN OK- enviamos el listado a la vista(JSP)\r\n RequestDispatcher miDispatcher = request.getRequestDispatcher(\"/ControllerUsuario\");\r\n miDispatcher.forward(request, response);\r\n } else {\r\n //LOGIN FAILED- recarga vista login(JSP)\r\n RequestDispatcher miDispatcher = request.getRequestDispatcher(\"/Login.jsp\");\r\n miDispatcher.forward(request, response);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }" ]
[ "0.86177295", "0.827353", "0.8146118", "0.8045614", "0.7980478", "0.7922404", "0.78717715", "0.78710747", "0.781634", "0.7809311", "0.7772531", "0.77456677", "0.77395904", "0.76973975", "0.7660055", "0.7656373", "0.7649465", "0.7567026", "0.75453377", "0.7525291", "0.75202584", "0.75194985", "0.7519421", "0.75182426", "0.75058824", "0.7484692", "0.74792016", "0.7461374", "0.7447362", "0.744733", "0.74230283", "0.74144596", "0.7413362", "0.740849", "0.7393215", "0.7391075", "0.7388256", "0.73863894", "0.7381051", "0.7373893", "0.73729396", "0.7370463", "0.7359287", "0.7349029", "0.7322359", "0.7311861", "0.73081845", "0.7280971", "0.727644", "0.727574", "0.72648036", "0.7261688", "0.72472453", "0.72458714", "0.7242167", "0.7234861", "0.7223249", "0.721631", "0.72054", "0.7204915", "0.72029865", "0.71899414", "0.7185732", "0.7185005", "0.7172066", "0.71710473", "0.71574223", "0.71515155", "0.7148454", "0.7146156", "0.7143938", "0.71422666", "0.71391886", "0.71372503", "0.71288496", "0.71126693", "0.7103052", "0.70883", "0.7084613", "0.70825577", "0.7074866", "0.7072241", "0.70717716", "0.70559824", "0.7054641", "0.70523804", "0.7049277", "0.70436597", "0.70431435", "0.7037707", "0.7025265", "0.7025265", "0.70221674", "0.70218235", "0.702088", "0.70194495", "0.70117134", "0.70046294", "0.6993897", "0.6992465", "0.6988634" ]
0.0
-1
methode die een nieuw account aanmaakt
@RequestMapping("/signup") public void signUp(String firstName, String lastName, String address, String emailAddress, String userName, String password, int age, int telephoneNumber){ User.UserBuilder userBuilder = new User.UserBuilder(firstName, lastName, address, age, userName, password,emailAddress); if(telephoneNumber > 0) userBuilder.telephoneNumber(telephoneNumber); User user = userBuilder.build(); userService.addUser(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void NroAccount() {\n\t\t\r\n\t}", "public void createAccount(){\n System.out.println(\"vi skal starte \");\n }", "Account() { }", "java.lang.String getAccount();", "public account() {\n initComponents();\n autoID();\n branch();\n }", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "Account getAccount();", "@Override\r\n\tpublic void showAccount() {\n\t\t\r\n\t}", "public String getAccountNo();", "int createAccount(Account account);", "public int subsAccount(NguoiNhap nn) throws SQLException {\r\n System.out.println(nn.getUsername() + nn.getPassword() + nn.getName() + nn.getGender() + nn.getBirthday());\r\n return this.connectionAdminToAccessData(\r\n \"INSERT INTO USER() VALUES('\"\r\n + nn.getUsername() + \"','\"\r\n + nn.getPassword() + \"','\"\r\n + nn.getName() + \"','\"\r\n + nn.getGender() + \"','\"\r\n + nn.getBirthday() + \"')\");\r\n }", "public void AddToAccountInfo();", "GenerateUserAccount () {\r\n }", "public Account(){\r\n this.id = 0;\r\n this.saldo = 0.0;\r\n }", "public String getAccount(){\n\t\treturn account;\n\t}", "public void linkAccount() {}", "public String getAccount() {\r\n return account;\r\n }", "boolean hasAccount();", "boolean hasAccount();", "boolean hasAccount();", "public CheckingAccount()\n {\n withdrawals = 0;\n deposits = 0;\n }", "private Account createAccount8() {\n Account account = new Account(\"123456008\", \"Jean Sans Enfant\",\n new SimpleDate(4, 23, 1976).asDate(), \"[email protected]\", true, false, new CreditCard(\"4320123412340008\"));\n\n return account;\n }", "public void saveAccount() {\n\n }", "public void addAccount(Account account,Person person);", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public void openAccount(Account a) {}", "@Override\n\tpublic String toString(){\n\t\treturn \"Account{\"+\n\t\t\t\t\"id=\"+id+\n\t\t\t\t\", email='\"+email+'\\''+\n\t\t\t\t\", user=\"+user+\n\t\t\t\t\", accessLevel=\"+accessLevel+\n\t\t\t\t\", prefs=\"+prefs+\n\t\t\t\t\", createdAt=\"+createdAt+\n\t\t\t\t\", lastActive=\"+lastActive+\n\t\t\t\t\", banInfo=\"+banInfo+\n\t\t\t\t\", activationInfo=\"+activationInfo+\n\t\t\t\t\", invitedBy=\"+invitedBy+\n\t\t\t\t'}';\n\t}", "private GetAccount()\r\n/* 19: */ {\r\n/* 20:18 */ super(new APITag[] { APITag.ACCOUNTS }, new String[] { \"account\" });\r\n/* 21: */ }", "public SeeAnAccount() {\n initComponents();\n }", "public account(int acc,int Id,String Atype,double bal ){\n this.accNo = acc;\n this.id = Id;\n this.atype = Atype;\n this.abal = bal;\n }", "void updateAccount();", "boolean hasHasAccount();", "public ExternallyOwnedAccount() {}", "public CheckingAccount(String n) {\n super(n);\n balance = 0;\n }", "public Account() {\n super();\n }", "public CheckingAccount() {\n\t\tsuper();\n\t}", "Account create();", "public SavingAccount()\n\t\t{\n\t\t\tsuper();\n\t\t}", "@Override\n public void insertAccount() throws Exception {\n\n }", "@Override\n\tpublic String createAccount() {\n\t\treturn \"Created Saving Account Sucessfully\";\n\t}", "public CheckingAccount() {\n super(); \n }", "@Override\n\tpublic boolean addAccount(Account account) {\n\t\taccount.setStatus(-1);\n\t\t//String passwd = new UU\n\t\treturn accountDAO.addAccount(account);\n\t}", "public abstract void createAccount(JSONObject account);", "public void createUserAccount(UserAccount account);", "public Account getAccount() {\n return account;\n }", "public Account getAccount() {\n return account;\n }", "Account apply();", "public int getAccountNo() {\n return accountNo;\n }", "String addAccount(UserInfo userInfo);", "public Account(){\n this.id = 0;\n this.balance = 0;\n this.annualInterestRate = 0;\n this.dateCreated = new Date();\n }", "public void onNoAccountsFound();", "public String getAccount() {\r\n\t\treturn account;\r\n\t}", "java.lang.String getAccountNumber();", "@Override\n public boolean isAccountNonExpired () {\n return true;\n }", "public String getCurrentUserAccount();", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}", "public int getAccountNo()\r\n\t{\r\n\t\t\r\n\t\treturn accountNo;\r\n\t\t\r\n\t}", "private void createNewAccount() {\n\n // if user has not provided valid data, do not create an account and return from method\n if (!validateData()) {\n return;\n }\n\n // If flag value is false, that means email provided by user doesn't exists in database\n // so initialize the loader to create a new account\n if (!mEmailExistsFlag) {\n getLoaderManager().initLoader(CREATE_NEW_ACCOUNT_LOADER_ID, null, this);\n } else {\n // If flag is true, that means email provided by user already exists in database\n // so restart the loader and allow user to enter new email address for account\n getLoaderManager().restartLoader(CREATE_NEW_ACCOUNT_LOADER_ID, null, this);\n }\n\n }", "private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }", "public void addAccount(Person p, Account a);", "public String displayAccount() {\r\n\t return id+\",\"+name+\",\"+balance+\",\"+email+\",\"+dateOfOpening;\r\n }", "@Override\n\tpublic int addAccount(AccountUser au) {\n\t\tau.setName(au.getUsername());\n\t\tau.setStatus(1);\n\t\tau.setPwd(\"666666\");\n\t\tau.setSalt(CommTool.getSalt());\n\t\tau.setPwd(PasswordUtil.generate(au.getPwd(), au.getSalt()));\n\t\treturn auMapper.addAccount(au);\n\t}", "@Override\r\n public boolean isAccountNonExpired() {\r\n return true;\r\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "boolean isAccountNonExpired();", "boolean isAccountNonExpired();", "@Override\npublic boolean isAccountNonExpired() {\n\treturn true;\n}", "public Account() //default constructor \n {\n this.balance = 0;\n this.account_number = 0;\n }", "Account(int account_number,double balance) //pramiterized constrector\n {\n this.account_number=account_number;\n this.balance=balance;\n }", "public\n Account\n getAccount()\n {\n return itsAccount;\n }", "boolean getHasAccount();", "public BankAccount() {\n numberOfAccounts++;\n this.accountNumber = accountNumberGenerator(); \n }", "java.lang.String getLoginAccount();", "java.lang.String getLoginAccount();", "public void CreateAccount(View view) {\n ConnectivityManager connectivityManager =(ConnectivityManager)getSystemService(CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n if (networkInfo!=null && networkInfo.isConnectedOrConnecting()) {\n final String rut = txt_rut.getText().toString().replace(\".\", \"\").replace(\"-\", \"\");\n validarRut(rut);\n }else {\n Toast.makeText(getApplicationContext(),\"No tiene coneccion a internet\",Toast.LENGTH_LONG).show();\n }\n }", "Account getAccount(Integer accountNumber);", "public String getAccountNo() {\n return accountNo;\n }", "String getAccountID();", "String getAccountID();", "@Override\n public boolean isAccountNonExpired() {\n return false;\n }", "@Override\n public boolean isAccountNonExpired() {\n return false;\n }", "@Override\n public boolean isAccountNonExpired() {\n return false;\n }", "public int getAccountNumber() {\n return accountNumber;\n }", "@Override\npublic boolean isAccountNonExpired() {\n\treturn false;\n}", "boolean hasAccountId();", "boolean hasAccountId();", "boolean hasAccountId();" ]
[ "0.7426998", "0.7037424", "0.68549", "0.68441933", "0.68182176", "0.67002165", "0.6678949", "0.6645526", "0.6623648", "0.6590021", "0.6582917", "0.65593266", "0.65301937", "0.64821154", "0.6444299", "0.6439302", "0.64151675", "0.64075375", "0.64075375", "0.64075375", "0.63988316", "0.63639367", "0.63549227", "0.6352393", "0.6337125", "0.6337125", "0.6337125", "0.6337125", "0.6337125", "0.6337125", "0.6337125", "0.6337125", "0.6337125", "0.6337125", "0.633041", "0.63161033", "0.63136804", "0.629219", "0.62834936", "0.62778467", "0.62732244", "0.6269321", "0.6263356", "0.62612706", "0.62546784", "0.62372226", "0.6228951", "0.6197778", "0.618221", "0.6177707", "0.6175431", "0.61637795", "0.6149206", "0.61489147", "0.61489147", "0.6147259", "0.6142789", "0.6141906", "0.6140847", "0.613254", "0.6126361", "0.612518", "0.6119124", "0.61169505", "0.61063284", "0.61063284", "0.61063284", "0.61049193", "0.6094829", "0.6079775", "0.60785115", "0.6074655", "0.60704577", "0.6066149", "0.6065415", "0.6061444", "0.6061444", "0.6061444", "0.6056499", "0.6056499", "0.60495144", "0.60417974", "0.60347766", "0.60080844", "0.60072654", "0.60068727", "0.5995288", "0.5995288", "0.5993486", "0.59905165", "0.59893996", "0.59809166", "0.59809166", "0.59807205", "0.59807205", "0.59807205", "0.598005", "0.59795934", "0.59734637", "0.59734637", "0.59734637" ]
0.0
-1
methode om alle gebruikers mee op te halen
@RequestMapping("/getusers") public UserViewModel userViewModel (){ return userService.getAllUsers(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public KlantenOverzicht(Gebruiker gebruiker) {\n this.gebruiker = gebruiker;\n \n initComponents();\n \n if (gebruiker.getAccounttype().equals(\"systeembeheerder\") || gebruiker.getAccounttype().equals(\"filiaalmanager\")) {\n btn_verwijderklant.setVisible(true);\n }\n else {\n btn_verwijderklant.setVisible(false);\n }\n \n setLocationRelativeTo(null);\n setTitle(\"Klantenbeheer\");\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n setResizable(false);\n getKlanten();\n handleEvents();\n }", "public adminUsuarios() {\n initComponents();\n showUsuarios();\n }", "public void Usuarios() {\n\t\r\n}", "public ForgetPassword() {\n initComponents();\n try {\n for (User member : Serialization.deserializeUsers()) {\n searchUsers.addUser(member);\n member.print();\n }\n\n for (randomCode code : Serialization.deserializeRandomCode()) {\n searchCode.addCode(code);\n code.print();\n }\n } catch (IOException | ClassNotFoundException ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage());\n }\n }", "protected void agregarUbicacion(){\n\n\n\n }", "public users() {\n initComponents();\n connect();\n autoID();\n loaduser();\n \n \n }", "public sear() {\n initComponents();\n findUsers();\n }", "private void valider() {\n\n\t\t/**\n\t\t * Renvoie un tableau de caractères qui sera transformé en chaine de caractère\n\t\t **/\n\n\t\tString passewordTraduit = new String(passeword.getPassword());\n\n\t\t/**\n\t\t * login.getText() récupère le contenu de la barre de saisie\n\t\t **/\n\t\t\n\t\tString user = login.getText();\n\t\tString passwd = passewordTraduit;\n\t\t/**\n\t\t *Permettra de savoir si la connexion à la BDD SQL c'est bien passée.\n\t\t */\n\t\tboolean reussite;\n\t\t/**\n\t\t * On va créer la BDD si elle n'existe pas\n\t\t */\n\t\t\n\t\treussite = Initialisation.getInstance().creerBDD(user, passwd);\n\t\t/**\n\t\t * On set le password et l'utilisateur pour que les paramètres de connexion soient les bons\n\t\t */\n\t\tInitialisation.getInstance().setPasswd(passwd);\n\t\tInitialisation.getInstance().setUser(user);\n\t\tModification.getInstance().setPasswd(passwd);\n\t\tModification.getInstance().setUser(user);\n\t\tif(reussite) {\n\t\t\t/**\n\t\t\t *Si tout c'est bien passé on regarde si l'utilisateur existe dans le fichier et dans le cas contraire on le crée.\n\t\t\t */\n\t\t\tif(personnesDejaInscrite.getInstance().getMaListDePersonneInscrite().get(user) == null) {\n\t\t\t\tpersonnesDejaInscrite.getInstance().getMaListDePersonneInscrite().put(user, new CompteAdministrateur(passwd));\n\t\t\t\tpersonnesDejaInscrite.getInstance().sauvegarder();\n\t\t\t}\n\t\t\tFenetreLogin.getInstance().dispose();\n\t\t\tFenetreFond.getInstance().changerFenetre(login.getText());\n\t\t\t/**\n\t\t\t *On remet les champs à nul pour que quand on se déconnecte on est pas le login et le mot de passe de l'utilisateur précédent.\n\t\t\t */\n\t\t\tlogin.setText(\"\");\n\t\t\tpasseword.setText(\"\");\n\t\t}\n\t\n\t}", "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 login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "@SuppressWarnings(\"deprecation\")\r\n\tprivate void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\r\n \t//valeur de centre d'inetret\r\n \tString domaine = String.valueOf(jComboBox1.getSelectedItem());\r\n \tSystem.out.println(\"nom \"+jTextField2.getText().toString());\r\n \tSystem.out.println(\"prenom \"+jTextField1.getText());\r\n \tSystem.out.println(\"domaine \"+domaine);\r\n \tSystem.out.println(\"mdp \"+jPasswordField1.getText().toString());\r\n\r\n \t//créer l'utilisateur\r\n \tif(jTextField2.getText().equals(\"\")||jTextField1.getText().equals(\"\")||jPasswordField1.getText().equals(\"\"))\r\n \t{\r\n \t\r\n jLabel6.setText(\"Veuillez remplire tous les champs!!!\");\r\n\r\n \t}\r\n \telse\r\n \t{\r\n \t\tint i=0;\r\n \t\tUtilisateur user=new Utilisateur(jTextField2.getText().toString(),jTextField1.getText().toString(),domaine,jPasswordField1.getText().toString(),new ArrayList<file>());\r\n\r\n \t\tif(!users.getInfo().isEmpty()) {\r\n \t\twhile(i<users.getInfo().size())\r\n \t{\r\n \t\tSystem.out.println(\"user ----> \"+users.getInfo().get(i).getUser().getNom());\r\n \t\tSystem.out.println(\"user ----> \"+nomAgent);\r\n \t\tSystem.out.println(\"user ----> \"+mtpAgent);\r\n\r\n \t\t//vérification\r\n \t\tif(users.getInfo().get(i).getUser().getNom().equalsIgnoreCase(nomAgent)\r\n \t\t\t\t&&(users.getInfo().get(i).getUser().getMot_de_passe().equals(mtpAgent))\r\n \t\t\t\t)\r\n \t\t\t\t{\r\n \t\t\t\r\n \t\t\tSystem.out.println(\"utilisateur modifié trouvé \");\r\n \t\t\t//la modification\r\n\r\n \t\t\tusers.getInfo().get(i).setUser(user);\r\n \t\t\t\r\n \t\t\t/*users.getInfo().get(i).getUser().setNom(nomAgent);\r\n \t\tusers.getInfo().get(i).getUser().setPrenom(prenomAgent);\r\n \t\tusers.getInfo().get(i).getUser().setDomaine(domaineAgent);\r\n \t\tusers.getInfo().get(i).getUser().setMot_de_passe(jPasswordField1.getText());*/\r\n \t\t\tSystem.out.println(\"new name \"+users.getInfo().get(i).getUser().getNom());\r\n \t\t\tSystem.out.println(\"new prenom \"+user.getPrenom());\r\n \t\t\tSystem.out.println(\"new mtp \"+users.getInfo().get(i).getUser().getMot_de_passe());\r\n \t\t\tSystem.out.println(\"new domaine \"+users.getInfo().get(i).getUser().getDomaine());\r\n \t\t\tIndex.récuperation(user.getNom(), user.getPrenom(), user.getDomaine(), user.getMot_de_passe());\r\n \t\t\tIndex.affecterAgentInfo(users.getInfo().get(i),i);\r\n \t\t\t new Index();\r\n \t\t\t this.setVisible(false);\r\n \t\t\t this.dispose();\r\n\r\n \t\t\t\t}\r\n \t\ti++;\r\n \t}\r\n \t}\r\n \t\tif(!users.getMath().isEmpty()) {\r\n \t\twhile(i<users.getMath().size())\r\n \t{\r\n \t\tSystem.out.println(\"user ----> \"+users.getMath().get(i).getUser().getNom());\r\n \t\t//vérification\r\n \t\tif(users.getMath().get(i).getUser().getNom().equalsIgnoreCase(nomAgent)\r\n \t\t\t\t&&(users.getMath().get(i).getUser().getMot_de_passe().equals(mtpAgent))\r\n \t\t\t\t)\r\n \t\t\t\t{\r\n \t\t\t\r\n \t\t\tSystem.out.println(\"utilisateur modifié trouvé \");\r\n \t\t\t//la modification\r\n\r\n \t\t\tusers.getMath().get(i).setUser(user);\r\n \t\t\t\r\n \t\t\t/*users.getInfo().get(i).getUser().setNom(nomAgent);\r\n \t\tusers.getInfo().get(i).getUser().setPrenom(prenomAgent);\r\n \t\tusers.getInfo().get(i).getUser().setDomaine(domaineAgent);\r\n \t\tusers.getInfo().get(i).getUser().setMot_de_passe(jPasswordField1.getText());*/\r\n \t\t\tSystem.out.println(\"new name \"+users.getMath().get(i).getUser().getNom());\r\n \t\t\tSystem.out.println(\"new prenom \"+users.getMath().get(i).getUser().getPrenom());\r\n \t\t\tSystem.out.println(\"new mtp \"+users.getMath().get(i).getUser().getMot_de_passe());\r\n \t\t\tSystem.out.println(\"new domaine \"+users.getMath().get(i).getUser().getDomaine());\r\n \t\t\tIndex.récuperation(user.getNom(), user.getPrenom(), user.getDomaine(), user.getMot_de_passe());\r\n\r\n \t\t\tIndex.affecterAgentMath(users.getMath().get(i));\r\n \t\t\t new Index();\r\n \t\t\t this.setVisible(false);\r\n \t\t\t this.dispose();\r\n\r\n \t\t\t\t}\r\n \t\ti++;\r\n \t}\r\n \t}\r\n \t\t\r\n\r\n \t\t\r\n \t\t\r\n \t\r\n \t\t\t\r\n \t\t\t\r\n \t\t\t}\r\n \t\t\r\n \r\n \t\r\n\r\n \t\r\n \t\r\n \t }", "private void contactUs() {\n }", "public Login() {\n initComponents();\n KiemTraKN();\n }", "public void changerJoueur() {\r\n\t\t\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 }", "public void identificarPersona() {\n try {\n //Obtiene todas las huellas de la bd\n ResultSet rsIdentificar = identificarhue.executeQuery();\n \n //Si se encuentra la huella en la base de datos\n while(rsIdentificar.next()){\n //Lee la plantilla de la base de datos\n byte templateBuffer[] = rsIdentificar.getBytes(\"huellap\");\n //Crea una nueva plantilla\n Template referenceTemplate = new Template(templateBuffer);\n \n //compara las plantilas (actual vs bd)\n boolean coinciden = fingerprintSDK.verify(template,referenceTemplate);\n \n //Si encuentra coincidencia entonces envia true y si no entonces envia false\n if (coinciden){ \n objpantprincipal.coincidehuella(true);\n return;\n }\n else{\n objpantprincipal.coincidehuella(false);\n }\n } \n \n } catch (SQLException e) { \n initDB();\n identificarPersona();\n } catch (GrFingerJavaException e) {\n Toolkit.getDefaultToolkit().beep();\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "protected void accionUsuario() {\n\t\t\r\n\t}", "void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }", "public void trenneVerbindung();", "public void wypelnij(){\n ArrayList<ComboUserInsert> tmp = a.getAllUsers();\n for(int i = 0 ; i < tmp.size(); i++){\n uzytkownicy.addItem(tmp.get(i));\n }\n uzytkownicy.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent e){\n Object item = uzytkownicy.getSelectedItem();\n chosen_id = ((ComboUserInsert)item).id;\n }\n });\n }", "private void registToWX() {\n }", "public TelaCadastrarUsuarios() {\n initComponents();\n carregarTabela();\n carregarComboBoxFuncionarios();\n carregarImagens();\n }", "@Override\n\tpublic void registrarLlegada() {\n\t\t\n\t}", "private void inicializarUsuarios(){\n usuarios = new ArrayList<Usuario>();\n Administrador admin=new Administrador();\n admin.setCodigo(1);\n admin.setApellidos(\"Alcaide Gomez\");\n admin.setNombre(\"Juan Carlos\");\n admin.setDni(\"31000518Z\");\n admin.setPassword(\"admin\");\n admin.setCorreo(\"[email protected]\");\n admin.setDireccion(\"Sebastian Garrido 54\");\n admin.setNacimiento(new Date(1991, 12, 29));\n admin.setNacionalidad(\"España\");\n admin.setCentro(\"Centro\");\n admin.setSexo(\"Varon\");\n admin.setDespacho(\"301\");\n usuarios.add(admin);\n \n JefeServicio js=new JefeServicio();\n js.setCodigo(2);\n js.setApellidos(\"Gutierrez Cazorla\");\n js.setNombre(\"Ruben\");\n js.setDni(\"75895329k\");\n js.setPassword(\"admin\");\n js.setCorreo(\"[email protected]\");\n js.setDireccion(\"Sebastian Garrido 54\");\n js.setNacimiento(new Date(1991, 12, 29));\n js.setNacionalidad(\"España\");\n js.setCentro(\"Centro\");\n js.setSexo(\"Varon\");\n js.setDespacho(\"301\");\n \n usuarios.add(js);\n \n \n Ciudadano c =new Ciudadano();\n c.setCodigo(3);\n c.setApellidos(\"Moreno\");\n c.setNombre(\"Maria\");\n c.setDni(\"123\");\n c.setPassword(\"123\");\n c.setCorreo(\"[email protected]\");\n c.setDireccion(\"Sebastian Garrido 54\");\n c.setNacimiento(new Date(1992, 01, 12));\n c.setCentro(\"Teatinos\");\n c.setNacionalidad(\"España\");\n c.setSexo(\"Mujer\");\n c.setTelefono(\"999\");\n usuarios.add(c);\n \n //--Administrativos--\n Administrativo a =new Administrativo();\n a.setCodigo(4);\n a.setApellidos(\"Fernández\");\n a.setNombre(\"Salva\");\n a.setDni(\"1234\");\n a.setPassword(\"1234\");\n a.setCorreo(\"[email protected]\");\n a.setDireccion(\"Sebastian Garrido 54\");\n a.setNacimiento(new Date(1991, 9, 29));\n a.setNacionalidad(\"España\");\n a.setSexo(\"Hombre\");\n a.setCentro(\"Centro\");\n usuarios.add(a);\n \n Tecnico tec=new Tecnico();\n tec.setCodigo(5);\n tec.setApellidos(\"Alcaide Gomez\");\n tec.setNombre(\"Juan Carlos\");\n tec.setDni(\"tecnico\");\n tec.setPassword(\"tecnico\");\n tec.setCorreo(\"[email protected]\");\n tec.setDireccion(\"Sebastian Garrido 54\");\n tec.setNacimiento(new Date(1991, 12, 29));\n tec.setNacionalidad(\"España\");\n tec.setCentro(\"Centro\");\n tec.setSexo(\"Varon\");\n tec.setDespacho(\"301\");\n tec.setTelefono(\"664671040\");\n tec.setEspecialidad(\"Maltrato\");\n tec.setTfijo(957375546);\n \n usuarios.add(tec);\n \n }", "private void userInformation()\n {\n name = eName.getText().toString();\n userName = eUserName.getText().toString();\n email = eEmail.getText().toString();\n password = ePassword.getText().toString();\n password = encryptionAlgo.encryptPass(password);//initialize new encrypt password\n address = eAddress.getText().toString();\n favouriteWord = eFavourite.getText().toString();\n }", "private void IsAbleToGebruikEigenschap() throws RemoteException {\n boolean eigenschapGebruikt = speler.EigenschapGebruikt();\n if (eigenschapGebruikt == true) {\n gebruikEigenschap.setDisable(true);\n }\n }", "public void registrarAdministrador() throws IOException {\n\n //asignamos al usuario la imagen de perfil default\n usuarioView.setUsuarioFotoRuta(getPathDefaultUsuario());\n usuarioView.setUsuarioFotoNombre(getNameDefaultUsuario());\n\n //Se genera un login y un pass aleatorio que se le envia al proveedor\n MD5 md = new MD5();\n GenerarPassword pass = new GenerarPassword();\n SendEmail email = new SendEmail();\n\n password = pass.generarPass(6);//Generamos pass aleatorio\n\n //Encriptamos las contraseñas\n usuarioView.setUsuarioPassword(md.getMD5(password));//Se encripta la contreseña\n usuarioView.setUsuarioRememberToken(md.getMD5(password));\n\n //el metodo recibe los atributos, agrega al atributo ciudad del objeto usuario un objeto correspondiente, \n //de la misma forma comprueba el rol y lo asocia, por ultimo persiste el usuario en la base de datos\n usuarioView.setSmsCiudad(ciudadDao.consultarCiudad(usuarioView.getSmsCiudad()));//Asociamos una ciudad a un usuario\n usuarioView.setSmsRol(rolDao.consultarRol(usuarioView.getSmsRol()));//Asociamos un rol a un usuario\n usuarioView.setUsuarioEstadoUsuario(1);//Asignamos un estado de cuenta\n usuarioView.setSmsNacionalidad(nacionalidadDao.consultarNacionalidad(usuarioView.getSmsNacionalidad()));\n\n //registramos el usuario y recargamos la lista de clientes\n usuarioDao.registrarUsuario(usuarioView);\n usuariosListView = adminDao.consultarUsuariosAdministradores();\n\n //Enviar correo\n email.sendEmailAdministradorBienvenida(usuarioView, password);\n\n //limpiamos objetos\n usuarioView = new SmsUsuario();\n password = \"\";\n }", "public frmAnagraficaUsers() {\n initComponents();\n\n this.texCodi.setVisible(false);\n \n //associo il panel ai dati\n this.dati.dbNomeTabella = \"accessi_utenti\";\n Vector chiave = new Vector();\n chiave.add(\"id\");\n this.dati.dbChiave = chiave;\n this.dati.butSave = this.butSave;\n this.dati.butUndo = this.butUndo;\n this.dati.butFind = this.butFind;\n this.dati.butNew = this.butNew;\n this.dati.butDele = this.butDele;\n this.dati.tipo_permesso = Permesso.PERMESSO_GESTIONE_UTENTI;\n\n this.texDbPassword.setVisible(false);\n this.comRoleId.dbOpenList(Db.getConn(), \"SELECT descrizione, id FROM accessi_ruoli ORDER BY id\");\n this.dati.dbOpen(Db.getConn(), \"select * from \" + this.dati.dbNomeTabella + \" order by id\");\n this.dati.dbRefresh();\n\n dati.addDbListener(new DbListener() {\n public void statusFired(DbEvent event) {\n if (event.getStatus() == tnxDbPanel.STATUS_REFRESHING) {\n controllaAdmin();\n }\n }\n\n });\n\n this.salvaPassword = false;\n\n //apro la griglia\n //this.griglia.dbEditabile = true;\n this.griglia.dbChiave = chiave;\n this.griglia.flagUsaThread = false;\n\n java.util.Hashtable colsWidthPerc = new java.util.Hashtable();\n colsWidthPerc.put(\"id\", new Double(15));\n colsWidthPerc.put(\"username\", new Double(85));\n this.griglia.columnsSizePerc = colsWidthPerc;\n this.griglia.dbOpen(Db.getConn(), \"select id, username from \" + this.dati.dbNomeTabella + \" order by id\");\n controllaAdmin();\n this.griglia.dbPanel = this.dati;\n }", "public void new_user(){\n }", "void TaktImpulsAusfuehren ()\n {\n \n wolkebew();\n \n }", "public password_akses_admin_form() {\n initComponents();\n }", "private List<MeldingInfo> getMeldingenGebruiker(List<String> uidGebruikers, Rol rol, List<Status> statussen) {\n\n List<MeldingInfo> meldingenInfo = new ArrayList<>();\n\n // Doorloop alle meldingen en verzamel hieruit de meldingen met de juiste gebruiker en status.\n for(Melding melding: meldingen) {\n\n for(String uidGebruiker: uidGebruikers) {\n\n String uidGebruikerMelding;\n\n switch (rol) {\n case MELDER:\n uidGebruikerMelding = melding.getUidGebruikerMelder();\n if (uidGebruikerMelding != null && uidGebruikerMelding.equals(uidGebruiker)) {\n geldigeStatusMelding(meldingenInfo, melding, statussen);\n }\n break;\n case BEHANDELAAR:\n uidGebruikerMelding = melding.getUidGebruikerBehandelaar();\n if (uidGebruikerMelding != null && uidGebruikerMelding.equals(uidGebruiker)) {\n geldigeStatusMelding(meldingenInfo, melding, statussen);\n }\n break;\n }\n\n }\n\n }\n return meldingenInfo;\n }", "@Override\n\tpublic void registrarLlegada() {\n\t}", "@Override\r\n\tpublic void MemberLogin() {\n\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}", "public Authentification() {\n initComponents();\n init_Panel();\n Admin_Button.addActionListener(new Admin_Action()); \n User_Button.addActionListener(new User_Action());\n Retour_Button.addActionListener(new Retour_Action() );\n Retour_Button.addActionListener(new Connexion_Action() );\n \n \n }", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "public beli_kredit() {\n initComponents();\n koneksitoko();\n }", "@Override\n\tpublic void registrarEntrada() {\n\n\t}", "private void registrationView() {\n String login;\n String email;\n String password;\n\n try {\n while (true) {\n printLine();\n print(\"\\tВведите логин\\n\");\n print(\"\\t>>>>> \");\n login = readStringFromConsole();\n\n print(\"\\tВведите email\\n\");\n print(\"\\t>>>>> \");\n try {\n email = valid.emailValidation(readStringFromConsole());\n } catch (NotValidDataException e) {\n printErr(\"\\tнекорректный email\");\n continue;\n }\n\n print(\"\\tВведите пароль\\n\");\n print(\"\\t>>>>> \");\n try {\n password = valid.passwordValidation(readStringFromConsole());\n } catch (NotValidDataException e) {\n printErr(\"\\tнекорректный password\");\n continue;\n }\n break;\n }\n\n try {\n\n serviceAuthorizationService.registration(new UserDto()\n .withUsername(login)\n .withEmail(email)\n .withPassword(password));\n setStatus(REGISTERED);\n printLine();\n print(\"\\tВы успешно зарегистрировались\");\n } catch (AlreadyExistsException e) {\n e.showMessage();\n registrationView();\n }\n } catch (IOException e) {\n registrationView();\n }\n }", "@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\tDatabaseMethods DB = new DatabaseMethods();\n\t\t\t\t\t\t\tArrayList<User> usrarray = DB.ReadUser();\n\t\t\t\t\t\t\tArrayList<Admin> adminarray = DB.ReadAdmin();\n\t\t\t\t\t\t\tfor(User u:usrarray) {\n\t\t\t\t\t\t\t\t//System.out.println(u.getUserName().equals(login.psw.getPassword()) + \" \" + u.getPassword() + \" \" + new String(login.psw.getPassword()));\n\t\t\t\t\t\t\t\tif(u.getUserName().equals(userloginpanel.usr_name.getText()) && u.getPassword().equals(new String(userloginpanel.psw.getPassword()))) {\n\t\t\t\t\t\t\t\t\tuserloginpanel.frame.setVisible(false);\n\t\t\t\t\t\t\t\t\tex.setuser(u);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfor(Admin a:adminarray){\n\t\t\t\t\t\t\t\tif(a.getAdminName().equals(userloginpanel.usr_name.getText()) && a.getPassword().equals(new String(userloginpanel.psw.getPassword()))) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"admin\");\n\t\t\t\t\t\t\t\t\tuserloginpanel.frame.setVisible(false);\n\t\t\t\t\t\t\t\t\tex.sidebar.admin_button.setVisible(true);\n\t\t\t\t\t\t\t\t\t//ex.repaint();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void gaVerder()\n {\n /**\n * Dialog tonen waarbij de gebruiker de keuze krijgt om al dan niet nog een spelbord te maken.\n */\n Alert keuze = new Alert(Alert.AlertType.CONFIRMATION);\n keuze.setTitle(ResourceHandling.getInstance().getString(\"Configureer.gaverder\"));\n keuze.setHeaderText(ResourceHandling.getInstance().getString(\"Knop.verder\"));\n\n ButtonType btnNieuw = new ButtonType(ResourceHandling.getInstance().getString(\"Spelbord.nieuw\"));\n ButtonType btnCancel = new ButtonType(ResourceHandling.getInstance().getString(\"Annuleer.knop\"));\n\n keuze.getButtonTypes().setAll(btnCancel, btnNieuw);\n Optional<ButtonType> result = keuze.showAndWait();\n\n if (result.get() == btnNieuw)\n {\n LoaderSchermen.getInstance().load(\"Sokoban\", new GaVerderSchermController(dc), 488, 213, this);\n } else\n {\n LoaderSchermen.getInstance().load(\"Sokoban\", new KiesConfigureerSchermController(dc), 300, 300, this);\n }\n }", "private void verarbeiteInWarenkorbKlick() {\n\n\t\tString titel = text2.getText();\n\t\tString anzahlString = text1.getText();\n\t\tint menge = Integer.parseInt(anzahlString);\n\n\t\tList<Artikel> liste1 = shop.sucheArtikelBezeichnung(titel);\n\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tshop.warenHinzufügen(liste1.get(0), kunde, menge);\n\t\t\t} catch (ArtikelBestandReichtNichtAusException e) {\n\t\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage());\n\t\t\t}\n\t\t} catch (MassengutartikelException e1) {\n\n\t\t\tJOptionPane.showMessageDialog(null, e1.getMessage());\n\t\t}\n\t\ttry {\n\t\t\tshop.schreibeArtikel();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Asignacion_usuario_Perfil1() {\n int CodigoAplicacion = 120;\n initComponents();\n llenadoDeCombos();\n llenadoDeTablas();\n \n\n \n }", "public tela_GerencLogin() {\n initComponents();\n lb_NomeLogin.setText(Sessao.getLogin());\n lb_Id.setText(Integer.toString(Sessao.getId()));\n \n }", "private void remplirUtiliseData() {\n\t}", "private void razia(){\n /* Mereset semua Error dan fokus menjadi default */\n mViewUser.setError(null);\n mViewPassword.setError(null);\n View fokus = null;\n boolean cancel = false;\n\n /* Mengambil text dari form User dan form Password dengan variable baru bertipe String*/\n String user = mViewUser.getText().toString();\n String password = mViewPassword.getText().toString();\n\n /* Jika form user kosong atau TIDAK memenuhi kriteria di Method cekUser() maka, Set error\n * di Form User dengan menset variable fokus dan error di Viewnya juga cancel menjadi true*/\n if (TextUtils.isEmpty(user)){\n mViewUser.setError(\"This field is required\");\n fokus = mViewUser;\n cancel = true;\n }else if(!cekUser(user)){\n mViewUser.setError(\"This Username is not found\");\n fokus = mViewUser;\n cancel = true;\n }\n\n /* Sama syarat percabangannya dengan User seperti di atas. Bedanya ini untuk Form Password*/\n if (TextUtils.isEmpty(password)){\n mViewPassword.setError(\"This field is required\");\n fokus = mViewPassword;\n cancel = true;\n }else if (!cekPassword(password)){\n mViewPassword.setError(\"This password is incorrect\");\n fokus = mViewPassword;\n cancel = true;\n }\n\n /* Jika cancel true, variable fokus mendapatkan fokus */\n if (cancel) fokus.requestFocus();\n else masuk();\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void aenderung() {\r\n\t\tvermittler.aenderungAufgetreten(this); // Vermittler informiert\r\n\t}", "public void Ingresar() {\nTipoCliente();\n\t\t\t\t\t\t\t\t\t\n}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void verarbeite() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "protected void proccesValues() {\n Users user = new Users();\n user.setName(bean.getName());\n user.setSurname(bean.getSurname());\n user.setUsername(bean.getUsername());\n StrongPasswordEncryptor passwordEncryptor = new StrongPasswordEncryptor();\n String encryptedPassword = passwordEncryptor.encryptPassword(bean.getPassword());\n user.setPassword(encryptedPassword);\n \n usersService.persist(user);\n Notification.show(msgs.getMessage(INFO_REGISTERED), Notification.Type.ERROR_MESSAGE);\n resetValues();\n UI.getCurrent().getNavigator().navigateTo(ViewLogin.NAME);\n }", "@Override\n\tpublic void sethPassWord(String nieuwPaswoord) {\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\tp.sethPassword(nieuwPaswoord);\n\t\tem.merge(p);\n\t\t\n\t}", "public frmVerzamelingBeheer() {\n try {\n initComponents();\n \n lblId.setVisible(false);\n\n pnlEdit.setVisible(false);\n\n for (VerzamelingsType type : TypeService.GetAllTypes()) {\n cmbType.addItem(new VerzamelingsType(type.getId(), type.getNaam()));\n cmbEditType.addItem(new VerzamelingsType(type.getId(), type.getNaam()));\n }\n\n \n for (Categorie categorie : CategorieService.GetAllCategories()) {\n cmbCategorie.addItem(new Categorie(categorie.getId(), categorie.getNaam()));\n cmbEditCategorie.addItem(new Categorie(categorie.getId(), categorie.getNaam()));\n }\n \n //vertaling voor JOptionpane\n UIManager.put(\"OptionPane.cancelButtonText\", \"Annuleren\");\n UIManager.put(\"OptionPane.noButtonText\", \"Nee\");\n UIManager.put(\"OptionPane.okButtonText\", \"Oke\");\n UIManager.put(\"OptionPane.yesButtonText\", \"Ja\");\n \n this.setTitle(\"Verzamelingen beheren - Verzamelingenbeheer\");\n \n ShowEditItems(false);\n RefreshList();\n }\n catch (ExceptionInInitializerError ex)\n {\n JOptionPane.showMessageDialog(null, \"Er kan geen verbinding worden gemaakt met de database (\" + ex.getMessage() + \").\", \"Fout\", ERROR_MESSAGE);\n System.exit(1);\n }\n\n }", "public void popoulaRepositorioUsuarios(){\n Usuario usuario1 = new Usuario();\n usuario1.setUsername(\"EliSilva\");\n usuario1.setEmail(\"[email protected]\");\n usuario1.setSenha(\"123\");\n usuario1.setNome(\"Elineide Silva\");\n usuario1.setCPF(\"12345678\");\n\n\n\n Usuario usuario2 = new Usuario();\n usuario2.setUsername(\"gustavo\");\n usuario2.setEmail(\"[email protected]\");\n usuario2.setSenha(\"12345\");\n usuario2.setNome(\"Gustavo\");\n usuario2.setCPF(\"666\");\n\n Usuario usuario3 = new Usuario();\n usuario1.setUsername(\"peixe\");\n usuario1.setEmail(\"[email protected]\");\n usuario1.setSenha(\"1111\");\n usuario1.setNome(\"quem dera ser um peixe\");\n usuario1.setCPF(\"1111\");\n\n Usuario usuario4 = new Usuario();\n usuario1.setUsername(\"segundo\");\n usuario1.setEmail(\"[email protected]\");\n usuario1.setSenha(\"123\");\n usuario1.setNome(\"Elineide Silva\");\n usuario1.setCPF(\"12345678\");\n\n inserir(usuario1);\n inserir(usuario2);\n inserir(usuario3);\n inserir(usuario4);\n }", "static void effacerEnregistrer(){\n users.clear();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource() == buttonRegister) {\n\t\t\tthis.dispose();\n\t\t\tnew Register(userVec, db);\n\t\t\t\n\t\t}else if(e.getSource() == buttonLogin) {\n\t\t\tString name = texNama.getText();\n\t\t\tString password = String.valueOf(texPass.getPassword());\n\t\t\t\n\t\t\tif(passwordValidator(name, password) != -1) {\n\t\t\t\tJOptionPane.showMessageDialog(this, name+\" berhasil login!\");\n\t\t\t\tthis.dispose();\n\t\t\t\tnew Home(userVec, userVec.get(passwordValidator(name, password)), db);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void buildAdmin()\n {\n User admin = userServiceImpl.getUserByUsername(adminUsername);\n try\n {\n //If the application is started for the first time (e.g., the admin is not in the DB)\n if(admin==null)\n { \n \t registerUserService.save(adminUsername,password,Role.Admin); \n }\n //if the application has previously been started (e.g., the admin is already present in the DB)\n else\n {\n \t //Do nothing!! \n }\n \n //Always add this retails when started the application.\n \n \tCountry mexico = new Country();\n \tmexico.setCountryId(1);\n \tmexico.setCountryName(\"México\");\n\t\t\tmexico.setCurrency(\"Peso MXN\");\n\t\t\tmexico.setNickname(\"MX\");\n\t\t\taddCountryService.saveCountry(mexico);\t\n\t\t\t\n\t\t\t\n\t\t\tCountry usa = new Country();\n\t\t\tusa.setCountryId(2);\n\t\t\tusa.setCountryName(\"United States\");\n\t\t\tusa.setCurrency(\"USD\");\n\t\t\tusa.setNickname(\"US\");\n\t\t\taddCountryService.saveCountry(usa);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail1 = new Retail();\n\t\t\tretail1.setRetailId(1);\n\t\t\tretail1.setRetailName(\"Amazon\");\n\t\t\tretail1.setCrawlerName(\"Amazon\");\n\t\t\tretail1.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail1);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail2 = new Retail();\n\t\t\tretail2.setRetailId(2);\n\t\t\tretail2.setRetailName(\"Arome\");\n\t\t\tretail2.setCrawlerName(\"Arome\");\n\t\t\tretail2.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail2);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail3 = new Retail();\n\t\t\tretail3.setRetailId(3);\n\t\t\tretail3.setRetailName(\"Chedraui\");\n\t\t\tretail3.setCrawlerName(\"Chedraui\");\n\t\t\tretail3.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail3);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail4 = new Retail();\n\t\t\tretail4.setRetailId(4);\n\t\t\tretail4.setRetailName(\"Laeuropea\");\n\t\t\tretail4.setCrawlerName(\"Laeuropea\");\n\t\t\tretail4.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail4);\n\t\t\t\n\t\t\tRetail retail5 = new Retail();\n\t\t\tretail5.setRetailId(5);\n\t\t\tretail5.setRetailName(\"Linio\");\n\t\t\tretail5.setCrawlerName(\"Linio\");\n\t\t\tretail5.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail5);\n\t\t\t\n\t\t\tRetail retail6 = new Retail();\n\t\t\tretail6.setRetailId(6);\n\t\t\tretail6.setRetailName(\"Liverpool\");\n\t\t\tretail6.setCrawlerName(\"Liverpool\");\n\t\t\tretail6.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail6);\n\t\t\t\n\t\t\tRetail retail7 = new Retail();\n\t\t\tretail7.setRetailId(7);\n\t\t\tretail7.setRetailName(\"MercadoLibre\");\n\t\t\tretail7.setCrawlerName(\"MercadoLibre\");\n\t\t\tretail7.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail7);\n\t\t\t\n\t\t\tRetail retail8 = new Retail();\n\t\t\tretail8.setRetailId(8);\n\t\t\tretail8.setRetailName(\"NutritionDepot\");\n\t\t\tretail8.setCrawlerName(\"NutritionDepot\");\n\t\t\tretail8.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail8);\n\t\t\t\n\t\t\tRetail retail9 = new Retail();\n\t\t\tretail9.setRetailId(9);\n\t\t\tretail9.setRetailName(\"Osom\");\n\t\t\tretail9.setCrawlerName(\"Osom\");\n\t\t\tretail9.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail9);\n\t\t\t\n\t\t\tRetail retail10 = new Retail();\n\t\t\tretail10.setRetailId(10);\n\t\t\tretail10.setRetailName(\"PerfumesMexico\");\n\t\t\tretail10.setCrawlerName(\"PerfumesMexico\");\n\t\t\tretail10.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail10);\n\t\t\t\n\t\t\tRetail retail11 = new Retail();\n\t\t\tretail11.setRetailId(11);\n\t\t\tretail11.setRetailName(\"PerfumesOnline\");\n\t\t\tretail11.setCrawlerName(\"PerfumesOnline\");\n\t\t\tretail11.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail11);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail12 = new Retail();\n\t\t\tretail12.setRetailId(12);\n\t\t\tretail12.setRetailName(\"Prissa\");\n\t\t\tretail12.setCrawlerName(\"Prissa\");\n\t\t\tretail12.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail12);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tRetail retail13 = new Retail();\n\t\t\tretail13.setRetailId(13);\n\t\t\tretail13.setRetailName(\"Sanborns\");\n\t\t\tretail13.setCrawlerName(\"Sanborns\");\n\t\t\tretail13.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail13);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail14 = new Retail();\n\t\t\tretail14.setRetailId(14);\n\t\t\tretail14.setRetailName(\"Soriana\");\n\t\t\tretail14.setCrawlerName(\"Soriana\");\n\t\t\tretail14.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail14);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail15 = new Retail();\n\t\t\tretail15.setRetailId(15);\n\t\t\tretail15.setRetailName(\"SuperWalmart\");\n\t\t\tretail15.setCrawlerName(\"SuperWalmart\");\n\t\t\tretail15.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail15);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail16 = new Retail();\n\t\t\tretail16.setRetailId(16);\n\t\t\tretail16.setRetailName(\"SuplementosFitness\");\n\t\t\tretail16.setCrawlerName(\"SuplementosFitness\");\n\t\t\tretail16.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail16);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tRetail retail17 = new Retail();\n\t\t\tretail17.setRetailId(17);\n\t\t\tretail17.setRetailName(\"Walmart\");\n\t\t\tretail17.setCrawlerName(\"Walmart\");\n\t\t\tretail17.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail17);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n System.out.println(\"Errors occurred during initialization. System verification is required.\");\n }\n }", "void entrerAuGarage();", "public void buscarGestor(){\r\n\t\t\r\n\t}", "private void addInstituicao() {\n\n if (txtNome.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Nome Invalido\");\n txtNome.grabFocus();\n return;\n } else if (txtNatureza.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Natureza Invalido\");\n txtNatureza.grabFocus();\n return;\n }\n if ((instituicao == null) || (instituicaoController == null)) {\n instituicao = new Instituicao();\n instituicaoController = new InstituicaoController();\n }\n instituicao.setNome(txtNome.getText());\n instituicao.setNatureza_administrativa(txtNatureza.getText());\n if (instituicaoController.insereInstituicao(instituicao)) {\n limpaCampos();\n JOptionPane.showMessageDialog(null, \"Instituicao Cadastrada com Sucesso\");\n }\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public PrnPrivitakVo() {\r\n\t\tsuper();\r\n\t}", "public GUI_Registrazione() {\r\n\t\tsetFont(new Font(\"Arial Black\", Font.BOLD, 12));\r\n\t\tsetTitle(\"Registrazione\");\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 450, 300);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\t\t\r\n\t\t//Creazione lblNome\r\n\t\tJLabel lblNome = new JLabel(\"Nome\");\r\n\t\tlblNome.setBounds(10, 11, 63, 14);\r\n\t\tcontentPane.add(lblNome);\r\n\t\t\r\n\t\t//Creazione lblCognome\r\n\t\tJLabel lblCognome = new JLabel(\"Cognome\");\r\n\t\tlblCognome.setBounds(10, 36, 63, 14);\r\n\t\tcontentPane.add(lblCognome);\r\n\t\t\r\n\t\t//Creazione lblPassword\r\n\t\tJLabel lblPassword = new JLabel(\"Password\");\r\n\t\tlblPassword.setBounds(10, 61, 63, 14);\r\n\t\tcontentPane.add(lblPassword);\r\n\t\t\r\n\t\t//Creazione textfiel tfNome\r\n\t\ttfNome = new JTextField();\r\n\t\ttfNome.setBounds(83, 8, 86, 20);\r\n\t\tcontentPane.add(tfNome);\r\n\t\ttfNome.setColumns(10);\r\n\t\t//GESTIONE EVENTO RILASCIO DI UNA KEY\r\n\t\ttfNome.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\t//L'evento va a settare in automatico tutto il testo inserito dall'utente come minuscolo\r\n\t\t\tpublic void keyReleased(KeyEvent e) {\r\n\t\t\t\tint pos = tfNome.getCaretPosition();\r\n\t\t tfNome.setText(tfNome.getText().toLowerCase());\r\n\t\t tfNome.setCaretPosition(pos);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\t//Creazione textfiel tfNome\r\n\t\ttfCognome = new JTextField();\r\n\t\ttfCognome.setBounds(83, 33, 86, 20);\r\n\t\tcontentPane.add(tfCognome);\r\n\t\ttfCognome.setColumns(10);\r\n\t\t//GESTIONE EVENTO RILASCIO DI UNA KEY\r\n\t\ttfCognome.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\t//L'evento va a settare in automatico tutto il testo inserito dall'utente come minuscolo\r\n\t\t\tpublic void keyReleased(KeyEvent e) {\r\n\t\t\t\tint pos = tfCognome.getCaretPosition();\r\n\t\t\t\ttfCognome.setText(tfCognome.getText().toLowerCase());\r\n\t\t\t\ttfCognome.setCaretPosition(pos);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\t//Creazione btnConferma \r\n\t\tJButton btnConferma = new JButton(\"Conferma\");\r\n\t\tbtnConferma.setBounds(175, 227, 105, 23);\r\n\t\tcontentPane.add(btnConferma);\r\n\t\t//Gestione evento click\r\n\t\tbtnConferma.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\t/*\r\n\t\t\t * si crea l'eventuale directory \"C:\\\\EmotionalMapsFile\\\\Utenti\\\\\"\r\n\t\t\t * tramite i dati inseriti nelle apposite textfield si va a creare il file utente con salvati i dati ad esso relativi\r\n\t\t\t */\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tu.Nome = tfNome.getText();\r\n\t\t\t\tu.Cognome = tfCognome.getText();\r\n\t\t\t\tu.ID = u.setID(u.Nome, u.Cognome );\r\n\t\t\t\tu.Password = tfPassword.getText();\r\n\t\t\t\tString pathfile = path+u.ID+\".txt\";\r\n\t\t\t\tFile file = new File(pathfile);\r\n\t\t\t\tfile = new File(pathfile);\t\r\n\t\t\t\t//richiamo i metodi per creazione, scrittura e salvataggio file\r\n\t\t\t\tr.newDir(p);\r\n\t\t\t\tr.newDir(path);\r\n\t\t\t\tr.wrFile(pathfile, file, u, r);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\t//Creazione textfiel tfPassowrd\r\n\t\ttfPassword = new JTextField();\r\n\t\ttfPassword.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyReleased(KeyEvent e) {\r\n\t\t\t\tint pos = tfPassword.getCaretPosition();\r\n\t\t\t\ttfPassword.setText(tfPassword.getText().toLowerCase());\r\n\t\t\t\ttfPassword.setCaretPosition(pos);\r\n\t\t\t}\r\n\t\t});\r\n\t\ttfPassword.setBounds(83, 58, 86, 20);\r\n\t\tcontentPane.add(tfPassword);\r\n\t\ttfPassword.setColumns(10);\r\n\t\t\r\n\t\t//Creazione btnBack\r\n\t\tJButton btnBack = new JButton(\"Back\");\r\n\t\tbtnBack.setBounds(335, 227, 89, 23);\r\n\t\tcontentPane.add(btnBack);\r\n\t\t//gestione evento click\r\n\t\tbtnBack.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\t/*\r\n\t\t\t * si cancella il contenuto delle textfield\r\n\t\t\t * si nasconde il frame GUI_Registrazione e si mostra il main EmotionalMaps\r\n\t\t\t */\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\tu.cleanBox(tfNome, tfCognome, tfPassword);\r\n\t\t\tm.FrameBack();\r\n\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}", "public static void main(String[] args) throws NoSuchAlgorithmException {\n UserController uc = new UserController();\n uc.getAllUsers();\n System.out.println(uc.getUserByEmailWithValidation(\"[email protected]\"));\n System.out.println(uc.getUserByEmailWithValidation(\"[email protected]\"));\n uc.updateUserStatusById(3, false);\n uc.updateUserStatusById(4,false);\n System.out.println(\"Aktywni\");\n uc.getAllUsersWithStatus(true).forEach(System.out::println);\n System.out.println(\"Nieaktywni\");\n uc.getAllUsersWithStatus(false).forEach(System.out::println);\n System.out.println(uc.updateUserRoleById(2,Role.ROLE_ADMIN));\n System.out.println(uc.updateUserRoleById(5,Role.ROLE_ADMIN));\n System.out.println(\"admini: \");\n System.out.println(uc.getAllUsersWithRole(Role.ROLE_ADMIN));\n System.out.println(\"Ilość aktywnych uzytkowników: \" + uc.countActiveUsers());\n System.out.println(\"Ilosc Admin: \" + uc.countAdmins());\n uc.getAllusersOrderByRegistrationDateDesc().forEach(System.out::println);\n System.out.println(\"posortowanie Aadmini: \");\n uc.getAllAdminsOrderByEmailAsc().forEach(System.out::println);\n System.out.println(\"Actywin admini posortowanii:\");\n uc.getAllActiveAdminsOrderByEmailAsc().forEach(System.out::println);\n System.out.println(\"trzech pierwszych urzytkowników\");\n uc.getFirst3UsersOrderByRegistrationDateAsc().forEach(System.out::println);\n uc.printAdmins();\n }", "public void telefonoAgregar() {\r\n\t\t\tlog.info(\"telefono agregar \" + nuevoTelef.getTelefono());\r\n\t\tif( nuevoTelef.getTelefono()==null||nuevoTelef.getTelefono().equals(\"\")){\r\n\t\t\tmensaje= \"Debe ingresar un número telefónico\";\r\n\t\t\tmsg = new FacesMessage(FacesMessage.SEVERITY_FATAL,\r\n\t\t\tConstants.MESSAGE_ERROR_FATAL_TITULO, mensaje);\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\r\n\t\t\t}\r\n\t\telse{\r\n\t\t\tlog.info(\"telefono agregar \" + nuevoTelef.getTelefono());\r\n\t\t\tboolean verifica = false;\r\n\t\t\tmensaje = null;\r\n\t\tif (TipoTelef == 1)\r\n\t\t\tnuevoTelef.setTipotelefono(\"F\");\r\n\t\telse\r\n\t\t\tnuevoTelef.setTipotelefono(\"C\");\r\n\t\t// claro\r\n\t\tif (operadorTelefonico == 1)\r\n\t\t\tnuevoTelef.setOperadorTelefonico(\"Claro\");\r\n\t\telse if (operadorTelefonico == 2)\r\n\t\t\tnuevoTelef.setOperadorTelefonico(\"Movistar\");\r\n\t\telse if (operadorTelefonico == 3)\r\n\t\t\tnuevoTelef.setOperadorTelefonico(\"Nextel\");\r\n\t\t\tnuevoTelef.setNuevoT(1);\r\n\t\t\tnuevoTelef.setIdtelefonopersona(0);\r\n\t\t\tnuevoTelef.setTbEstadoGeneral(objEstadoGeneralService.findEstadogeneral(17));\r\n\t\tfor (int i = 0; i < TelefonoPersonaList.size(); i++) {\r\n\t\t\tlog.info(\" \" + TelefonoPersonaList.get(i).getTelefono() + \" \"\t+ nuevoTelef.getTelefono());\r\n\t\t\tif (TelefonoPersonaList.get(i).getTelefono().equals(nuevoTelef.getTelefono())) {\r\n\t\t\t\tverifica = false;\r\n\t\t\t\tmensaje = \"el telefono ya se encuentra registrado en la lista de referencias\";\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tverifica = true;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (TelefonoPersonaList.size() == 0) {\r\n\t\t\tverifica = true;\r\n\t\t\t}\r\n\t\t\tif (verifica) {\r\n\t\t\t\t//int cantidad=TelefonoPersonaList.size();\r\n\t\t\t\tnuevoTelef.setItem(\"Por Agregar\");\t\r\n\t\t\t\tTelefonoPersonaList.add(nuevoTelef);\r\n\t\t\t\tlog.info(\"se agrego \" + nuevoTelef.getTelefono());\r\n\t\t\t }\r\n\t\t\tif (mensaje != null) {\r\n\t\t\tmsg = new FacesMessage(FacesMessage.SEVERITY_FATAL,\r\n\t\t\tConstants.MESSAGE_ERROR_FATAL_TITULO, mensaje);\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\r\n\t\t\t}\r\n\t\t\tnuevoTelef = new TelefonoPersonaSie();\r\n\t\t\t}\r\n\t}", "public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "private UsineJoueur() {}", "public gestion_utilisateur() {\n initComponents();\n }", "public VentanaDialogRegister(ListadoUsuarios listadoUsuarios) {\n\t\tgetContentPane().setLayout(null);\n\t\t\n\t\tthis.listadoUsuarios = listadoUsuarios;\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBackground(new Color(0, 139, 139));\n\t\tpanel.setBounds(0, 0, 444, 271);\n\t\tgetContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\ttxtContrasea = new JPasswordField();\n\t\ttxtContrasea.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtContrasea.setBounds(183, 114, 113, 23);\n\t\tpanel.add(txtContrasea);\n\t\ttxtContrasea.setColumns(10);\n\t\t\n\t\ttxtNombreDeUsuario = new JTextField();\n\t\ttxtNombreDeUsuario.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtNombreDeUsuario.setBounds(183, 73, 113, 30);\n\t\tpanel.add(txtNombreDeUsuario);\n\t\ttxtNombreDeUsuario.setColumns(10);\n\t\t\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Registrar\");\n\t\t\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\n\t\t\t\t\tauxUsuario = listadoUsuarios.buscarUnUsuario(txtNombreDeUsuario.getText());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(auxUsuario==null){\n\t\t\t\t\tauxUsuario= new Usuario();\n\t\t\t\t\tauxUsuario.setAdmin(false);\n\t\t\t\t\tauxUsuario.setNombreU(txtNombreDeUsuario.getText());\n\t\t\t\t\tauxUsuario.setClave(txtContrasea.getText());\n\t\t\t\t\tlistadoUsuarios.agregarUsuario(auxUsuario);\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"USUARIO REGISTRADO\");\n\t\t\t\t\tdispose();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"ERROR! ESE NOMBRE DE USUARIO YA EXISTE\");\n\t\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(172, 205, 124, 30);\n\t\tpanel.add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"REGISTRO DE USUARIOS\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tlblNewLabel.setBounds(134, 11, 196, 37);\n\t\tpanel.add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Nombre de Usuario:\");\n\t\tlblNewLabel_1.setFont(new Font(\"Trebuchet MS\", Font.BOLD, 14));\n\t\tlblNewLabel_1.setBounds(54, 76, 128, 23);\n\t\tpanel.add(lblNewLabel_1);\n\t\t\n\t\tJLabel lblNewLabel_1_1 = new JLabel(\"Clave:\");\n\t\tlblNewLabel_1_1.setFont(new Font(\"Trebuchet MS\", Font.BOLD, 14));\n\t\tlblNewLabel_1_1.setBounds(119, 113, 79, 23);\n\t\tpanel.add(lblNewLabel_1_1);\n\t}", "public gesPers() {\n initComponents();\n typePersonnel = TypePersonnel.EMPLOYE;\n \n TreeMap<String, Personnel> tmap = new TreeMap<>();\n try {\n AccesBDOracle.getInstance().charger(tmap);\n } catch (SQLException ex) {\n showMessageDialog(this, \"Problème de chargement de la base de données\", \"Erreur\", ERROR_MESSAGE);\n Logger.getLogger(gesPers.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n cont = new Conteneur<>(tmap);\n cont.dernier();\n \n labelNbObjets.setText(\"0\");\n \n this.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n if(modif)\n switch(showConfirmDialog(gesPers.this, \"Voulez-vous sauvegarder votre travail ?\", \"Quitter ...\", YES_NO_CANCEL_OPTION))\n {\n case YES_OPTION :\n gesPers.this.sauvegarder();\n case NO_OPTION :\n System.exit(0); \n }\n else\n System.exit(0);\n }\n });\n \n this.modeAffichage();\n this.afficher();\n }", "public Login() {\n initComponents();\n hideregister ();\n }", "public principal() {\n initComponents();\n \n // Verificando si se completó el nivel\n verificar_niveles();\n \n \n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint a;\r\n\t\t\t\t s1= idJt.getText();\r\n\t\t\t\t s2= new String(idPasswordJp.getPassword());\r\n\t\t\t\t s3= userNameJt.getText();\r\n\t\t\t\t s4= nickNameJt.getText();\r\n\t\t\t\t a=checkRegister.checkString(s1,s2,s3,s4,s5);\r\n\t\t\t\tif(a==0) {\r\n\t\t\t\t\tcheckNews_dao cn = new checkNews_dao();\r\n\t\t\t\t\tif(cn.checkId(s1)) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(registerJf, \"账号已存在\");\r\n\t\t\t\t\t\tidJt.setText(\"\");\r\n\t\t\t\t\t\tcn.closeAll();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(cn.checkNickName(s4)) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(registerJf, \"昵称已存在\");\r\n\t\t\t\t\t\tnickNameJt.setText(\"\");\r\n\t\t\t\t\t\tcn.closeAll();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tuserNews_dao un=new userNews_dao();\r\n\t\t\t\t\t\tun.insertNews(s1, s2, s3, s4, s5);\r\n\t\t\t\t\t\tun.closeAll();\r\n\t\t\t\t\t\tempty();\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(registerJf, \"注册成功\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(registerJf, \"请把信息输入完整!\");\r\n\t\t\t\t}\r\n\t\t\t}", "public signadmin() {\n initComponents();\n }", "public String getGebruikersnaam() {\n return gebruikersnaam;\n }", "public TelaEsqueceuSenha() {\n initComponents();\n }", "public JPasswordChange(Bonde innloggetBonde) {\n this.newPass2 = \"\";\n this.gammelPass = \"\";\n this.newPass1 = \"\";\n initComponents();\n this.innloggetBonde = innloggetBonde;\n\n }", "public abstract void creationGrille();", "@Override\r\n\tpublic void verteidigen(Lebewesen lebewesen) {\n\t}", "public login() {\n initComponents();\n \n \n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "@Override\r\n\tpublic void NroAccount() {\n\t\t\r\n\t}", "public void exemplaarToevoegen() {\n\n try {\n Database database = new Database();\n List<Exemplaar> exemplaren_tmp = database.getExemplaren(boek.getBoek_ID());\n Integer exemplaar_aantal = Integer.parseInt(exemplaren_tmp.get(exemplaren_tmp.size() - 1).getExemplaarVolgnummer().toString());\n\n // vang af als er nog geen exemplaren zijn\n if (exemplaar_aantal < 1) {\n database.insertExemplaar(boek.getBoek_ID(), 1);\n } else {\n database.insertExemplaar(boek.getBoek_ID(),\n exemplaar_aantal + 1,\n 1);\n }\n } catch (SQLException | NamingException ex) {\n LOGGER.log(Level.SEVERE, \"Error {0}\", ex);\n System.out.println(ex.getMessage());\n }\n\n //en refresh als niet leeg is\n if (geselecteerdExemplaar != null) {\n geselecteerdExemplaar.refresh();\n }\n this.refresh();\n\n }", "public void createUser(String name, String password, Boolean uBtn, Boolean eBtn){\n\t\t\n\t\tif(eBtn) {\n\t\t\tif(password.equals(\"\")) {\n\t\t\t\tSystem.out.println(\"Please enter Password\");\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No password entered \" , \"Empty Password\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}else if(name.equals(\"\")) {\n\t\t\t\tSystem.out.println(\"Please enter UserName\");\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No UserName entered \" , \"Empty UserName\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}else {\n\t\t\t\tEmployee e1 = new Employee(name);\n//\t\t\t\te1.setName(name);\n\t\t\t\t\n\t\t\t\tonlinestore.employeeList.put(e1, password);\n\t\t\t\tSystem.out.println(\"New Employee Created, Please login\");\n\t\t\t\tJOptionPane.showMessageDialog(null, \"New Employee Created. PLease Login Again\" , \"new Employee\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t\t\n\t\t\t\tbuildEmployeeLoginGUI();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif(uBtn) {\n\t\t\t\n\t\t\tif(password.equals(\"\")) {\n\t\t\t\tSystem.out.println(\"Please enter Password\");\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No password entered \" , \"Empty Password\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}else if(name.equals(\"\")) {\n\t\t\t\tSystem.out.println(\"Please enter UserName\");\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No UserName entered \" , \"Empty UserName\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"User radio button pressed\");\n\t\t\t\tCustomer c1 = new Customer(name);\n\t\t\t\t//c1.setName(name);\n\t\t\t\t\n\t\t\t\tonlinestore.customerList.put(c1, password);\n\t\t\t\t//System.out.println(\"New Customer Created, Please Login\");\n\t\t\t\tJOptionPane.showMessageDialog(null, \"New Customer Created. Please Login Again \" , \"new Customer\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t\tbuildCustomerLoginGUI();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\n\t}", "public static void ulogujSeKaoAdmin() {\r\n\t\tprikazIProveraSifre(-2, 'a');\r\n\t}", "public AdministrarUsuarios() {\n initComponents();\n modelo = (DefaultTableModel) tablaUsuarios.getModel();\n tablaUsuarios.getTableHeader().setReorderingAllowed(false);\n tablaUsuarios.getTableHeader().setDefaultRenderer(new Facturar.HeaderColor());\n \n manejador.CargarUsuarios();\n listaTotalUsuarios = manejador.ObtenerListaUsuarios();\n cargarUsuariosEnTabla(listaTotalUsuarios);\n ocultarColumnaID();\n }", "public Usuario(String username,String contrasena,String email,ListaCancion canciones){\n this.username=username;\n this.contrasena=contrasena;\n this.email=email;\n this.canciones=canciones;\n favoritas=new ListaCancion();\n RegistrarListaCancion(canciones);\n hash=new HashMap<>();\n hash.put(username,contrasena);\n }", "public void asetaTeksti(){\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tTeachersOperation to = new TeachersOperation();\n\t\t\t\tString tUserName = jtf1.getText(),\n\t\t\t\t\t\ttPassword = jpsf.getText();\n\t\t\t\tif (\"\".equals(tUserName) || tUserName == null){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"用户名不能为空\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (\"\".equals(tPassword) || tPassword == null){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"密码不能为空\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tTeachers teacher = new Teachers();\n\t\t\t\tteacher.settUserName(tUserName);\n\t\t\t\tteacher.settPassword(tPassword);\n\t\t\t\tTeachers returnTea = to.login(teacher);\n\t\t\t\tif(returnTea != null)\n\t\t\t\t{\n\t\t\t\t\tdispose();\n\t\t\t\t\tnew TeacherView().show();\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"登录失败\");\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void act() {\n\t\tSystem.out.println(\"Person \"+subject.hashCode()+\"gruendet Unternehmen\");\n\t\tnew Unternehmen(subject);\n\t}", "public void teken(){\n removeAll();\n \n //eerste tekening\n if(tekenEerste != false){\n tekenMuur();\n tekenSleutel();\n veld[9][9] = 6;\n tekenEerste = false;\n tekenBarricade();\n }\n \n //methode die de speler de waarde van de sleutel geeft aanroepen\n sleutelWaarde();\n \n //de methode van het spel einde aanroepen\n einde();\n \n //vernieuwd veld aanroepen\n veld = speler.nieuwVeld(veld);\n \n //het veld tekenen\n for(int i = 0; i < coordinaten.length; i++) {\n for(int j = 0; j < coordinaten[1].length; j++){\n switch (veld[i][j]) {\n case 1: //de sleutels\n if(i == sleutel100.getY() && j == sleutel100.getX()){\n coordinaten[i][j] = new SleutelVakje(100);\n }\n else if (i == sleutel1002.getY() && j == sleutel1002.getX()){\n coordinaten[i][j] = new SleutelVakje(100);\n }\n else if (i == sleutel200.getY() && j == sleutel200.getX()){\n coordinaten[i][j] = new SleutelVakje(200);\n }\n else if (i == sleutel300.getY() && j == sleutel300.getX()){\n coordinaten[i][j] = new SleutelVakje(300);\n } break;\n case 2: //de muren\n coordinaten[i][j] = new MuurVakje();\n break;\n // de barricades\n case 3:\n coordinaten[i][j] = new BarricadeVakje(100);\n break;\n case 4:\n coordinaten[i][j] = new BarricadeVakje(200);\n break;\n case 5:\n coordinaten[i][j] = new BarricadeVakje(300);\n break;\n case 6: // het eindveld vakje\n coordinaten[i][j] = new EindveldVakje();\n break;\n default: // het normale vakje\n coordinaten[i][j] = new CoordinaatVakje();\n break;\n }\n //de speler\n coordinaten[speler.getY()][speler.getX()] = new SpelerVakje();\n \n //het veld aan de JPanel toevoegen\n add(coordinaten[i][j]);\n }\n }\n System.out.println(\"Speler waarde = \" + speler.getSleutelWaarde());\n revalidate();\n repaint();\n }", "public frmUsuarios() {\n initComponents();\n mostrar(\"\");\n inhabilitar();\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 }", "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 }", "private void charge_up() throws GB_Exception {\n try{\n if(PersonalDataController.getInstance().existRegistry(username)){\n putPersonalInformation();\n }else{\n putDefaultInformation();\n }\n } catch (SQLException | IOException ex) {\n LOG.error(ex);\n throw new GB_Exception(\"Error al carga informacion de usuario. Comuniquese con su administrador.\");\n }\n }" ]
[ "0.63353103", "0.6188612", "0.6173947", "0.6148966", "0.611368", "0.60796607", "0.60571545", "0.59564", "0.5924154", "0.5922402", "0.59123737", "0.58699715", "0.5868117", "0.58609813", "0.5852022", "0.583632", "0.5830562", "0.5819052", "0.58032143", "0.57885504", "0.5787027", "0.5762926", "0.5756109", "0.57368433", "0.57362425", "0.57215077", "0.57007515", "0.5692712", "0.5680466", "0.5677784", "0.5676618", "0.56703043", "0.5669795", "0.566826", "0.5657452", "0.56465274", "0.56446177", "0.5639794", "0.5631553", "0.5618258", "0.5610143", "0.5608517", "0.5607425", "0.55956733", "0.55904305", "0.5582719", "0.5579629", "0.55755246", "0.55738145", "0.5566476", "0.5562702", "0.55619466", "0.55386364", "0.55312455", "0.5524047", "0.5522524", "0.5512276", "0.5503149", "0.54999334", "0.54978967", "0.5496404", "0.549455", "0.54865295", "0.5484815", "0.54841286", "0.5480373", "0.5479794", "0.5478668", "0.54729176", "0.54707015", "0.5466487", "0.546461", "0.5464286", "0.54629374", "0.5457084", "0.5455189", "0.5455115", "0.5454216", "0.5453475", "0.54464877", "0.5445328", "0.5442976", "0.5441663", "0.5441296", "0.54395795", "0.5434634", "0.5419047", "0.5412391", "0.54078305", "0.5406466", "0.5405446", "0.5400764", "0.53972024", "0.53959954", "0.53935456", "0.53884465", "0.53868943", "0.53852654", "0.5384967", "0.5382506", "0.5379935" ]
0.0
-1
Haalt aan de hand van de cookie gebruikers informatie op
@RequestMapping("/getUserInfo") public UserInfo getUserInfo(@CookieValue(value = "userInfo", defaultValue = "") String userCookie){ User userObj = null; if(userCookie != null && !userCookie.equals("")){ String user = userCookie.split("~~~")[0]; String pass = userCookie.split("~~~")[1]; String valid = userCookie.split("~~~")[2]; if(Boolean.valueOf(valid)){ userObj = userService.getUser(user, pass); } } return userObj != null ? new UserInfo(userObj.getUserName(), userObj.getFirstName(), userObj.getLastName(), userObj.getEmailAddress(), userObj.getAddress(), userObj.getTelephoneNumber()) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void part2(){\n Cookie c1 = new Cookie(\"uid\", \"2018\", 1800,false);\n Cookie c2 = new Cookie(\"PICK_KEY\", \"ahmd13ldsws8cw\",10800,true);\n Cookie c3 = new Cookie(\"REMEMBER_ME\",\"true\",10800,true);\n }", "@RunPrivileged\n\tprivate void addRoutedokterCookie() {\n\n\t\tStringBuilder value = new StringBuilder();\n\t\tvalue.append(\"email:\" + object.getEmail());\n\n\t\t// Lege waardes hoeven niet te worden opgeslagen in cookie\n\t\tif (StringUtils.isNotEmpty(object.getVoornaam())) {\n\t\t\tvalue.append(COOKIE_VALUE_SEPERATOR + \"voornaam:\"\n\t\t\t\t\t+ object.getVoornaam());\n\t\t}\n\n\t\tif (StringUtils.isNotEmpty(object.getNaam())) {\n\t\t\tvalue.append(COOKIE_VALUE_SEPERATOR + \"naam:\" + object.getNaam());\n\t\t}\n\n\t\tif (StringUtils.isNotEmpty(object.getTelefoon())) {\n\t\t\tvalue.append(COOKIE_VALUE_SEPERATOR + \"tel:\" + object.getTelefoon());\n\t\t}\n\n\t\tMap<String, Object> properties = new HashMap<String, Object>();\n\t\tproperties.put(\"maxAge\", MAX_COOKIE_AGE);\n\t\tproperties.put(\"domain\", FacesContext.getCurrentInstance()\n\t\t\t\t.getExternalContext().getRequestServerName());\n\t\tproperties.put(\"path\", FacesContext.getCurrentInstance()\n\t\t\t\t.getExternalContext().getRequestContextPath());\n\n\t\tFacesContext.getCurrentInstance().getExternalContext()\n\t\t\t\t.addResponseCookie(COOKIE_NAME, value.toString(), properties);\n\t}", "private String createCookies() {\n\n String bengLoginID = uid + \"\";\n String timeStr = MyApplication.getInstance().authorTime;\n ToastUtil.toast(timeStr + \"\");\n String cookes = MyApplication.getInstance().bengLoginId + \"; \" + MyApplication.getInstance().userHit + \"; \" + MyApplication.getInstance().authorID + \"; \" + timeStr + \"; \" + MyApplication.getInstance().phpSessid;\n ToastUtil.toast(cookes);\n return cookes;\n\n }", "@Override\r\n public void getCookie(String name)\r\n {\n\r\n }", "@Override\r\n public void getAllCookies()\r\n {\n\r\n }", "@Override\n public void addCookie(Cookie arg0) {\n\n }", "GroupKey appCookie();", "@Override\n\t\tpublic void addCookie(Cookie cookie) {\n\t\t\t\n\t\t}", "@DOMSupport(DomLevel.ONE)\r\n @Property String getCookie();", "public Result signin(){\n\tCookie ck = new Cookie(\"initialcookie\",\"cookievalue\", null, null, null, false, false);\n\treturn ok(views.html.signin.render()).withCookies(ck);\n}", "@Override\n\tpublic void addCookie(Cookie cookie) {\n\t}", "@Override\n protected OptionalThing<String> getCookieRememberMeKey() {\n return OptionalThing.of(config.getCookieRememberMeShowbaseKey()); // if hybrid with cookie\n }", "public void doCookieStuff(Users user)\n {\n HttpServletResponse response = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();\n if (userSession.isRemember())\n {\n String uuid = UUID.randomUUID().toString();\n rememberDAOImpl.saveLogin(uuid, user);\n addCookie(response, \"remember\", uuid, 2592000); //thats 30 days in seconds\n } else {\n rememberDAOImpl.removeLogin(user);\n removeCookie(response, \"remember\");\n }\n }", "public void eatCookie(){\n}", "public void createCookie(final String cookie);", "private void createLoginCookie(HttpServletResponse response, String userName, String password) {\n Cookie appCookie = new Cookie(\"costsManager\", userName + \"_\" + password);\n appCookie.setMaxAge(99999);\n response.addCookie(appCookie);\n }", "public static void acceptCookies() {\n WebElement acceptButton = Browser.driver.findElement(ACCEPT_COOKIES_BUTTON);\n if(acceptButton.isDisplayed()){\n click(ACCEPT_COOKIES_BUTTON);\n }\n }", "Cookie(){\n number = 0;\n bakeTemp = 0;\n bakeTime = 0;\n isReady = false;\n\n }", "public String getSeCookie() {\n return seCookie;\n }", "Cookie[] getCookies();", "private Cookie getLoginCookie(boolean rememberMe,String login){\r\n\t\tCookie loginCookie=null;\r\n\t\tif(rememberMe)\r\n\t\t{\r\n\t\t\tloginCookie = new Cookie(CookieKeys.LOGIN, login);\r\n\t\t\tloginCookie.setPath(\"/\");\r\n\t\t\tloginCookie.setMaxAge(CookieKeys.MAX_AGE);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tloginCookie = new Cookie(CookieKeys.LOGIN, null);\r\n\t\t\tloginCookie.setMaxAge(0);\r\n\t\t}\r\n\t\treturn loginCookie;\r\n\t}", "private static Cookie getCookie() {\n if (cookie == null) {\n synchronized (DefaultEntityManagerImpl.class) {\n if (cookie == null) {\n cookie = new Cookie(cookieName, getAppTokenId());\n }\n }\n }\n return cookie;\n }", "public Cookie() {\n }", "public void addCookie(Cookie cookie) {\n\t\t\n\t}", "protected String getJWTFromCookie(HttpServletRequest req) {\n String serializedJWT = null;\n Cookie[] cookies = req.getCookies();\n if (cookies != null) {\n for (Cookie cookie : cookies) {\n if (cookieName.equals(cookie.getName())) {\n LOG.info(cookieName\n + \" cookie has been found and is being processed\");\n serializedJWT = cookie.getValue();\n break;\n }\n }\n }\n return serializedJWT;\n }", "public ServerCookie() {\n\n }", "public void createCookie(final String cookie, final String options);", "private void loginSubmit(boolean rememberValues)\n\t{\n\t\tif((usernameItem.getValueAsString() == null) || (passwordItem.getValueAsString() == null))\n\t\t\treturn;\n\t\tString local = localItem.getValueAsString();\n\t\tif(local == null)\n\t\t\tlocal = \"\";\n\t\t\n\t\tif (rememberValues) {\n\t\t\tlong cookieLifespan = 1000 * 60 * 60 * 24 * 365; // one year\n\t\t Date expires = new Date(System.currentTimeMillis() + cookieLifespan);\n\t\t \n\t\t Cookies.setCookie(\"bffRememberNameLoc\", \"true\", expires, null, \"/\", false);\n\t\t \n\t\t\tString username = usernameItem.getValueAsString();\n\t\t\tCookies.setCookie(\"bffLastName\", username, expires, null, \"/\", false);\n\t\t\tCookies.setCookie(\"bffLastLocation\", local, expires, null, \"/\", false);\n\t\t} else {\n\t\t\tCookies.removeCookie(\"bffRememberNameLoc\", \"/\");\n\t\t\tCookies.removeCookie(\"bffLastName\", \"/\");\n\t\t\tCookies.removeCookie(\"bffLastLocation\", \"/\");\n\t\t}\n\t\t\n\t\tmyCallbackInterface.performLoginCallback(usernameItem.getValueAsString(), \n\t\t\t\t\t\t\t\t\t\t\t\t passwordItem.getValueAsString(),\n\t\t\t\t\t\t\t\t\t\t\t\t local);\n\t\tdestroy();\n\t}", "private void loginAdmin(HttpServletRequest request, HttpServletResponse response) throws IOException, SQLException {\n\t\tString username = request.getParameter(\"username\");\n\t\tString pass = request.getParameter(\"password\");\n\t\tCookie[] theCookieLoop=request.getCookies();\n\t\t\n\t\tif(username.equals(\"admin\") && pass.equals(\"123456\")) {\n\t\t\tif(theCookieLoop !=null) {\n\t\t\t\tfor(Cookie tempCookie:theCookieLoop) {\n\t\t\t\t\tif(\"checkLoginPageAdmin\".equals(tempCookie.getName())) {\n\t\t\t\t\t\ttempCookie.setValue(\"true\");\n\t\t\t\t\t\tresponse.addCookie(tempCookie);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor(Cookie tempCookie:theCookieLoop) {\n\t\t\t\t\tif(\"UserLoginAdmin\".equals(tempCookie.getName())) {\n\t\t\t\t\t\ttempCookie.setValue(request.getParameter(\"username\"));\n\t\t\t\t\t\tresponse.addCookie(tempCookie);\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\tresponse.sendRedirect(\"/WebBuyPhone/admin/darkboard.jsp\");\n\t\t}\n\t\tboolean check;\n\t\tcheck=daoPageAdmin.LoginPageAdmin(request.getParameter(\"username\"),MD5Encrypt.hashPass(request.getParameter(\"password\")));\n\t\tif(check) {\n\t\t\ttheCookieLoop=request.getCookies();\n\t\t\tif(theCookieLoop !=null) {\n\t\t\t\tfor(Cookie tempCookie:theCookieLoop) {\n\t\t\t\t\tif(\"checkLoginPageAdmin\".equals(tempCookie.getName())) {\n\t\t\t\t\t\ttempCookie.setValue(\"true\");\n\t\t\t\t\t\tresponse.addCookie(tempCookie);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor(Cookie tempCookie:theCookieLoop) {\n\t\t\t\t\tif(\"UserLoginAdmin\".equals(tempCookie.getName())) {\n\t\t\t\t\t\ttempCookie.setValue(request.getParameter(\"username\"));\n\t\t\t\t\t\tresponse.addCookie(tempCookie);\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\ttheCookie =new Cookie(\"userLoginPageAdmin\",request.getParameter(\"username\"));\n\t\t\ttheCookie.setMaxAge(60*60*24*365);\n\t\t\tresponse.addCookie(theCookie);\n\t\t\tresponse.sendRedirect(\"/WebBuyPhone/admin/darkboard.jsp\");\n\t\t}\n\t}", "private void setCookies(URLConnection conn) {\n\t\tif (cookies.isEmpty()) {conn.setRequestProperty(\"Cookie\", \"\"); return;}\n\n\t\tconn.setRequestProperty(\"Cookie\", cookies);\n\t\tprocessor.printSys(\"Cookies Set: \" + cookies);\n\t}", "@Override\r\n public void delCookie(String name)\r\n {\n\r\n }", "HttpClientRequest addCookie(Cookie cookie);", "public static void deleteCookieWebUser (HttpServletRequest request, HttpServletResponse response)\n\t{\n\t\tCookie cookie = new Cookie(COOKIE_NAME, \" \");\n\t\tcookie.setComment(\"Compiere Web User\");\n\t\tcookie.setPath(request.getContextPath());\n\t\tcookie.setMaxAge(1); // second\n\t\tresponse.addCookie(cookie);\n\t}", "public static void deleteCookieWebUser (HttpServletRequest request, HttpServletResponse response)\n\t{\n\t\tCookie cookie = new Cookie(COOKIE_NAME, \" \");\n\t\tcookie.setComment(\"Compiere Web User\");\n\t\tcookie.setPath(request.getContextPath());\n\t\tcookie.setMaxAge(1); // second\n\t\tresponse.addCookie(cookie);\n\t}", "public static void deleteCookieWebUser (HttpServletRequest request, HttpServletResponse response)\n\t{\n\t\tCookie cookie = new Cookie(COOKIE_NAME, \" \");\n\t\tcookie.setComment(\"Compiere Web User\");\n\t\tcookie.setPath(request.getContextPath());\n\t\tcookie.setMaxAge(1); // second\n\t\tresponse.addCookie(cookie);\n\t}", "public static void deleteCookieWebUser (HttpServletRequest request, HttpServletResponse response)\n\t{\n\t\tCookie cookie = new Cookie(COOKIE_NAME, \" \");\n\t\tcookie.setComment(\"Compiere Web User\");\n\t\tcookie.setPath(request.getContextPath());\n\t\tcookie.setMaxAge(1); // second\n\t\tresponse.addCookie(cookie);\n\t}", "@Override\n\tpublic CookieDTO cookieView(CookieDTO cookieDTO) throws Exception {\n\t\tSystem.out.println(\"cookie service 실행 CookieView\");\n\t\treturn cookie.cookieView(cookieDTO);\n\t}", "public void buildCookie(Map<String,String> map){\n map.put(\"PHPSESSID\", cookie);\n }", "@Override\r\n\tpublic void setCookie(Date expirationDate, String nameAndValue, String path, String domain, boolean isSecure) {\n\t}", "@Override\n protected URLConnection creaConnessione(String domain) throws Exception {\n URLConnection urlConn = super.creaConnessione(domain);\n WikiLogin wikiLogin = (WikiLogin) LibSession.getAttribute(WikiLogin.WIKI_LOGIN_KEY_IN_SESSION);\n String txtCookies;\n\n // regolo i cookies\n if (wikiLogin != null && wikiLogin.isValido()) {\n txtCookies = wikiLogin.getStringCookies();\n urlConn.setRequestProperty(\"Cookie\", txtCookies);\n }// fine del blocco if\n\n return urlConn;\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n String userId = request.getParameter(\"username\");\r\n String password = request.getParameter(\"pass\");\r\n String remember = request.getParameter(\"remember\");\r\n \r\n HttpSession session = request.getSession();\r\n User user = new UserDAO().login(userId, password);\r\n \r\n if(user != null){//dang nhap thang cong\r\n if(remember != null){\r\n Cookie uCookie = new Cookie(\"username\", userId);\r\n uCookie.setMaxAge(24 * 3600);//hạn 1 ngày\r\n Cookie pCookie = new Cookie(\"password\", password);\r\n pCookie.setMaxAge(24 * 3600);//hạn 1 ngày\r\n response.addCookie(uCookie);\r\n response.addCookie(pCookie);\r\n }\r\n if(user.getRoleId() == 1) {\r\n response.sendRedirect(\"admin\");\r\n session.setAttribute(\"user\", user);\r\n }\r\n else if(user.getStatus() != 1) {//chua active code \r\n response.sendRedirect(\"active\");\r\n request.getSession().setAttribute(\"user\", user);\r\n \r\n } \r\n else {\r\n response.sendRedirect(\"home\"); \r\n session.setAttribute(\"user\", user);\r\n }\r\n }else{\r\n request.setAttribute(\"err\", \"Incorrect Id or Password\");\r\n request.getRequestDispatcher(\"login.jsp\").forward(request, response);\r\n }\r\n \r\n }", "void encryptStateInCookie(HttpServletResponse response, Map<String, String> cleartext) throws EncryptionException;", "private void authorize(){\n\t\t\n\t\tURL authURL = null;\n\t\tURL homeURL = null;\n\t\tURLConnection homeCon = null;\n\t\t\n\t\tString loginPage = GG.GG_LOGIN+\"?ACCOUNT=\"+GG.GG_UID\n\t\t\t+\"&PASSWORD=\"+GG.GG_PASS;\n\t\tString cookieString = \"\";\n\t\tString cookieString1 = \"\";\n\t\t\n\t\ttry{\n\t\t\thomeURL = new URL(GG.GG_HOME);\n\t\t\thomeCon = homeURL.openConnection();\n\t\t\t\n\t\t\t// Look At the headers\n\t\t\tMap headerMap = homeCon.getHeaderFields();\n\t\t\t\n\t\t\t// Look for the Cookie\n\t\t\tif(headerMap.containsKey(\"Set-Cookie\")){\n\t\t\t\t\n\t\t\t\t// this gets the exact value of the header\n\t\t\t\t// otherwise gets some formatted string\n\t\t\t\tcookieString = homeCon.getHeaderField(\"Set-Cookie\");\n\t\t\t\t//log.finest(\"cookie1: \"+cookieString);\n\t\t\t\t\n\t\t\t\tauthURL = new URL(loginPage);\n\t\t\t\tHttpURLConnection.setFollowRedirects(false);\n\t\t\t\tHttpURLConnection loginCon = (HttpURLConnection) authURL.openConnection();\n\t\t\t\t\n\t\t\t\t// doOutput must be set before connecting\n\t\t\t\tloginCon.setAllowUserInteraction(true);\n\t\t\t\tloginCon.setUseCaches(false);\n\t\t\t\tloginCon.setDoOutput(true);\n\t\t\t\tloginCon.setRequestProperty(\"Cookie\", cookieString);\n\t\t\t\tloginCon.connect();\n\t\t\t\t\n\t\t\t\t// Look At the headers\n\t\t\t\tMap headerMap1 = loginCon.getHeaderFields();\n\t\t\t\t\n\t\t\t\tcookieString1 = loginCon.getHeaderField(\"Set-Cookie\");\n\t\t\t\t//log.finest(\"cookie2: \"+cookieString1);\n\t\t\t\tif(!Pattern.matches(\".*\\\\.\"+GG.GG_UID+\"\\\\.\\\\d+.*\", cookieString1)){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString location = loginCon.getHeaderField(\"Location\");\n\t\t\t\tURL gotURL = new URL(location);\n\t\t\t\tHttpURLConnection gotCon = (HttpURLConnection) gotURL.openConnection();\n\t\t\t\t// doOutput must be set before connecting\n\t\t\t\tgotCon.setAllowUserInteraction(true);\n\t\t\t\tgotCon.setUseCaches(false);\n\t\t\t\tgotCon.setDoOutput(true);\n\t\t\t\tgotCon.setRequestProperty(\"Cookie\", cookieString);\n\t\t\t\tgotCon.setRequestProperty(\"Cookie\", cookieString1);\n\t\t\t\t\n\t\t\t\tgotCon.connect();\n\t\t\t\t\n\t\t\t\t// Got the Cookies\n\t\t\t\tcookies[0] = cookieString;\n\t\t\t\tcookies[1] = cookieString1;\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tlog.info(\"Unable to find the Cookie\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\tauthorized = true;\n\t}", "String getCookie(HttpServletRequest request, String name) throws ValidationException;", "private void loggedInUser() {\n\t\t\n\t}", "private static void cookieMonster (HTTPRequest request)\n\t{\n\t /*if (!request.isCookiesParsed ())\n\t {\n\t \t retVal = request.cookieMonster ();\n\t }*/\n\t \n\t}", "public static void addCookieWebUser (HttpServletRequest request, HttpServletResponse response, String webUser)\n\t{\n\t\tCookie cookie = new Cookie(COOKIE_NAME, webUser);\n\t\tcookie.setComment(\"Compiere Web User\");\n\t\tcookie.setPath(request.getContextPath());\n\t\tcookie.setMaxAge(2592000); // 30 days in seconds 60*60*24*30\n\t\tresponse.addCookie(cookie);\n\t}", "public static void addCookieWebUser (HttpServletRequest request, HttpServletResponse response, String webUser)\n\t{\n\t\tCookie cookie = new Cookie(COOKIE_NAME, webUser);\n\t\tcookie.setComment(\"Compiere Web User\");\n\t\tcookie.setPath(request.getContextPath());\n\t\tcookie.setMaxAge(2592000); // 30 days in seconds 60*60*24*30\n\t\tresponse.addCookie(cookie);\n\t}", "public static void addCookieWebUser (HttpServletRequest request, HttpServletResponse response, String webUser)\n\t{\n\t\tCookie cookie = new Cookie(COOKIE_NAME, webUser);\n\t\tcookie.setComment(\"Compiere Web User\");\n\t\tcookie.setPath(request.getContextPath());\n\t\tcookie.setMaxAge(2592000); // 30 days in seconds 60*60*24*30\n\t\tresponse.addCookie(cookie);\n\t}", "public static void addCookieWebUser (HttpServletRequest request, HttpServletResponse response, String webUser)\n\t{\n\t\tCookie cookie = new Cookie(COOKIE_NAME, webUser);\n\t\tcookie.setComment(\"Compiere Web User\");\n\t\tcookie.setPath(request.getContextPath());\n\t\tcookie.setMaxAge(2592000); // 30 days in seconds 60*60*24*30\n\t\tresponse.addCookie(cookie);\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tresp.setContentType(\"type=text/html; charset=utf-8\");\r\n\t\tPrintWriter out = resp.getWriter();\r\n\t\tString username = req.getParameter(\"username\");\r\n\t\tString password = req.getParameter(\"password\");\r\n\t\tout.print(username+\"===\"+password);\r\n\t\treq.getSession().setAttribute(\"remoteusername\", username);\r\n\t\treq.getSession().setAttribute(\"remotepassword\", password);\r\n\t\t\r\n\t\tCookie c1 = new Cookie(\"cooUserName\", username);\r\n\t\tCookie c2 = new Cookie(\"cooPassword\", password);\r\n\t\tc1.setPath(\"/\");\r\n\t\tc2.setPath(\"/\");\r\n\t\tresp.addCookie(c1);\r\n\t\tresp.addCookie(c2);\r\n\t\tc1.setMaxAge(60 * 60 * 24 * 14);\r\n\t\tc2.setMaxAge(60 * 60 * 24 * 14);\r\n\t\tRequestDispatcher dispatcher = req.getRequestDispatcher(\"/main.jsp\");\r\n\r\n\t\tdispatcher .forward(req, resp);\r\n\t\t//super.doPost(req, resp);\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tWebDriver driver;\r\n\t driver = new ChromeDriver();\r\n\t driver.manage().deleteAllCookies();\r\n\t driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n\t driver.get(\"http://www.airtel.in\");\r\n\t //To add a cookie with name: username and its vaue:airtel\r\n\t Cookie cookie = new Cookie(\"username\",\"airtel\");\r\n\t driver.manage().addCookie(cookie);\r\n\t //print this cookie which was just added\r\n\t Set<Cookie> cookieL= driver.manage().getCookies();\r\n\t \r\n\t for(Cookie temp_cookie: cookieL)\r\n\t\t System.out.println(\"Name of the cookie: \"+temp_cookie.getName()+\" and its value \"+temp_cookie.getValue());\r\n\t \r\n\t \r\n\t //To delete a particular cookie\r\n\t /* driver.manage().deleteCookie(cookie);*/\r\n\t //Get Cookie with a specific name – To get a specific cookie.\r\n\t /* Cookie cookie1=driver.manage().getCookieNamed(\"__utmb\");\r\n\t System.out.println(\"Name of the cookie:\"+cookie1.getName()+\"its value: \"+cookie1.getValue());\r\n\t */\r\n\t \r\n\t /*Set<Cookie>cookies=driver.manage().getCookies();\r\n\t for(Cookie cooki: cookies){\r\n\t \t driver.manage().deleteCookie(cooki);\r\n\t System.out.println(\"coookie is deleted and its name was :\"+cooki.getName());\r\n\t }*/\r\n\t \r\n\t \r\n\t \r\n\t}", "private int addCookie(String cookie) {\n\t\tif (cookies.contains(cookie)) return 0; //we have this exact cookie\n\n\t\tString newCookieName = cookie.split(\"=\")[0];\n\t\tif (cookies.contains(newCookieName)) replaceCookies(newCookieName); //we have a cookie with the same name as the new cookie, swap them\n\n\t\tprocessor.printSys(\"New Cookie: \" + cookie);\n\t\tcookies += (cookie + \"; \"); //add the new cookie followed by a semicolon\n\n\t\treturn 1;\n\t}", "public static String encryptCookie(String string) {\n byte[] encryptArray = Base64.getEncoder().encode(string.getBytes());\n String encstr = null;\n try {\n encstr = new String(encryptArray, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n return encstr;\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.967 -0500\", hash_original_method = \"D5A9FC7DDB356B7F9D175C82B50A2AF1\", hash_generated_method = \"24C7574FF957618A543446AAAEE4BC4D\")\n \nprivate void setCookies(String url, String value) {\n if (value.contains(\"\\r\") || value.contains(\"\\n\")) {\n // for security reason, filter out '\\r' and '\\n' from the cookie\n int size = value.length();\n StringBuilder buffer = new StringBuilder(size);\n int i = 0;\n while (i != -1 && i < size) {\n int ir = value.indexOf('\\r', i);\n int in = value.indexOf('\\n', i);\n int newi = (ir == -1) ? in : (in == -1 ? ir : (ir < in ? ir\n : in));\n if (newi > i) {\n buffer.append(value.subSequence(i, newi));\n } else if (newi == -1) {\n buffer.append(value.subSequence(i, size));\n break;\n }\n i = newi + 1;\n }\n value = buffer.toString();\n }\n CookieManager.getInstance().setCookie(url, value);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\n\t\t\r\n\t\t\r\n\t\tString id = \"방그리\";\r\n\t\t\r\n\t\tid = URLEncoder.encode(id, \"utf-8\");\r\n\t\t\r\n\t\tCookie cookie = new Cookie(\"loginId\", id);\r\n\t\tcookie.setMaxAge(60*60*24*30); // 단위는 초단위 \r\n\t\t//cookie.setDomain(\"http://www.naver.com\");\r\n//\t\tcookie.setPath(\"/\");\r\n\t\t\r\n\t\t//쿠키를 헤더에 밀어넣는 작업\r\n//\t\tresponse.setHeader(\"Set-Cookie\",\".......\");\r\n\t\t//밀어넣고~\r\n\t\tresponse.addCookie(cookie);\r\n\t\t// 보내주고~\r\n\t\tresponse.sendRedirect(\"hello2\");\r\n\t\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n private void login(Account account, boolean force) throws Exception {\r\n synchronized (LOCK) {\r\n try {\r\n correctCurrentDomain();\r\n // Load cookies\r\n br.setCookiesExclusive(true);\r\n final Object ret = account.getProperty(\"cookies\", null);\r\n boolean acmatch = Encoding.urlEncode(account.getUser()).equals(account.getStringProperty(\"name\", Encoding.urlEncode(account.getUser())));\r\n if (acmatch) {\r\n acmatch = Encoding.urlEncode(account.getPass()).equals(account.getStringProperty(\"pass\", Encoding.urlEncode(account.getPass())));\r\n }\r\n if (acmatch && ret != null && ret instanceof HashMap<?, ?> && !force) {\r\n final HashMap<String, String> cookies = (HashMap<String, String>) ret;\r\n if (account.isValid()) {\r\n for (final Map.Entry<String, String> cookieEntry : cookies.entrySet()) {\r\n final String key = cookieEntry.getKey();\r\n final String value = cookieEntry.getValue();\r\n this.br.setCookie(MAINPAGE.get(), key, value);\r\n }\r\n return;\r\n }\r\n }\r\n br.setFollowRedirects(true);\r\n br.postPage(MAINPAGE.get() + \"/login.php\", \"user=\" + Encoding.urlEncode(account.getUser()) + \"&pass=\" + Encoding.urlEncode(account.getPass()));\r\n if (br.getURL().contains(\"login.php?e=1\") || !br.getURL().contains(\"panel.php?logged=1\")) {\r\n throw new PluginException(LinkStatus.ERROR_PREMIUM, PluginException.VALUE_ID_PREMIUM_DISABLE);\r\n }\r\n // free vs premium ?? unknown!\r\n br.getPage(\"/premium.php\");\r\n if (br.containsHTML(expire)) {\r\n account.setProperty(\"free\", false);\r\n } else {\r\n account.setProperty(\"free\", true);\r\n }\r\n // Save cookies\r\n final HashMap<String, String> cookies = new HashMap<String, String>();\r\n final Cookies add = this.br.getCookies(MAINPAGE.get());\r\n for (final Cookie c : add.getCookies()) {\r\n cookies.put(c.getKey(), c.getValue());\r\n }\r\n account.setProperty(\"name\", Encoding.urlEncode(account.getUser()));\r\n account.setProperty(\"pass\", Encoding.urlEncode(account.getPass()));\r\n account.setProperty(\"cookies\", cookies);\r\n } catch (final PluginException e) {\r\n account.setProperty(\"cookies\", Property.NULL);\r\n throw e;\r\n }\r\n }\r\n }", "String getRememberMeId();", "public void setSeCookie(String seCookie) {\n this.seCookie = seCookie;\n }", "public static void login(Skier skier){\n String uuid=java.util.UUID.randomUUID().toString();\n response().setCookie(COOKIE_NAME, uuid);\n Session s= new Session(uuid,skier.getId());\n s.save();\n }", "private void signIn() {\n }", "protected void doPost(HttpServletRequest r, HttpServletResponse s) throws ServletException, IOException {\n Cookie ck=new Cookie(\"auth\",\"\"); \n ck.setMaxAge(0);\n s.addCookie(ck); \n RequestDispatcher rd = r.getRequestDispatcher(\"index.jsp\");\n rd.forward(r, s);\n \n }", "@RequestMapping(value = \"/\", method ={RequestMethod.POST,RequestMethod.GET})\n\tpublic String home(HttpServletRequest request, Model model, HttpServletResponse response) {\n\t\t\n\t\t\n\t\t//Variables \n\t\tString cookieName =\"user\";\n\t\tString cookieValue = \"\";//var a obtener\n\t\tString cookie2pass =\"pass\";\n\t\tString cookie2Value = \"\";//var a obener\n\t\tCookie[ ] cookies = request.getCookies( ); //Obtenemos cookies de la peticion\n\t\t\n\t\t\n\t\t//Asignar valor a las cookies\n\t\tif(cookies==null) {\n\t\t\treturn \"home\";\n\t\t}else {\n\t\tfor (Cookie cookie: cookies){\n\t\t\tif (cookieName.equals(cookie.getName())) {\n\t\t\tcookieValue = cookie.getValue();\n\t\t\t//usuario\n\t\t\tif(cookie2pass.equals(cookie.getName())) {\n\t\t\t//contaseña\t\n\t\t\tcookie2Value=cookie.getValue();\n\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Comprobamos si el cookievalue es el del administrador o no\n\t\t\n\t\tif(cookieValue.equals(\"Admin\")&& cookie2Value.equals(\"12345\")) {\n\t\t\t\n\t\t\tList <DTOUsuarios> lista = dao.leeUsuarios();\n\t\t\tmodel.addAttribute(\"lista\", lista);\n\t\t\treturn \"usuario\";\n\t\t\t\n\t\t}else {\n\t\t\t//Si el valor de las cookies no es el anterior significa que el usuario se ha autenticado para acceder a los\n\t\t\t//articulos por ello mostramos articulo.jsp, no hace falta autenticar porque ya lo ha echo antes\n\t\t\t\n\t\t\tList <DTOArticulo> list = daoA.leeArticulo();\n\t\t\tmodel.addAttribute(\"list\", list);\n\t\t\treturn\"articulo\";\n\n\n\t\t\t}\n\t\t\n\t\t\t}\n\t\t\n\t\t\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String name = request.getParameter(\"name\");\n String password = request.getParameter(\"password\");\n Cookie firstName = new Cookie(\"name\", request.getParameter(\"name\"));\n Cookie passWord = new Cookie(\"password\", request.getParameter(\"password\"));\n firstName.setMaxAge(60 * 60 * 24);\n response.addCookie(passWord);\n response.addCookie(firstName);\n response.setContentType(\"text/html\");\n\n try {\n Request(request, response, name, password);\n } catch (Exception ex) {\n Logger.getLogger(dbServlet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "Node.Cookie getCookie( Class type ) {\n return null;\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tCookie[] cookies = req.getCookies();\n\t\tif (cookies != null) {\n\t\t\tfor (Cookie cookie : cookies) {\n\t\t\t\tif (cookie.getName().equals(\"hello-cookie\")) {\n\t\t\t\t\t// cookie has already been created\n\t\t\t\t\tSystem.out.println(\"Replacing old cookie value: \" + cookie.getValue());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Cookie cookie = req.getCookie(\"hello-cookie\"); // Java EE 7\n\n\t\t// creating cookies\n\t\tCookie cook = new Cookie(\"hello-cookie\", req.getParameter(\"cookie\"));\n\t\tcook.setMaxAge(2_000_000_000); // expiry\n\t\tresp.addCookie(cook);\n\n\t}", "private void action_login_utente(HttpServletRequest request, HttpServletResponse response) throws IOException{\n //recupero credenziali di login\n String email = SecurityLayer.addSlashes(request.getParameter(\"email\").toLowerCase());\n email = SecurityLayer.sanitizeHTMLOutput(email);\n String password = SecurityLayer.addSlashes(request.getParameter(\"password\"));\n password = SecurityLayer.sanitizeHTMLOutput(password);\n if(!email.isEmpty() && !password.isEmpty()){\n try {\n //recupero utente dal db\n Utente u = ((PollwebDataLayer)request.getAttribute(\"datalayer\")).getUtenteDAO().getUtenteByEmail(email);\n //controllo che l'utente esista\n if(u != null){\n //controllo i parametri\n if(u.getEmail().equalsIgnoreCase(email) && new BasicPasswordEncryptor().checkPassword(password, u.getPassword())){\n //se l'utente esiste ed è lui\n\n request.setAttribute(\"userName\", u.getNome());\n request.setAttribute(\"user_id\", u.getId());\n System.out.println(u.getId());\n\n SecurityLayer.createSession(request, u.getId());\n\n if (request.getParameter(\"referrer\") != null) {\n response.sendRedirect(request.getParameter(\"referrer\"));\n } else {\n response.sendRedirect(\"/home\");\n }\n }else{\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n request.setAttribute(\"error\", \"Credenziali errate\");\n response.sendRedirect(\"/login?error=100\");\n }\n }\n\n }else{\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login&error=102\");\n }\n }\n }catch (DataException ex) {\n //TODO Handle Exception\n\n }\n } else {\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login?error=101\");\n }\n }\n }", "public void setAuthHash(String serverCookies){\r\n\t\tif(serverCookies != null){\r\n String[] cookies = serverCookies.split(\";\");\r\n for(String s : cookies){\t \t \r\n s = s.trim();\r\n if(s.split(\"=\")[0].equals(\"authash\")){\r\n \t this.authHash = s.split(\"=\")[1];\r\n break;\r\n }\r\n }\r\n }\t\t\r\n\t}", "@GetMapping(\"/createcookie\")\n\tpublic String createCookie(HttpServletResponse response) {\n\t\tCookie cookie = new Cookie(\"name\", \"Akshay\");\n\t\tresponse.addCookie(cookie);\n\t\treturn \"createcookie\";\n\t}", "private static void logedIn(Request req, Response res, CloudService cloud) {\r\n\t\t\tif (cloud.getKorisnici().get(req.cookie(\"userID\")) == null) {\r\n\t\t\t\tString[] params = req.splat();\r\n\t\t\t\tString path;\r\n\t\t\t\tif(params.length == 0)\r\n\t\t\t\t\tpath = \"\";\r\n\t\t\t\telse\r\n\t\t\t\t\tpath = params[0];\r\n\t\t\t\tif(path.equals(\"checkLogin\") || path.equals(\"favicon.ico\"))\r\n\t\t\t\t\treturn;\r\n\t\t\t\tres.redirect(\"/login.html\");\r\n\t\t\t\thalt(302);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(req.session().attribute(\"user\") == null) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tKorisnik k = cloud.getKorisnici().get(req.cookie(\"userID\"));\r\n\t\t\t\t\treq.session().attribute(\"user\", k); // postavi mu korisnika za sesiju\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "@Override\r\n public void delAllCookies()\r\n {\n\r\n }", "public static void tener_Usuario_activo() {\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='username']\").typeKeys(\"ocastro\");\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='password']\").setText(\"bogota2016\");\n\t\t\t\tdesktop.<DomButton>find(\"//BrowserApplication//BrowserWindow//input[@id='loginbtn']\").click();\n\t\t\t\t//end recording\n\t\t\t\tSerenity.takeScreenshot();\n\t}", "@Subscribe\n public void userLoggedOut(final MihmandarEvent.UserLoggedOutEvent event) {\n VaadinSession.getCurrent().close();\n Page.getCurrent().reload();\n\n Cookie authenticationCookie = CookieUtil.getAuthenticationCookie();\n CookieDto cookieDto = null;\n if(authenticationCookie != null){\n String cookie = authenticationCookie.getValue();\n try {\n cookieDto = (CookieDto) CookieUtil.deserializeFromString(cookie);\n String token = cookieDto.getToken();\n if(token != null){\n UserToken userToken = userTokenService.findUserTokenByToken(token);\n userToken.setState(EnumYN.N);\n userTokenService.save(userToken);\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n String result = null;\n try {\n if(cookieDto == null){\n cookieDto = new CookieDto();\n }\n result = CookieUtil.serializeToString(cookieDto);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n Cookie cookieBrowser = new Cookie(CookieUtil.AUTHENTICATION_COOKIE_NAME, result);\n cookieBrowser.setMaxAge(60 * 60 * 24 * 365); // Store cookie for 1 year\n cookieBrowser.setPath(VaadinService.getCurrentRequest().getContextPath());\n VaadinService.getCurrentResponse().addCookie(cookieBrowser);\n }", "@Override\n protected void afterAuthenticating() {\n }", "void addCookie(HttpServletResponse response, Cookie cookie);", "private String cookieOutput(RCCookie cookie) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(SET_COOKIE_TAG);\n\t\tsb.append(' ');\n\t\tif (cookie.name != null) {\n\t\t\tsb.append(cookie.name);\n\t\t\tsb.append(\"=\\\"\");\n\t\t\tsb.append(cookie.value);\n\t\t\tsb.append(\"\\\"; \");\n\t\t}\n\t\tif (cookie.domain != null) {\n\t\t\tsb.append(DOMAIN_TAG);\n\t\t\tsb.append('=');\n\t\t\tsb.append(cookie.domain);\n\t\t\tsb.append(\"; \");\n\t\t}\n\t\tif (cookie.path != null) {\n\t\t\tsb.append(\"Path=\");\n\t\t\tsb.append(cookie.path);\n\t\t\tsb.append(\"; \");\n\t\t}\n\t\tif (cookie.maxAge != null) {\n\t\t\tsb.append(MAX_AGE_TAG);\n\t\t\tsb.append('=');\n\t\t\tsb.append(cookie.maxAge);\n\t\t\tsb.append(\"; \");\n\t\t}\n\t\tif (cookie.isHTTPOnly) {\n\t\t\tsb.append(\"HttpOnly \");\n\t\t}\n\n\t\treturn sb.toString().substring(0, sb.length() - 2);\n\t}", "CookieValue()\n {\n valuesAsString = null;\n }", "@Override\n\tpublic void saveUserCookieWithTx(UserCookieVO userCookie,HttpServletRequest req) {\n\n\t\tCacheUser cacheUser = (CacheUser) req.getAttribute(\"ut\");\n //设置有效时间\n // 生成失效时间\n Calendar timeout = Calendar.getInstance();\n timeout.setTime(new Date());\n timeout.add(Calendar.DAY_OF_YEAR, 30);\n userCookie.setExpirationTime(timeout.getTime());\n \n UserCookieDTO userCookieDTO = userCookieFacade.getbyUserId(userCookie.getUserId());\n if(userCookieDTO == null){\n\t\t\tuserCookie.setCreateTime(new Date());\t\t\n\t\t\tString ip = CommonUtils.getUserIp(req);\n\t\t\tuserCookie.setCreateUserip(ip);\n\t\t\tuserCookie.setCreateUsermac(CommonUtils.getMACAddress(ip));\n\t\t\tuserCookie.setCreateUsername(cacheUser.getName());\n \tuserCookieFacade.saveUserCookieWithTx(UserCookieConverter.toDTO(userCookie));\n }else{\n \tuserCookie.setUpdateTime(new Date());\n \tString ip = CommonUtils.getUserIp(req);\n \tuserCookie.setUpdateUserip(ip);\n \tuserCookie.setUpdateUsermac(CommonUtils.getMACAddress(ip));\n \tuserCookie.setUpdateUsername(cacheUser.getName());\n \tuserCookieFacade.saveUserCookieWithTx(UserCookieConverter.toDTO(userCookie));\n }\n\n \n \n\t\t\n\t}", "public String toString()\n {\n return \"{CookieValue(\" + cookieValues + \")}\";\n }", "@BeforeTest\n\tpublic void init() {\n\t\tMap<String, String> cokiesinit = given().when().get(COOKIE_URL).then().statusCode(200)\n\t\t\t\t.extract().cookies();\n\t\tcookieMap.putAll(cokiesinit); \n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doGet(request, response);\n HttpSession session = request.getSession(true);\n String name=\"User\";\n Usuario user= new Usuario(request.getParameter(\"name\"),request.getParameter(\"email\"),request.getParameter(\"password\"));\n session.setAttribute(name, user);\n Cookie idsession= new Cookie(\"idsession\",session.getId());\n response.addCookie(idsession);\n \n \n \n PrintWriter out=response.getWriter();\n \n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Registro</title>\");\n out.println(\"<meta charset='UTF-8'>\");\n out.println(\"<meta name='viewport' content='width=device-width, initial-scale=1.0'>\");\n out.println(\"<link href='css.css' rel='stylesheet' type='text/css'/>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<div>\");\n out.println(\"<a href='login.html'>Ir a login</a>\");\n out.println(\"</div>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n \n \n }", "public static String retrieveLoginCookies(HashMap<String, String> params) throws IOException {\n String url = Constants.LOGIN_URL;\n CookieHandler.setDefault(new CookieManager(null, CookiePolicy.ACCEPT_ALL));\n HttpURLConnection con = null;\n try {\n URL obj = new URL(url);\n con = (HttpURLConnection) obj.openConnection();\n } catch (UnknownHostException e) {\n //try to fix broken url\n con = (HttpURLConnection) new URL(\"http://\" + url).openConnection();\n }\n\n //add request header\n con.setRequestMethod(\"POST\");\n //just for fun\n con.setRequestProperty(\"Accept-Language\", \"ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4,de;q=0.2\");\n\n String urlParameters = \"\";\n\n for (Map.Entry<String, String> e : params.entrySet()) {\n urlParameters += e.getKey() + \"=\" + e.getValue() + \"&\";\n }\n\n //send post request\n con.setDoOutput(true);\n DataOutputStream wr = new DataOutputStream(con.getOutputStream());\n wr.writeBytes(urlParameters);\n wr.flush();\n wr.close();\n\n\n // temporary to build request cookie header\n String sessionCookie = \"\";\n // find the cookies in the response header from the first request\n List<String> cookies = con.getHeaderFields().get(\"Set-Cookie\");\n if (cookies != null) {\n for (String cookie : cookies) {\n // only want the first part of the cookie header that has the value\n String value = cookie.split(\";\")[0];\n sessionCookie += value + \";\";\n }\n }\n return sessionCookie;\n }", "public void tener_acceso_a_la_plataforma() {\n\t\tbaseState.setUrl(\"http://km.choucairtesting.com/login/index.php\");\t\n\t\tbaseState.setBrowserType(BrowserType.GoogleChrome);\n\t\tbaseState.execute(desktop);\t\n\t\tSerenity.takeScreenshot();\n\t\t\n\t}", "CookieValue(Cookie cookie)\n {\n valuesAsString = cookie.getValue();\n /* XXX Not sure if this works */\n if (DBG.isDebugEnabled()) DBG.debug(\"Cookie values: \" +\n valuesAsString);\n if (valuesAsString.indexOf('=') != -1) \n {\n Map hashValues = ParseQueryString.parse(valuesAsString);\n /* Lowercase the value keys */\n for (Iterator i = hashValues.keySet().iterator(); i.hasNext();)\n {\n String key = (String)i.next();\n String value[] = (String[])hashValues.get(key);\n if (DBG.isDebugEnabled()) {\n DBG.debug(\"Key: \" + key);\n DBG.debug(\"Value: \" + value[0]);\n }\n cookieValues.put(new IdentNode(key), value[0]);\n }\n }\n }", "private String validateToken(String[] cookieTokens, HttpServletRequest request, HttpServletResponse response) {\n if (cookieTokens == null) {\n throw new RememberMeAuthenticationException(\"No login tokens found.\");\n }\n if (cookieTokens.length != 2) {\n throw new InvalidCookieException(\"Cookie token did not contain \" + 2 +\n \" tokens, but contained '\" + Arrays.asList(cookieTokens) + \"'\");\n }\n\n final String presentedSeries = cookieTokens[0];\n final String presentedToken = cookieTokens[1];\n\n PersistentRememberMeToken token = tokenRepository.getTokenForSeries(presentedSeries);\n\n if (token == null) {\n // No series match, so we can't authenticate using this cookie\n throw new RememberMeAuthenticationException(\"No persistent token found for series id: \" + presentedSeries);\n }\n\n // We have a match for this user/series combination\n if (!presentedToken.equals(token.getTokenValue())) {\n // Token doesn't match series value. Delete all logins for this user and throw an exception to warn them.\n tokenRepository.removeUserTokens(token.getUsername());\n\n throw new CookieTheftException(messages.getMessage(\"PersistentTokenBasedRememberMeServices.cookieStolen\",\n \"Invalid remember-me token (Series/token) mismatch. Implies previous cookie theft attack.\"));\n }\n\n if (token.getDate().getTime() + getTokenValiditySeconds()*1000L < System.currentTimeMillis()) {\n throw new RememberMeAuthenticationException(\"Remember-me login has expired\");\n }\n\n if (isUpdateToken()) {\n // Token also matches, so login is valid. Update the token value, keeping the *same* series number.\n if (logger.isDebugEnabled()) {\n logger.debug(\"Refreshing persistent login token for user '\" + token.getUsername() + \"', series '\" +\n token.getSeries() + \"'\");\n }\n\n //TODO put a time check here to not update the token if we just did it within five minutes\n PersistentRememberMeToken newToken = new PersistentRememberMeToken(token.getUsername(),\n token.getSeries(), generateTokenData(), new Date());\n\n try {\n tokenRepository.updateToken(newToken.getSeries(), newToken.getTokenValue(), newToken.getDate());\n addCookie(newToken, request, response);\n } catch (DataAccessException e) {\n logger.error(\"Failed to update token: \", e);\n throw new RememberMeAuthenticationException(\"Autologin failed due to data access problem\");\n }\n }\n return token.getUsername();\n }", "String setRememberToken(HttpServletRequest request, HttpServletResponse response, String password, int maxAge, String domain, String path);", "@Test\n public void handlingCookies () {\n\n driver.get(\"https://www.amazon.com\");\n// 1. find the total number of cookies\n Set<Cookie> setOfCookies = driver.manage().getCookies();// returns all of the cookies as Set\n int totalNumberOfCookies = setOfCookies.size();\n System.out.println(\"totalNumberOfCookies is \"+totalNumberOfCookies);\n\n// 2. print cookies\n // As the setOfCookies is a set. We have to print them from a loop.\n for (Cookie eachCookie:setOfCookies) {\n System.out.println(\"each name: \"+eachCookie.getName());\n System.out.println(\"each value: \"+eachCookie.getValue());\n }\n\n// 3. get cookies by name : i18n-prefs (I select a cookie name from the console)\n Cookie named1_i18n_prefs = driver.manage().getCookieNamed(\"i18n-prefs\");\n\n System.out.println(\"the cookie named -i18n-prefs: \" + named1_i18n_prefs);\n System.out.println(\"value of the named ... \" + named1_i18n_prefs.getValue());\n\n// 4. add new cookie\n Cookie myCookie = new Cookie(\"my cookie\" , \"How does my cookie look like\");\n driver.manage().addCookie(myCookie);\n totalNumberOfCookies = driver.manage().getCookies().size();\n System.out.println(\"New total number is : \" + totalNumberOfCookies);\n\n Set<Cookie> newSetOfCookies = driver.manage().getCookies();\n for(Cookie eachCookie : newSetOfCookies) {\n System.out.println(\"new cookie in the new set: \" + eachCookie );\n }\n\n// 5. delete some certain cookies by name\n driver.manage().deleteCookieNamed(\"skin\"); // by name of the cookie\n driver.manage().deleteCookie(named1_i18n_prefs); // by the cookie\n totalNumberOfCookies = driver.manage().getCookies().size();\n System.out.println(\"newer total number = \" + totalNumberOfCookies);\n\n// 6. delete all cookies\n driver.manage().deleteAllCookies();\n totalNumberOfCookies = driver.manage().getCookies().size();\n System.out.println(\"newest total number = \" + totalNumberOfCookies);\n\n\n\n }", "Builder withCookie(long cookie);", "public Object get(Object obj) throws AspException\n {\n IdentNode strValue = new IdentNode(Types.coerceToString(obj));\n if (!cookieValues.containsKey(strValue)) {\n return emptyCookie;\n }\n return cookieValues.get(strValue);\n }", "private LogIn() {}", "public String getCookieInfo(Cookie cookie) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(cookie.getName()).append(\"=\").append(cookie.getValue());\r\n\t\tif (cookie.getComment() != null)\r\n sb.append(\"; Comment=\").append(cookie.getComment());\r\n if (cookie.getDomain() != null)\r\n sb.append(\"; Domain=\").append(cookie.getDomain());\r\n if (cookie.getPath() != null)\r\n sb.append(\"; Path=\").append(cookie.getPath());\r\n if (cookie.getMaxAge() >= 0) {\r\n \tlong expireDate = cookie.getMaxAge() * 1000;\r\n \texpireDate += Calendar.getInstance().getTimeInMillis();\r\n \t SimpleDateFormat dateFormat = new SimpleDateFormat(\"EEE, dd MMM yyyy HH:mm:ss z\", Locale.US);\r\n \t dateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\r\n \t sb.append(\"; Expires=\").append(dateFormat.format(expireDate));\r\n }\r\n if (cookie.getSecure())\r\n \tsb.append(\"; Secure\");\r\n return sb.toString();\r\n\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.970 -0500\", hash_original_method = \"E3D7D6931554145E868760CB2C4A26A3\", hash_generated_method = \"EE86FFF77F12F6E87C0C4F0204A00383\")\n \nprivate String cookies(String url) {\n return CookieManager.getInstance().getCookie(url);\n }", "public Object getUnderlying() {\n return ahcCookie;\n }", "public void LogIn() {\n\t\t\r\n\t}", "private void setCookies(HttpServletRequest request, HttpServletResponse response, int currentPage, int recordsOnPage) {\n CookieManager cookieManager = new CookieManager(request);\n String currentPageString = Integer.toString(currentPage);\n response.addCookie(cookieManager.makeCookie(CookieName.USERS_CURRENT_PAGE, currentPageString));\n\n String recordsOnPageString = Integer.toString(recordsOnPage);\n response.addCookie(cookieManager.makeCookie(CookieName.RECORDS_ON_USERS_PAGE, recordsOnPageString));\n }", "@Override\n\tpublic void credite() {\n\t\t\n\t}", "@Override\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\n // since we don't know which of the two underlying network vehicles\n // will Volley use, we have to handle and store session cookies manually\n Map<String, String> responseHeaders = response.headers;\n Log.d(\"cookies_login\", responseHeaders.get(\"Set-Cookie\"));\n sessionManager.setCookie(responseHeaders.get(\"Set-Cookie\"));\n\n return super.parseNetworkResponse(response);\n }", "@Override\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\n // since we don't know which of the two underlying network vehicles\n // will Volley use, we have to handle and store session cookies manually\n Map<String, String> responseHeaders = response.headers;\n Log.d(\"cookies_login\", responseHeaders.get(\"Set-Cookie\"));\n sessionManager.setCookie(responseHeaders.get(\"Set-Cookie\"));\n\n return super.parseNetworkResponse(response);\n }", "@SuppressWarnings(\"deprecation\")\n @Override\n public native void set(String key, String value) /*-{\n $doc.cookie = @org.jboss.pressgang.belay.oauth2.gwt.client.OAuthCookieStoreImpl::COOKIE_PREFIX +\n encodeURIComponent(key) + '=' + encodeURIComponent(value);\n }-*/;", "public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n\t\t\t {\n\n\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\n\t\trequest.setCharacterEncoding(\"UTF-8\");\n\t\tHttpSession session=request.getSession();\n\t\tString id=request.getParameter(\"id\");\n\t\tString pwd=request.getParameter(\"pwd\");\n\t\tString rand = (String)session.getAttribute(\"rand\");\n\t\tString input = request.getParameter(\"rand\");\n\t\tString[] rem=request.getParameterValues(\"remember\");\n\t\tSystem.out.println(\"记住密码=\"+rem[0]);\n\t\tif (rand.equals(input)) {\n\t\t\tWebLoginDAO t=new WebLoginDAO();\n\t\t \tSystem.out.println(id+\"+\"+pwd);\n\t\t\tint ss=0;\n\t\t \ttry {\n\t\t\t\tss=t.checkid(id, pwd);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new ServletException(e);\n\t\t\t}\n\t\t \tSystem.out.println(\"check=\"+ss);\n\t\t\tif(ss==1){\n\t\t\t\t//存入登陆的用户logname\n\t\t\t\tRegistUser ee=new RegistUser();\n\t\t\t\tee.setLogname(id);\n\t\t\t\t//登陆成功后根据ID取出用户全部信息,以方便用户修改界面预显示信息\n\t\t\t\ttry {\n\t\t\t\t\tee.get(id);\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\tsession.setAttribute(\"user\", ee);\n<<<<<<< HEAD\n\t\t\t\tsession.setAttribute(\"logname\",id);\n\t\t\t\t\n=======\n\t\t\t\tsession.setAttribute(\"username\", id);\n>>>>>>> origin/master\n\t\t\t\t//检查“记住我”是否勾选;\n\t\t\t\tif(rem[0].equals(\"remember\")){\n\t\t\t\t//新建cookie对象\n\t\t \t\tCookie idcookie=new Cookie(\"id\", URLEncoder.encode(id, \"UTF-8\"));\n\t\t \t\tCookie pwdcookie=new Cookie(\"pwd\",pwd);\n\t\t \t\t//设置cookie的生命周期\n\t\t \t\tidcookie.setMaxAge(300);\n\t\t \t\tpwdcookie.setMaxAge(300);\n\t\t \t\t//将cookie写入客户端浏览器\n\t\t \t\tresponse.addCookie(idcookie);\n\t\t \t\tresponse.addCookie(pwdcookie);\n\t\t \t\tSystem.out.println(\"已记住\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\trequest.getRequestDispatcher(\"index2.jsp\").forward(request, response);\n\t\t\t}\n\t\t\telse if(ss==2){\n\t\t\t\tthrow new ServletException(\"密码错误!\");\n\t\t\t}\n\t\t\telse if(ss==3){\n\t\t\t\tthrow new ServletException(\"账号不存在!\");\n\t\t\t}\n\t\t}\n\t\telse{\n\n\t\t\t\tthrow new ServletException(\"验证码错误!\");\n\n\t\t\n\t\t}\n\t\t\n\t\t\n\t}", "private void masuk(){\n Preferences.setLoggedInUser(getBaseContext(),Preferences.getRegisteredUser(getBaseContext()));\n Preferences.setLoggedInStatus(getBaseContext(), true);\n startActivity(new Intent(getBaseContext(),MainActivity.class));\n finish();\n }" ]
[ "0.709718", "0.67515427", "0.67502975", "0.65962976", "0.64549136", "0.63854885", "0.6308206", "0.62336195", "0.61205506", "0.6082017", "0.60558295", "0.60470897", "0.60442895", "0.59941226", "0.5979821", "0.5895847", "0.58281904", "0.58255386", "0.5810588", "0.57807225", "0.57799053", "0.5731504", "0.57234645", "0.57214755", "0.5710846", "0.56898636", "0.5676469", "0.5627914", "0.5596798", "0.5582947", "0.55661607", "0.5563898", "0.55616075", "0.55616075", "0.55616075", "0.55616075", "0.55541134", "0.55494297", "0.55391866", "0.5533914", "0.5510074", "0.54945374", "0.5478295", "0.54603755", "0.545419", "0.5444926", "0.54310536", "0.54310536", "0.54310536", "0.54310536", "0.54140246", "0.5384461", "0.5373499", "0.5368297", "0.53667617", "0.535389", "0.53453004", "0.533895", "0.5338684", "0.5336184", "0.53348917", "0.5334257", "0.53314185", "0.53211534", "0.53171873", "0.5316903", "0.5314905", "0.5314273", "0.5292221", "0.529049", "0.527754", "0.5273709", "0.5266241", "0.52603555", "0.52533996", "0.5252288", "0.52435464", "0.5241891", "0.52399284", "0.5232905", "0.5228023", "0.52241755", "0.5223317", "0.5213097", "0.52108103", "0.52057964", "0.520423", "0.5197266", "0.51800114", "0.5177495", "0.5173925", "0.51655847", "0.51619726", "0.5161747", "0.5158132", "0.5156292", "0.5153953", "0.5153953", "0.5136784", "0.5134711", "0.5129177" ]
0.0
-1
logt de gebruiker uit
@RequestMapping("logout") public void logout(HttpServletResponse res){ Cookie cookie = new Cookie("userInfo", null); res.addCookie(cookie); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loggedInUser() {\n\t\t\n\t}", "private void logUser() {\n }", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "protected void login() {\n\t\t\r\n\t}", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "public String login(Benutzer b) {\n\n benutzer = b;\n try {\n FacesContext.getCurrentInstance().getExternalContext().redirect(\"list.xhtml\");\n return \"\";\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return \"\";\n }", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "private void logIn() {\n char[] password = jPasswordField1.getPassword();\n String userCode = jTextField1.getText();\n\n String txtpassword = \"\";\n for (char pw : password) {\n txtpassword += pw;\n }\n if (\"\".equals(txtpassword)) {\n JOptionPane.showMessageDialog(this, textBundle.getTextBundle().getString(\"enterPassword\"), \"No Password\", JOptionPane.WARNING_MESSAGE);\n } else if (txtpassword.equals(userData.get(0).toString())) {\n jPasswordField2.setEnabled(true);\n jPasswordField3.setEnabled(true);\n jPasswordField2.setEditable(true);\n jPasswordField3.setEditable(true);\n jPasswordField2.grabFocus();\n }\n }", "public String logar() {\n\t\tUsuario usuario = autenticador.autentica(login, senha);\n\t\tif(usuario != null){\n\t\t\tusuarioWeb.loga(usuario);\n\t\t\treturn \"/pages/usuario/lista?faces-redirect=true\";\n\t\t}\n\t\tnew FacesUtils().adicionaMensagemDeErro(\"Login ou senha inválidos.\");\n\t\treturn null;\n\t\t\n\t}", "public void LogIn() {\n\t\t\r\n\t}", "public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "private void auto_log_in()\n {\n jtf_username.setText(Config.USERNAME);\n jpf_password.setText(Config.PASSWORD);\n jb_prijavi.doClick();\n\n }", "public void logMe(String username){\r\n\t\tif(controller.isUsernameValid(username,1)){\r\n\t\t\tString password= \"\";\r\n\t\t\tdisplay(\"Enter your password: \");\r\n\t\t\tpassword = sc.nextLine();\r\n\t\t\tcontroller.log(username, password);\r\n\t\t}\r\n\t}", "public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }", "public void logOut() {\r\n\t\tthis.modoAdmin = false;\r\n\t\tthis.usuarioConectado = null;\r\n\t}", "@Override\r\n\tpublic void login() {\n\r\n\t}", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public void logTeacherButton(ActionEvent actionEvent) {\n //if preferences are set remember to check the value from preferences\n // not test because it actually not exists\n if(loginModel.verifyPassword(emailField.getText(),\n passwordField.getText(), UserType.TEACHER)){\n executeLogIn(actionEvent, new LogInTeacher(loginModel.\n getTeacher(emailField.getText())));\n logInTeacher.setDisable(true);\n\n }\n else{\n System.out.println(\"verification not successful\");\n JOptionPane.showMessageDialog(null, \"fuck you\");\n System.out.println(emailField.getText());\n System.out.println(passwordField.getText());\n System.out.println(\"end of that\");\n }\n\n }", "@Override\n public void onClick(View v) {\n loginUser(\"999999\");\n }", "public void LogInOnAction(Event e) {\n\t \t\r\n\t \tif(BookGateway.getInstance().getAuthentication(this.userNameId.getText(), this.passwordId.getText())) {\r\n\t \t\tthis.whiteOutId.setVisible(false);\r\n\t \t\tthis.whiteOutId.setDisable(true);\r\n\t \t\t// TODO: Update label name in the corner.. \r\n\t \t\tthis.nameLabelId.setText(\"Hello, \" + BookGateway.currentUser.getFirstName());\r\n\t \t\r\n\t \t}else {\r\n\t \t\t// true\r\n\t \t\tmessAlert(\"Invalid\",\"Wrong Username or password\");\r\n\t \t\tthis.userNameId.setText(\"\");\r\n\t \t\tthis.passwordId.setText(\"\");\r\n\t \t\te.consume();\r\n\t \t}\r\n\t \t\r\n\t \t\r\n\t }", "public Integer logIn(String u_name, String u_pw){\n //find entry with u_name = this.u_name\n //probably not so safe\n //getting user with index 0 because getUserFromUsername returns List\n User user = userDao.getUserFromUsername(u_name).get(0);\n //print at console\n LOGGER.info(\"User: \" + user);\n //returns integer 1 if user.get_pw equals to this.pw or 0 if not\n if (user.getU_Pw().equals(u_pw)){\n return user.getU_Id();\n }else{\n return 0;\n }\n }", "public User_Log() throws Exception {\n initComponents();\n MyConnection();\n setSize(1010,680);\n setResizable(false);\n Koureio kour =new Koureio();\n usern.setText(kour.getUserLogIn());\n FirstSecond();\n }", "public static void ulogujSeKaoAdmin() {\r\n\t\tprikazIProveraSifre(-2, 'a');\r\n\t}", "@Override\n public void onClick(View v) {\n loginUser(\"666666\");\n }", "public void login() {\n\t\tloggedIn = true;\n\t}", "@Override\n public void onClick(View v) {\n loginUser(\"444444\");\n }", "private static void loginForAdmin(String username, String password){\n\n ArrayList<Object> loginData = LogInAndLogOutService.login(username, password);\n boolean logged = (boolean) loginData.get(0);\n boolean freezed = (boolean) loginData.get(1);\n Employee employee = (Employee) loginData.get(2);\n\n if (logged){\n\n System.out.println(\"Sie sind richtig als Herr/Frau \"+ employee.getLastname() + \" \"+ employee.getFirstname() +\" eingelogt.\");\n }else {\n if (freezed){\n\n System.out.println(\"Ihr Konto wurde einfriert. Sie können sie sich nicht einloggen. :(\");\n }else {\n\n System.out.println(\"Falscher Benutzername oder Passwort eingegeben. Versuchen Sie erneut.\");\n }\n }\n }", "@Override\n public void onClick(View v) {\n loginUser(\"777777\");\n }", "private final static void onLoginAdmin(TextField username, PasswordField password)\n\t{\n\t\tif(ProfileManipulation.findUsername(username.getText()) && !ProfileManipulation.checkLoginStatus(username.getText())){\n\t\t\tif (ProfileManipulation.isVerfied(username.getText())) {\n\t\t\t\tProfileManipulation.updateLoginStatus(username.getText(), true);\n\n\t\t\t\t// Jetzt wird das Profil aufgerufen\n\t\t\t\tPartylize.setUsername(username.getText());\n\n\t\t\t\tProfileManipulation.changePassword(password.getText());\n\n\t\t\t\tPartylize.showMainScene();\n\t\t\t} else {\n\t\t\t\tPartylize.setUsername(username.getText());\n\t\t\t\tPartylize.showVerification();\n\t\t\t}\n\t\t}\n\t\t// Funktionsaufruf Datenbankanbindung -> Erstellen einer Session ID\n\t\t// Funktionsaufruf Profildaten in lokalen Speicher laden - WIP\n\t\telse {\n\t\t\tusername.setText(\"\");\n\t\t\tpassword.setText(\"\");\n\t\t}\n\t}", "@Override\n public void onClick(View v) {\n loginUser(\"555555\");\n }", "@Override\n public void onClick(View v) {\n loginUser(\"333333\");\n }", "private void logino(int selected) {\n ExtendedAccountData data = queriedaccounts.get(selected);\n AltManager.getInstance().setUserOffline(data.alias);\n loginfailed = null;\n Minecraft.getMinecraft().displayGuiScreen(null);\n ExtendedAccountData current = getCurrentAsEditable();\n current.useCount++;\n current.lastused = JavaTools.getJavaCompat().getDate();\n }", "private void login() {\n\t\t \tetUserName.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etUserName);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t \t\n\t\t \t // TextWatcher would let us check validation error on the fly\n\t\t \tetPass.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etPass);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t }", "public static void tener_Usuario_activo() {\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='username']\").typeKeys(\"ocastro\");\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='password']\").setText(\"bogota2016\");\n\t\t\t\tdesktop.<DomButton>find(\"//BrowserApplication//BrowserWindow//input[@id='loginbtn']\").click();\n\t\t\t\t//end recording\n\t\t\t\tSerenity.takeScreenshot();\n\t}", "public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}", "private void byPassLogin(String email) {\n User user = new User(123, email, Grade.A, 100, 9999991, 50f, 25f);\n Login(user);\n }", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "@Override\r\n\tpublic void MemberLogin() {\n\r\n\t}", "@Override\n public void onClick(View v) {\n loginUser(\"222222\");\n }", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "protected boolean login() {\n\t\tString Id = id.getText();\n\t\tif (id.equals(\"\")){\n\t\t\tJOptionPane.showMessageDialog(null, \"请输入用户名!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tUserVO user = bl.findUser(Id);\n\t\tif (user == null){\n\t\t\tJOptionPane.showMessageDialog(null, \"该用户不存在!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (! user.getPassword().equals(String.valueOf(key.getPassword()))){\n\t\t\tSystem.out.println(user.getPassword());\n\t\t\tJOptionPane.showMessageDialog(null, \"密码错误!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tsimpleLoginPanel.this.setVisible(false);\n\t\tUserblService user2 = new Userbl(Id);\n\t\tReceiptsblService bl = new Receiptsbl(user2);\n\t\tClient.frame.add(new simpleMainPanel(user2,bl));\n\t\tClient.frame.repaint();\n\t\t\n\t\treturn true;\n\t\t\n\t}", "@Override\n public void login(String nome, String email, int senha) {\n if (getNome() == nome && this.getEmail() == email && this.getSenha() == senha){\n System.out.println(\"Login efetuado com sucesso\");\n } else {\n System.out.println(\"0 - Sair\");\n System.out.println(\"Saiu do usuario\");\n }\n\n }", "public void fechar() {\n\n try {\n geraLog.criaLog(codigoUsuario, \"Principal\", \"Fez Logoff do Sistema\");\n } catch (IOException ex) {\n Logger.getLogger(JfLogin.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n this.dispose();\n\n }", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tuser = txt_usr.getText();\n\t\t\t\tpass = txt_pass.getText();\n\t\t\t\t//check password or id is correct or not\n\t\t\t\tif(user.equals(\"test\") && pass.equals(\"12345\")) {\n\t\t\t\t\t//if both are correct user will be loged in\n\t\t\t\t\tAccountHome reg = new AccountHome();\n\t\t\t\t\treg.setVisible(true);\n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//if user input incorrect details he will get alert message to input correct details\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Wrong Password / Username\");\n\t\t\t\t\ttxt_usr.setText(\"\");\n\t\t\t\t\ttxt_pass.setText(\"\");\n\t\t\t\t\ttxt_usr.requestFocus();\n\t\t\t\t}\n\t\t\t}", "private void action_login_utente(HttpServletRequest request, HttpServletResponse response) throws IOException{\n //recupero credenziali di login\n String email = SecurityLayer.addSlashes(request.getParameter(\"email\").toLowerCase());\n email = SecurityLayer.sanitizeHTMLOutput(email);\n String password = SecurityLayer.addSlashes(request.getParameter(\"password\"));\n password = SecurityLayer.sanitizeHTMLOutput(password);\n if(!email.isEmpty() && !password.isEmpty()){\n try {\n //recupero utente dal db\n Utente u = ((PollwebDataLayer)request.getAttribute(\"datalayer\")).getUtenteDAO().getUtenteByEmail(email);\n //controllo che l'utente esista\n if(u != null){\n //controllo i parametri\n if(u.getEmail().equalsIgnoreCase(email) && new BasicPasswordEncryptor().checkPassword(password, u.getPassword())){\n //se l'utente esiste ed è lui\n\n request.setAttribute(\"userName\", u.getNome());\n request.setAttribute(\"user_id\", u.getId());\n System.out.println(u.getId());\n\n SecurityLayer.createSession(request, u.getId());\n\n if (request.getParameter(\"referrer\") != null) {\n response.sendRedirect(request.getParameter(\"referrer\"));\n } else {\n response.sendRedirect(\"/home\");\n }\n }else{\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n request.setAttribute(\"error\", \"Credenziali errate\");\n response.sendRedirect(\"/login?error=100\");\n }\n }\n\n }else{\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login&error=102\");\n }\n }\n }catch (DataException ex) {\n //TODO Handle Exception\n\n }\n } else {\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login?error=101\");\n }\n }\n }", "void legeAn(String login, String name, String password, boolean isAdmin, String email);", "@Override\n public void onClick(View v) {\n loginUser(\"888888\");\n }", "private void masuk(){\n Preferences.setLoggedInUser(getBaseContext(),Preferences.getRegisteredUser(getBaseContext()));\n Preferences.setLoggedInStatus(getBaseContext(), true);\n startActivity(new Intent(getBaseContext(),MainActivity.class));\n finish();\n }", "private void LoginOwner() {\n Transaksi.setEnabled(false);\n Transaksi.setVisible(false);\n }", "@Override\n public void onClick(View v) {\n loginUser(\"111111\");\n }", "public static void handleLoginGUI(UserLogin ul) {\n\n\t\tuserLogin = ul;\n\t\tOp logOp = new Op(Operations.LOGIN,userLogin);\n\t\tOperations oper;\n\t\t\n\t\ttry{\n\t\t\tclient = new ChatClient(userLogin.getHost(), userLogin.getPort());\n\t\t\tclient.handleMessageFromClientUI(logOp);\n\t\t\tlogOp = (Op) client.getMessage();\n\t\t\tcurrUser=(User) logOp.getEntity();\n\t\t\toper = logOp.getOp();\n\t\t\tif(oper == Operations.ALLOW_LOG)\n\t\t\t{\n\t\t\tlogOp = new Op(Operations.GET_UT,currUser);\n\t\t\tclient.handleMessageFromClientUI(logOp);\n\t\t\tlogOp = (Op) client.getMessage();\n\t\t\tcurrUser=(User) logOp.getEntity();\n\t\t\t}\n\t\t\thandleLogin(oper);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "private void login(Conversation conversation) {\n\t\tJsonObject lJsonObjIn = (JsonObject) conversation.getRequestBodyAsJSON();\n\t\t\n\t\tString lGebruikersnaam = lJsonObjIn.getString(\"username\");\t\t\t\t\t\t// Uitlezen van opgestuurde inloggegevens... \n\t\tString lWachtwoord = lJsonObjIn.getString(\"password\");\n\t\tMap<String, String> loginInfo = informatieSysteem.loginDetails(lGebruikersnaam,lWachtwoord);\n\n\t\tif(loginInfo.isEmpty())\n\t\t{\n\t\t\t//LOGIN FAILED !\n\t\t\tconversation.sendJSONMessage(\"{\\\"rol\\\":\\\"undefined\\\"}\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJsonObjectBuilder lJsonObjectBuilder = Json.createObjectBuilder();\n\t\t\tlJsonObjectBuilder.add(\"rol\", loginInfo.get(\"rol\"));\n\t\t\tlJsonObjectBuilder.add(\"voornaam\", loginInfo.get(\"voornaam\"));\n\t\t\tlJsonObjectBuilder.add(\"achternaam\", loginInfo.get(\"achternaam\"));\n\t\t\tlJsonObjectBuilder.add(\"identificatienummer\", loginInfo.get(\"identificatienummer\"));\t\t// en teruggekregen gebruikersrol als JSON-object...\n\t\t\tif(loginInfo.containsKey(\"group\")) lJsonObjectBuilder.add(\"group\", loginInfo.get(\"group\"));\n\t\t\tif(loginInfo.containsKey(\"klasnaam\")) lJsonObjectBuilder.add(\"klasnaam\", loginInfo.get(\"klasnaam\"));\n\t\t\tif(loginInfo.containsKey(\"klascode\")) lJsonObjectBuilder.add(\"klascode\", loginInfo.get(\"klascode\"));\n\t\t\tString lJsonOut = lJsonObjectBuilder.build().toString();\n\t\t\tconversation.sendJSONMessage(lJsonOut);\n\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t// terugsturen naar de Polymer-GUI!\n\t}", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "public Login() {\n initComponents();\n KiemTraKN();\n }", "protected void accionUsuario() {\n\t\t\r\n\t}", "public String login() throws Exception {\n System.out.println(user);\n return \"toIndex\" ;\n }", "private void loginSuccess(String uname) {\n }", "private void loguearUsuario() {\n\n final FirebaseAuth auth = FirebaseAuth.getInstance();\n FirebaseUser user = auth.getCurrentUser();\n // consigue el usuario\n final String email = editTextEmail.getText().toString().trim();\n String password = editTextPassword.getText().toString().trim();\n\n\n if (TextUtils.isEmpty(email)) {\n Toast.makeText(this, \"Se debe ingresar un email\", Toast.LENGTH_LONG).show();\n return;\n }\n if (TextUtils.isEmpty(password)) {\n Toast.makeText(this, \"Falta ingresar la contraseña\", Toast.LENGTH_LONG).show();\n return;\n }\n\n progressDialog.setMessage(\"Realizando consulta en linea...\");\n progressDialog.show();\n\n firebaseAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n // la misma funcion que en el caso anterior pero para poder ingresar\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) { //el oncomplete es para tener la comprobacion sea del campo del login o el singup\n\n if (task.isSuccessful()) {\n // si el usuario se encontraba creado entonces la tarea es exitosa\n\n int pos = email.indexOf(\"@\");\n userstring = email.substring(0, pos); //consigue el nombre del usuario\n Toast.makeText(Login.this, \"Bienvenido: \" + editTextEmail.getText(), Toast.LENGTH_LONG).show(); // consigue el email que habia sido asignado a la variable TextEmail\n Intent intencion = new Intent(getApplication(), UserView.class); // nueva actividad\n intencion.putExtra(\"user\", email); // le pasa como dato al usuario ingresado a la proxima actividad\n startActivity(intencion); //hay que hacer el get del usuario en la parte principal\n // userapasar = user;\n loged = true;\n\n } else {\n loged = false;\n\n if (task.getException() instanceof FirebaseAuthUserCollisionException) {//si se presenta una colisiÛn\n\n Toast.makeText(Login.this, \"Procesando\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(Login.this, \"\", Toast.LENGTH_LONG).show();\n }\n }\n progressDialog.dismiss();\n }\n });\n }", "@Override\n\t public String loginUser(String email, String password) {\n\t\t\tlog.info(\"email and pass are \"+email+\" \"+password);\n\t\t\twebuserid=loginmanager.isExist(email, password);\n\t\t\tif(webuserid>0)\n\t\t\t{\n\t\t\t//Ckech is it blocked\n\t\t\tif(! loginmanager.isBlocked(webuserid))\n\t\t\t{\n\t\t\t\t //Get all personal Ids and login the person\n\t\t\t\t \n\t\t\t\t peronalid=loginmanager.getPersonelIds(webuserid);\n\t\t\t\t \n\t\t\t\t //Store in personal bean class\n\t\t\t\t PersonalIds.setEmpid(1);\n\t\t\t\t PersonalIds.setCmpid(1);\n\t\t\t\t PersonalIds.setGrpid(1);\n\t\t\t\t message=error.sucess;\n\t\t\t\t //Lodge the login details in a lodgeevent table\n\t\t\t\n\t\t\t} \n\t\t\telse\n\t\t\t{\n\t\t\tmessage=error.blocked;\n\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tmessage=error.noaccount;\n\t\t\t}\n\t\t\t\n\t\t\t\t \n\t\t\t\n\t\t\t\n\t\t\treturn message;\n\t }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tGUILogin in = new GUILogin(UserType.ADMIN);\n\t\t\t\tcloseFrame();\n\t\t\t}", "public login() {\n initComponents();\n \n \n }", "private void serchUser() {\n if (!userNameTextField.getText().isEmpty() && !passwordPasswordField.getText().isEmpty()) {\n try {\n User user = UserController.searchUserByUserName(userNameTextField.getText());\n if (user != null) {\n if (passwordPasswordField.getText().equals(user.getPassword())) {\n closeFadeOut();\n Hi hi = new Hi();\n hi.setUser(user);\n hi.setVisible(true);\n dispose();\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect username or password !\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect username or password !\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n\n } catch (ClassNotFoundException ex) {\n ex.printStackTrace();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Please enter username and password\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n\n }", "private LogIn() {}", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tUsuarioPojo user = null;\r\n\t\t\t\tUsuarioPersistencia up = new UsuarioPersistencia();\r\n\r\n\t\t\t\t//int id = up.obtenerIdEmple();\r\n\t\t\t\tString usuarioMail = txtUsuario.getText();\r\n\t\t\t\tString password = new String(pwdPass.getPassword()); // DNI de momento\r\n\t\t\t\tString passwordC = new String(pwdConfPass.getPassword());\r\n\t\t\t\tString apenom = txtApenom.getText();\r\n\t\t\t\tString dni = txtDni.getText();\r\n\t\t\t\tint numSS = Integer.parseInt(txtSegSoc.getText());\r\n\t\t\t\tString cuenta = txtCuenta.getText();\r\n\r\n\t\t\t\tif (password.equals(passwordC)) {\r\n\t\t\t\t\t// creamos un objeto usuario si coinciden las contraseñas\r\n\t\t\t\t\tuser = new UsuarioPojo(apenom, numSS, cuenta, dni, usuarioMail, password);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (user != null) {\r\n\t\t\t\t\t// insertaremos el usuario si coinciden las contraseñas\r\n\t\t\t\t\tup = new UsuarioPersistencia();\r\n\t\t\t\t\tint res = up.insertarUser(user);\r\n\r\n\t\t\t\t\tif (res == 1) { // se habrá registrado al usuario\r\n\t\t\t\t\t\tSystem.out.println(\"Insertado correctamente\");\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Registro insertado correctamente\",\r\n\t\t\t\t\t\t\t\t\"Resultado del Registro\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\tdispose(); // dispose cierra ventana actual, System.exit(0) sale del programa\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// mostramos msg si no coinciden las contraseñas, manteniendo el control en dreg\r\n\t\t\t\t\tSystem.out.println(\"No insertado\");\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Contraseñas introducidas no coinciden\", \"Error de contraseña\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\t// limpiamos campos de contraseña\r\n\t\t\t\t}\r\n\t\t\t}", "public String retourPageAuthentification() {\r\n\t\tdefaultVue.setPassword(null);\r\n\t\t// Retour à la page d'authentification\r\n\t\treturn \"LoginPassword\";\r\n\t}", "public String accionLogin(){\n\t\t\r\n\t\tlog.info(\"Ingreso hacer login del usuario!!! \");\r\n\t\tString retorno = null;\r\n\t\ttry {\r\n\t\t\tString pass = new CriptPassword().getHashSH1(loginBaking.getUserBean().getPass());\r\n\t\t\tUser u = ejbMangerUser.login(loginBaking.getUserBean().getNick(), pass);\r\n\t\t\tloginBaking.setUserBean(u);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tList<Network> listNetwork = ejbNetwork.listNetwork();\r\n\t\t\tHttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n\t\t\tsession.setAttribute(\"listaNetwork\", listNetwork);\r\n\t\t\t\r\n\t\t\tretorno = \"site/home\";\r\n\t\t} catch (InSideException ex) {\r\n\t\t\tlog.error(ex.getKeyMSGError());\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage (FacesMessage.SEVERITY_ERROR, \r\n\t\t\t\t\t\tBundleUtil.getMessageResource(ex.getKeyMSGError()), \r\n\t\t\t\t\t\tBundleUtil.getMessageResource(ex.getKeyMSGError())));\r\n\t\t}\r\n\t\tlog.debug(\"Pagina de redireccion --->> \" + retorno);\r\n\t\tlog.info(\"fin de Login!!!\");\r\n\t\treturn retorno;\r\n\t}", "public void login_pw() {\n\t\tIntent intent = new Intent(this, ResetPasswordActivity.class);\n\t\tstartActivity(intent);\n\t}", "private void signIn() {\n }", "public void actionPerformed(ActionEvent e) {\n \t\t\t\tlogin();\n \t\t\t}", "@Override\n protected void onSubmit() {\n getCommander().resetUserHistory( getUser().getUsername(), true );\n redirectHere();\n }", "@Override\n public void manejarLogin() {\n loginPresenter.validarLogin(etxtEmail.getText().toString(),etxtPass.getText().toString());\n }", "public String login()\n\t{\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\tUsersBean userBean = new UsersBean();\n\t\ttry {\n//\t\t\tctx = new InitialContext(props);\n\t\t\t\n\t\t\t//userBean = (usersPersistentBean) ctx.lookup(\"usersPersistentBean\");\n\t\t\tUser attempting_user = new User();\n\t\t\tattempting_user.setUsername(getUsername());\n\t\t\tattempting_user.setPassword(getPassword());\n\t\t\tUser resultUser = userBean.getUser(attempting_user);\n\t\t\tif (resultUser.getUsername() != null)\n\t\t\t{\n\t\t\t\tsetIsAdmin(resultUser.isAdmin());\n\t\t\t\tsetUserId(resultUser.getUserId());\n\t\t\t\tsetLoginMessage(\"success\");\n\t\t\t\tcontext.getExternalContext().redirect(\"basicCalculator.xhtml\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsetLoginMessage(\"*Incorrect Username and password\");\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn getLoginMessage();\t\t\n\t}", "private void adminLogin() {\n\t\tdriver.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t}", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "public void logIn(View v){\n mUsername = (EditText) findViewById(R.id.username);\n mPassword = (EditText) findViewById(R.id.password);\n\n // Reset errors.\n mUsername.setError(null);\n mPassword.setError(null);\n\n // Store the data\n username = mUsername.getText().toString();\n password = mPassword.getText().toString();\n\n //Check username\n if (TextUtils.isEmpty(username)) {\n mUsername.setError(fielderror);\n checklog = false;\n }\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPassword.setError(fielderror);\n checklog = false;\n }\n if(checklog == true) {\n loginUser();\n }\n\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tTeachersOperation to = new TeachersOperation();\n\t\t\t\tString tUserName = jtf1.getText(),\n\t\t\t\t\t\ttPassword = jpsf.getText();\n\t\t\t\tif (\"\".equals(tUserName) || tUserName == null){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"用户名不能为空\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (\"\".equals(tPassword) || tPassword == null){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"密码不能为空\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tTeachers teacher = new Teachers();\n\t\t\t\tteacher.settUserName(tUserName);\n\t\t\t\tteacher.settPassword(tPassword);\n\t\t\t\tTeachers returnTea = to.login(teacher);\n\t\t\t\tif(returnTea != null)\n\t\t\t\t{\n\t\t\t\t\tdispose();\n\t\t\t\t\tnew TeacherView().show();\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"登录失败\");\n\t\t\t\t}\n\t\t\t}", "public tela_GerencLogin() {\n initComponents();\n lb_NomeLogin.setText(Sessao.getLogin());\n lb_Id.setText(Integer.toString(Sessao.getId()));\n \n }", "@Override\r\n\tpublic void login_admin() {\n\t\trender(\"admin/login.jsp\");\r\n\t}", "public void login(ActionEvent e) throws IOException {\r\n\t\t\r\n \tString username = loginuser.getText().trim();\r\n \t//if user is admin, change to userlist screen\r\n \tif (username.equals(\"admin\")) {\r\n \tPhotos.userlistscreen();\r\n \t} else {\r\n \t\tUser user = currentAdmin.findUser(username);\r\n \t\t//if user is found, log into that user and show the album view for that user specifically\r\n \t\tif (user!=null) {\r\n \t\t\tAlbumController.currentUser = (NonAdmin) user;\r\n \t\t\tCopyController.currentUser = (NonAdmin) user;\r\n \t\t\tMoveController.currentUser = (NonAdmin) user;\r\n \t\t\tPhotos.albumscreen(user);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\r\n \t\t\talert.setTitle(\"Error\");\r\n \t\t\talert.setHeaderText(\"Invalid username\");\r\n \t\t\talert.setContentText(\"Please try again\");\r\n \t\t\talert.showAndWait();\r\n \t\t\tloginuser.setText(\"\");\r\n \t\t}\r\n \t}\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tif (campoUsername.getText().replace(\" \", \"\").equals(\"\")\n\t\t\t\t\t\t|| new String(campoPassword.getPassword()).replace(\" \", \"\").equals(\"\")) {\n\t\t\t\t\tmostraMissatge(\"No ha possat username o password\");\n\t\t\t\t} \n\t\t\t\telse {\n\t\t\t\t\tcv.PrLogin(campoUsername.getText(), new String(campoPassword.getPassword()));\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void logOutUser() {\n\t\t\n\t}", "public static void login() {\n\t\t\n\t\t\n\n\t\twhile(!userIsLogged) {\n\n\t\t\tSystem.out.println(\"--> LOGIN <--\");\n\n\t\t\tString username = \"\";\n\t\t\tString password = \"\";\n\n\t\t\tdo {\n\t\t\t\tSystem.out.print(\"Username: \");\n\t\t\t\tusername = Main.scanner.nextLine();\n\t\t\t\tSystem.out.print(\"Password: \");\n\t\t\t\tpassword = Main.scanner.nextLine();\n\n\t\t\t\tif(username.isEmpty() && password.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"\\n>> Username or Password not inserted\\n\");\n\t\t\t\t}\n\n\t\t\t} while (username.isEmpty() && password.isEmpty());\n\n\n\t\t\tfor (Person person : userList) {\n\t\t\t\tif (person.getUsername().equals(username) && person.getPassword().equals(password)) {\n\t\t\t\t\t// loging correct\n\t\t\t\t\tloggedUser = person;\n\t\t\t\t\tuserIsLogged = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(!userIsLogged) {\n\t\t\t\tSystem.out.println(\"\\n>> Wrong username or password\\n\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Welcome \" + loggedUser.getName() + \" \" + loggedUser.getSurname());\n\t}", "@Override\n\tpublic void LoginProc(Parent root) {\n\t\tTextField idTxt = (TextField) root.lookup(\"#txtid\");\n\t\tTextField pwTxt = (TextField) root.lookup(\"#txtpw\");\n\t\tSystem.out.println(\"ID : \"+idTxt.getText()+\",PW : \"+pwTxt.getText()+\"가 입력되었습니다.\");\n\t}", "private void actualitzaPasswd(String nou){\n user.setPasswd(nou);\n try{\n helperU.actualitzar(user, false);\n \n info(\"Contrasenya actualitzada!\");\n }catch(Exception ex){\n avis(\"Error al actualitzar la contrasenya!\");\n }\n }", "public login() {\r\n\t\tsuper();\r\n\t}", "public void loginSuccess(@Observes org.jboss.seam.security.events.LoggedInEvent event) {\n try {\n log.info(\"Login successfully for user : \" + event.getUser().getId());\n FacesContext context = FacesContext.getCurrentInstance();\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\n //Redirect to the home page\n if (identity.hasRole(\"admin\", \"crm\", \"GROUP\")\n || identity.hasRole(\"commercial\", \"crm\", \"GROUP\")) {\n context.getExternalContext().redirect(request.getContextPath() + \"/backoffice/home.jsf\");\n }else if(identity.hasRole(\"client\", \"crm\", \"GROUP\")){\n context.getExternalContext().redirect(request.getContextPath() + \"/frontoffice/home.jsf\");\n }\n //Sending welcome message\n messages.info(\"Bienvenue \"+event.getUser().getId());\n } catch (IOException ex) {\n log.error(ex.getMessage());\n }\n }", "@Override\n\tpublic void userLogin(String userId) throws Exception {\n\n\t}", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "private void registrationView() {\n String login;\n String email;\n String password;\n\n try {\n while (true) {\n printLine();\n print(\"\\tВведите логин\\n\");\n print(\"\\t>>>>> \");\n login = readStringFromConsole();\n\n print(\"\\tВведите email\\n\");\n print(\"\\t>>>>> \");\n try {\n email = valid.emailValidation(readStringFromConsole());\n } catch (NotValidDataException e) {\n printErr(\"\\tнекорректный email\");\n continue;\n }\n\n print(\"\\tВведите пароль\\n\");\n print(\"\\t>>>>> \");\n try {\n password = valid.passwordValidation(readStringFromConsole());\n } catch (NotValidDataException e) {\n printErr(\"\\tнекорректный password\");\n continue;\n }\n break;\n }\n\n try {\n\n serviceAuthorizationService.registration(new UserDto()\n .withUsername(login)\n .withEmail(email)\n .withPassword(password));\n setStatus(REGISTERED);\n printLine();\n print(\"\\tВы успешно зарегистрировались\");\n } catch (AlreadyExistsException e) {\n e.showMessage();\n registrationView();\n }\n } catch (IOException e) {\n registrationView();\n }\n }", "public void onMotdSent() {\r\n\t\tif (!loggedIn) {\r\n\t\t\tif (adminWindow != null) {\r\n\t\t\t\tadminWindow.setVisible(true);\r\n\t\t\t}\r\n\t\t\tdispose();\r\n\t\t\tloggedIn = true;\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n public void onClick(View v)\n {\n String inputEmail = email.getText().toString();\n String inputPasswd = passwd.getText().toString();\n // Login\n fbAuth\n .signInWithEmailAndPassword(inputEmail, inputPasswd)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>()\n {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task)\n {\n // Login error\n if (!task.isSuccessful())\n {\n // Snackbar\n Snackbar.make(\n btnLog,\n getString(R.string.error_ema_or_pass),\n Snackbar.LENGTH_LONG\n // OK button in the Snackbar\n ).setAction(R.string.action_ok, new View.OnClickListener()\n {\n @Override\n public void onClick(View v)\n {\n // Dismiss the Snackbar\n }\n\n }).show();\n } else\n {\n // UID of logged-in user\n String uid = fbAuth.getCurrentUser().getUid();\n // Firebase Instance\n fbDatabase = FirebaseDatabase.getInstance();\n // Reference to logged-in user\n DatabaseReference userReference = fbDatabase.getReference()\n .child(\"usuarios/\" + uid);\n\n userReference.addListenerForSingleValueEvent(new ValueEventListener()\n {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot)\n {\n if (dataSnapshot.hasChildren())\n {\n // Get logged user data\n /*User user = dataSnapshot.getValue(User.class);\n // Crate a Bundle\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"_user\", user);*/\n // Main Activity\n Intent intent = new Intent(\n LoginActivity.this,\n MainActivity.class\n );\n // Storage data in the Intent\n /*intent.putExtras(bundle);*/\n // Launch the intent\n startActivity(intent);\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError)\n {\n\n }\n });\n }\n }\n });\n }", "protected void submitAction() {\n\t\ttry {\n\t\t\tString username = userField.getText();\n\t\t\tAbstractAgent loggedClient = parent.getAgent().login(username, new String(passField.getPassword()));\n\t\t\tif (loggedClient instanceof AdminMS) {\n\t\t\t\tAdminUI adminUI = new AdminUI((AdminMS) loggedClient);\n\t\t\t\tparent.setVisible(false);\n\t\t\t\tadminUI.run();\n\t\t\t} else if (loggedClient instanceof IUser) {\n\t\t\t\tUserUI userUI = new UserUI((IUser) loggedClient);\n\t\t\t\tparent.setVisible(false);\n\t\t\t\tuserUI.run();\n\t\t\t}\n\t\t\tif (loggedClient != null)\n\t\t\t\tparent.dispose();\n\t\t} catch (LoginException e) {\n\t\t\tmessageLabel.setText(e.getMessage());\n\t\t} catch (RemoteException e) {\n\t\t\tJOptionPane.showMessageDialog(parent, e);\n\t\t}\n\t}", "private void logInBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_logInBtnActionPerformed\n User theUser = null;\n String[] options = {\"OK\"};\n String userName = userNameTF.getText();\n String password = passwordTF.getText();\n\n theUser = HF.findUser(userName);\n\n if (userNameTF.getText().equals(\"\") || passwordTF.getText().equals(\"\")){\n JOptionPane.showOptionDialog(this, \"Please fill in your username \"\n + \"and password!\",\n \"\", JOptionPane.ERROR_MESSAGE, JOptionPane.INFORMATION_MESSAGE,\n null, options, options[0] );\n }\n else if (theUser == null) {\n JOptionPane.showOptionDialog(this, \"No such username!\",\n \"\", JOptionPane.ERROR_MESSAGE, JOptionPane.INFORMATION_MESSAGE,\n null, options, options[0] );\n }\n else if (!theUser.getPassword().equals(password)) {\n JOptionPane.showOptionDialog(this, \"Invalid password!\",\n \"\", JOptionPane.ERROR_MESSAGE, JOptionPane.INFORMATION_MESSAGE,\n null, options, options[0] );\n }\n else {\n if (theUser instanceof Trainer){\n TrainerMenu tm = new TrainerMenu(this, (Trainer)theUser);\n tm.setVisible(true);\n this.setVisible(false);\n }\n else if (theUser instanceof Member){\n MemberMenu mm = new MemberMenu(this, (Member)theUser);\n mm.setVisible(true);\n this.setVisible(false);\n }\n userNameTF.setText(\"\");\n passwordTF.setText(\"\");\n }\n }", "public void login() {\n System.out.println(\"a\");\r\n System.out.println(\"b\");\r\n System.out.println(\"a\");\r\n System.out.println(\"a\");\r\n }", "public Login() {\n inicializarUsuarios();\n }", "public static void login() {\n\t\trender();\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tlogin();\n\t\t\t}", "public void onSignUpClick() {\n\t\tString uid = regview.getUsername();\n\t\tString pw = regview.getPassword();\n\t\tString na = regview.getName();\n\t\tString em = regview.getEmail();\n\t\tString text = \"\";\n\t\tif(uid.equals(\"\") || pw.equals(\"\") || na.equals(\"\")|| em.equals(\"\")){\n\t\t\ttext = \"Please fill out all fields!\";\n\t\t} else if(regview.findUser(uid)!=User.NULL_USER){\n\t\t\ttext = \"The username already exsit, please try another one!\";\n\t\t} else {\n\t\t\tregview.addUser(new User(uid,pw,na,em));\n\t\t\tregview.goLoginPage();\n\t\t}\n\t\tregview.setRegisterText(text);\n\t}", "public void run() {\n\n String userName = String.valueOf(username.getText());\n String passWord = String.valueOf(password.getText());\n /*\n Check if passwords match, if not, clear textboxes and ask user to input again\n If they do, show chalk check mark and allow submission\n */\n User user = new User();\n if(user.login(userName, passWord)) {\n sendToHome(user);\n //Finish the login activity and prevent users from going back\n finish();\n }\n else\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"Error on Login\",\n Toast.LENGTH_LONG).show();\n }\n });\n }" ]
[ "0.68832636", "0.6873998", "0.6640865", "0.6603625", "0.657888", "0.6518413", "0.6511579", "0.64607716", "0.6420121", "0.64048785", "0.63953453", "0.6314512", "0.631001", "0.62632453", "0.623922", "0.62270284", "0.62134844", "0.62071085", "0.6206361", "0.6204974", "0.619284", "0.6189646", "0.6176989", "0.6162525", "0.6151242", "0.61488724", "0.61293805", "0.6100109", "0.6087019", "0.60809916", "0.60624427", "0.6057578", "0.6045523", "0.6036268", "0.6033311", "0.60271394", "0.6020507", "0.6012317", "0.6004934", "0.59998745", "0.59988517", "0.599277", "0.59884065", "0.59843653", "0.5982396", "0.5968771", "0.59651", "0.5961937", "0.5956705", "0.59564716", "0.59558415", "0.5941025", "0.5940199", "0.5929589", "0.59190255", "0.58979684", "0.58810455", "0.58707815", "0.5865786", "0.5863609", "0.58606803", "0.5857007", "0.58546376", "0.585436", "0.58510286", "0.5848096", "0.5844261", "0.5826513", "0.58171344", "0.5814989", "0.58139044", "0.580889", "0.58029205", "0.5801975", "0.5799333", "0.57968885", "0.5796707", "0.57934856", "0.57911927", "0.57806665", "0.57798374", "0.57772285", "0.5775958", "0.57730997", "0.5770541", "0.5769614", "0.5763248", "0.5761443", "0.57603014", "0.5759175", "0.57527316", "0.57522464", "0.5751074", "0.5746967", "0.5744931", "0.5744076", "0.57366997", "0.5736576", "0.5733844", "0.5733726", "0.57323956" ]
0.0
-1
1 min external unlocker command for freeing locked ressources
public String getUnlocker();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void unlock() {\n }", "@Override\n\tpublic void unlock() {\n\t\t\n\t}", "public abstract void unlock();", "void unlock(String resourceName) throws InterruptedException;", "ManagementLockObject refresh();", "void disposeLocked() {\n ArrayList<UpdateRecord> records = mRecordsByProvider.get(this.mProvider);\n records.remove(this);\n }", "void downgradeToReadLocks();", "@Override\n\tpublic void unLock() {\n\t\t\n\t}", "public void unlock(int key);", "private static void j_unlock() {\r\n\t\tFileChannel channel = globalFileChannel;\r\n\t\tFileLock lock = globalFileLock;\r\n\t\tglobalFileChannel = null;\r\n\t\tglobalFileLock = null;\r\n\t\ttry {\r\n\t\t\tlock.release();\r\n\t\t} catch (Throwable t) {\r\n\t\t\t;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tchannel.close();\r\n\t\t} catch (Throwable t) {\r\n\t\t\t;\r\n\t\t}\r\n\t}", "private void basicReleaseLock() {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[DLockToken.basicReleaseLock] releasing ownership: {}\",\n this);\n }\n\n leaseId = -1;\n lesseeThread = null;\n leaseExpireTime = -1;\n thread = null;\n recursion = 0;\n ignoreForRecovery = false;\n\n decUsage();\n }", "void unlock(Object obj, Object owner, boolean releaseMultiLocked)\r\n throws LockNotReleasedException, ClassCastException, ChannelException, LockMultiLockedException;", "void unlockLastInode();", "void unlockWriteInOMRequest();", "public void releaseDeferredLock() {\r\n return;\r\n }", "public void closeLock(){\n /*Code to send the locking signal to the physical device Gate*/\n }", "public void unlock() {\n try {\n if (lock != null)\n lock.release();\n if (channel != null)\n channel.close();\n }\n catch (Exception e) {\n throw new ReviewedStingException(\"An error occurred while unlocking file\", e);\n }\n }", "public final void release() {\n explicitlyLocked = false;\n byteBase.unlock();\n }", "public void unlock() {\n islandLocked = false;\n }", "public void unlock() {\n if(semaphore != null && semaphore.availablePermits() == 0) {\n semaphore.release();\n }\n }", "void unlock(Object obj, Object owner)\r\n throws LockNotReleasedException, ClassCastException, ChannelException;", "public boolean freeLock(String lockKey) {\n\t\ttry {\n\t\t\tlong locked = jedis.del(lockKey);\n\t\t\tif (locked > 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\t//释放redis链接\n//\t\t\tboolean returnFlag = singlePool.returnResource(jedis);\n//\t\t\tlogger.info(\"returnFlag=====\"+returnFlag);\n\t\t\tjedis.close();\n\t\t}\n\t\treturn false;\n\t}", "public void releaseShell(ScriptLock lock) throws SmartFrogException {\n\n }", "void unlock(Portal portal);", "void lockReleased(String lock);", "public void free();", "public void free() {\r\n\r\n\t}", "void unlock(String name) {\n executeLockFree(connection -> doUnlock(name, connection));\n }", "@Override\n\tprotected void unLockNbr() {\n\t\t\n\t}", "ManagementLockObject apply();", "@Override\r\n\tpublic boolean unlockIt() {\n\t\treturn false;\r\n\t}", "public void clean(){\n\t\tsynchronized(this.lock){\n\t\t\tint index=0;\n\t\t\tfor(ResourceStatus<T> resourceStatus:this.resourcesStatus){\n\t\t\t\tif(resourceStatus!=null){\n\t\t\t\t\tif(!resourceStatus.isInUse()){\n\t\t\t\t\t\tlong lastTime=resourceStatus.getLastNotInUseTime();\n\t\t\t\t\t\tlong currentTime=System.currentTimeMillis();\n\t\t\t\t\t\tT resource=resourceStatus.getResource();\n\t\t\t\t\t\tif((currentTime-lastTime)>=this.resourceAliveTime){\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tdestroyResource(resource);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tlogger.error(Constants.Base.EXCEPTION, e);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.resourcesStatus[index]=null;\n\t\t\t\t\t\t\tthis.currentSize--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t}", "public void freeMaterials(){\n\t\t//android.util.Log.d(TAG,\"freeMaterials()\");\n\t\tfinal int size = this.materials.size();\n\t\tfor(int index=0; index < size; index++){\n\t\t\tthis.materials.delete(this.materials.keyAt(index));\n\t\t}\n\t}", "protected abstract void deAllocateNativeResource();", "public static void unlockFile() {\n try {\n \t\n if(lock != null) {\n \t\n lock.release();\n channel.close();\n f.delete();\n \n }\n \n } catch(IOException e) {\n \t\n e.printStackTrace();\n \n }\n \n }", "ManagementLockObject refresh(Context context);", "private void releaseResources(List<DetailEntry> releasedData) {\n }", "@RequiresLock(\"SeaLock\")\r\n protected void invalidate_internal() {\n }", "void delistResource(ExoResource xares) throws RollbackException, SystemException;", "@Override\n public boolean free() {\n synchronized (this) {\n if (isUnavailable()) {\n return false;\n }\n\n logger.info(\"releasing lock: {}\", this);\n setState(LockState.UNAVAILABLE);\n }\n\n return true;\n }", "public void releaseLock() throws JedisException {\n if (fetch == true) {\n redisTemplate.delete(lockKey);\n LOGGER.info(\"release redis distribution_lock [{}] suceess \", lockKey);\n }\n }", "private void removeLockId()\n {\n MDC.remove(OutwardlyManagedFileResourceStore.LOCK_ID);\n }", "void releaseReadLock();", "public void releaseLocks() {\n releaseLocksTo(null);\n }", "public void releaseResources();", "void unsetRequiredResources();", "void unlockWrite(long stamp);", "void unlockRead(long stamp);", "@GuardedBy(\"this\")\n public void decRefsLocked(long id) {\n this.mNumRefs--;\n if (this.mNumRefs == 0 && this.mObject != 0) {\n nativeDestroy(this.mObject);\n this.mObject = 0;\n this.mApkAssets = sEmptyApkAssets;\n }\n }", "@Override\n\tpublic boolean unlockIt() {\n\t\treturn false;\n\t}", "@Override\n public void releaseAll()\n {\n for ( int i = 0; i < exclusiveLockCounts.length; i++ )\n {\n PrimitiveLongIntMap exclusiveLocks = exclusiveLockCounts[i];\n PrimitiveLongIntMap sharedLocks = sharedLockCounts[i];\n\n // Begin releasing exclusive locks, as we may hold both exclusive and shared locks on the same resource,\n // and so releasing exclusive locks means we can \"throw away\" our shared lock (which would normally have been\n // re-instated after releasing the exclusive lock).\n if(exclusiveLocks != null)\n {\n int size = exclusiveLocks.size();\n exclusiveLocks.visitKeys( releaseExclusiveAndClearSharedVisitor.initialize( sharedLocks, lockMaps[i] ));\n if(size <= 32)\n {\n // If the map is small, its fast and nice to GC to clear it. However, if its large, it is\n // 1) Faster to simply allocate a new one and\n // 2) Safer, because we guard against clients getting giant maps over time\n exclusiveLocks.clear();\n }\n else\n {\n exclusiveLockCounts[i] = Primitive.longIntMap();\n }\n }\n\n // Then release all remaining shared locks\n if(sharedLocks != null)\n {\n int size = sharedLocks.size();\n sharedLocks.visitKeys( releaseSharedDontCheckExclusiveVisitor.initialize( lockMaps[i] ) );\n if(size <= 32)\n {\n // If the map is small, its fast and nice to GC to clear it. However, if its large, it is\n // 1) Faster to simply allocate a new one and\n // 2) Safer, because we guard against clients getting giant maps over time\n sharedLocks.clear();\n }\n else\n {\n sharedLockCounts[i] = Primitive.longIntMap();\n }\n }\n }\n }", "public abstract void free();", "private static void releaseLock(Lock lock) {\r\n\t\t// Shuts down the lock server.\r\n\t\tlock.getServer().stop();\r\n\t\t// Releases the locked resources.\r\n\t\ttry {\r\n\t\t\tlock.getLockFileLock().release();\r\n\t\t} catch (Throwable t) {\r\n\t\t\t;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tlock.getLockFileChannel().close();\r\n\t\t} catch (Throwable t) {\r\n\t\t\t;\r\n\t\t}\r\n\t\t// Deletes the port file.\r\n\t\tlock.getPortFile().delete();\r\n\t\t// Deletes the lock file.\r\n\t\tlock.getLockFile().delete();\r\n\t}", "protected void deallocate() {\r\n\t\t// create a list of objects ordered by the time of last access\r\n\t\tList<ObjectStatus> timeOrderedObjects = getListOfObjectClassTimeSorted();\r\n\t\twhile (!sizeNormal() && timeOrderedObjects.size() > 0) {\r\n\t\t\t// take the least recently used object and remove it from the list\r\n\t\t\tString currentObjectID = timeOrderedObjects.remove(0).getID();\r\n\t\t\t// kill that object in the ever seen so\r\n\t\t\t// it would be treated as a dead object from now on\r\n\t\t\tkillObject(currentObjectID);\r\n\t\t\tdeallocate(currentObjectID);\r\n\r\n\t\t}\r\n\r\n\t}", "void purge();", "public void unlock() {\n setLock.unlock(this);\n }", "@Override\n public void dispose(){\n if(handle <= 0) return;\n free(handle);\n handle = 0;\n }", "protected void unlock() {\n synchronized ( lock )\n {\n lock.notify();\n }\n }", "public void onUnblock();", "public void drain() {\n\t\tsynchronized (list) {\n\t\t\tfor (int i = 0; i < list.size(); ++i) {\n\t\t\t\tPooled<T> pt = list.remove();\n\t\t\t\tcreator.destroy(pt.content);\n\t\t\t\tpt.logTarget.log(\"Pool drained \", creator.toString());\n\t\t\t}\n\t\t\tcount = spares = 0;\n\t\t}\n\n\t}", "public final void releaseNoCopy() {\n explicitlyLocked = false;\n byteBase.unlockNoCopy();\n }", "public void releaseReadLock() {\r\n return;\r\n }", "private void signalFree() {\n block.release();\n }", "public void unlock(){\n logger.log(Level. INFO,\"unlock() \"+lockState+\".\");\n this.lock.lock();\n logger.log(Level. INFO,\"unlock taking mutex :\"+lockState+\".\");\n switch(this.lockState){\n \t\t\tcase RLT:\n \t\t\tlockState = State.RLC;\n \t\t\tbreak;\n \t\t\tcase WLT:\n \t\t\tlockState = State.WLC;\n \t\t\tcase RLT_WLC:\n \t\t\tlockState = State.WLC;\t\n break;\n default:\n logger.log(Level.WARNING,\"Unlock with : \"+lockState+\".\");\n break;\n \t\t}\n this.available.signal();\t\n logger.log(Level.WARNING,\"SIGNAL\");\n this.lock.unlock();\n \t}", "private void freeAgent() {\n }", "final void internalRelease() {\n if(!explicitlyLocked) {\n byteBase.unlock();\n }\n }", "@KeepForSdk\n public void release() {\n if (this.zzm.decrementAndGet() < 0) {\n Log.e(\"WakeLock\", String.valueOf(this.zze).concat(\" release without a matched acquire!\"));\n }\n String zza = zza(null);\n synchronized (this.zza) {\n if (this.zzi) {\n int i;\n Integer[] numArr = (Integer[]) this.zzj.get(zza);\n if (numArr != null) {\n if (numArr[0].intValue() == 1) {\n this.zzj.remove(zza);\n i = 1;\n } else {\n numArr[0] = Integer.valueOf(numArr[0].intValue() - 1);\n }\n }\n i = 0;\n }\n if (!this.zzi) {\n }\n }\n zza(0);\n }", "void clearSoftLock(SoftLock softLock);", "private static final boolean free(final AbstractScreenOwner oldOwner) {\n if (currentOwner == oldOwner) {\n // acquire\n currentOwner = null;\n return true;\n }\n return false;\n }", "private void deAllocate() {\n if (getC_Order_ID() != 0) {\n setC_Order_ID(0);\n }\n //\tif (getC_Invoice_ID() == 0)\n //\t\treturn;\n //\tDe-Allocate all\n MAllocationHdr[] allocations = MAllocationHdr.getOfPayment(getCtx(),\n getC_Payment_ID(), get_TrxName());\n log.fine(\"#\" + allocations.length);\n for (int i = 0; i < allocations.length; i++) {\n allocations[i].set_TrxName(get_TrxName());\n allocations[i].setDocAction(DocAction.ACTION_Reverse_Correct);\n allocations[i].processIt(DocAction.ACTION_Reverse_Correct);\n allocations[i].save();\n }\n\n // \tUnlink (in case allocation did not get it)\n if (getC_Invoice_ID() != 0) {\n //\tInvoice\n String sql = \"UPDATE C_Invoice \"\n + \"SET C_Payment_ID = NULL, IsPaid='N' \"\n + \"WHERE C_Invoice_ID=\" + getC_Invoice_ID()\n + \" AND C_Payment_ID=\" + getC_Payment_ID();\n int no = DB.executeUpdate(sql, get_TrxName());\n if (no != 0) {\n log.fine(\"Unlink Invoice #\" + no);\n }\n //\tOrder\n sql = \"UPDATE C_Order o \"\n + \"SET C_Payment_ID = NULL \"\n + \"WHERE EXISTS (SELECT * FROM C_Invoice i \"\n + \"WHERE o.C_Order_ID=i.C_Order_ID AND i.C_Invoice_ID=\" + getC_Invoice_ID() + \")\"\n + \" AND C_Payment_ID=\" + getC_Payment_ID();\n no = DB.executeUpdate(sql, get_TrxName());\n if (no != 0) {\n log.fine(\"Unlink Order #\" + no);\n }\n }\n //\n setC_Invoice_ID(0);\n setIsAllocated(false);\n }", "void lockExpired(String lock);", "String reclaim(String request) throws RemoteException;", "public void freeTextures(){\n\t\t//android.util.Log.d(TAG,\"freeTextures()\");\n\t\tthis.textures.free();\n\t}", "private final void maintain(){\n\t\tif(host.getStrength()>MAINTENANCE_COST){\n\t\t\thost.expend(MAINTENANCE_COST);\n\t\t}\n\t\telse{\n\t\t\tkill();\n\t\t}\n\t}", "protected void onBSUnlock() {\n\n }", "private static void releaseResources(int trans_id) {\n\n\n System.out.println(\"Releasing resources T\" + trans_id);\n // Remove the hold of transaction from the variables\n\n Iterator<Map.Entry<Integer, List<Integer>>> it = transaction_variable_map.entrySet().iterator();\n\n\n while (it.hasNext()) {\n Map.Entry<Integer, List<Integer>> pair = (Map.Entry<Integer, List<Integer>>) it.next();\n List<Integer> list = pair.getValue();\n if (list.contains(trans_id)) {\n // System.out.println(list.toString());\n List<Variable> variables = variable_copies_map.get(pair.getKey());\n for (Variable v : variables) {\n v.unlockVariable();\n }\n // System.out.println(trans);\n list.removeAll(Arrays.asList(trans_id));\n\n if (list.isEmpty()) {\n it.remove();\n }\n }\n\n\n }\n\n // remove from waiting operations\n Transaction txn = transactions.get(trans_id);\n\n Iterator<Tuple<Transaction, Operation>> iter = waitingOperations.iterator();\n while (iter.hasNext()) {\n // get transaction id\n\n // check if read or write operation\n Tuple<Transaction, Operation> t = iter.next();\n\n Transaction tx = t.x;\n if (tx.equals(txn)) {\n iter.remove();\n\n }\n\n }\n\n // Remove the transaction from the current set of transactions\n transactions.remove(trans_id);\n\n // Remove dependency edge if any\n DeadlockHandler.removeDependencyEdge(trans_id);\n\n }", "void releaseReadLock(E key);", "public void free(ItemReference ref);", "@Override\n public void unlock(int myId) {\n Y = -1; \n flag[myId] = false;\n \n }", "private native static void free(long instance);", "private void releaseObjects() {\n if (fPermStorage != null) {\n Iterator<IJavaObject> iterator = fPermStorage.iterator();\n while (iterator.hasNext()) {\n IJavaObject object = iterator.next();\n try {\n object.enableCollection();\n } catch (CoreException e) {\n if ((e.getStatus().getException() instanceof VMDisconnectedException)) {\n break;\n }\n JDIDebugPlugin.log(e);\n }\n }\n fPermStorage = null;\n }\n }", "private void reacquireLocks() {\n getCommander().requestLockOn( getPart() );\n for ( Long id : expansions ) {\n try {\n ModelObject expanded = getQueryService().find( ModelObject.class, id );\n if ( !( expanded instanceof Segment || expanded instanceof Plan ) )\n getCommander().requestLockOn( expanded );\n } catch ( NotFoundException e ) {\n LOG.warn( \"Expanded model object not found at: \" + id );\n }\n }\n }", "public void free(){\n\t\t//android.util.Log.d(TAG,\"free()\");\n\t\tthis.freeGeometries();\n\t\tthis.freeLights();\n\t\tthis.freeCameras();\n\t\tthis.freeTextures();\n\t\tthis.freeMaterials();\n\t}", "void Free();", "private void freePartitions()\n {\n partitionsNoLongerNeeded.set(null);\n\n lock.writeLock().lock();\n try {\n // Remove out references to partitions to actually free memory\n Arrays.fill(partitions, null);\n lookupSourceSupplier = null;\n closeCachedLookupSources();\n }\n finally {\n lock.writeLock().unlock();\n }\n }", "public void dispose()\n {\n while( m_count > 0 )\n {\n int i = m_count - 1;\n try\n {\n m_factory.decommission( m_pool[ i ] );\n }\n catch( Exception e )\n {\n // To be backwards compatible, we have to support the logger having not been set.\n if( ( getLogger() != null ) && ( getLogger().isDebugEnabled() ) )\n {\n getLogger().debug( \"Error decommissioning object\", e );\n }\n }\n m_pool[ i ] = null;\n m_count--;\n }\n }", "public void unlockGarage()\n {\n m_bGarageLock = false;\n }", "@Test\n public void recycle_ReleasesResourcesOfEachManager() {\n mDiffRequestManagerHolder.recycle();\n\n // Then\n then(mDiffRequestManager).should().releaseResources();\n }", "void lockGranted(LockHandle lockHandle);", "void releaseLock(QName lockQName, String lockToken);", "public void unlock() {\n/* 246 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "void removeRowsLock();", "public void openLock(){\n /*Code to send an unlocking signal to the physical device Gate*/\n }", "private void releaseResources() {\n\t\tstopForeground(true);\n\t\taudioManager.unregisterRemoteControlClient(remoteControlClient);\n\t\taudioManager.unregisterMediaButtonEventReceiver(remoteReceiver);\n\t\t\n\t\tif (mediaPlayer != null){\n\t\t\tmediaPlayer.reset();\n\t\t\tmediaPlayer.release();\n\t\t\tmediaPlayer = null;\n\t\t}\n\t\t\n\t\tif (wifiLock.isHeld()) {\n\t\t\twifiLock.release();\n\t\t}\n\t}", "public void release()\n\t{\n\t\t// System.out.println(usedBy.getName() + \": Releasing \" + toString());\n\t\tthis.usedBy = null;\n\t}", "@Override\n\tpublic void freeMe() {\n\n\t}", "public abstract boolean unlock(String oid, String lockKey) throws OIDDoesNotExistException, InvalidLockException;", "ManagementLockObject.Update update();", "final void internalReleaseNoCopy() {\n if(!explicitlyLocked) {\n byteBase.unlockNoCopy();\n }\n }", "public void free() {\n if (relRootCM.isOpen())\n relRootCM.close();\n if (relReachableCM.isOpen())\n relReachableCM.close();\n if (relCICM.isOpen())\n relCICM.close();\n if (relCMCM.isOpen())\n relCMCM.close();\n }", "public void releasePingLock() {\r\n\t\tbeingPinged.set(false);\r\n\t}" ]
[ "0.6633036", "0.66064584", "0.6565891", "0.6379682", "0.6343613", "0.6316617", "0.6285009", "0.6260649", "0.62335813", "0.6140144", "0.6129969", "0.6058838", "0.5995043", "0.5975824", "0.5933001", "0.59227955", "0.59157854", "0.5912077", "0.5880467", "0.58620864", "0.58433396", "0.58368397", "0.58214116", "0.5805493", "0.5796725", "0.5758805", "0.57566696", "0.5739048", "0.57345486", "0.57343864", "0.571934", "0.57110584", "0.57062733", "0.56941444", "0.56855315", "0.5664744", "0.56625456", "0.5659722", "0.5659482", "0.5655211", "0.56378007", "0.56315064", "0.56297415", "0.56287897", "0.562648", "0.562213", "0.5606968", "0.5599988", "0.55958", "0.55937725", "0.5589213", "0.55836344", "0.5581452", "0.5574173", "0.5558954", "0.5555353", "0.55256015", "0.55098087", "0.5505468", "0.55014646", "0.54993576", "0.54987925", "0.54843485", "0.54821724", "0.5458685", "0.54577225", "0.54538655", "0.54526097", "0.5451042", "0.54505605", "0.54492027", "0.54443705", "0.5438537", "0.5437668", "0.54360217", "0.54338473", "0.5420232", "0.5416011", "0.53995466", "0.5397616", "0.5390054", "0.53899497", "0.53877926", "0.53831273", "0.5380824", "0.53724015", "0.5369987", "0.5364241", "0.5363948", "0.5362096", "0.5361673", "0.5360967", "0.53516954", "0.53462803", "0.53459", "0.53440475", "0.5340783", "0.533752", "0.53254694", "0.5324408", "0.53152037" ]
0.0
-1
TODO Autogenerated method stub
@Override public void run() { int i = 100; try { Thread.sleep(2500); } catch (InterruptedException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } do { try { Thread.sleep(50); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } double rad1 = Math.toRadians((Math.random() * 360)); double rad2 = Math.toRadians((Math.random() * 360)); float z = (float) Math.sin(rad1); float l = (float) Math.cos(rad1); float x = (float) (l * Math.sin(rad2)); float y = (float) (l * Math.cos(rad2)); addDot3D(new Dot3D(x, y, z, new Color3f(0, 0, 1))); VecBranchGroup.addChild(new Arrow3D(new Vector3f(x, y, z), new Color3f(0, 1, 0))); } while((-- i) != 0); try { Thread.sleep(2500); } catch (InterruptedException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } // DotBranchGroup.removeAllChildren(); VecBranchGroup.removeAllChildren(); }
{ "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
This method will return the endpoint URL after fetching it from WSRR
private String getEndPointUrl() { // TODO - Get the URL from WSRR return "http://localhost:8093/mockCustomerBinding"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public URL getEndPoint();", "public String endpointUrl() {\n return this.endpointUrl;\n }", "String endpoint();", "String getServiceUrl();", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "UMOEndpointURI getEndpointURI();", "public String endpointUri() {\n return this.endpointUri;\n }", "private String getServiceEndpointAddress() {\n try {\n Config config = Config.getInstance();\n return config.getHost();\n } catch (IOException e) {\n throw new IllegalArgumentException(\"Service url is wrong.\");\n }\n }", "public String endpoint() {\n return this.endpoint;\n }", "java.lang.String getApiUrl();", "protected abstract String getBaseEndpoint();", "public static String setURL(String endpoint) {\n String url = hostName + endpoint;\n\n log.info(\"Enpoint: \" + endpoint);\n\n return url;\n\n }", "String serviceEndpoint();", "String getStaticWebEndpoint();", "public String getEndpoint() {\n return this.endpoint;\n }", "public String getEndpoint() {\n return this.endpoint;\n }", "public String getServiceUrl() {\n return \"http://\" + this.serviceHost + \":\" + this.servicePort;\n }", "public String getURL()\n {\n return getURL(\"http\");\n }", "String getServerUrl();", "public URL getUrl() {\n try {\n StringBuilder completeUrlBuilder = new StringBuilder();\n completeUrlBuilder.append(getBaseEndpointPath());\n completeUrlBuilder.append(path);\n if (requestType == HttpRequest.NetworkOperationType.GET && parameters != null) {\n boolean first = true;\n for (String key : parameters.keySet()) {\n if (first) {\n first = false;\n completeUrlBuilder.append(\"?\");\n } else {\n completeUrlBuilder.append(\"&\");\n }\n completeUrlBuilder.append(key).append(\"=\").append(parameters.get(key));\n }\n }\n return new URL(completeUrlBuilder.toString());\n } catch (MalformedURLException exception) {\n LocalizableLog.error(exception);\n return null;\n }\n }", "public String getSparqlEndPoint() {\n\t\treturn this.sparqlEndPointURL;\n\t}", "public abstract RestURL getURL();", "java.lang.String getBookingURL();", "String getRequestURL();", "protected abstract String getBaseEndpointPath();", "public String getDocumentEndpoint();", "public String getUnproxiedFieldDataServerUrl() {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx);\n\t\tString hostName = prefs.getString(\"serverHostName\", \"\");\n\t\tString context = \"bdrs-core\";//prefs.getString(\"contextName\", \"\");\n\t\tString path = prefs.getString(\"path\", \"\");\n\t\t\n\t\tStringBuilder url = new StringBuilder();\n\t\turl.append(\"http://\").append(hostName).append(\"/\").append(context);\n\t\t\n\t\tif (path.length() > 0) {\n\t\t\turl.append(\"/\").append(path);\n\t\t}\n\t\t\n\t\treturn url.toString();\n\t}", "@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}", "public String getHandleServiceBaseUrl();", "String webSocketUri();", "public String getApiUrl();", "EndpointDetails getEndpointDetails();", "private String getPingUri() {\n\t\treturn BASE_URI + \"?_wadl\";\n\t}", "public final HttpEndpoint getEndpoint( ) {\r\n\t\treturn this.endpoint;\t\t\r\n\t}", "protected String getTargetUrl() {\n // Get the next target URL\n String target = this.endpointUrls.get(this.nextTarget);\n LOGGER.trace(\"Current nextTarget: \\\"{}\\\", targetUrl: \\\"{}\\\"\", this.nextTarget, target);\n // Update next pointer\n this.nextTarget = this.nextTarget == this.endpointUrls.size() - 1 ? 0 : this.nextTarget + 1;\n LOGGER.trace(\"New nextTarget: \\\"{}\\\"\", this.nextTarget);\n return target;\n }", "String getSpecUrl();", "public String getURL(){\r\n\t\t \r\n\t\t\r\n\t\treturn rb.getProperty(\"url\");\r\n\t}", "public String getEndpoint() {\n\t\treturn null;\n\t}", "public String getURL() {\n\t\treturn prop.getProperty(\"URL\");\n\t}", "io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint getEndpoint();", "public org.hl7.fhir.Uri getEndpoint()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Uri target = null;\n target = (org.hl7.fhir.Uri)get_store().find_element_user(ENDPOINT$8, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public String getServerUrl() {\n return props.getProperty(\"url\");\n }", "public static String getURL() {\n\t return getURL(BackOfficeGlobals.ENV.NIS_USE_HTTPS, BackOfficeGlobals.ENV.NIS_HOST, BackOfficeGlobals.ENV.NIS_PORT);\n\t}", "protected String getServiceEndpoint(String serviceName) {\n APIManagerConfiguration config = ServiceReferenceHolder.getInstance().\n getAPIManagerConfigurationService().getAPIManagerConfiguration();\n String url = config.getFirstProperty(APIConstants.API_GATEWAY_SERVER_URL);\n return url + serviceName;\n }", "public URL getServiceUrl() {\n return url;\n }", "public String getSearchEndpoint();", "public URI getExplicitlyProvidedUri() {\n return wsRce.getUri();\n }", "public java.lang.String getApiEndpoint() {\n java.lang.Object ref = apiEndpoint_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n apiEndpoint_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String url() {\n return server.baseUri().toString();\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "String getRequestedUrl();", "public final String getUrl() {\n return properties.get(URL_PROPERTY);\n }", "private String getAddressUrl(ExtensibilityElement exElement){\n\t\tif(exElement instanceof SOAP12AddressImpl){\n\t\t\treturn ((SOAP12AddressImpl)exElement).getLocationURI();\n\t\t}else if(exElement instanceof SOAPAddressImpl){\n\t\t\treturn ((SOAPAddressImpl)exElement).getLocationURI();\n\t\t}else if(exElement instanceof HTTPAddressImpl){\n\t\t\treturn ((HTTPAddressImpl)exElement).getLocationURI();\n\t\t}else{\n\t\t\tlogger.error(\"No se ha reconocido el Elemento Address -> \" + exElement.getElementType());\n\t\t\tthrow ServiceEngineGeneralError.UNKOW_ERROR;\n\t\t}\n\t}", "@BusMethod(replySignature=\"s\")\n public String GetUrl() throws BusException;", "public static String getWebServiceURL(String serverURL) {\n if(!serverURL.endsWith(\"/\")){\n serverURL = serverURL + \"/\";\n }\n SSLConfiguration sslConfiguration = new SSLConfiguration();\n sslConfiguration.setUseDefaultJavaTrustStore(true);\n SWAMPHttpClient client = new SWAMPHttpClient(serverURL,sslConfiguration);\n MyResponse raw = client.rawGet(serverURL + \"config/config.json\");\n String webServerURL = null;\n if(raw.hasJSON()){\n if(raw.json.containsKey(\"servers\")){\n JSONObject servers = raw.json.getJSONObject(\"servers\");\n if(servers.containsKey(\"web\")){\n webServerURL = servers.getString(\"web\");\n }\n }\n }\n if(webServerURL == null){\n return null;\n }\n return webServerURL;\n }", "public static String getURLRedirect(){\n\t\treturn \"https://54.247.74.173:8443\";\r\n\t}", "public final String getEndpointOverrideUrl() {\n return properties.get(ENDPOINT_OVERRIDE_URL_PROPERTY);\n }", "@Override\n public String createEndpointUri() {\n \n Properties scProps = utils.obtainServerConfig();\n String baseUri = scProps.getProperty(TARGET_SERVER_PROPERTY_NAME);\n String accessToken = scProps.getProperty(AUTH_TOKEN_PROPERTY_NAME);\n String sourceName = scProps.getProperty(SOURCES_PROPERTY_NAME);\n String sendPings = scProps.getProperty(SEND_PING_PROPERTY_NAME);\n if (StringUtils.isEmpty(baseUri) || StringUtils.isEmpty(accessToken)) {\n throw new IllegalArgumentException(\"source.config file is missing or does not contain sufficient \" +\n \"information from which to construct an endpoint URI.\");\n }\n if (StringUtils.isEmpty(sourceName) || sourceName.contains(\",\")) {\n throw new IllegalArgumentException(\"Default vantiq: endpoints require a source.config file with a single\" +\n \" source name. Found: '\" + sourceName + \"'.\");\n }\n \n try {\n URI vantiqURI = new URI(baseUri);\n this.setEndpointUri(baseUri);\n String origScheme = vantiqURI.getScheme();\n \n StringBuilder epString = new StringBuilder(vantiqURI.toString());\n epString.append(\"?sourceName=\").append(sourceName);\n this.sourceName = sourceName;\n epString.append(\"&accessToken=\").append(accessToken);\n this.accessToken = accessToken;\n if (sendPings != null) {\n epString.append(\"&sendPings=\").append(sendPings);\n this.sendPings = Boolean.parseBoolean(sendPings);\n }\n if (origScheme.equals(\"http\") || origScheme.equals(\"ws\")) {\n epString.append(\"&noSsl=\").append(\"true\");\n noSsl = true;\n }\n epString.replace(0, origScheme.length(), \"vantiq\");\n URI endpointUri = URI.create(String.valueOf(epString));\n return endpointUri.toString();\n } catch (URISyntaxException mue) {\n throw new IllegalArgumentException(TARGET_SERVER_PROPERTY_NAME + \" from server config file is invalid\",\n mue);\n }\n }", "@Deprecated // Use TrcApplicationContext\n URI getApiEndpoint();", "public String getCurrentUrlConfig() {\n String primary = AbstractConfigHandler.getPrimaryDataServer();\n if (primary == null) {\n logger.debug(\"No primary dataserver found\");\n urlUnset();\n return null;\n } else {\n String url = addressHandler.getHttpAddress(primary);\n if (url == null) {\n logger.debug(\"No url set for dataserver: \" + primary);\n urlUnset();\n return null;\n } else {\n return verifyHttpProcess(url);\n }\n }\n }", "@Override\n public String toString() {\n return endpoint;\n }", "public String getUrl() {\n\t\tif (prop.getProperty(\"url\") == null)\n\t\t\treturn \"\";\n\t\treturn prop.getProperty(\"url\");\n\t}", "public static String UrlToHit(){\n\t\treturn BaseURL;\n\t}", "@java.lang.Override\n public java.lang.String getApiEndpoint() {\n java.lang.Object ref = apiEndpoint_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n apiEndpoint_ = s;\n return s;\n }\n }", "private static String getBaseUrl() {\n StringBuilder url = new StringBuilder();\n url.append(getProtocol());\n url.append(getHost());\n url.append(getPort());\n url.append(getVersion());\n url.append(getService());\n Log.d(TAG, \"url_base: \" + url.toString());\n return url.toString();\n }", "public String getHttpsEndpoint() {\n\t\treturn \"https://\" + getMyHostname() + \":\" + httpsPort;\n\t}", "URI fetchUri(ServiceAlias serviceAlias);", "public String get_url() throws Exception {\n\t\treturn this.url;\n\t}", "public String getURL();", "public String getSiteUrl();", "public String getSubscribeEndpoint() {\n \t\treturn this.subscriptionsTarget.getUri().toString();\n \t}", "Uri getUrl();", "public void determineBaseUrl() {\n if (Environment.isLatest()) {\n baseUrl = \"api-latest.wdpro.starwave.com\";\n } else if (Environment.isStage()) {\n baseUrl = \"api-stage.wdpro.starwave.com\";\n } else if (Environment.isENV4()) {\n baseUrl = \"api-latest.wdpro.starwave.com\";\n } else if (Environment.isENV2()) {\n // baseUrl = \"api-qa.wdpro.disney.go.com:8088\";\n baseUrl = \"api-env2.wdpro.starwave.com\";\n } else if (Environment.isSoftLaunch()) {\n baseUrl = \"api.wdpro.disney.go.com\";\n } else if (Environment.isShadow()) {\n baseUrl = \"api-shadow.wdpro.starwave.com\";\n } else if (Environment.isProduction()) {\n baseUrl = \"api.wdpro.disney.go.com\";\n } else {\n baseUrl = \"api.wdpro.disney.go.com\";\n }\n }", "@SuppressFBWarnings(\"UPM_UNCALLED_PRIVATE_METHOD\")\n public static String getEwpSchemaBaseUrl() {\n return ewpSchemaBaseUrl;\n }", "String getWebsite();", "private String get_url() {\n File file = new File(url);\n return file.getAbsolutePath();\n }", "public String getServerUrl() {\r\n return this.fedoraBaseUrl;\r\n }", "private String getRestUrl() {\n return restUrl;\n }", "String getQueryRequestUrl();", "String getQueryResultsUrl();", "public String getUrl()\n\t\t{\n\t\t\treturn \"https://www.zohoapis.eu\";\n\t\t}", "String getUri( );", "public abstract String getURL();", "private static String getBaseUrl()\r\n {\r\n return \"https://rapidapi.io/connect\";\r\n }", "public String getServerUri(String namespace);", "public String getFrontEndAddress() {\n //TODO(alown): should this really only get the first one?\n return (this.isSSLEnabled ? \"https://\" : \"http://\") + frontendAddressHolder.getAddresses().get(0);\n }", "String url();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "public String getServerUrl()\n {\n return null;\n }", "public String getUrl()\n\t\t{\n\t\t\treturn \"https://developer.zohoapis.eu\";\n\t\t}", "public String getEasyCoopURI() {\r\n String uri = \"\";\r\n\r\n try {\r\n javax.naming.Context ctx = new javax.naming.InitialContext();\r\n uri = (String) ctx.lookup(\"java:comp/env/easycoopbaseurl\");\r\n //BASE_URI = uri; \r\n } catch (NamingException nx) {\r\n System.out.println(\"Error number exception\" + nx.getMessage().toString());\r\n }\r\n\r\n return uri;\r\n }", "public String getEndPoint() {\n return _endPoint;\n }", "public java.lang.String getApiUrl() {\n java.lang.Object ref = apiUrl_;\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 if (bs.isValidUtf8()) {\n apiUrl_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getURL() {\n return uRL;\n }" ]
[ "0.7309014", "0.72331244", "0.7229006", "0.7190935", "0.70162755", "0.693511", "0.6834964", "0.6832515", "0.679204", "0.6783729", "0.6744902", "0.67385453", "0.66944337", "0.66694355", "0.6666339", "0.6666339", "0.6657569", "0.6594235", "0.6581355", "0.65766966", "0.65765923", "0.6572397", "0.65656924", "0.6564535", "0.6557995", "0.65534014", "0.6520987", "0.6519283", "0.6489568", "0.6484678", "0.64651453", "0.6448931", "0.6436517", "0.6424584", "0.6419556", "0.64121515", "0.6407906", "0.64051133", "0.6387675", "0.63863724", "0.63761836", "0.637451", "0.63717794", "0.63699996", "0.63650864", "0.6358004", "0.63412344", "0.6334186", "0.6330029", "0.6324125", "0.6324125", "0.63218135", "0.63203907", "0.6315636", "0.6303919", "0.62833136", "0.62731695", "0.6268826", "0.62658644", "0.6265468", "0.62609327", "0.6254354", "0.6252855", "0.62503934", "0.624925", "0.6231884", "0.6219834", "0.62129176", "0.6211653", "0.62110144", "0.6191688", "0.61901516", "0.61863506", "0.6177379", "0.6172771", "0.6172113", "0.61663854", "0.61527073", "0.6151816", "0.615022", "0.6145742", "0.61438924", "0.61298466", "0.6127817", "0.61122227", "0.6112171", "0.61076057", "0.61014885", "0.6097708", "0.6097708", "0.6097708", "0.6097708", "0.6097708", "0.6097708", "0.6091088", "0.60899156", "0.60864645", "0.6082343", "0.6074118", "0.6061766" ]
0.7611679
0
Returns the singleton instance of BillSearchDelegateImpl
public static CorePaymentDelegateImpl getInstance() { if(instance == null) { instance = new CorePaymentDelegateImpl(); } return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized ClubSearch getInstance()\r\n {\r\n if (clubSearch == null)\r\n {\r\n clubSearch = new ClubSearch();\r\n }\r\n \r\n return clubSearch;\r\n }", "public static Delegateur getInstance() {\r\n\t\tif (delegateur == null && dbFacade != null) {\r\n\t\t\tdelegateur = new Delegateur(dbFacade);\r\n\t\t}\r\n\t\treturn delegateur;\r\n\t}", "public RunePouchHandler getInstance() {\n return instance == null ? instance = new RunePouchHandler(this.superClass) : instance;\n }", "public static Bank getInstance() {\r\n\t\treturn instance;\r\n\t}", "public static BookmarkStore getInstance() {\n return store;\n }", "public static Business getInstance() {\n if (business == null) {\n business = new Business();\n }\n return business;\n }", "public static FacadeMiniBank getInstance(){\r\n\r\n\t\tif(singleton==null){\r\n\t\t\ttry {\r\n\t\t\t\t//premier essai : implementation locale\r\n\t\t\t\tsingleton=(FacadeMiniBank) Class.forName(implFacadePackage + \".\" + localeFacadeClassName).newInstance();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.err.println(e.getMessage() + \" not found or not created\");\r\n\t\t\t}\t\t\t\t\t\t\r\n\t\t}\r\n\t\tif(singleton==null){\r\n\t\t\t//deuxieme essai : business delegate \r\n\t\t singleton=getRemoteInstance();\r\n\t\t\t\t\t\t\t\t\r\n\t\t}\r\n\t\treturn singleton;\r\n\t}", "public static payRollFacade getInstance() {\n\t\treturn INSTANCE;\n\t}", "public static synchronized IndexingManager getInstance() {\n if (indexManager == null) {\n indexManager = new IndexingManager();\n return indexManager;\n } else {\n return indexManager;\n }\n }", "public static SalesOrderDataSingleton getInstance()\n {\n // Return the instance\n return instance;\n }", "public static FindAllDocumentDAO getInstance(){\n\t\tif(instance_ == null){\n\t\t\tinstance_ = new FindAllDocumentDAO();\n\t\t}\n\t\treturn instance_;\n\t}", "public static BusinessLogicFinder getInstance() {\n\t\tsynchronized(SystemBusinessLogicFinder.class) {\n\t\t\tif (instance == null) {\n\t\t\t\tString finderClassName = \n\t\t\t\t\t\tLogicConfiguration.getInstance().getProperty(PropertyName.BUSINESS_LOGIC_FINDER);\n\t\t\t\ttry {\n\t\t\t\t\tinstance = (BusinessLogicFinder)Class.forName(finderClassName).newInstance();\n\t\t\t\t}\n\t\t\t\tcatch(Exception ex) {\n\t\t\t\t\tthrow new RuntimeException(\"Unable to load business logic finder class: \" + finderClassName);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public T delegate() {\n return _delegate;\n }", "public static SortBuilder getInstance() {\n \t\treturn singleton;\n \t}", "public static BESDyno getInstance() {\n if (instance == null) {\n instance = new BESDyno();\n }\n return instance;\n }", "public static BusquedaMaker getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new BusquedaMaker();\n\t\t}\n\n\t\treturn instance;\n\t}", "public static MarketDataManagerImpl getInstance()\n {\n return instance;\n }", "public static ServiceLocatorFactory getInstance() {\n return INSTANCE;\n }", "public static RepositoryService getInstance() {\n return instance;\n }", "public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "public static MessageBusImpl getInstance() \r\n\t{\r\n\t\treturn MessageBusImplHolder.instance;\r\n\t}", "public static CommandBrocker getInstance() {\n\t\tif (cb == null) {\n\t\t\tcb = new CommandBrocker();\n\t\t}\n\t\treturn cb;\n\t}", "public Dao getInstance() {\n\t\treturn INSTANCE;\n\t}", "public static BankingDBOpenHelper getInstance() {\n return getInstance(mCtx);\n }", "public Object getDelegate() {\n\t\treturn this.delegate;\n\t}", "public static HibernateToListDAO getInstance()\r\n\t{\r\n\t\tif(_instanceDAO == null) {\r\n\t\t\t_instanceDAO = new HibernateToListDAO();\r\n\t }\r\n\t\treturn _instanceDAO;\r\n\t}", "public com.guidewire.datamodel.DelegateDocument.Delegate getDelegate()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.DelegateDocument.Delegate target = null;\r\n target = (com.guidewire.datamodel.DelegateDocument.Delegate)get_store().find_element_user(DELEGATE$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }", "protected BaseOracleBean getDatabeanInstance() {\n return new RkPaySumOracleBean();\n }", "public static AccountVerificationSingleton getInstance()\n {\n if (uniqueInstance == null)\n {\n uniqueInstance = new AccountVerificationSingleton();\n }\n \n return uniqueInstance;\n }", "protected IndexSearcher getSearcher() {\n\t\treturn indexSearcher;\n\t}", "public static ServiceListingList getInstance() {\n if (instance == null) {\n instance = new ServiceListingList();\n }\n return instance;\n }", "public static ReportService getInstance()\n {\n return reportService;\n }", "public static RecordingRepository getInstance() {\r\n if (_instance == null) {\r\n _instance = new RecordingRepository();\r\n }\r\n return _instance;\r\n }", "public abstract S getSearch();", "Search getSearch();", "public static GenericRecordSetManager getInstance() {\n return instance;\n }", "public static ElasticSearchMapper getInstance() {\n return ElasticSearchMapperHolder.instance;\n }", "D createDelegate() {\n return null;\n }", "private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }", "protected static DeepSearchRRList getInstance() {\n\n\t\treturn MYDEEPSEARCHRRLIST;\n\t}", "public static BokMapper getInstance(){\r\n\t\treturn BokMapper;\r\n\t}", "public static Singleton getInstance() {\n return mSing;\n }", "public static OneByOneManager getInstance() {\n // The static instance of this class\n return INSTANCE;\n }", "public static CppTestRuleSetDAOImpl getInstance()\r\n {\r\n return instance;\r\n }", "public static ModelSearchDirectoryScopeFactory getInstance()\n {\n return instance == null ? instance = new ModelSearchDirectoryScopeFactory() : instance;\n }", "public static PersonHandler getInstance() {\n return PersonHandler.PersonHandlerHolder.INSTANCE;\n }", "public Condition delegate() {\n return this.delegate;\n }", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static EmployeeDao getInstance() {\n\n\t\treturn babyMemberDao;\n\t}", "public static Singleton getInstance( ) {\n return singleton;\n }", "public synchronized YahooLocationHelper getInstance(){\r\n\t\tif (m_Instance == null){\r\n\t\t\tm_Instance = new YahooLocationHelper();\r\n\t\t}\r\n\t\t\r\n\t\treturn m_Instance;\r\n\t}", "public static DataModule getInstance() {\n return Holder.INSTANCE;\n }", "public static BlockIndexStore getInstance() {\n return CARBONTABLEBLOCKSINSTANCE;\n }", "@Transactional\r\n\tpublic SearchBean getSearchBean(SearchForm vo) {\n\t\tSearchBean bean = new SearchBean(vo, allTripList);\r\n\t\treturn bean;\r\n\t}", "public static DOMAXIDBuilder getInstance() {\n\n\t\tif (builder == null) {\n\t\t\tsynchronized (lockObj) {\n\t\t\t\tif (builder == null) {\n\t\t\t\t\tbuilder = new DOMAXIDBuilder();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn builder;\n\t}", "public static DAOFactory getInstance() {\r\n return instance;\r\n }", "static Sbpayment newInstance() {\n return new DefaultSbpayment();\n }", "public static DingnedDealManager getInstance() {\n synchronized (DingnedDealManager.class) {\n if(instance == null) {\n instance = new DingnedDealManager();\n }\n }\n //noinspection SynchronizeOnNonFinalField\n synchronized (instance) { checkOut++; }\n return instance;\n }", "public static QueryService getInstance() {\n\t \t// Use the service loader to load an implementation if one is available\n\t \t// Place a file called uk.ac.ox.it.ords.api.structure.service.CommentService in src/main/resources/META-INF/services\n\t \t// containing the classname to load as the CommentService implementation. \n\t \t// By default we load the Hibernate/Postgresql implementation.\n\t \t//\n\t \tif (provider == null){\n\t \t\tServiceLoader<QueryService> ldr = ServiceLoader.load(QueryService.class);\n\t \t\tfor (QueryService service : ldr) {\n\t \t\t\t// We are only expecting one\n\t \t\t\tprovider = service;\n\t \t\t}\n\t \t}\n\t \t//\n\t \t// If no service provider is found, use the default\n\t \t//\n\t \tif (provider == null){\n\t \t\tprovider = new QueryServiceImpl();\n\t \t}\n\t \t\n\t \treturn provider;\n\t }", "ResponseHandler getInstance() {\n \t\treturn this;\n \t}", "private LdapContactSearchBean getSearchBean(HttpServletRequest request) {\r\n\t\t// get the data from request\r\n\t\tint start = WebCommonService.toInt(getData(request, IContactInfoService.SEARCHING_START), 0);\r\n\t\tint limit = WebCommonService.toInt(getData(request, IContactInfoService.SEARCHING_LIMIT), this.getDefaultLimit());\r\n\t\tString keyword= getData(request, IContactInfoService.KEYWORD_PARAM);\r\n\t\tString domain = getData(request, IContactInfoService.GROUP_PARAM);\r\n\t\t\r\n\t\t// get the token\r\n\t\tString token = null;\r\n\t\tif(start == 0) {\r\n\t\t\t// put data to cache again\r\n\t\t\tremoveDataFromCache(SEARCH_CACHE_KEY);\r\n\t\t} else {\r\n\t\t\t// get the tokens from cache\r\n\t\t\ttoken = getDataFromCache(SEARCH_CACHE_KEY, String.class);\r\n\t\t}\r\n\t\t\r\n\t\t// create the search bean\r\n\t\tLdapContactSearchBean searchBean = new LdapContactSearchBean(start, limit, token);\r\n\t\tsearchBean.setKey(keyword);\r\n\t\tif(DOMAIN.equals(this.category)) {\r\n\t\t this.getCode();\r\n\t\t searchBean.setDomainName(domain); \r\n\t\t}else if(GROUP.equals(this.category)) {\r\n\t\t searchBean.setDomainName(getDomain());\r\n\t\t searchBean.setDepartment(domain);\r\n\t\t}\r\n\t\t\r\n\t\t\t\t\r\n\t\t// return the search bean.\r\n\t\treturn searchBean;\r\n\t}", "public static OrderFacade getInstance(){\n\t \tif (INSTANCE == null)\n\t { \n\t \tINSTANCE = new OrderFacade(); \n\t } \n\t return INSTANCE;\n\t }", "public static CZSZApplication_bak getInstance() {\n return theSingletonInstance;\n }", "public static NotificationPublisher getInstance() {\n return instance;\n }", "public static AdresseAccess getInstance() {\n return SingletonHolder.instance;\n }", "public Lock delegate() {\n return this.delegate;\n }", "public static DALFileLocator getInstance() {\n\t\treturn instance;\n\t}", "public static Singleton instance() {\n return Holder.instance;\n }", "public static DbHandler getInstance()\n\t{\n\t\treturn instance;\n\t}", "@Override\n public T getInstance() {\n return instance;\n }", "public static DDBUserPointDAO getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tconfig = new GeoDataManagerConfiguration(client, DynamoDBConfiguration.USER_POINT_TABLE_NAME);\r\n\t\t\tgeoDataManager = new GeoDataManager(config);\r\n\t\t\t\r\n\t\t\tmapper = new ObjectMapper();\r\n\t\t\tfactory = mapper.getJsonFactory();\r\n\t\t\tinstance = new DDBUserPointDAO();\r\n\t\t}\r\n\r\n\t\treturn instance;\r\n\t}", "@Contract(pure = true)\n/* */ public static UPNPService getInstance() {\n/* 57 */ return INSTANCE;\n/* */ }", "public static synchronized SalesOrderCache getInstance() {\n\t\tif(instance == null) {\n\t\t\tinstance = new SalesOrderCache();\n\t\t}\n\t\treturn instance;\n\t}", "public static FacadeCommandOfService getInstance(){\n if(facadeCommandOfService == null){\n facadeCommandOfService = new FacadeCommandOfService();\n }\n return facadeCommandOfService;\n }", "private DisposableObserver<List<SearchEntry>> getSearchObserver() {\n return new DisposableObserver<List<SearchEntry>>() {\n @Override\n public void onNext(List<SearchEntry> searchResults) {\n showSearchResults(searchResults);\n }\n\n @Override\n public void onError(Throwable e) { }\n\n @Override\n public void onComplete() { }\n };\n }", "public static DataSourceSwapperRegistry getInstance() {\n return INSTANCE;\n }", "public static LinkList instance() {\n\t\tif(singleton == null) \n\t\t\tsingleton = new LinkList();\n\t\t\t\t\n\t\t\n\t\treturn singleton;\n\t}", "public static BookFactory getInstance()\r\n {\r\n \r\n if(bookFactoryInstance == null)\r\n {\r\n bookFactoryInstance = new BookFactory();\r\n }\r\n \r\n return bookFactoryInstance;\r\n }", "public static MySqlUserDao getInstance() {\n\t\treturn Holder.INSTANCE;\n\t}", "public static FilterCacheFactory getInstance() {\n return instance;\n }", "public static BackendFactory getInstance() {\n return INSTANCE;\n }", "public static MetadataDispatcherQueue getInstance(){\n if(instance == null ){\n instance = new MetadataDispatcherQueue();\n }\n return instance;\n }", "public static CompanyManager getInstance() {\n synchronized (CompanyManager.class) {\n if (instance == null) {\n instance = new CompanyManager();\n }\n }\n //noinspection SynchronizeOnNonFinalField\n synchronized (instance) { checkout++; }\n return instance;\n }", "public static GroundItemParser getInstance() {\r\n return SINGLETON;\r\n }", "public static ChartDataUpdater getInstance(){\n\t\treturn ChartDataUpdaterInstanceHolder.instance;\n\t}", "public DPSingletonLazyLoading getInstance(){ //not synchronize whole method. Instance oluşmuş olsa bile sürekli burada bekleme olur.\r\n\t\tif (instance == null){//check\r\n\t\t\tsynchronized(DPSingletonLazyLoading.class){ //critical section code NOT SYNCRONIZED(this) !!\r\n\t\t\t\tif (instance == null){ //double check\r\n\t\t\t\t\tinstance = new DPSingletonLazyLoading();//We are creating instance lazily at the time of the first request comes.\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn instance;\r\n\t}", "public static AnagramService getInstance() {\n\t\treturn SingletonHelper.INSTANCE;\n\t}", "public static BattleArena getInstance() {\n return INSTANCE;\n }", "public static MessageBroker getInstance() {\n\t\t//TODO: Implement this\n\t\tif (instance == null) {\n\t\t\tinstance = new MessageBrokerImpl();\n\n\t\t}\n\t\treturn instance;\n\t}", "public QueryInfoSearch getQueryInfoSearch() {\n if (queryInfoSearch != null) return queryInfoSearch;\n queryInfoSearch = new QueryInfoSearch();\n return queryInfoSearch;\n }", "public abstract BusinessDAO getBusinessDAO();", "public T getInstance() {\n return instance;\n }", "public static MoneyFactory getInstance() {\n\t\treturn factory;\n\t}", "public static synchronized QuestStateTableDataGateway getSingleton()\n\t{\n\t\tif (singleton == null)\n\t\t{\n\t\t\tsingleton = new QuestStateTableDataGatewayRDS();\n\t\t}\n\t\treturn singleton;\n\t}", "synchronized public static MessageBusImpl getInstance()\n\t{\n\t\tif (instance == null)\n\t\t{\n\t\t\t// if instance is null, initialize\n\t\t\tinstance = new MessageBusImpl();\n\t\t}\n\t\treturn instance;\n\t}", "public static SelectorFactory getInstance() {\n return ServiceFactoryHolder.INSTANCE;\n }", "public static IFilter getInstance() {\n return singleton;\n }", "public com.clarifai.grpc.api.Search.Builder getSearchBuilder() {\n return getSearchFieldBuilder().getBuilder();\n }", "public ManagedChannelBuilder<?> delegate() {\n return this.delegateBuilder;\n }", "public static PriorityExecutorSupplier getInstance() {\n return SingletonHolder.INSTANCE;\n }" ]
[ "0.5810887", "0.5757887", "0.5700189", "0.5687376", "0.56769073", "0.5658276", "0.5615815", "0.55941147", "0.5591945", "0.55691785", "0.5549648", "0.5526688", "0.55089825", "0.54954934", "0.5485321", "0.54597896", "0.5436434", "0.5316869", "0.53132606", "0.5309469", "0.52272975", "0.5210948", "0.5209005", "0.52042353", "0.51978254", "0.51891905", "0.5152916", "0.5132813", "0.5130181", "0.5130097", "0.511951", "0.5117714", "0.5107623", "0.5103609", "0.5099235", "0.5085023", "0.5066172", "0.5063816", "0.5052341", "0.50311404", "0.50303656", "0.50236315", "0.50152147", "0.5010464", "0.49980298", "0.49899128", "0.4987071", "0.49868107", "0.49812812", "0.49689457", "0.4963351", "0.49597162", "0.49530333", "0.49525878", "0.4951054", "0.4950211", "0.49455488", "0.49449652", "0.49448845", "0.49440098", "0.49376312", "0.49350303", "0.49323437", "0.49306366", "0.4928464", "0.49122375", "0.49102694", "0.49043542", "0.48954642", "0.48930153", "0.4888969", "0.48793775", "0.4877316", "0.48648065", "0.4860898", "0.48575485", "0.48513302", "0.48454428", "0.4838114", "0.4831706", "0.4821525", "0.4814863", "0.4813792", "0.4806498", "0.48049152", "0.48041955", "0.47912937", "0.47908035", "0.47895586", "0.47879952", "0.47793716", "0.47685516", "0.47518107", "0.47499007", "0.4740977", "0.47361317", "0.47329515", "0.47311297", "0.4725321", "0.47245932" ]
0.5401038
17
Client client = Client.create();
public Notificacion getNotificacion(long id) { logger.info("Get Notificacion"); WebResource webResource = client.resource(this.config .getProperty("API_URL") + this.config.getProperty("API_RESOURCE_NOTIFICACION") + id); ClientResponse response = webResource .accept(MediaType.APPLICATION_JSON) .header("ApiKey", this.apiKey).get(ClientResponse.class); handleResponse(response); Notificacion result = response.getEntity(Notificacion.class); response.close(); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Client getClient();", "public Client() {}", "@Override\n\tpublic void createClient() {\n\t\t\n\t}", "public Client() {\n }", "public Client(Client client) {\n\n }", "Client createNewClient(Client client);", "public abstract Client getClient();", "private void createClient() {\n tc = new TestClient();\n }", "public Client() {\r\n\t// TODO Auto-generated constructor stub\r\n\t \r\n }", "public Client() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "@BeforeClass\n public static void createClient() {\n client = HttpClients.createDefault();\n }", "public interface Client {\n\n}", "@Override\n\tpublic void createClient(Client clt) {\n\t\t\n\t}", "private MatterAgentClient() {}", "RestClientBuilder(){\n\n }", "public Client create(Client created);", "private static HttpClient createClient() {\n return HttpClients.createMinimal();\n }", "DatabaseClient newFinalClient();", "public HGDClient() {\n \n \t}", "public static Client createClient() {\n JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();\n provider.setAnnotationsToUse(new Annotations[]{Annotations.JACKSON});\n\n ClientConfig config = new ClientConfig(provider);\n //Allow delete request with entity\n config.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);\n //It helps to handle cookies\n config.property(ClientProperties.FOLLOW_REDIRECTS, Boolean.FALSE);\n //Allow PATCH\n config.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);\n\n Logger logger = Logger.getLogger(\"Client\");\n Feature feature = new LoggingFeature(logger, Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY,\n null);\n\n //Allow self trusted certificates\n SSLContext sslcontext;\n try {\n sslcontext = SSLContext.getInstance(\"TLS\");\n sslcontext.init(null, new TrustManager[]{new X509TrustManager() {\n public void checkClientTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public void checkServerTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[0];\n }\n }}, new java.security.SecureRandom());\n } catch (KeyManagementException | NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n\n return ClientBuilder\n .newBuilder()\n .withConfig(config)\n .sslContext(sslcontext)\n .build()\n .register(feature)\n .register(MultiPartFeature.class);\n }", "public static DucktalesClient getClient() {\n \treturn client;\n }", "public ServiceClient() {\n\t\tsuper();\n\t}", "private APIClient() {\n }", "public RestClient(){\n }", "interface myClient {\n}", "@Test\n public void testClient() {\n try {\n MockWebServer server = new MockWebServer();\n server.enqueue(new MockResponse().setBody(\"hello, world!\"));\n server.start();\n HttpUrl baseUrl = server.url(\"\");\n ConnectionOptions opt = new ConnectionOptions(\"apikey\");\n opt.setHost(baseUrl.toString());\n ApiClientWrapper clientWrapper = new ApiClientWrapper(opt);\n TestApiService testService = clientWrapper.createService(TestApiService.class);\n assertTrue(testService.getEndpointValue().execute().isSuccessful());\n RecordedRequest request = server.takeRequest();\n assertEquals(\"/\" + AN_ENDPOINT_PATH, request.getPath());\n assertNotNull(request.getHeader(\"Authorization\"));\n assertTrue(request.getHeader(\"Authorization\").contains(\"Bearer\"));\n assertNotNull(request.getHeader(\"User-Agent\"));\n assertTrue(request.getHeader(\"User-Agent\").contains(ApiClientWrapper.UserAgent.MBED_CLOUD_SDK_IDENTIFIER));\n server.shutdown();\n } catch (IOException | InterruptedException e) {\n fail(e.getMessage());\n }\n }", "public static Client getClient(){\n // Create a new client if it hasn't been created yet\n if(client == null) client = new Client(60000,60000);\n return client;\n }", "@Test\r\n\tpublic void client() {\n\t}", "public TurnoVOClient() {\r\n }", "public ClientInformationTest()\n {\n }", "ClientConnection connection();", "public interface Client {\n \n /**\n * Get the unique id of current client.\n *\n * @return id of client\n */\n String getClientId();\n \n /**\n * Whether is ephemeral of current client.\n *\n * @return true if client is ephemeral, otherwise false\n */\n boolean isEphemeral();\n \n /**\n * Set the last time for updating current client as current time.\n */\n void setLastUpdatedTime();\n \n /**\n * Get the last time for updating current client.\n *\n * @return last time for updating\n */\n long getLastUpdatedTime();\n \n /**\n * Add a new instance for service for current client.\n *\n * @param service publish service\n * @param instancePublishInfo instance\n * @return true if add successfully, otherwise false\n */\n boolean addServiceInstance(Service service, InstancePublishInfo instancePublishInfo);\n \n /**\n * Remove service instance from client.\n *\n * @param service service of instance\n * @return instance info if exist, otherwise {@code null}\n */\n InstancePublishInfo removeServiceInstance(Service service);\n \n /**\n * Get instance info of service from client.\n *\n * @param service service of instance\n * @return instance info\n */\n InstancePublishInfo getInstancePublishInfo(Service service);\n \n /**\n * Get all published service of current client.\n *\n * @return published services\n */\n Collection<Service> getAllPublishedService();\n \n /**\n * Add a new subscriber for target service.\n *\n * @param service subscribe service\n * @param subscriber subscriber\n * @return true if add successfully, otherwise false\n */\n boolean addServiceSubscriber(Service service, Subscriber subscriber);\n \n /**\n * Remove subscriber for service.\n *\n * @param service service of subscriber\n * @return true if remove successfully, otherwise false\n */\n boolean removeServiceSubscriber(Service service);\n \n /**\n * Get subscriber of service from client.\n *\n * @param service service of subscriber\n * @return subscriber\n */\n Subscriber getSubscriber(Service service);\n \n /**\n * Get all subscribe service of current client.\n *\n * @return subscribe services\n */\n Collection<Service> getAllSubscribeService();\n \n /**\n * Generate sync data.\n *\n * @return sync data\n */\n ClientSyncData generateSyncData();\n \n /**\n * Whether current client is expired.\n *\n * @param currentTime unified current timestamp\n * @return true if client has expired, otherwise false\n */\n boolean isExpire(long currentTime);\n \n /**\n * Release current client and release resources if neccessary.\n */\n void release();\n \n /**\n * Recalculate client revision and get its value.\n * @return recalculated revision value\n */\n long recalculateRevision();\n \n /**\n * Get client revision.\n * @return current revision without recalculation\n */\n long getRevision();\n \n /**\n * Set client revision.\n * @param revision revision of this client to update\n */\n void setRevision(long revision);\n \n}", "Client findByName(String name){\n return new Client();\n }", "private OkHttpClient createClient(){\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n return new OkHttpClient.Builder()\n .addInterceptor(logging)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS)\n .build();\n }", "private NotificationClient() { }", "@BeforeClass\n\tpublic static void setUpClient() {\n\t\t_client = ClientBuilder.newClient();\n\t}", "public void createClient() {\n FarmersBaseClient client = new FarmBeatsClientBuilder()\n .endpoint(\"https://<farmbeats resource name>.farmbeats-dogfood.azure.net\")\n .credential(new DefaultAzureCredentialBuilder().build())\n .buildFarmersBaseClient();\n }", "Client getClient(int id) throws ClientNotFoundException;", "DatabaseClient newStagingClient();", "private RedisClient() {\n\n }", "public Cliente() {\n }", "public Client create() {\n RequestProvider provider = RequestProviders.lookup();\n return provider.newClient(this);\n }", "messages.Clienthello.ClientHello getClientHello();", "private RestClient() {\n }", "private static Client createDummyClient() {\n\n PhoneNumber num1 = new PhoneNumber(\"Arnold Schubert\",\"0151234567\", \"Ehemann\");\n PhoneNumber num2 = new PhoneNumber(\"Helene Schubert\",\"0171234567\", \"Tochter\");\n ArrayList<PhoneNumber> phoneNumbers1 = new ArrayList<>();\n phoneNumbers1.add(num1);\n phoneNumbers1.add(num2);\n DummyVitalValues vital1 = new DummyVitalValues();\n\n ArrayList<Integer> pictograms1 = new ArrayList<>();\n\n DummyClientMedicine medicine1 = new DummyClientMedicine(DummyMedicine.ITEMS_PRESCRIBED_Erna, DummyMedicine.ITEMS_TEMPORARY, DummyMedicine.ITEMS_SELF_ORDERED);\n\n Client c = new Client(0,R.drawable.erna, \"Erna\",\"Schubert\",\"17.08.1943\",medicine1,DummyNotes.ITEMS_Erna, DummyFixedNotes.ITEMS_Erna, DummyToDos.ITEMS_Erna, vital1.vitalValues, \"Diabetes mellitus, Adipositas, Schilddrüsenunterfuntion\",1,\"Blankenfelder Str. 82, 13127 Berlin\",phoneNumbers1, pictograms1);\n\n return c;\n }", "private ClientController() {\n }", "private MyClientEndpoint(){\n // private to prevent anyone else from instantiating\n }", "BuildClient createBuildClient();", "JobClient createJobClient();", "public Client getClient() {\n return client;\n }", "public Client getClient() {\n return client;\n }", "public ClientController() {\n }", "public ExampleModuleClient() {\r\n }", "@Before\n\tpublic void setup() {\n\n\t\tclient = ClientBuilder.newClient();\n\n\t}", "public Client() {\n _host_name = DEFAULT_SERVER;\n _port = PushCacheFilter.DEFAULT_PORT_NUM;\n }", "public ClientCredentials() {\n }", "Client addClient(Client client) throws BaseException;", "Cliente(){}", "private CorrelationClient() { }", "private static twitter4j.Twitter createClient() {\n \t\ttwitter4j.Twitter client = TwitterFactory.getSingleton();\n \t\tclient.setOAuthConsumer(consumerKey, consumerSecret);\n \t\treturn client;\n \t}", "public static Client getInstance() {\n if(client == null) {\n client = new Client();\n }\n return client;\n }", "private ClientLoader() {\r\n }", "public UPKClient() {\n connectToServer(BASE_URL);\n }", "protected RestClient() {\n }", "private ClientController(){\n\n }", "public ChatClient() {\n\n }", "private MockClientFacade() {\n\t\t//this.c = Client.getInstance();\n\t}", "@Test\n @Order(1)\n void create_client() {\n client = new Client();\n client.setName(\"Test Client\");\n Client c = service.createClient(client);\n Assertions.assertEquals(client.getName(), c.getName());\n Assertions.assertNotEquals(0, c.getId());\n client = c;\n }", "public Factory() {\n this(getInternalClient());\n }", "public HRModuleClient() {\n }", "DatabaseClient newJobDbClient();", "ClientTransport clientTransport(TransportResources resources);", "public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }", "public APIClient() {\n Gson gson = new GsonBuilder()\n .setLenient()\n .create();\n\n // Build base url\n retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .addCallAdapterFactory(RxJava3CallAdapterFactory.create())\n .build();\n }", "Client updateClient(Client client) throws BaseException;", "public RedisClient() {\n init();\n }", "public EO_ClientsImpl() {\n }", "messages.Clienthello.ClientHelloOrBuilder getClientHelloOrBuilder();", "static Http1Client create() {\n return create(Http1ClientConfig.create());\n }", "@Bean(destroyMethod = \"close\")\n public RestHighLevelClient client() {\n final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();\n credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(esUser, esPassword));\n\n RestClientBuilder builder = RestClient.builder(new HttpHost(esHost, esPort, \"https\"))\n .setHttpClientConfigCallback(httpClientBuilder -> httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider));\n\n return new RestHighLevelClient(builder);\n }", "public Cliente() {\n\t\tsuper();\n\t}", "public interface Client {\n\n\t/**\n\t * @throws Http2Exception\n\t */\n\tvoid init() throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean start() throws Http2Exception;\n\n\t/**\n\t * @param request\n\t * @return\n\t * @throws Http2Exception\n\t */\n\t Http2Response request(Http2Request request) throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean isRuning() throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean shutdown() throws Http2Exception;\n\n}", "private HttpClient() {\n\t}", "public BrowseOffenceAMClient() {\r\n }", "public LpsClient() {\n super();\n }", "public void getClient(String id, AsyncCallback<Client> cb);", "Client(String host, int port) {\n super(host, port);\n }", "public interface ICordysGatewayClientFactory\r\n{\r\n /**\r\n * Return a client (the factory is also responsable for creating the gateway).\r\n *\r\n * @return A cordys gateway client.\r\n */\r\n ICordysGatewayClient getGatewayClientInstance();\r\n}", "public Client getClient() {\n\t\treturn client;\n\t}", "public Client getClient() {\n\t\treturn client;\n\t}", "public ClienteServicio() {\n }", "public Gateway() {\n genClient = new GenericClient<Gateway>(this);\n }", "public AbaloneClient() {\n server = new AbaloneServer();\n clientTUI = new AbaloneClientTUI();\n }", "@Test\n\tpublic void getClientTest() {\n\t\tClientDTO client = service.getClient(\"[email protected]\");\n\n\t\tassertEquals(\"Alin\", client.getFirstname());\n\t\tassertEquals(\"Neagu\", client.getLastname());\n\t\tassertEquals(\"[email protected]\", client.getEmail());\n\t}", "public TelemetryClientClient()\n {\n TelemetryClient tc = new TelemetryClient();\n if (!tc.getOnlineStatus())\n tc.connect(\"a connection string\");\n\n tc.send(\"some message\");\n\n String response = tc.receive();\n\n tc.disconnect();\n\n }", "public Login(Client client) {\n this.client = client;\n }", "public void createClientFromCredential() {\n WebPubSubServiceAsyncClient serverClient = new WebPubSubServiceClientBuilder()\n .connectionString(\"<connection-string>\")\n .hub(\"<hub>>\")\n .buildAsyncClient();\n\n // wrap WebPubSubServiceAsyncClient.getClientAccessToken as WebPubSubClientCredential\n WebPubSubClientCredential clientCredential = new WebPubSubClientCredential(Mono.defer(() ->\n serverClient.getClientAccessToken(new GetClientAccessTokenOptions()\n .setUserId(\"<user-name>\")\n .addRole(\"webpubsub.joinLeaveGroup\")\n .addRole(\"webpubsub.sendToGroup\"))\n .map(WebPubSubClientAccessToken::getUrl)));\n\n // create WebPubSub client\n WebPubSubClient client = new WebPubSubClientBuilder()\n .credential(clientCredential)\n .buildClient();\n // END: readme-sample-createClientFromCredential\n }", "private HttpClientInfra() {}", "public ClientServiceImpl() {\r\n\t}", "public static Client create() {\n ClientConfig clientConfig = new ClientConfig(JacksonFeature.class,\n JacksonJaxbJsonProvider.class,\n JacksonJsonProvider.class);\n return ClientBuilder.newClient(clientConfig);\n }", "@Override\n public Cassandra.Client getAPI() {\n return client;\n }" ]
[ "0.83559984", "0.7879675", "0.7841374", "0.78174406", "0.78080225", "0.7765603", "0.76557565", "0.7512488", "0.7482287", "0.73661226", "0.7045341", "0.7035817", "0.70002276", "0.699449", "0.6977496", "0.69531953", "0.6935118", "0.69274014", "0.68670595", "0.68118525", "0.6805618", "0.6801394", "0.6791082", "0.6749297", "0.67441994", "0.67409074", "0.67372084", "0.6715673", "0.66871655", "0.6661463", "0.66446155", "0.6643487", "0.662401", "0.66112846", "0.6601327", "0.65953434", "0.65785897", "0.65707326", "0.65693927", "0.6555187", "0.6543236", "0.6539049", "0.6532834", "0.6528305", "0.652526", "0.6508354", "0.6503744", "0.650124", "0.6493018", "0.6488791", "0.6488791", "0.6466074", "0.6452664", "0.6444952", "0.6440171", "0.6436998", "0.6420454", "0.64113843", "0.63892835", "0.63887715", "0.63769037", "0.63596195", "0.6358145", "0.634442", "0.6338475", "0.6337037", "0.6319034", "0.6314716", "0.630918", "0.63091654", "0.63078374", "0.6297623", "0.627933", "0.62793034", "0.6254561", "0.6244354", "0.6235147", "0.62330663", "0.6230128", "0.62255114", "0.6204743", "0.61987954", "0.6189866", "0.6189118", "0.6181572", "0.61815035", "0.616267", "0.6161552", "0.61428636", "0.61428636", "0.61279714", "0.6126195", "0.61098677", "0.6101077", "0.6099972", "0.609165", "0.6089106", "0.6083632", "0.60690683", "0.6064478", "0.6059818" ]
0.0
-1
Client client = Client.create();
public void createNotificacion(Notificacion notificacion) { logger.info("Create Notificacion"); WebResource webResource = client.resource(this.config .getProperty("API_URL") + this.config.getProperty("API_RESOURCE_NOTIFICACION")); ClientResponse response = webResource.type(MediaType.APPLICATION_JSON) .header("ApiKey", this.apiKey) .post(ClientResponse.class, notificacion); handleResponse(response); response.close(); // System.out.println("Notificacion created successfully ! {" + // notificacion + "}"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Client getClient();", "public Client() {}", "@Override\n\tpublic void createClient() {\n\t\t\n\t}", "public Client() {\n }", "public Client(Client client) {\n\n }", "Client createNewClient(Client client);", "public abstract Client getClient();", "private void createClient() {\n tc = new TestClient();\n }", "public Client() {\r\n\t// TODO Auto-generated constructor stub\r\n\t \r\n }", "public Client() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "@BeforeClass\n public static void createClient() {\n client = HttpClients.createDefault();\n }", "public interface Client {\n\n}", "@Override\n\tpublic void createClient(Client clt) {\n\t\t\n\t}", "private MatterAgentClient() {}", "RestClientBuilder(){\n\n }", "public Client create(Client created);", "private static HttpClient createClient() {\n return HttpClients.createMinimal();\n }", "DatabaseClient newFinalClient();", "public HGDClient() {\n \n \t}", "public static Client createClient() {\n JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();\n provider.setAnnotationsToUse(new Annotations[]{Annotations.JACKSON});\n\n ClientConfig config = new ClientConfig(provider);\n //Allow delete request with entity\n config.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);\n //It helps to handle cookies\n config.property(ClientProperties.FOLLOW_REDIRECTS, Boolean.FALSE);\n //Allow PATCH\n config.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);\n\n Logger logger = Logger.getLogger(\"Client\");\n Feature feature = new LoggingFeature(logger, Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY,\n null);\n\n //Allow self trusted certificates\n SSLContext sslcontext;\n try {\n sslcontext = SSLContext.getInstance(\"TLS\");\n sslcontext.init(null, new TrustManager[]{new X509TrustManager() {\n public void checkClientTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public void checkServerTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[0];\n }\n }}, new java.security.SecureRandom());\n } catch (KeyManagementException | NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n\n return ClientBuilder\n .newBuilder()\n .withConfig(config)\n .sslContext(sslcontext)\n .build()\n .register(feature)\n .register(MultiPartFeature.class);\n }", "public static DucktalesClient getClient() {\n \treturn client;\n }", "public ServiceClient() {\n\t\tsuper();\n\t}", "private APIClient() {\n }", "public RestClient(){\n }", "interface myClient {\n}", "@Test\n public void testClient() {\n try {\n MockWebServer server = new MockWebServer();\n server.enqueue(new MockResponse().setBody(\"hello, world!\"));\n server.start();\n HttpUrl baseUrl = server.url(\"\");\n ConnectionOptions opt = new ConnectionOptions(\"apikey\");\n opt.setHost(baseUrl.toString());\n ApiClientWrapper clientWrapper = new ApiClientWrapper(opt);\n TestApiService testService = clientWrapper.createService(TestApiService.class);\n assertTrue(testService.getEndpointValue().execute().isSuccessful());\n RecordedRequest request = server.takeRequest();\n assertEquals(\"/\" + AN_ENDPOINT_PATH, request.getPath());\n assertNotNull(request.getHeader(\"Authorization\"));\n assertTrue(request.getHeader(\"Authorization\").contains(\"Bearer\"));\n assertNotNull(request.getHeader(\"User-Agent\"));\n assertTrue(request.getHeader(\"User-Agent\").contains(ApiClientWrapper.UserAgent.MBED_CLOUD_SDK_IDENTIFIER));\n server.shutdown();\n } catch (IOException | InterruptedException e) {\n fail(e.getMessage());\n }\n }", "public static Client getClient(){\n // Create a new client if it hasn't been created yet\n if(client == null) client = new Client(60000,60000);\n return client;\n }", "@Test\r\n\tpublic void client() {\n\t}", "public TurnoVOClient() {\r\n }", "public ClientInformationTest()\n {\n }", "ClientConnection connection();", "public interface Client {\n \n /**\n * Get the unique id of current client.\n *\n * @return id of client\n */\n String getClientId();\n \n /**\n * Whether is ephemeral of current client.\n *\n * @return true if client is ephemeral, otherwise false\n */\n boolean isEphemeral();\n \n /**\n * Set the last time for updating current client as current time.\n */\n void setLastUpdatedTime();\n \n /**\n * Get the last time for updating current client.\n *\n * @return last time for updating\n */\n long getLastUpdatedTime();\n \n /**\n * Add a new instance for service for current client.\n *\n * @param service publish service\n * @param instancePublishInfo instance\n * @return true if add successfully, otherwise false\n */\n boolean addServiceInstance(Service service, InstancePublishInfo instancePublishInfo);\n \n /**\n * Remove service instance from client.\n *\n * @param service service of instance\n * @return instance info if exist, otherwise {@code null}\n */\n InstancePublishInfo removeServiceInstance(Service service);\n \n /**\n * Get instance info of service from client.\n *\n * @param service service of instance\n * @return instance info\n */\n InstancePublishInfo getInstancePublishInfo(Service service);\n \n /**\n * Get all published service of current client.\n *\n * @return published services\n */\n Collection<Service> getAllPublishedService();\n \n /**\n * Add a new subscriber for target service.\n *\n * @param service subscribe service\n * @param subscriber subscriber\n * @return true if add successfully, otherwise false\n */\n boolean addServiceSubscriber(Service service, Subscriber subscriber);\n \n /**\n * Remove subscriber for service.\n *\n * @param service service of subscriber\n * @return true if remove successfully, otherwise false\n */\n boolean removeServiceSubscriber(Service service);\n \n /**\n * Get subscriber of service from client.\n *\n * @param service service of subscriber\n * @return subscriber\n */\n Subscriber getSubscriber(Service service);\n \n /**\n * Get all subscribe service of current client.\n *\n * @return subscribe services\n */\n Collection<Service> getAllSubscribeService();\n \n /**\n * Generate sync data.\n *\n * @return sync data\n */\n ClientSyncData generateSyncData();\n \n /**\n * Whether current client is expired.\n *\n * @param currentTime unified current timestamp\n * @return true if client has expired, otherwise false\n */\n boolean isExpire(long currentTime);\n \n /**\n * Release current client and release resources if neccessary.\n */\n void release();\n \n /**\n * Recalculate client revision and get its value.\n * @return recalculated revision value\n */\n long recalculateRevision();\n \n /**\n * Get client revision.\n * @return current revision without recalculation\n */\n long getRevision();\n \n /**\n * Set client revision.\n * @param revision revision of this client to update\n */\n void setRevision(long revision);\n \n}", "Client findByName(String name){\n return new Client();\n }", "private OkHttpClient createClient(){\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n return new OkHttpClient.Builder()\n .addInterceptor(logging)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS)\n .build();\n }", "private NotificationClient() { }", "@BeforeClass\n\tpublic static void setUpClient() {\n\t\t_client = ClientBuilder.newClient();\n\t}", "public void createClient() {\n FarmersBaseClient client = new FarmBeatsClientBuilder()\n .endpoint(\"https://<farmbeats resource name>.farmbeats-dogfood.azure.net\")\n .credential(new DefaultAzureCredentialBuilder().build())\n .buildFarmersBaseClient();\n }", "Client getClient(int id) throws ClientNotFoundException;", "DatabaseClient newStagingClient();", "private RedisClient() {\n\n }", "public Cliente() {\n }", "public Client create() {\n RequestProvider provider = RequestProviders.lookup();\n return provider.newClient(this);\n }", "messages.Clienthello.ClientHello getClientHello();", "private RestClient() {\n }", "private static Client createDummyClient() {\n\n PhoneNumber num1 = new PhoneNumber(\"Arnold Schubert\",\"0151234567\", \"Ehemann\");\n PhoneNumber num2 = new PhoneNumber(\"Helene Schubert\",\"0171234567\", \"Tochter\");\n ArrayList<PhoneNumber> phoneNumbers1 = new ArrayList<>();\n phoneNumbers1.add(num1);\n phoneNumbers1.add(num2);\n DummyVitalValues vital1 = new DummyVitalValues();\n\n ArrayList<Integer> pictograms1 = new ArrayList<>();\n\n DummyClientMedicine medicine1 = new DummyClientMedicine(DummyMedicine.ITEMS_PRESCRIBED_Erna, DummyMedicine.ITEMS_TEMPORARY, DummyMedicine.ITEMS_SELF_ORDERED);\n\n Client c = new Client(0,R.drawable.erna, \"Erna\",\"Schubert\",\"17.08.1943\",medicine1,DummyNotes.ITEMS_Erna, DummyFixedNotes.ITEMS_Erna, DummyToDos.ITEMS_Erna, vital1.vitalValues, \"Diabetes mellitus, Adipositas, Schilddrüsenunterfuntion\",1,\"Blankenfelder Str. 82, 13127 Berlin\",phoneNumbers1, pictograms1);\n\n return c;\n }", "private ClientController() {\n }", "private MyClientEndpoint(){\n // private to prevent anyone else from instantiating\n }", "BuildClient createBuildClient();", "JobClient createJobClient();", "public Client getClient() {\n return client;\n }", "public Client getClient() {\n return client;\n }", "public ClientController() {\n }", "public ExampleModuleClient() {\r\n }", "@Before\n\tpublic void setup() {\n\n\t\tclient = ClientBuilder.newClient();\n\n\t}", "public Client() {\n _host_name = DEFAULT_SERVER;\n _port = PushCacheFilter.DEFAULT_PORT_NUM;\n }", "public ClientCredentials() {\n }", "Client addClient(Client client) throws BaseException;", "Cliente(){}", "private CorrelationClient() { }", "private static twitter4j.Twitter createClient() {\n \t\ttwitter4j.Twitter client = TwitterFactory.getSingleton();\n \t\tclient.setOAuthConsumer(consumerKey, consumerSecret);\n \t\treturn client;\n \t}", "public static Client getInstance() {\n if(client == null) {\n client = new Client();\n }\n return client;\n }", "private ClientLoader() {\r\n }", "public UPKClient() {\n connectToServer(BASE_URL);\n }", "protected RestClient() {\n }", "private ClientController(){\n\n }", "public ChatClient() {\n\n }", "private MockClientFacade() {\n\t\t//this.c = Client.getInstance();\n\t}", "@Test\n @Order(1)\n void create_client() {\n client = new Client();\n client.setName(\"Test Client\");\n Client c = service.createClient(client);\n Assertions.assertEquals(client.getName(), c.getName());\n Assertions.assertNotEquals(0, c.getId());\n client = c;\n }", "public Factory() {\n this(getInternalClient());\n }", "public HRModuleClient() {\n }", "DatabaseClient newJobDbClient();", "ClientTransport clientTransport(TransportResources resources);", "public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }", "public APIClient() {\n Gson gson = new GsonBuilder()\n .setLenient()\n .create();\n\n // Build base url\n retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .addCallAdapterFactory(RxJava3CallAdapterFactory.create())\n .build();\n }", "Client updateClient(Client client) throws BaseException;", "public RedisClient() {\n init();\n }", "public EO_ClientsImpl() {\n }", "messages.Clienthello.ClientHelloOrBuilder getClientHelloOrBuilder();", "static Http1Client create() {\n return create(Http1ClientConfig.create());\n }", "@Bean(destroyMethod = \"close\")\n public RestHighLevelClient client() {\n final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();\n credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(esUser, esPassword));\n\n RestClientBuilder builder = RestClient.builder(new HttpHost(esHost, esPort, \"https\"))\n .setHttpClientConfigCallback(httpClientBuilder -> httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider));\n\n return new RestHighLevelClient(builder);\n }", "public Cliente() {\n\t\tsuper();\n\t}", "public interface Client {\n\n\t/**\n\t * @throws Http2Exception\n\t */\n\tvoid init() throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean start() throws Http2Exception;\n\n\t/**\n\t * @param request\n\t * @return\n\t * @throws Http2Exception\n\t */\n\t Http2Response request(Http2Request request) throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean isRuning() throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean shutdown() throws Http2Exception;\n\n}", "private HttpClient() {\n\t}", "public BrowseOffenceAMClient() {\r\n }", "public LpsClient() {\n super();\n }", "public void getClient(String id, AsyncCallback<Client> cb);", "Client(String host, int port) {\n super(host, port);\n }", "public interface ICordysGatewayClientFactory\r\n{\r\n /**\r\n * Return a client (the factory is also responsable for creating the gateway).\r\n *\r\n * @return A cordys gateway client.\r\n */\r\n ICordysGatewayClient getGatewayClientInstance();\r\n}", "public Client getClient() {\n\t\treturn client;\n\t}", "public Client getClient() {\n\t\treturn client;\n\t}", "public ClienteServicio() {\n }", "public Gateway() {\n genClient = new GenericClient<Gateway>(this);\n }", "public AbaloneClient() {\n server = new AbaloneServer();\n clientTUI = new AbaloneClientTUI();\n }", "@Test\n\tpublic void getClientTest() {\n\t\tClientDTO client = service.getClient(\"[email protected]\");\n\n\t\tassertEquals(\"Alin\", client.getFirstname());\n\t\tassertEquals(\"Neagu\", client.getLastname());\n\t\tassertEquals(\"[email protected]\", client.getEmail());\n\t}", "public TelemetryClientClient()\n {\n TelemetryClient tc = new TelemetryClient();\n if (!tc.getOnlineStatus())\n tc.connect(\"a connection string\");\n\n tc.send(\"some message\");\n\n String response = tc.receive();\n\n tc.disconnect();\n\n }", "public Login(Client client) {\n this.client = client;\n }", "public void createClientFromCredential() {\n WebPubSubServiceAsyncClient serverClient = new WebPubSubServiceClientBuilder()\n .connectionString(\"<connection-string>\")\n .hub(\"<hub>>\")\n .buildAsyncClient();\n\n // wrap WebPubSubServiceAsyncClient.getClientAccessToken as WebPubSubClientCredential\n WebPubSubClientCredential clientCredential = new WebPubSubClientCredential(Mono.defer(() ->\n serverClient.getClientAccessToken(new GetClientAccessTokenOptions()\n .setUserId(\"<user-name>\")\n .addRole(\"webpubsub.joinLeaveGroup\")\n .addRole(\"webpubsub.sendToGroup\"))\n .map(WebPubSubClientAccessToken::getUrl)));\n\n // create WebPubSub client\n WebPubSubClient client = new WebPubSubClientBuilder()\n .credential(clientCredential)\n .buildClient();\n // END: readme-sample-createClientFromCredential\n }", "private HttpClientInfra() {}", "public ClientServiceImpl() {\r\n\t}", "public static Client create() {\n ClientConfig clientConfig = new ClientConfig(JacksonFeature.class,\n JacksonJaxbJsonProvider.class,\n JacksonJsonProvider.class);\n return ClientBuilder.newClient(clientConfig);\n }", "@Override\n public Cassandra.Client getAPI() {\n return client;\n }" ]
[ "0.83559984", "0.7879675", "0.7841374", "0.78174406", "0.78080225", "0.7765603", "0.76557565", "0.7512488", "0.7482287", "0.73661226", "0.7045341", "0.7035817", "0.70002276", "0.699449", "0.6977496", "0.69531953", "0.6935118", "0.69274014", "0.68670595", "0.68118525", "0.6805618", "0.6801394", "0.6791082", "0.6749297", "0.67441994", "0.67409074", "0.67372084", "0.6715673", "0.66871655", "0.6661463", "0.66446155", "0.6643487", "0.662401", "0.66112846", "0.6601327", "0.65953434", "0.65785897", "0.65707326", "0.65693927", "0.6555187", "0.6543236", "0.6539049", "0.6532834", "0.6528305", "0.652526", "0.6508354", "0.6503744", "0.650124", "0.6493018", "0.6488791", "0.6488791", "0.6466074", "0.6452664", "0.6444952", "0.6440171", "0.6436998", "0.6420454", "0.64113843", "0.63892835", "0.63887715", "0.63769037", "0.63596195", "0.6358145", "0.634442", "0.6338475", "0.6337037", "0.6319034", "0.6314716", "0.630918", "0.63091654", "0.63078374", "0.6297623", "0.627933", "0.62793034", "0.6254561", "0.6244354", "0.6235147", "0.62330663", "0.6230128", "0.62255114", "0.6204743", "0.61987954", "0.6189866", "0.6189118", "0.6181572", "0.61815035", "0.616267", "0.6161552", "0.61428636", "0.61428636", "0.61279714", "0.6126195", "0.61098677", "0.6101077", "0.6099972", "0.609165", "0.6089106", "0.6083632", "0.60690683", "0.6064478", "0.6059818" ]
0.0
-1
prints message to the console
public void printToUser(String message){ System.out.println(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void print(String message)\n {\n System.out.println(message);\n }", "public void printMessage() {\n printMessage(System.out::print);\n }", "private void print(String message) {\n\n //System.out.println(LocalDateTime.now() + \" \" + message);\n System.out.println(message);\n }", "public void print(String message);", "public void print(String message) {\n System.out.println(message);\n }", "public void print(String message) {\n System.out.println(message);\n }", "public void println(String message){\n if (this.okToPrint){\n System.out.println(message);\n }\n }", "public void print(String message){\n if (this.okToPrint){\n System.out.print(message);\n }\n }", "public static void print(String message)\n {\n\tSystem.out.println(message);\n }", "public static void print(String message) {\n System.out.print(message);\n }", "void println(String message);", "void print(String message);", "public static void print(String message) {\n\t\tSystem.out.print(message);\n\t}", "private static void printLine(String message){\n\t\tSystem.out.println(message);\n\t}", "public void printMessage(String message) {\n\r\n\t}", "private static void println(String message) {// metodo imprimir\r\n\t\tString threadName = Thread.currentThread().getName();\r\n\t\tSystem.out.println(threadName + \": \" + message);\r\n\t}", "protected void output(String message) {\n \t\tSystem.out.print(message);\n \t}", "public static void printMessage(String message) {\n printDashLines();\n System.out.println(message);\n printDashLines();\n }", "public void printMessage() {\n\t\tSystem.out.println(this.greeting + \" \" + this.message);\n\t}", "public static void println(String message) {\n System.out.println(message);\n }", "public void console(String message){\n\t\tactivity.append(message + \"\\n\");\n\t\tactivity.selectAll();\n\t}", "void message(){\n\t\tSystem.out.println(\"Hello dude as e dey go \\\\ we go see for that side\");\n\t\tSystem.out.print (\" \\\"So it is what it is\\\" \");\n\n\t}", "protected void PRINT(String message)\n\t{\n\t\tSystem.out.println(message);\n\t}", "public void displayTextToConsole();", "public static void println(String message) {\n\t\tSystem.out.println(message);\n\t}", "public static void write(String message) {\n System.out.println(message);\n }", "public void printMsg(String msg) {\n\t\tSystem.out.println(msg);\n\t}", "public void println(String message) {\r\n chatFrame.println(message);\r\n }", "public void print(Object msg)\n {\n print(msg, 1);\n }", "private void display(String msg) {\n cg.append(msg + \"\\n\");\n }", "private static void print(Object msg){\n if (WAMClient.Debug){\n System.out.println(msg);\n }\n\n }", "@Override\r\n\tpublic void printPlain(String message) {\n\t\tSystem.out.println(message);\r\n\t}", "private static void displayMessage(String message) {\n\t\toutput.append(message);\n\t}", "private void println(final String msg) {\n if (!mTestStop) {\n CUIOutputStream.println(msg);\n }\n }", "public void print() {\n System.out.println(\"Command: \" + command);\n }", "private static void println(String message, SimpleAttributeSet settings) {print(message + \"\\n\", settings);}", "private void print(String msg)\n {\n m_log.log(msg);\n m_vbox.write(\" \" + msg);\n }", "public static void print(String message) {\n if (outputEnabled)\n out.print(message);\n }", "public void printMsg() {\n System.out.println(\"This is an example RMI program\");\n }", "private void log(String message) {\n System.out.println(message);\n }", "public void print(String msg) {\n this.print(msg, false);\n }", "public static void info(Object message) {\n\t\tSystem.out.print(message);\n\t}", "public static void echo(String msg)\n {\n System.out.println(msg);\n }", "private void printConsole(String text) {\n\t\tMessage msg = getHandler().obtainMessage(MESSAGE_CONSOLE_CHANGED);\n\t\tmsg.obj = \"\\n\" + text ;\n\t\tmsg.sendToTarget();\t\t\n\t}", "public void outputMessage(String gameMessage){\n System.out.println(gameMessage);\n }", "private static void echo(String msg) {\n assert msg != null;\n\n System.out.println(msg);\n }", "private void log(String message) {\n System.out.println(message);\n }", "private static void log(String message) {\n System.out.println(message);\n }", "public void println();", "private void display(String msg) {\n\t\tString msgF = \"\\tClient- \" + msg + \"\\n\\n >> \";\n System.out.print(msgF);\n }", "@Override\n\tpublic void tellPlayer(String message) {\n\t\tSystem.out.println(message);\n\t}", "abstract void consoleMessage(String message);", "public void print(){\t\t\r\n\t\tSystem.out.println(\"===\\nCommit \" + id +\"\\n\"+ Time + \"\\n\" + message + \"\\n\");\r\n\t}", "void print(String message) throws IOException;", "public static void print(Object message) {\r\n if (!isDisabled()) {\r\n print(String.valueOf(message));\r\n }\r\n }", "private void display(String msg) {\n\t\tif(cg == null)\n\t\t\tSystem.out.println(msg); // println for Console mode\n\t\telse\n\t\t\tcg.append(msg + \"\\n\"); // Append to, for example, JTextArea in the ClientGUI\n\t}", "void printMsg(){\n\tdisplay();\n }", "@Override\n\tvoid showMsg() {\n\t\tSystem.out.println(\"Sample\");\n\t}", "public static void println(String message) {\n if (outputEnabled) {\n synchronized (out) {\n out.println(message);\n }\n }\n }", "public static void displayMsg() {\n\t}", "private void println(String message) {\n Log.println(level, tag, message);\n }", "void print(String message, Color color) throws IOException;", "private synchronized void display(String msg) {\n\n\t\t//guiConversation.append(msg);\n\t\tSystem.out.println(msg);\n\t}", "void showInConsole();", "public void logToConsole(String message) {\n Bukkit.getServer().getConsoleSender().sendMessage(color(message));\n }", "protected void echo(String msg){\n\tSystem.out.println(\"*ECHO*: \" + msg);\n }", "private void msg(String name, String message) {\n System.out.println(\"[\" + (System.currentTimeMillis() - system_start_time) + \"] \" + name + \": \" + message);\n }", "static void print (){\n \t\tSystem.out.println();\r\n \t}", "public static void print() {\r\n System.out.println();\r\n }", "public void MessageInvitCommand(String msg)\n {\n System.out.println(\"> \"+msg);\n }", "public void println()\n\t{\n\t\tSystem.out.println();\n\t}", "public void println(char owner, String msg) {\n\t}", "public void printTerminal(String message)\n\t{\n\t\tterminal.printTerminal(message);\n\t}", "public void say(String message)\r\n {\r\n System.out.println(\"*\" + name + \" - \" + message);\r\n }", "public void logs(Object message) {\n System.out.println(message.toString());\n }", "private void print(String msg) {\r\n\t\tSystem.out.printf(\"[%tT] %s\\n\", Calendar.getInstance(), msg);\r\n\t}", "public void displayMessage(){\n //getCouseName obtém o nome do curso\n System.out.printf(\"Welcome to the grade book for \\n%s!\\n\\n\", getCouseName());\n }", "public void printMsg(String msg)\n\t{\n\t\tmsgArea.append(msg);\n\t}", "private void print(String text) {\n\t\tSystem.out.println(text);\n\t}", "private static void log(String msg) {\n System.out.println(msg);\n }", "public void print(String message) {\n\t\tDate date = new Date();\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy hh:mm:ss.S\");\n\t\tSystem.out.println(sdf.format(date) + \"\t: \" + message);\n\t}", "void printTextToConsole(String content){\n }", "private void display(String msg) {\n String time = simpleDateFormat.format(new Date()) + \" | \" + msg;\n System.out.println(time);\n }", "private void printMessage(String s) {\n if (PRINTTRACE) {\r\n System.out.println(s);\r\n }\r\n }", "protected void displayMessage() {\n \n System.out.print (\"Message:\\n\");\n userMessage = message.toString();\n\n for(int i = 0; i < userMessage.length(); i++) \n System.out.format (\"%3d\", i);\n System.out.format (\"\\n\");\n for (char c : userMessage.toCharArray()) \n System.out.format(\"%3c\",c);\n System.out.format (\"\\n\");\n }", "public void println(String msg) {\n\t\tif (null == pwr) {\n\t\t\tinitialize();\n\t\t} else {\n\t\t\tpwr.println(msg);\n\t\t}\n\t}", "private void displayMessage(String message) {\n }", "public void showMessage(String message) \r\n\t\t{\t\t\t\r\n\t\t}", "public void print()\n {\n chatarea.append(\"Sender:(\"+port.getText()+\")\"+System.lineSeparator()+msgarea.getText()+System.lineSeparator());\n }", "@Override\r\n\t\tpublic void showMessage(String message) {\n\t\t\t\r\n\t\t}", "private void debugPrint(String msg) {\n if (debug) {\n System.out.println(toString() + \": \" + msg);\n }\n }", "public void showMessage(String message);", "private void log(String message) {\n System.out.println( message );\n sb.append( message ).append( \"\\n\" );\n }", "private void alert(String msg) {\r\n\t\tSystem.out.print(msg);\r\n\t }", "@Override\n\tpublic void showMessage(String message) {\n\n\t}", "private void print() {\n printInputMessage();\n printFrequencyTable();\n printCodeTable();\n printEncodedMessage();\n }", "private void PrintMessageOnTextChat(MessageWithTime message)\n\t{\n\t\tApplicationManager.textChat.write(message);\n\n\t}", "public void print(String msg, boolean reallyPrint) {\n if (reallyPrint) {\n // System.out.println(msg);\n }\n\n }", "public void writeInfo(String message){\n final String output = getTimeString() + \" INFO: \" + message+ ENTER;\n switch (PreferencesHelper.getConsolePopupLevel()) {\n case ALL:\n case ONLY_INFO:\n popConsoleView();\n break;\n default:\n break;\n }\n UIBundlingThread.getInstance().addRunnable(new Runnable(){\n public void run() {\n if(infoStream == null){\n infoStream = console.newOutputStream();\n infoStream.setColor(CustomMediaFactory.getInstance().getColor(\n CustomMediaFactory.COLOR_BLACK));\n }\n writeToConsole(infoStream, output);\n }\n });\n\n }", "public static void printInstruction(String msg) {\n out.println(msg);\n }" ]
[ "0.8088496", "0.7874422", "0.78324723", "0.781112", "0.7793241", "0.7793241", "0.7766967", "0.775717", "0.77344507", "0.76158994", "0.75643283", "0.7546776", "0.75312495", "0.752611", "0.75226086", "0.7492868", "0.74650496", "0.74628496", "0.7432104", "0.7386992", "0.7382589", "0.7366903", "0.73644245", "0.73306715", "0.7327635", "0.7318542", "0.7315258", "0.72628814", "0.7257031", "0.7235568", "0.722574", "0.72226435", "0.71977776", "0.7196467", "0.7177145", "0.71678674", "0.71599627", "0.71514285", "0.7145449", "0.7131315", "0.7119551", "0.71176803", "0.7110767", "0.71105146", "0.7103321", "0.70951205", "0.70742744", "0.706695", "0.70655245", "0.70437604", "0.7022613", "0.70207626", "0.7006607", "0.6986347", "0.69815814", "0.6972451", "0.6944041", "0.69413364", "0.6939696", "0.69390815", "0.6928144", "0.69191086", "0.69135535", "0.69089305", "0.68703717", "0.6863377", "0.68581945", "0.6850688", "0.68432343", "0.6822242", "0.6814067", "0.6811117", "0.6804108", "0.6799093", "0.67920506", "0.6789508", "0.6787488", "0.6759161", "0.67581254", "0.6751297", "0.67389005", "0.67382777", "0.67261285", "0.67177546", "0.67159367", "0.67124414", "0.67084426", "0.670454", "0.6698009", "0.66864824", "0.66846627", "0.6683855", "0.6680585", "0.66692317", "0.6662049", "0.66493464", "0.6648888", "0.663945", "0.663848", "0.6628128" ]
0.71332407
39
Creates a JCRRMI client factory with the default adapter factory.
public ClientRepositoryFactory() { this(new ClientAdapterFactory()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Factory() {\n this(getInternalClient());\n }", "public ClientRepositoryFactory(LocalAdapterFactory factory) {\n this.factory = factory;\n }", "protected Registry createRegistry() {\n return new JndiRegistry();\n }", "public static @NonNull ChannelFactory<? extends Channel> clientChannelFactory() {\n return CURR_NETTY_TRANSPORT.clientChannelFactory();\n }", "public Client create() {\n RequestProvider provider = RequestProviders.lookup();\n return provider.newClient(this);\n }", "public static Client create() {\n ClientConfig clientConfig = new ClientConfig(JacksonFeature.class,\n JacksonJaxbJsonProvider.class,\n JacksonJsonProvider.class);\n return ClientBuilder.newClient(clientConfig);\n }", "public DockerClient getDefaultConnection() {\n return connections.computeIfAbsent(DEFAULT_CONNECTION, id -> {\n DockerClientConfig config = null;\n\n if (SystemUtils.IS_OS_MAC_OSX) {\n config = DefaultDockerClientConfig.createDefaultConfigBuilder()\n .withDockerHost(\"unix:///var/run/docker.sock\")\n .build();\n }\n if (SystemUtils.IS_OS_LINUX) {\n config = DefaultDockerClientConfig.createDefaultConfigBuilder()\n .withDockerHost(\"unix:///var/run/docker.sock\")\n .build();\n }\n if (SystemUtils.IS_OS_WINDOWS) {\n config = DefaultDockerClientConfig.createDefaultConfigBuilder()\n .withDockerHost(\"tcp://localhost:2376\")\n .withDockerTlsVerify(true)\n .withDockerTlsVerify(\"1\")\n .build();\n }\n\n return DockerClientBuilder.getInstance(config).build();\n });\n }", "public RMIClient() {\n if(ipAdress == null){\n ipAdress = \"127.0.0.1\";\n }\n try {\n loginRegistry = LocateRegistry.getRegistry(ipAdress, 421);\n mainScreenRegistry = LocateRegistry.getRegistry(ipAdress, 422);\n } catch (RemoteException ex) {\n StageController.getInstance().popup(\"Server connection\", false, \"server connection failed.\");\n Logger.getLogger(RMIClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n if (loginRegistry != null) {\n try {\n loginProvider = (ILoginProvider) loginRegistry.lookup(\"loginProvider\");\n } catch (RemoteException | NotBoundException ex) {\n StageController.getInstance().popup(\"Server connection\", false, \"server connection failed.\");\n Logger.getLogger(RMIClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n if (mainScreenRegistry != null) {\n try {\n mainScreenProvider = (IMainScreenProvider) mainScreenRegistry.lookup(\"mainScreenProvider\");\n } catch (RemoteException | NotBoundException ex) {\n StageController.getInstance().popup(\"Server connection\", false, \"server connection failed.\");\n Logger.getLogger(RMIClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public static Client createClient() {\n JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();\n provider.setAnnotationsToUse(new Annotations[]{Annotations.JACKSON});\n\n ClientConfig config = new ClientConfig(provider);\n //Allow delete request with entity\n config.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);\n //It helps to handle cookies\n config.property(ClientProperties.FOLLOW_REDIRECTS, Boolean.FALSE);\n //Allow PATCH\n config.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);\n\n Logger logger = Logger.getLogger(\"Client\");\n Feature feature = new LoggingFeature(logger, Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY,\n null);\n\n //Allow self trusted certificates\n SSLContext sslcontext;\n try {\n sslcontext = SSLContext.getInstance(\"TLS\");\n sslcontext.init(null, new TrustManager[]{new X509TrustManager() {\n public void checkClientTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public void checkServerTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[0];\n }\n }}, new java.security.SecureRandom());\n } catch (KeyManagementException | NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n\n return ClientBuilder\n .newBuilder()\n .withConfig(config)\n .sslContext(sslcontext)\n .build()\n .register(feature)\n .register(MultiPartFeature.class);\n }", "public static ScribbleFactory init()\n {\n\t\ttry {\n\t\t\tScribbleFactory theScribbleFactory = (ScribbleFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.scribble.org/Scribble\"); \n\t\t\tif (theScribbleFactory != null) {\n\t\t\t\treturn theScribbleFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ScribbleFactoryImpl();\n\t}", "@Override\n\tpublic void createClient() {\n\t\t\n\t}", "@Override\n public Client createClient(Client client)\n throws RemoteException {\n client=clientManager.create(client);\n \n return client;\n }", "public JupiterConnector getDefault() {\n if (defaultConnection == null) {\n defaultConnection = new JupiterConnector(this,\n DEFAULT_NAME,\n redis.getPool(DEFAULT_NAME),\n fallbackPools.computeIfAbsent(DEFAULT_NAME, this::fetchFallbackPool));\n }\n\n return defaultConnection;\n }", "public ClientLoginService(){\n this(MessageConnection.CHANNEL_DEFAULT_RELIABLE);\n }", "public static RegistryOperations createAnonymousInstance(Configuration conf) {\n Preconditions.checkArgument(conf != null, \"Null configuration\");\n conf.set(KEY_REGISTRY_CLIENT_AUTH, REGISTRY_CLIENT_AUTH_ANONYMOUS);\n return createInstance(\"AnonymousRegistryOperations\", conf);\n }", "@Override\n\t\t\tprotected IAdapterFactory getDefaultAdapterFactory(Object type) {\n\t\t\t\treturn defaultAdapterFactory;\n\t\t\t}", "@Bean(destroyMethod = \"close\", name = \"restClient\")\n public RestHighLevelClient initRestClient() {\n List<HttpHost> hosts = new ArrayList<>();\n String[] hostArrays = host.split(\",\");\n for (String host : hostArrays) {\n if (StringUtils.isNotEmpty(host)) {\n hosts.add(new HttpHost(host.trim(), port, \"http\"));\n }\n }\n\n RestClientBuilder restClientBuilder = RestClient.builder(hosts.toArray(new HttpHost[0]));\n\n // configurable auth\n if (authEnable) {\n final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();\n credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(username, password));\n restClientBuilder.setHttpClientConfigCallback(httpAsyncClientBuilder -> httpAsyncClientBuilder\n .setDefaultCredentialsProvider(credentialsProvider));\n }\n\n restClientBuilder.setRequestConfigCallback(requestConfigBuilder -> requestConfigBuilder\n .setConnectTimeout(connTimeout).setSocketTimeout(socketTimeout)\n .setConnectionRequestTimeout(connectionRequestTimeout));\n\n return new RestHighLevelClient(restClientBuilder);\n }", "public static Factory factory() {\n return ext_dbf::new;\n }", "private static Client createDummyClient() {\n\n PhoneNumber num1 = new PhoneNumber(\"Arnold Schubert\",\"0151234567\", \"Ehemann\");\n PhoneNumber num2 = new PhoneNumber(\"Helene Schubert\",\"0171234567\", \"Tochter\");\n ArrayList<PhoneNumber> phoneNumbers1 = new ArrayList<>();\n phoneNumbers1.add(num1);\n phoneNumbers1.add(num2);\n DummyVitalValues vital1 = new DummyVitalValues();\n\n ArrayList<Integer> pictograms1 = new ArrayList<>();\n\n DummyClientMedicine medicine1 = new DummyClientMedicine(DummyMedicine.ITEMS_PRESCRIBED_Erna, DummyMedicine.ITEMS_TEMPORARY, DummyMedicine.ITEMS_SELF_ORDERED);\n\n Client c = new Client(0,R.drawable.erna, \"Erna\",\"Schubert\",\"17.08.1943\",medicine1,DummyNotes.ITEMS_Erna, DummyFixedNotes.ITEMS_Erna, DummyToDos.ITEMS_Erna, vital1.vitalValues, \"Diabetes mellitus, Adipositas, Schilddrüsenunterfuntion\",1,\"Blankenfelder Str. 82, 13127 Berlin\",phoneNumbers1, pictograms1);\n\n return c;\n }", "public static JavaJRExpressionFactory init()\n {\n try\n {\n JavaJRExpressionFactory theJavaJRExpressionFactory = (JavaJRExpressionFactory)EPackage.Registry.INSTANCE.getEFactory(JavaJRExpressionPackage.eNS_URI);\n if (theJavaJRExpressionFactory != null)\n {\n return theJavaJRExpressionFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new JavaJRExpressionFactoryImpl();\n }", "public DockerAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = DockerPackage.eINSTANCE;\n\t\t}\n\t}", "public static PoolInfoClient create() {\n return new PoolInfoClient();\n }", "private SshClient createClient() {\n java.security.Security.addProvider(\n new org.bouncycastle.jce.provider.BouncyCastleProvider());\n final SshClient client = SshClient.setUpDefaultClient();\n client.setForwardingFilter(AcceptAllForwardingFilter.INSTANCE);\n client.setServerKeyVerifier(AcceptAllServerKeyVerifier.INSTANCE);\n return client;\n }", "public interface IXioClientFactory\n{\n /**\n * Returns a client that is connected to the specified address, or is going to be connected to the specified address.\n * If the client is not connected, the caller must not connect the client to any other address but the one specified.\n * @param address The address.\n * @return Returns a new XioClient.\n */\n public XioClient newInstance( InetSocketAddress address);\n}", "void setDefaultClient(String id);", "public static CDOServerDefsFactory init() {\r\n\t\ttry {\r\n\t\t\tCDOServerDefsFactory theCDOServerDefsFactory = (CDOServerDefsFactory) EPackage.Registry.INSTANCE\r\n\t\t\t\t\t.getEFactory(\"http://www.eclipse.org/emf/CDO/server/defs/1.0.0\");\r\n\t\t\tif (theCDOServerDefsFactory != null) {\r\n\t\t\t\treturn theCDOServerDefsFactory;\r\n\t\t\t}\r\n\t\t} catch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new CDOServerDefsFactoryImpl();\r\n\t}", "private MultibinderFactory() { }", "public interface ICordysGatewayClientFactory\r\n{\r\n /**\r\n * Return a client (the factory is also responsable for creating the gateway).\r\n *\r\n * @return A cordys gateway client.\r\n */\r\n ICordysGatewayClient getGatewayClientInstance();\r\n}", "@Override\n public SessionClient build() {\n Supplier<CompletableFuture<SessionClient>> proxyFactory = () -> CompletableFuture.completedFuture(\n new DefaultRaftSessionClient(\n primitiveName,\n primitiveType,\n serviceConfig,\n partitionId,\n DefaultRaftClient.this.protocol,\n selectorManager,\n sessionManager,\n readConsistency,\n communicationStrategy,\n threadContextFactory.createContext(),\n minTimeout,\n maxTimeout));\n\n SessionClient proxy;\n\n ThreadContext context = threadContextFactory.createContext();\n\n // If the recovery strategy is set to RECOVER, wrap the builder in a recovering proxy client.\n if (recoveryStrategy == Recovery.RECOVER) {\n proxy = new RecoveringSessionClient(\n clientId,\n partitionId,\n primitiveName,\n primitiveType,\n proxyFactory,\n context);\n } else {\n proxy = proxyFactory.get().join();\n }\n\n // If max retries is set, wrap the client in a retrying proxy client.\n if (maxRetries > 0) {\n proxy = new RetryingSessionClient(\n proxy,\n context,\n maxRetries,\n retryDelay);\n }\n return new BlockingAwareSessionClient(proxy, context);\n }", "public static CLONDATAFactory init() {\n\t\ttry {\n\t\t\tCLONDATAFactory theCLONDATAFactory = (CLONDATAFactory) EPackage.Registry.INSTANCE.getEFactory(\n\t\t\t\tCLONDATAPackage.eNS_URI);\n\t\t\tif (theCLONDATAFactory != null) {\n\t\t\t\treturn theCLONDATAFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CLONDATAFactoryImpl();\n\t}", "public Client(String nickname) throws RemoteException {\n\t\n\tthis.nickname=nickname;\n\n\t\t\t\t\t\t\t\t}", "public static @NonNull ServerChannelFactory<? extends ServerChannel> serverChannelFactory() {\n return CURR_NETTY_TRANSPORT.serverChannelFactory();\n }", "public RcfAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = RcfPackage.eINSTANCE;\n\t\t}\n\t}", "public interface RegistryFactory {\n\n /**\n * 连接注册中心.\n * \n * 连接注册中心需处理契约:<br>\n * 1. 当设置check=false时表示不检查连接,否则在连接不上时抛出异常。<br>\n * 2. 支持URL上的username:password权限认证。<br>\n * 3. 支持backup=10.20.153.10备选注册中心集群地址。<br>\n * 4. 支持file=registry.cache本地磁盘文件缓存。<br>\n * 5. 支持timeout=1000请求超时设置。<br>\n * 6. 支持session=60000会话超时或过期设置。<br>\n * \n * @param url 注册中心地址,不允许为空\n * @return 注册中心引用,总不返回空\n */\n Registry getRegistry(URL url);\n\n}", "@FunctionalInterface\npublic interface ClientFactory {\n\n /**\n * Builds new client.\n * @param configuration Configuration.\n * @return Client.\n */\n DatabaseClient constructClient(Configuration configuration);\n}", "public synchronized static RMIClient getInstance() {\n if (instance == null) {\n instance = new RMIClient();\n }\n\n return instance;\n }", "RkFactory getRkFactory();", "public LibraryAdapterFactory() {\r\n\t}", "public static final DefaultHttpClient createHttpClient() {\n\t\treturn createHttpClient(3);\n\t}", "default Factory<T> toFactory() {\n throw new UnsupportedOperationException();\n }", "private CuratorFramework createCurator() {\n // Create list of Servers\n final String serverStr = sharedZookeeperTestResource.getZookeeperConnectString();\n final List<String> serverList = Arrays.asList(Tools.splitAndTrim(serverStr));\n\n // Create config map\n final Map<String, Object> config = new HashMap<>();\n config.put(\"servers\", serverList);\n\n return CuratorFactory.createNewCuratorInstance(config, getClass().getSimpleName());\n }", "Communicator createCommunicator();", "public SerialMarshallerFactory() {\n if (getSecurityManager() == null) {\n registry = SerializableClassRegistry.getInstance();\n } else {\n registry = doPrivileged(new PrivilegedAction<SerializableClassRegistry>() {\n public SerializableClassRegistry run() {\n return SerializableClassRegistry.getInstance();\n }\n });\n }\n }", "public interface ConnectionFactory {\r\n\r\n\tString testdir = System.getenv(\"SERVER_MODULES_DIR\");\r\n\tint timeout = 139;\r\n\tList<String> modules = Arrays.asList(\r\n/*\t\t\ttestdir + \"/mod_test.so\",\r\n\t\t\ttestdir + \"/mod_test_dict.so\",*/\r\n\t\t\t\"/usr/lib/rad/module/mod_pam.so\",\r\n/*\t\t\ttestdir + \"/mod_test_enum.so\",\r\n\t\t\ttestdir + \"/mod_test_list.so\",*/\r\n\t\t\t\"/usr/lib/rad/protocol/mod_proto_rad.so\",\r\n\t\t\t\"/usr/lib/rad/transport/mod_tls.so\",\r\n\t\t\t\"/usr/lib/rad/transport/mod_tcp.so\");\r\n\r\n\tpublic Connection createConnection() throws Exception;\r\n\tpublic String getDescription();\r\n}", "@Override\n\tpublic void createClient(Client clt) {\n\t\t\n\t}", "public static RegistryOperations createInstance(String name, Configuration conf) {\n Preconditions.checkArgument(conf != null, \"Null configuration\");\n RegistryOperationsClient operations =\n new RegistryOperationsClient(name);\n operations.init(conf);\n return operations;\n }", "@Override\n\t\tpublic DRPCClient create() throws Exception {\n\t\t\tMap<String, Object> config = Utils.readStormConfig();\n\t\t\treturn new DRPCClient(config, configuration.drpcHost,\n\t\t\t\t\tconfiguration.drpcPort, MAX_WAIT_TO_EXECUTE);\n\t\t}", "private static HttpClient createClient() {\n return HttpClients.createMinimal();\n }", "static Http1Client create() {\n return create(Http1ClientConfig.create());\n }", "public static MultihomePlainSocketFactory getSocketFactory()\n/* */ {\n/* 69 */ return DEFAULT_FACTORY;\n/* */ }", "public CommonsFactoryImpl() {\n\t\tsuper();\n\t}", "public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}", "public static InstallerRegistry getDefault() {\n InstallerRegistry regs = defaultInstance.get();\n if (regs != null)\n return regs;\n regs = new InstallerRegistry();\n defaultInstance = new WeakReference<InstallerRegistry>(regs);\n return regs;\n }", "public static Factory factory() {\n return ext_h::new;\n }", "public static ExternalServiceLayerCIMFactory init() {\n\t\ttry {\n\t\t\tExternalServiceLayerCIMFactory theExternalServiceLayerCIMFactory = (ExternalServiceLayerCIMFactory)EPackage.Registry.INSTANCE.getEFactory(ExternalServiceLayerCIMPackage.eNS_URI);\n\t\t\tif (theExternalServiceLayerCIMFactory != null) {\n\t\t\t\treturn theExternalServiceLayerCIMFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ExternalServiceLayerCIMFactoryImpl();\n\t}", "public interface JcrContextFactory {\n /**\n * Create a JNDI naming context from the supplied connection properties.\n * \n * @param properties the connection properties; may be null or empty\n * @return the naming context; may not be null\n * @throws NamingException if there is a problem creating or obtaining the naming context\n */\n Context createContext( Properties properties ) throws NamingException;\n }", "public static RegistryOperations createKerberosInstance(Configuration conf,\n String jaasContext) {\n Preconditions.checkArgument(conf != null, \"Null configuration\");\n conf.set(KEY_REGISTRY_CLIENT_AUTH, REGISTRY_CLIENT_AUTH_KERBEROS);\n conf.set(KEY_REGISTRY_CLIENT_JAAS_CONTEXT, jaasContext);\n return createInstance(\"KerberosRegistryOperations\", conf);\n }", "public ReportiumClient createLoggerClient() {\n return new LoggerReportiumClient();\n }", "public ClientGui() throws RemoteException, NotBoundException, Exception {\n // Layout initiieren\n initComponents();\n \n //Dem Client mitteilen, wo sein TrustStore liegt. Dieser wurde zuvor mit Keytool erzeugt:\n //keytool erzeugt KeyStore dann wird selbstsigniertes Zertifikat exportiert um im Client importiert und als Vertrauenswürdig erteilt\n System.setProperty(\"javax.net.ssl.trustStore\", \"clientstore.jks\");\n System.setProperty(\"javax.net.ssl.trustStorePassword\", \"password\");\n \n //Dem Client mitteilen, wo sein KeyStore liegt, in diesem Fall gleichzeitig sein TrustStore\n System.setProperty(\"javax.net.ssl.keyStore\", \"clientstore.jks\");\n System.setProperty(\"javax.net.ssl.keyStorePassword\", \"password\");\n\n //KeyStore aus der Datei laden\n KeyStore ks = KeyStore.getInstance(\"JKS\");\n ks.load(new FileInputStream(\"clientstore.jks\"), \"password\".toCharArray());\n \n // SSLServerSocketFactory initialisieren\n SSLServerSocketFactory sssf ;\n \n try{\n //SSLRMIClientSocketFactory erzeugen\n SslRMIClientSocketFactory csf = new SslRMIClientSocketFactory();\n //Verbindung aufbauen zum Registry auf Localhost, Port 2222 und dem SslRMiClientSocketFactory, um mittels RMI Methodenaufrufe zu starten.\n Registry registry =LocateRegistry.getRegistry(\"localhost\", 2222, csf);\n \n \n //Verbindung aufbauen zum Registry um mittels RMI Methodenaufrufe zu starten. Ohne RMI,deshalbt auskommentiert\n //Registry registry =LocateRegistry.getRegistry(\"localhost\", 2222);\n \n //Anlegenen eines TestRemotes Objektes um auf die Methoden zugreifen zu können.\n remote= (TestRemote) registry.lookup(\"remote\");\n }catch(NotBoundException | RemoteException e){\n Logger.getLogger(ClientGui.class.getName()).log(Level.SEVERE, null, e);\n \n }\n \n //Überprüfen ob Methodenaufruf klappt\n System.out.println(remote.isLoginValid(\"heiko\"));\n //AES Objekt erzeugen um auf die Methoden der Klasse zuzugreifen zu können.\n aes = new AES();\n //RSA Schlüsselpaar erzeugen und in Datei speichern\n generateRSA();\n //Liste wer online ist updaten\n online(remote.online());\n \n \n }", "@Override\n public HelixZkClient buildZkClient(HelixZkClient.ZkConnectionConfig connectionConfig,\n HelixZkClient.ZkClientConfig clientConfig) {\n return new ZkClient(createZkConnection(connectionConfig),\n (int) clientConfig.getConnectInitTimeout(), clientConfig.getOperationRetryTimeout(),\n clientConfig.getZkSerializer(), clientConfig.getMonitorType(), clientConfig.getMonitorKey(),\n clientConfig.getMonitorInstanceName(), clientConfig.isMonitorRootPathOnly());\n }", "public static JSONRPCClient create(String uri)\r\n\t{\r\n\t\treturn new JSONRPCHttpClient(uri);\r\n\t}", "private HttpClient getTemplateServerClient(String remoteSource) throws IOException {\n\n SocketFactory factory = (SocketFactory)mSocketFactories.get(remoteSource);\n\n if (factory == null) {\n\n int port = 80;\n String host = remoteSource.substring(TEMPLATE_LOAD_PROTOCOL.length());\n\n int portIndex = host.indexOf(\"/\");\n \n if (portIndex >= 0) {\n host = host.substring(0,portIndex); \n }\n String hostPort = host; \n portIndex = host.indexOf(\":\");\n if (portIndex >= 0) {\n try {\n port = Integer.parseInt(host.substring(portIndex+1));\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Invalid port number specified\");\n }\n host = host.substring(0,portIndex);\n }\n factory = new PooledSocketFactory(new PlainSocketFactory(InetAddress.getByName(host), \n port, 5000));\n \n if (factory != null) {\n mSocketFactories.put(hostPort, factory);\n }\n }\n return new HttpClient(factory);\n }", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "public static InvCatalogFactory getDefaultFactory(boolean validate) {\n return new InvCatalogFactory(\"default\", validate);\n }", "public ReflexAdapterFactory()\n {\n if (modelPackage == null)\n {\n modelPackage = ReflexPackage.eINSTANCE;\n }\n }", "public ClientWorkspace(\n Session session, RemoteWorkspace remote,\n LocalAdapterFactory factory) {\n super(factory);\n this.session = session;\n this.remote = remote;\n }", "private void createClient() {\n tc = new TestClient();\n }", "public static Factory factory() {\n return ext_accdt::new;\n }", "public SwimConnectionFactory() {\n\t\tsuper();\n\t}", "private DefaultHttpClient createHttpClient()\n throws IOException\n {\n XCapCredentialsProvider credentialsProvider\n = new XCapCredentialsProvider();\n credentialsProvider.setCredentials(\n AuthScope.ANY,\n new UsernamePasswordCredentials(getUserName(), password));\n\n return HttpUtils.getHttpClient(\n null , null, uri.getHost(), credentialsProvider);\n }", "public ExternalServiceLayerCIMFactoryImpl() {\n\t\tsuper();\n\t}", "public static BromiumFactory init()\n {\n try\n {\n BromiumFactory theBromiumFactory = (BromiumFactory)EPackage.Registry.INSTANCE.getEFactory(BromiumPackage.eNS_URI);\n if (theBromiumFactory != null)\n {\n return theBromiumFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new BromiumFactoryImpl();\n }", "public RedisClient() {\n init();\n }", "public static CommandsFactoryImpl init() {\r\n\t\ttry {\r\n\t\t\tCommandsFactoryImpl theCommandsFactory = (CommandsFactoryImpl) EPackage.Registry.INSTANCE\r\n\t\t\t\t\t.getEFactory(CommandsPackageImpl.eNS_URI);\r\n\t\t\tif (theCommandsFactory != null) {\r\n\t\t\t\treturn theCommandsFactory;\r\n\t\t\t}\r\n\t\t} catch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new CommandsFactoryImpl();\r\n\t}", "private void initRMI() throws RemoteException {\n log.info(\"Registering with RMI\");\n Registry registry = LocateRegistry.getRegistry();\n registry.rebind(address, this);\n }", "public static CertificationFactory init() {\n\t\ttry {\n\t\t\tCertificationFactory theCertificationFactory = (CertificationFactory)EPackage.Registry.INSTANCE.getEFactory(CertificationPackage.eNS_URI);\n\t\t\tif (theCertificationFactory != null) {\n\t\t\t\treturn theCertificationFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CertificationFactoryImpl();\n\t}", "public static borFactory init() {\n\t\ttry {\n\t\t\tborFactory theborFactory = (borFactory)EPackage.Registry.INSTANCE.getEFactory(borPackage.eNS_URI);\n\t\t\tif (theborFactory != null) {\n\t\t\t\treturn theborFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new borFactoryImpl();\n\t}", "void setClientSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;", "public OperationsAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = OperationsPackage.eINSTANCE;\n\t\t}\n\t}", "public EO_ClientsImpl() {\n }", "protected abstract ServiceRegistry getNewServiceRegistry();", "public JavaJRExpressionFactoryImpl()\n {\n super();\n }", "public BankImpl() {\n persons = new ConcurrentHashMap<String, RemotePerson>();\n try {\n registry = LocateRegistry.createRegistry(8080);\n } catch (RemoteException e) {\n e.printStackTrace();\n System.exit(2);\n }\n }", "@SuppressWarnings(\"WeakerAccess\")\n public static PilosaClient defaultClient() {\n return PilosaClient.withURI(URI.defaultURI());\n }", "public static JsonAdapter.Factory create() {\n return nullSafe(new AutoValueMoshi_AutoValueFactory());\n }", "public static HttpClient Factory() {\n\t\treturn httpclient;\n\t}", "public synchronized static ImageDecoderFactory getInstance() {\n if ( defaultInstance == null ) {\n /* the GUI toolkit has not configured any factory, we will \n * create a ImageDecoderFactory using the ImageDecoders that\n * are part of this package\n */\n defaultInstance = new ImageDecoderFactory() ;\n }\n return defaultInstance ;\n }", "public static EzdmxctrlFactory init() {\n\t\ttry {\n\t\t\tEzdmxctrlFactory theEzdmxctrlFactory = (EzdmxctrlFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://ezdmxctrl/1.0\"); \n\t\t\tif (theEzdmxctrlFactory != null) {\n\t\t\t\treturn theEzdmxctrlFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new EzdmxctrlFactoryImpl();\n\t}", "public Object createConnectionFactory() throws ResourceException {\n throw new ResourceException(\"Vert.x JCA adapter not supported in non-managed environment\");\n }", "public RemoteReferenceFactory getRemoteReferenceFactory\n (Container container, boolean remoteHomeView, String id)\n {\n\tRemoteReferenceFactory factory = new POARemoteReferenceFactory\n (container, this, orb, remoteHomeView, id);\n\t\t\t\t\t\t \n\t// XXX store factory in some kind of table ??\n\treturn factory;\n }", "@Override\n\tpublic RestTemplate getRestTemplate(String ip, int port) {\n\t\tSimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory();\n\t\tInetSocketAddress address = new InetSocketAddress(ip, port);\n\t\tProxy proxy = new Proxy(Proxy.Type.HTTP, address);\n\n\t\tfactory.setProxy(proxy);\n\n\t\treturn new RestTemplate(factory);\n\t}", "public CDOServerDefsFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "private Client createClient() {\n\t\tClient client = null;\n\t\tvar clientsList = clientDAO.getClients();\n\t\tvar name = txtName.getText();\n\t\tvar surnames = txtSurnames.getText();\n\t\tvar dni = txtDni.getText();\n\t\tvar telephone = txtTelephone.getText();\n\n\t\tif (txtDni.getText().isBlank() || txtName.getText().isBlank() || txtSurnames.getText().isBlank()\n\t\t\t\t|| txtTelephone.getText().isBlank()) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"Error, los campos no pueden estar vacios, ni contener solo espacios\",\n\t\t\t\t\t\"Warning!\", JOptionPane.ERROR_MESSAGE);\n\t\t} else {\n\t\t\t// Comprobar si el cliente ya existe\n\t\t\tvar exist = false;\n\t\t\tfor (int i = 0; i < clientsList.size(); ++i) {\n\t\t\t\tif (dni.equalsIgnoreCase(clientsList.get(i).getDni())) {\n\t\t\t\t\texist = true;\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Error, ya existe el DNI introducido\", \"Warning!\",\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!exist) {\n\t\t\t\tclient = new Client(dni, name, surnames, telephone);\n\t\t\t}\n\t\t}\n\n\t\treturn client;\n\t}", "NetworkFactory getNetworkFactory();", "public Connection createRealConnection(String propertiesStr, String userName, String password) {\n\t\tDebug.println(\"Create real connection for initialized id factory, propertiesStr: \" +propertiesStr + \" userName: \" + userName + \" pass: \" + password);\n\t\tConnection originalConn = null;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t // Setup the connection with the DB\n\t try {\n\t \t originalConn = DriverManager\n\t\t\t .getConnection(propertiesStr, userName, password);\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\tDebug.println(\"Successfully create real connection for initializing id factory\");\n\t\treturn originalConn;\n\t}", "public void createClient() {\n FarmersBaseClient client = new FarmBeatsClientBuilder()\n .endpoint(\"https://<farmbeats resource name>.farmbeats-dogfood.azure.net\")\n .credential(new DefaultAzureCredentialBuilder().build())\n .buildFarmersBaseClient();\n }", "public AbstractRoClient(Iterable<String> servers, String realm, String serviceContextId, Version version)\n\t\t\tthrows NoRouteToHostException {\n\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\tLOGGER.debug(\"new AbstractRoClient: servers=\" + servers + \", realm=\" + realm + \", id=\" + serviceContextId + \", version=\" + version);\n\t\t}\n\n\t\tsetVersion(version);\n\t\tsetServiceContextId(serviceContextId);\n\t\t_realm = realm;\n\t\tif (servers != null) {\n\t\t\tfor (String s : servers) {\n\t\t\t\t_servers.add(s);\n\t\t\t}\n\t\t}\n\t\tcreateClient(null);\n\t}", "public static ContenedorloginviewmodelFactory init() {\r\n\t\ttry {\r\n\t\t\tContenedorloginviewmodelFactory theContenedorloginviewmodelFactory = (ContenedorloginviewmodelFactory)EPackage.Registry.INSTANCE.getEFactory(ContenedorloginviewmodelPackage.eNS_URI);\r\n\t\t\tif (theContenedorloginviewmodelFactory != null) {\r\n\t\t\t\treturn theContenedorloginviewmodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new ContenedorloginviewmodelFactoryImpl();\r\n\t}", "public static CommonsFactory init() {\n\t\ttry {\n\t\t\tCommonsFactory theCommonsFactory = (CommonsFactory)EPackage.Registry.INSTANCE.getEFactory(CommonsPackage.eNS_URI);\n\t\t\tif (theCommonsFactory != null) {\n\t\t\t\treturn theCommonsFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CommonsFactoryImpl();\n\t}", "public final static BALFactory getDefaultFactory()\n {\n return BALFactory.Standard;\n }" ]
[ "0.56571", "0.5638997", "0.5529176", "0.5525826", "0.5476947", "0.54073423", "0.5316487", "0.52905226", "0.5288608", "0.5250371", "0.5194692", "0.5177233", "0.5151868", "0.5127823", "0.5103035", "0.50922793", "0.5057684", "0.50508404", "0.50392944", "0.5038695", "0.50187963", "0.5018582", "0.49911729", "0.49851954", "0.4969789", "0.49553004", "0.4951508", "0.49475235", "0.49358457", "0.49175873", "0.49065232", "0.49044558", "0.48984358", "0.4898184", "0.48867226", "0.48768735", "0.48765302", "0.48744544", "0.48734322", "0.48703676", "0.4868799", "0.4857627", "0.48295498", "0.48295262", "0.48173365", "0.48168626", "0.48120436", "0.47983092", "0.47941476", "0.479219", "0.47899678", "0.4784316", "0.4778627", "0.47731122", "0.47731063", "0.47639808", "0.47637716", "0.4761558", "0.4758306", "0.47373098", "0.4729493", "0.47182548", "0.47180063", "0.4716642", "0.47157574", "0.47105336", "0.46969938", "0.46964058", "0.4695094", "0.46949235", "0.46941122", "0.46887076", "0.46876857", "0.4686332", "0.4685461", "0.46853924", "0.46807802", "0.4679261", "0.46788597", "0.4675002", "0.46738145", "0.46694562", "0.46615243", "0.46608722", "0.4657567", "0.465253", "0.46509403", "0.4649899", "0.4648667", "0.4648333", "0.46479046", "0.46442533", "0.46433672", "0.46432242", "0.4642878", "0.46330222", "0.46189585", "0.4617792", "0.46169025", "0.4616453" ]
0.6615326
0
Creates a JCRRMI client factory with the given adapter factory.
public ClientRepositoryFactory(LocalAdapterFactory factory) { this.factory = factory; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ClientRepositoryFactory() {\n this(new ClientAdapterFactory());\n }", "public static @NonNull ChannelFactory<? extends Channel> clientChannelFactory() {\n return CURR_NETTY_TRANSPORT.clientChannelFactory();\n }", "public ClientWorkspace(\n Session session, RemoteWorkspace remote,\n LocalAdapterFactory factory) {\n super(factory);\n this.session = session;\n this.remote = remote;\n }", "@Override\n public Client createClient(Client client)\n throws RemoteException {\n client=clientManager.create(client);\n \n return client;\n }", "public static Factory factory() {\n return ext_dbf::new;\n }", "@FunctionalInterface\npublic interface ClientFactory {\n\n /**\n * Builds new client.\n * @param configuration Configuration.\n * @return Client.\n */\n DatabaseClient constructClient(Configuration configuration);\n}", "public static Client create() {\n ClientConfig clientConfig = new ClientConfig(JacksonFeature.class,\n JacksonJaxbJsonProvider.class,\n JacksonJsonProvider.class);\n return ClientBuilder.newClient(clientConfig);\n }", "public interface JcrContextFactory {\n /**\n * Create a JNDI naming context from the supplied connection properties.\n * \n * @param properties the connection properties; may be null or empty\n * @return the naming context; may not be null\n * @throws NamingException if there is a problem creating or obtaining the naming context\n */\n Context createContext( Properties properties ) throws NamingException;\n }", "public static RegistryOperations createAnonymousInstance(Configuration conf) {\n Preconditions.checkArgument(conf != null, \"Null configuration\");\n conf.set(KEY_REGISTRY_CLIENT_AUTH, REGISTRY_CLIENT_AUTH_ANONYMOUS);\n return createInstance(\"AnonymousRegistryOperations\", conf);\n }", "public static Client createClient() {\n JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();\n provider.setAnnotationsToUse(new Annotations[]{Annotations.JACKSON});\n\n ClientConfig config = new ClientConfig(provider);\n //Allow delete request with entity\n config.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);\n //It helps to handle cookies\n config.property(ClientProperties.FOLLOW_REDIRECTS, Boolean.FALSE);\n //Allow PATCH\n config.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);\n\n Logger logger = Logger.getLogger(\"Client\");\n Feature feature = new LoggingFeature(logger, Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY,\n null);\n\n //Allow self trusted certificates\n SSLContext sslcontext;\n try {\n sslcontext = SSLContext.getInstance(\"TLS\");\n sslcontext.init(null, new TrustManager[]{new X509TrustManager() {\n public void checkClientTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public void checkServerTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[0];\n }\n }}, new java.security.SecureRandom());\n } catch (KeyManagementException | NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n\n return ClientBuilder\n .newBuilder()\n .withConfig(config)\n .sslContext(sslcontext)\n .build()\n .register(feature)\n .register(MultiPartFeature.class);\n }", "public static RegistryOperations createKerberosInstance(Configuration conf,\n String jaasClientEntry, String principal, String keytab) {\n Preconditions.checkArgument(conf != null, \"Null configuration\");\n conf.set(KEY_REGISTRY_CLIENT_AUTH, REGISTRY_CLIENT_AUTH_KERBEROS);\n conf.set(KEY_REGISTRY_CLIENT_JAAS_CONTEXT, jaasClientEntry);\n RegistryOperationsClient operations =\n new RegistryOperationsClient(\"KerberosRegistryOperations\");\n operations.setKerberosPrincipalAndKeytab(principal, keytab);\n operations.init(conf);\n return operations;\n }", "public static final FirewallClient create(FirewallStub stub) {\n return new FirewallClient(stub);\n }", "public TTransportFactory wrapTransportFactoryInClientUGI(TTransportFactory transFactory) {\n return new TUGIAssumingTransportFactory(transFactory, clientValidationUGI);\n }", "public static JSONRPCClient create(String uri)\r\n\t{\r\n\t\treturn new JSONRPCHttpClient(uri);\r\n\t}", "public Factory() {\n this(getInternalClient());\n }", "public static RegistryOperations createKerberosInstance(Configuration conf,\n String jaasContext) {\n Preconditions.checkArgument(conf != null, \"Null configuration\");\n conf.set(KEY_REGISTRY_CLIENT_AUTH, REGISTRY_CLIENT_AUTH_KERBEROS);\n conf.set(KEY_REGISTRY_CLIENT_JAAS_CONTEXT, jaasContext);\n return createInstance(\"KerberosRegistryOperations\", conf);\n }", "public Client create() {\n RequestProvider provider = RequestProviders.lookup();\n return provider.newClient(this);\n }", "private ConnectionFactoryDefinition loadConnectionFactory(XMLStreamReader reader) throws XMLStreamException {\n\n ConnectionFactoryDefinition connectionFactory = new ConnectionFactoryDefinition();\n\n connectionFactory.setName(reader.getAttributeValue(null, \"name\"));\n\n String create = reader.getAttributeValue(null, \"create\");\n if (create != null) {\n connectionFactory.setCreate(CreateOption.valueOf(create));\n }\n loadProperties(reader, connectionFactory, \"connectionFactory\");\n\n return connectionFactory;\n\n }", "public AdapterFactory getAdapterFactory()\n {\n return adapterFactory;\n }", "public interface ICordysGatewayClientFactory\r\n{\r\n /**\r\n * Return a client (the factory is also responsable for creating the gateway).\r\n *\r\n * @return A cordys gateway client.\r\n */\r\n ICordysGatewayClient getGatewayClientInstance();\r\n}", "public static ScribbleFactory init()\n {\n\t\ttry {\n\t\t\tScribbleFactory theScribbleFactory = (ScribbleFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.scribble.org/Scribble\"); \n\t\t\tif (theScribbleFactory != null) {\n\t\t\t\treturn theScribbleFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ScribbleFactoryImpl();\n\t}", "public RcfAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = RcfPackage.eINSTANCE;\n\t\t}\n\t}", "private SshClient createClient() {\n java.security.Security.addProvider(\n new org.bouncycastle.jce.provider.BouncyCastleProvider());\n final SshClient client = SshClient.setUpDefaultClient();\n client.setForwardingFilter(AcceptAllForwardingFilter.INSTANCE);\n client.setServerKeyVerifier(AcceptAllServerKeyVerifier.INSTANCE);\n return client;\n }", "public interface IXioClientFactory\n{\n /**\n * Returns a client that is connected to the specified address, or is going to be connected to the specified address.\n * If the client is not connected, the caller must not connect the client to any other address but the one specified.\n * @param address The address.\n * @return Returns a new XioClient.\n */\n public XioClient newInstance( InetSocketAddress address);\n}", "public RemoteReferenceFactory getRemoteReferenceFactory\n (Container container, boolean remoteHomeView, String id)\n {\n\tRemoteReferenceFactory factory = new POARemoteReferenceFactory\n (container, this, orb, remoteHomeView, id);\n\t\t\t\t\t\t \n\t// XXX store factory in some kind of table ??\n\treturn factory;\n }", "public void createClient(ClientView clientView, int tcpPort, int udpPort, String tcpIPAddress, String clientID) {\n Client client = new Client(clientView, tcpPort, udpPort, tcpIPAddress, udpIPAddress, clientID);\n }", "@POST\n @Path(\"accept\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Factory acceptFactory(final Factory factory) {\n final ProjectImporter importer = getGitProjectImporter();\n\n //try to check if factory contains project name value otherwise we set default project name to \"Unnamed\"\n ProjectAttributes projectAttributes = factory.getProjectattributes();\n if (projectAttributes == null) {\n projectAttributes = DtoFactory.getInstance().createDto(ProjectAttributes.class).withPname(DEFAULT_PROJECT_NAME);\n factory.setProjectattributes(projectAttributes);\n } else if (projectAttributes.getPname() == null || projectAttributes.getPname().isEmpty()) {\n projectAttributes = factory.getProjectattributes().withPname(DEFAULT_PROJECT_NAME);\n }\n\n List<FolderEntry> existedFolders = projectManager.getProjectsRoot(workspace).getChildFolders();\n\n //if project with the same name exist we should create new one with another name.\n for (FolderEntry existProject : existedFolders) {\n if (projectAttributes.getPname().equals(existProject.getName())) {\n projectAttributes.setPname(NameGenerator.generate(projectAttributes.getPname(), 4));\n break;\n }\n }\n\n //get newly created empty folder in which clone should be proceed\n FolderEntry projectFolder = projectManager.getProjectsRoot(workspace).createFolder(factory.getProjectattributes().getPname());\n\n try {\n importer.importSources(projectFolder, factory.getVcsurl());\n } catch (IOException e) {\n if (e.getCause() != null && e.getCause() instanceof NotAuthorizedException) {\n throw halt(UNAUTHORIZED, e.getMessage(), e);\n }\n throw halt(INTERNAL_SERVER_ERROR, e.getMessage());\n }\n\n //get physical path to project on file system to allow native git to work with repository\n String absoluteProjectPath;\n try {\n absoluteProjectPath = localPathResolver.resolve(projectFolder.getVirtualFile());\n } catch (VirtualFileSystemException e) {\n removeInvalidClonedFolder(projectFolder);\n throw halt(INTERNAL_SERVER_ERROR, \"Unable to resolve Git project directory.\", e);\n }\n\n GitConnection gitConnection;\n try {\n gitConnection = gitConnectionFactory.getConnection(absoluteProjectPath);\n } catch (GitException e) {\n removeInvalidClonedFolder(projectFolder);\n throw halt(INTERNAL_SERVER_ERROR, \"Unable to get Git connection to cloned project.\", e);\n }\n\n if (!Strings.isNullOrEmpty(factory.getCommitid())) {\n performCheckoutToCommitId(factory.getCommitid(), gitConnection);\n } else if (!Strings.isNullOrEmpty(factory.getVcsbranch())) {\n performCheckoutToBranch(factory.getVcsbranch(), gitConnection);\n }\n\n if (factory.getVariables() != null && factory.getVariables().size() > 0) {\n performReplaceVariables(factory.getVariables(), absoluteProjectPath);\n }\n\n if (!factory.getVcsinfo()) {\n AbstractVirtualFileEntry gitFolder = projectFolder.getChild(\".git\");\n if (gitFolder != null && gitFolder.isFolder()) {\n pushClientNotification(\"Git information erased.\");\n gitFolder.remove();\n }\n }\n\n return factory;\n }", "public interface RegistryFactory {\n\n /**\n * 连接注册中心.\n * \n * 连接注册中心需处理契约:<br>\n * 1. 当设置check=false时表示不检查连接,否则在连接不上时抛出异常。<br>\n * 2. 支持URL上的username:password权限认证。<br>\n * 3. 支持backup=10.20.153.10备选注册中心集群地址。<br>\n * 4. 支持file=registry.cache本地磁盘文件缓存。<br>\n * 5. 支持timeout=1000请求超时设置。<br>\n * 6. 支持session=60000会话超时或过期设置。<br>\n * \n * @param url 注册中心地址,不允许为空\n * @return 注册中心引用,总不返回空\n */\n Registry getRegistry(URL url);\n\n}", "protected Registry createRegistry() {\n return new JndiRegistry();\n }", "public static Factory factory() {\n return ext_h::new;\n }", "public static @NonNull ServerChannelFactory<? extends ServerChannel> serverChannelFactory() {\n return CURR_NETTY_TRANSPORT.serverChannelFactory();\n }", "public interface ConnectionFactory {\r\n\r\n\tString testdir = System.getenv(\"SERVER_MODULES_DIR\");\r\n\tint timeout = 139;\r\n\tList<String> modules = Arrays.asList(\r\n/*\t\t\ttestdir + \"/mod_test.so\",\r\n\t\t\ttestdir + \"/mod_test_dict.so\",*/\r\n\t\t\t\"/usr/lib/rad/module/mod_pam.so\",\r\n/*\t\t\ttestdir + \"/mod_test_enum.so\",\r\n\t\t\ttestdir + \"/mod_test_list.so\",*/\r\n\t\t\t\"/usr/lib/rad/protocol/mod_proto_rad.so\",\r\n\t\t\t\"/usr/lib/rad/transport/mod_tls.so\",\r\n\t\t\t\"/usr/lib/rad/transport/mod_tcp.so\");\r\n\r\n\tpublic Connection createConnection() throws Exception;\r\n\tpublic String getDescription();\r\n}", "public static Factory factory() {\n return ext_accdt::new;\n }", "public Icc_cdobj_recItemProvider(AdapterFactory adapterFactory) {\r\n\t\tsuper(adapterFactory);\r\n\t}", "public static RegistryOperations createInstance(Configuration conf) {\n return createInstance(\"RegistryOperations\", conf);\n }", "Builder adapterFactory(TypeAdapterFactory factory);", "void setClientSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;", "public interface IFactory<T extends MaterialCastingRecipe> {\n T create(ResourceLocation id, String group, @Nullable Ingredient cast, int itemCost, IMaterialItem result,\n boolean consumed, boolean switchSlots);\n }", "public static final LicensesClient create(LicensesStub stub) {\n return new LicensesClient(stub);\n }", "public void setAdapterFactory(AdapterFactory adapterFactory)\n {\n this.adapterFactory = adapterFactory;\n }", "public static Session createSession(SessionFactory factory){\n Session s;\n\n if((s = (Session) _sessionRef.get()) == null) {\n s = factory.openSession();\n _sessionRef.set(s);\n }\n else{\n if(!s.isConnected())s.reconnect();\n }\n\n return s; \n }", "public static RegistryOperations createInstance(String name, Configuration conf) {\n Preconditions.checkArgument(conf != null, \"Null configuration\");\n RegistryOperationsClient operations =\n new RegistryOperationsClient(name);\n operations.init(conf);\n return operations;\n }", "public interface IFactory {\n Operation CreateOperation();\n\n}", "public static ArtifactRegistryStub newStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ArtifactRegistryStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ArtifactRegistryStub>() {\n @java.lang.Override\n public ArtifactRegistryStub newStub(\n io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ArtifactRegistryStub(channel, callOptions);\n }\n };\n return ArtifactRegistryStub.newStub(factory, channel);\n }", "public interface Factory {\r\n}", "@Override\n IDeviceFactory getFactory();", "public static HttpClient Factory() {\n\t\treturn httpclient;\n\t}", "public RDR_RDR(ModelClassFactory factory) {\r\n super(factory);\r\n init(factory);\r\n }", "@POST\n @Consumes(MediaType.APPLICATION_JSON)\n public Response createClient(final ClientRepresentation rep) {\n ValidationMessages validationMessages = new ValidationMessages();\n if (!ClientValidator.validate(rep, validationMessages) || !pairwiseClientValidator.validate(rep, validationMessages)) {\n Properties messages = adminRoot.getMessages(realm, Locale.getDefault().getLanguage());\n throw new ErrorResponseException(\n validationMessages.getStringMessages(),\n validationMessages.getStringMessages(messages),\n Response.Status.BAD_REQUEST\n );\n }\n\n try {\n ClientModel clientModel = clientManager.createClient(realm, rep, true);\n\n if (TRUE.equals(rep.isServiceAccountsEnabled())) {\n UserModel serviceAccount = session.users().getServiceAccount(clientModel);\n\n if (serviceAccount == null) {\n new ClientManager(new RealmFacadeImpl()).enableServiceAccount(clientModel);\n }\n }\n\n if (TRUE.equals(rep.getAuthorizationServicesEnabled())) {\n AuthorizationService authorizationService = getAuthorizationService(clientModel);\n\n authorizationService.enable(true);\n\n ResourceServerRepresentation authorizationSettings = rep.getAuthorizationSettings();\n\n if (authorizationSettings != null) {\n authorizationService.resourceServer().importSettings(authorizationSettings);\n }\n }\n\n clientValidationUtil.validate(clientModel, true, c -> {\n session.getTransactionManager().setRollbackOnly();\n throw new ErrorResponseException(Errors.INVALID_INPUT, c.getError(), Response.Status.BAD_REQUEST);\n });\n\n return Response.created(session.getContext().getUri().getAbsolutePathBuilder().path(clientModel.getId()).build()).build();\n } catch (ModelDuplicateException e) {\n return ErrorResponse.exists(\"Client \" + rep.getClientId() + \" already exists\");\n }\n }", "public static JavaJRExpressionFactory init()\n {\n try\n {\n JavaJRExpressionFactory theJavaJRExpressionFactory = (JavaJRExpressionFactory)EPackage.Registry.INSTANCE.getEFactory(JavaJRExpressionPackage.eNS_URI);\n if (theJavaJRExpressionFactory != null)\n {\n return theJavaJRExpressionFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new JavaJRExpressionFactoryImpl();\n }", "Client createNewClient(Client client);", "public ConnectionFactoryValidator(final ConnectionFactory factory) {\n this(factory, true);\n }", "public ClientConnectionOperator createConnectionOperator(SchemeRegistry schreg) {\n return new DefaultClientConnectionOperator(schreg);\n }", "@Override\n\tpublic CmisBinding createCmisBinding() {\n\t\tSessionParameterMap parameters = new SessionParameterMap();\n\t\t//connect the file share repository\n\t\tparameters.setRepositoryId(Constants.REPO_ID);\n\t\tparameters.setBrowserBindingUrl(Constants.REPO_URL);\n\t\tparameters.setUserAndPassword(Constants.REPO_USERNAME, Constants.REPO_PASSWORD);\n\t\t//parameters.put(SessionParameter.BINDING_TYPE, \"browser\");\n\t\tparameters.put(SessionParameter.CONNECT_TIMEOUT, \"60000\");\n\t\tparameters.put(SessionParameter.READ_TIMEOUT, \"900000\");\n\n\t\tparameters.put(SessionParameter.HTTP_INVOKER_CLASS, DefaultHttpInvoker.class.getName());\n\t\tcmisBinding = CmisBindingFactory.newInstance().createCmisBrowserBinding(parameters);\n\t\treturn cmisBinding;\n\t}", "public SentryTransportFactory(Configuration conf,\n SentryClientTransportConfigInterface transportConfig) {\n\n Preconditions.checkNotNull(conf, \"Configuration object cannot be null\");\n connectionTimeout = transportConfig.getServerRpcConnTimeoutInMs(conf);\n isKerberosEnabled = transportConfig.isKerberosEnabled(conf);\n if (isKerberosEnabled) {\n useUgi = transportConfig.useUserGroupInformation(conf);\n serverPrincipal = transportConfig.getSentryPrincipal(conf);\n } else {\n serverPrincipal = null;\n useUgi = false;\n }\n }", "public interface RmFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tRmFactory eINSTANCE = ru.capralow.dt.conversion.plugin.core.rm.impl.RmFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Registration Module</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Registration Module</em>'.\n\t * @generated\n\t */\n\tRegistrationModule createRegistrationModule();\n\n\t/**\n\t * Returns a new object of class '<em>Exchange Plan Content</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Exchange Plan Content</em>'.\n\t * @generated\n\t */\n\tExchangePlanContent createExchangePlanContent();\n\n\t/**\n\t * Returns a new object of class '<em>Registration Rule</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Registration Rule</em>'.\n\t * @generated\n\t */\n\tRegistrationRule createRegistrationRule();\n\n\t/**\n\t * Returns a new object of class '<em>Object Selection Rule</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Object Selection Rule</em>'.\n\t * @generated\n\t */\n\tObjectSelectionRule createObjectSelectionRule();\n\n\t/**\n\t * Returns a new object of class '<em>Exchange Plan Selection Rule</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Exchange Plan Selection Rule</em>'.\n\t * @generated\n\t */\n\tExchangePlanSelectionRule createExchangePlanSelectionRule();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tRmPackage getRmPackage();\n\n}", "public NetworkDependencyItemProvider(AdapterFactory adapterFactory) {\n\t\tsuper(adapterFactory);\n\t}", "private static IDiscordClient createClient(String token, boolean login) {\n ClientBuilder clientBuilder = new ClientBuilder(); // Creates the ClientBuilder instance\r\n clientBuilder.withToken(token); // Adds the login info to the builder\r\n try {\r\n if (login) {\r\n return clientBuilder.login(); // Creates the client instance and logs the client in\r\n } else {\r\n return clientBuilder.build(); // Creates the client instance but it doesn't log the client in yet, you would have to call client.login() yourself\r\n }\r\n } catch (DiscordException e) { // This is thrown if there was a problem building the client\r\n e.printStackTrace();\r\n return null;\r\n }\r\n }", "public interface AccountFactory {\n Account create();\n}", "public Object createConnectionFactory() throws ResourceException {\n throw new ResourceException(\"Vert.x JCA adapter not supported in non-managed environment\");\n }", "public interface ConnectionFactory {\n\n public abstract Connection createConnection();\n\n}", "Communicator createCommunicator();", "@Override\n\tpublic void createClient() {\n\t\t\n\t}", "public static final FirewallClient create(FirewallSettings settings) throws IOException {\n return new FirewallClient(settings);\n }", "RkFactory getRkFactory();", "public RMIClientSocketFactory getClientSocketFactory() {\n/* 133 */ return ((TCPEndpoint)this.ep).getClientSocketFactory();\n/* */ }", "public Client(String nickname) throws RemoteException {\n\t\n\tthis.nickname=nickname;\n\n\t\t\t\t\t\t\t\t}", "CbpmniFactory getCbpmniFactory();", "private MultibinderFactory() { }", "public LibraryAdapterFactory() {\r\n\t}", "public interface IRelayNodeFactory {\n\n\t/**\n\t * This method should return true only if the specified object id should be handled by this factory\n\t */\n\tboolean handlesNodeId(String id);\n\n\t/**\n\t * Accepts a Relay ID and constructs an object based on the ID.\n\t * @param objectId the relay object ID. All object ID's must be prefixed with the factories name\n\t * @return\n\t */\n\tINode newObjectFromID(String objectId);\n\n}", "public static NamedQueueClient create(Context context,String jndiUrl, \n String name) throws MessageServiceException {\n return new NamedQueueClient(context,jndiUrl,name);\n }", "public interface HttpClientFactory {\n CloseableHttpClient newHttpClient();\n}", "protected HttpJsonServicesStub(\n ServicesStubSettings settings,\n ClientContext clientContext,\n HttpJsonStubCallableFactory callableFactory)\n throws IOException {\n this.callableFactory = callableFactory;\n this.httpJsonOperationsStub =\n HttpJsonOperationsStub.create(\n clientContext,\n callableFactory,\n typeRegistry,\n ImmutableMap.<String, HttpRule>builder()\n .put(\n \"google.longrunning.Operations.GetOperation\",\n HttpRule.newBuilder().setGet(\"/v1/{name=apps/*/operations/*}\").build())\n .put(\n \"google.longrunning.Operations.ListOperations\",\n HttpRule.newBuilder().setGet(\"/v1/{name=apps/*}/operations\").build())\n .build());\n\n HttpJsonCallSettings<ListServicesRequest, ListServicesResponse> listServicesTransportSettings =\n HttpJsonCallSettings.<ListServicesRequest, ListServicesResponse>newBuilder()\n .setMethodDescriptor(listServicesMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetServiceRequest, Service> getServiceTransportSettings =\n HttpJsonCallSettings.<GetServiceRequest, Service>newBuilder()\n .setMethodDescriptor(getServiceMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<UpdateServiceRequest, Operation> updateServiceTransportSettings =\n HttpJsonCallSettings.<UpdateServiceRequest, Operation>newBuilder()\n .setMethodDescriptor(updateServiceMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<DeleteServiceRequest, Operation> deleteServiceTransportSettings =\n HttpJsonCallSettings.<DeleteServiceRequest, Operation>newBuilder()\n .setMethodDescriptor(deleteServiceMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n\n this.listServicesCallable =\n callableFactory.createUnaryCallable(\n listServicesTransportSettings, settings.listServicesSettings(), clientContext);\n this.listServicesPagedCallable =\n callableFactory.createPagedCallable(\n listServicesTransportSettings, settings.listServicesSettings(), clientContext);\n this.getServiceCallable =\n callableFactory.createUnaryCallable(\n getServiceTransportSettings, settings.getServiceSettings(), clientContext);\n this.updateServiceCallable =\n callableFactory.createUnaryCallable(\n updateServiceTransportSettings, settings.updateServiceSettings(), clientContext);\n this.updateServiceOperationCallable =\n callableFactory.createOperationCallable(\n updateServiceTransportSettings,\n settings.updateServiceOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.deleteServiceCallable =\n callableFactory.createUnaryCallable(\n deleteServiceTransportSettings, settings.deleteServiceSettings(), clientContext);\n this.deleteServiceOperationCallable =\n callableFactory.createOperationCallable(\n deleteServiceTransportSettings,\n settings.deleteServiceOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n\n this.backgroundResources =\n new BackgroundResourceAggregation(clientContext.getBackgroundResources());\n }", "private HttpClient getTemplateServerClient(String remoteSource) throws IOException {\n\n SocketFactory factory = (SocketFactory)mSocketFactories.get(remoteSource);\n\n if (factory == null) {\n\n int port = 80;\n String host = remoteSource.substring(TEMPLATE_LOAD_PROTOCOL.length());\n\n int portIndex = host.indexOf(\"/\");\n \n if (portIndex >= 0) {\n host = host.substring(0,portIndex); \n }\n String hostPort = host; \n portIndex = host.indexOf(\":\");\n if (portIndex >= 0) {\n try {\n port = Integer.parseInt(host.substring(portIndex+1));\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Invalid port number specified\");\n }\n host = host.substring(0,portIndex);\n }\n factory = new PooledSocketFactory(new PlainSocketFactory(InetAddress.getByName(host), \n port, 5000));\n \n if (factory != null) {\n mSocketFactories.put(hostPort, factory);\n }\n }\n return new HttpClient(factory);\n }", "public String registerClient(String clientSocket) throws RemoteException;", "private Client createClient() {\n\t\tClient client = null;\n\t\tvar clientsList = clientDAO.getClients();\n\t\tvar name = txtName.getText();\n\t\tvar surnames = txtSurnames.getText();\n\t\tvar dni = txtDni.getText();\n\t\tvar telephone = txtTelephone.getText();\n\n\t\tif (txtDni.getText().isBlank() || txtName.getText().isBlank() || txtSurnames.getText().isBlank()\n\t\t\t\t|| txtTelephone.getText().isBlank()) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"Error, los campos no pueden estar vacios, ni contener solo espacios\",\n\t\t\t\t\t\"Warning!\", JOptionPane.ERROR_MESSAGE);\n\t\t} else {\n\t\t\t// Comprobar si el cliente ya existe\n\t\t\tvar exist = false;\n\t\t\tfor (int i = 0; i < clientsList.size(); ++i) {\n\t\t\t\tif (dni.equalsIgnoreCase(clientsList.get(i).getDni())) {\n\t\t\t\t\texist = true;\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Error, ya existe el DNI introducido\", \"Warning!\",\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!exist) {\n\t\t\t\tclient = new Client(dni, name, surnames, telephone);\n\t\t\t}\n\t\t}\n\n\t\treturn client;\n\t}", "static Http1Client create(Http1ClientConfig clientConfig) {\n return new Http1ClientImpl(WebClient.create(it -> it.from(clientConfig)), clientConfig);\n }", "public static ObjectReferenceFactory makeObjectReferenceFactory(ORB paramORB, IORTemplateList paramIORTemplateList) {\n/* 157 */ return (ObjectReferenceFactory)new ObjectReferenceFactoryImpl(paramORB, paramIORTemplateList);\n/* */ }", "<T> T createClientService(Class<T> clientKlass, @Nullable Map<String, Function<Object[], Object[]>> argumentProcessor, boolean useFNF);", "@IID(\"{AAEF1B4C-4B50-4502-BE8E-11AD9A78B9E7}\")\npublic interface ICITFactoryService extends Com4jObject {\n\t// Methods:\n\t/**\n\t * <p>\n\t * For HP use.\n\t * </p>\n\t * \n\t * @param ownerType\n\t * Mandatory int parameter.\n\t * @param ownerKey\n\t * Mandatory java.lang.Object parameter.\n\t * @param isVirtualFather\n\t * Mandatory boolean parameter.\n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@VTID(3)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject createApplicationEntityFactory(int ownerType,\n\t\t\t@MarshalAs(NativeType.VARIANT) java.lang.Object ownerKey,\n\t\t\tboolean isVirtualFather);\n\n\t/**\n\t * <p>\n\t * For HP use.\n\t * </p>\n\t * \n\t * @param ownerType\n\t * Mandatory int parameter.\n\t * @param ownerKey\n\t * Mandatory java.lang.Object parameter.\n\t * @param isVirtualFather\n\t * Mandatory boolean parameter.\n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@VTID(4)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject createApplicationImpactFactory(int ownerType,\n\t\t\t@MarshalAs(NativeType.VARIANT) java.lang.Object ownerKey,\n\t\t\tboolean isVirtualFather);\n\n\t/**\n\t * <p>\n\t * For HP use.\n\t * </p>\n\t * \n\t * @param ownerType\n\t * Mandatory int parameter.\n\t * @param ownerKey\n\t * Mandatory java.lang.Object parameter.\n\t * @param isVirtualFather\n\t * Mandatory boolean parameter.\n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@VTID(5)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject createChangeEntityFactory(int ownerType,\n\t\t\t@MarshalAs(NativeType.VARIANT) java.lang.Object ownerKey,\n\t\t\tboolean isVirtualFather);\n\n\t// Properties:\n}", "public DockerAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = DockerPackage.eINSTANCE;\n\t\t}\n\t}", "private static Client createDummyClient() {\n\n PhoneNumber num1 = new PhoneNumber(\"Arnold Schubert\",\"0151234567\", \"Ehemann\");\n PhoneNumber num2 = new PhoneNumber(\"Helene Schubert\",\"0171234567\", \"Tochter\");\n ArrayList<PhoneNumber> phoneNumbers1 = new ArrayList<>();\n phoneNumbers1.add(num1);\n phoneNumbers1.add(num2);\n DummyVitalValues vital1 = new DummyVitalValues();\n\n ArrayList<Integer> pictograms1 = new ArrayList<>();\n\n DummyClientMedicine medicine1 = new DummyClientMedicine(DummyMedicine.ITEMS_PRESCRIBED_Erna, DummyMedicine.ITEMS_TEMPORARY, DummyMedicine.ITEMS_SELF_ORDERED);\n\n Client c = new Client(0,R.drawable.erna, \"Erna\",\"Schubert\",\"17.08.1943\",medicine1,DummyNotes.ITEMS_Erna, DummyFixedNotes.ITEMS_Erna, DummyToDos.ITEMS_Erna, vital1.vitalValues, \"Diabetes mellitus, Adipositas, Schilddrüsenunterfuntion\",1,\"Blankenfelder Str. 82, 13127 Berlin\",phoneNumbers1, pictograms1);\n\n return c;\n }", "public static JwtAuthTestServiceStub newStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<JwtAuthTestServiceStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<JwtAuthTestServiceStub>() {\n @java.lang.Override\n public JwtAuthTestServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new JwtAuthTestServiceStub(channel, callOptions);\n }\n };\n return JwtAuthTestServiceStub.newStub(factory, channel);\n }", "public interface ChannelFactory<T extends Channel> {\n T newChannel();\n}", "@Override\n public HelixZkClient buildZkClient(HelixZkClient.ZkConnectionConfig connectionConfig,\n HelixZkClient.ZkClientConfig clientConfig) {\n return new ZkClient(createZkConnection(connectionConfig),\n (int) clientConfig.getConnectInitTimeout(), clientConfig.getOperationRetryTimeout(),\n clientConfig.getZkSerializer(), clientConfig.getMonitorType(), clientConfig.getMonitorKey(),\n clientConfig.getMonitorInstanceName(), clientConfig.isMonitorRootPathOnly());\n }", "public static DatabaseAccess getClient(String hostname, int port)\n\t throws IOException {\n\tString url = \"rmi://\" + hostname + \":\" + port + \"/\"\n\t\t+ RMIRegistrator.REGISTRY_NAME;\n\ttry {\n\t return (DatabaseAccess) Naming.lookup(url);\n\t} catch (NotBoundException e) {\n\t throw new IOException(\"Failed to lookup RMI server\", e);\n\t} catch (IOException e) {\n\t throw new IOException(\"Failed to lookup RMI server\", e);\n\t}\n }", "public static CLONDATAFactory init() {\n\t\ttry {\n\t\t\tCLONDATAFactory theCLONDATAFactory = (CLONDATAFactory) EPackage.Registry.INSTANCE.getEFactory(\n\t\t\t\tCLONDATAPackage.eNS_URI);\n\t\t\tif (theCLONDATAFactory != null) {\n\t\t\t\treturn theCLONDATAFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CLONDATAFactoryImpl();\n\t}", "@Override\n public SessionClient build() {\n Supplier<CompletableFuture<SessionClient>> proxyFactory = () -> CompletableFuture.completedFuture(\n new DefaultRaftSessionClient(\n primitiveName,\n primitiveType,\n serviceConfig,\n partitionId,\n DefaultRaftClient.this.protocol,\n selectorManager,\n sessionManager,\n readConsistency,\n communicationStrategy,\n threadContextFactory.createContext(),\n minTimeout,\n maxTimeout));\n\n SessionClient proxy;\n\n ThreadContext context = threadContextFactory.createContext();\n\n // If the recovery strategy is set to RECOVER, wrap the builder in a recovering proxy client.\n if (recoveryStrategy == Recovery.RECOVER) {\n proxy = new RecoveringSessionClient(\n clientId,\n partitionId,\n primitiveName,\n primitiveType,\n proxyFactory,\n context);\n } else {\n proxy = proxyFactory.get().join();\n }\n\n // If max retries is set, wrap the client in a retrying proxy client.\n if (maxRetries > 0) {\n proxy = new RetryingSessionClient(\n proxy,\n context,\n maxRetries,\n retryDelay);\n }\n return new BlockingAwareSessionClient(proxy, context);\n }", "public JavaJRExpressionFactoryImpl()\n {\n super();\n }", "public static RegistrationServiceStub newStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<RegistrationServiceStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<RegistrationServiceStub>() {\n @java.lang.Override\n public RegistrationServiceStub newStub(\n io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new RegistrationServiceStub(channel, callOptions);\n }\n };\n return RegistrationServiceStub.newStub(factory, channel);\n }", "protected ClientFacade createClientFacade(IFlushable flushable, IProtocolLogger logger) {\n return new ClientFacade(flushable, logger);\n }", "public static TypeAdapterFactory create() {\n return new AutoValueGson_MyTypeAdapterFactory();\n }", "@Override\n\tpublic void createClient(Client clt) {\n\t\t\n\t}", "default Factory<T> toFactory() {\n throw new UnsupportedOperationException();\n }", "Set<CommandConfigFactoryDTO> getCommandConfigFactoriesByReaderID(String readerFactoryID);", "public interface ReviewServiceFactory extends ServiceFactory {\n}", "private void createClient() throws NFFGClientException {\n\t\ttry {\n\t\t\ttestNFFGClient = NFFGClientFactory.newInstance().newNFFGClient();\n\t\t} catch (FactoryConfigurationError fce) {\n\t\t\tfce.printStackTrace();\n\t\t}\n\t\tassertNotNull(\"The implementation under test generated a null NFFGClient\", testNFFGClient);\n\t}", "void setJNPServerSocketFactory(String factoryClassName) \n throws ClassNotFoundException, InstantiationException, IllegalAccessException;", "private JNDIUtil createJNDIUtil(String jndiUtilNamespace)\r\n throws CockpitConfigurationException {\r\n try {\r\n return jndiUtilNamespace == null ? new JNDIUtil() : new JNDIUtil(jndiUtilNamespace);\r\n } catch (ConfigurationException e) {\r\n throw new CockpitConfigurationException(\"Fails to create JNDIUtil\", e);\r\n }\r\n }" ]
[ "0.5875827", "0.5141415", "0.50861573", "0.5039126", "0.49617958", "0.4932057", "0.4892069", "0.48680255", "0.4804681", "0.47836846", "0.4770184", "0.47657558", "0.4712775", "0.47012043", "0.46928155", "0.46420804", "0.46416244", "0.4574165", "0.4570221", "0.45590004", "0.45448565", "0.45267615", "0.45058092", "0.44955575", "0.44924128", "0.4488436", "0.4482219", "0.44801342", "0.447839", "0.4477007", "0.4474052", "0.44703853", "0.44581252", "0.44543433", "0.44278744", "0.44275036", "0.44180042", "0.44079393", "0.4401248", "0.43990242", "0.4397134", "0.4385744", "0.4385554", "0.43806604", "0.4374138", "0.43613106", "0.43489954", "0.4345898", "0.43440315", "0.43301088", "0.43238896", "0.432124", "0.4307223", "0.43067643", "0.43056384", "0.430268", "0.43020245", "0.4299662", "0.42969495", "0.42892694", "0.42868924", "0.42720854", "0.42669365", "0.42537123", "0.42504418", "0.42474368", "0.42445445", "0.42375067", "0.4236918", "0.42245996", "0.42198956", "0.4219071", "0.42102718", "0.42090803", "0.42036942", "0.42032352", "0.41937745", "0.41923982", "0.41918695", "0.4189933", "0.4179079", "0.41744566", "0.4172381", "0.41709998", "0.41643184", "0.41565984", "0.4156043", "0.41534796", "0.4151786", "0.41501996", "0.41490272", "0.41441053", "0.41397148", "0.41343987", "0.41340512", "0.413291", "0.41324723", "0.4132386", "0.41261756", "0.41260535" ]
0.60751605
0
JNDI factory method for creating JCRRMI clients. Creates a lazy client repository instance that uses the reference parameter "url" as the RMI URL where the remote repository is looked up when accessed.
public Object getObjectInstance( Object object, Name name, Context context, Hashtable environment) { if (object instanceof Reference) { Reference reference = (Reference) object; RefAddr url = reference.get(URL_PARAMETER); if (url != null && url.getContent() != null) { try { return getRepository(url.getContent().toString()); } catch (Exception e) { return null; } } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ClientRepositoryFactory() {\n this(new ClientAdapterFactory());\n }", "public ResourceManagerServiceClient(String url) throws ResourceManagerServiceClientCreationException {\r\n this(getURL(url));\r\n }", "@Override\r\n\tpublic void connect(URL url) throws RemoteException {\n\t\tclientPool=ClientPoolManager.INSTANCE.getClientPool(url);\r\n\r\n\t}", "public ResourceManagerServiceClient(URL url) throws ResourceManagerServiceClientCreationException {\r\n this(url, DEFAULT_SERVICE_NAME);\r\n }", "public interface JcrContextFactory {\n /**\n * Create a JNDI naming context from the supplied connection properties.\n * \n * @param properties the connection properties; may be null or empty\n * @return the naming context; may not be null\n * @throws NamingException if there is a problem creating or obtaining the naming context\n */\n Context createContext( Properties properties ) throws NamingException;\n }", "public static PoolInfoClient create() {\n return new PoolInfoClient();\n }", "@Override\n\tpublic CmisBinding createCmisBinding() {\n\t\tSessionParameterMap parameters = new SessionParameterMap();\n\t\t//connect the file share repository\n\t\tparameters.setRepositoryId(Constants.REPO_ID);\n\t\tparameters.setBrowserBindingUrl(Constants.REPO_URL);\n\t\tparameters.setUserAndPassword(Constants.REPO_USERNAME, Constants.REPO_PASSWORD);\n\t\t//parameters.put(SessionParameter.BINDING_TYPE, \"browser\");\n\t\tparameters.put(SessionParameter.CONNECT_TIMEOUT, \"60000\");\n\t\tparameters.put(SessionParameter.READ_TIMEOUT, \"900000\");\n\n\t\tparameters.put(SessionParameter.HTTP_INVOKER_CLASS, DefaultHttpInvoker.class.getName());\n\t\tcmisBinding = CmisBindingFactory.newInstance().createCmisBrowserBinding(parameters);\n\t\treturn cmisBinding;\n\t}", "public interface GitClient {\n\n\t/**\n\t * Instances of the GitClient that are identified by the path of the git\n\t * repository.\n\t */\n\tpublic Map<IPath, GitClient> instances = new HashMap<IPath, GitClient>();\n\n\t/**\n\t * Retrieves an existing GitClient instance or creates a new instance if there\n\t * is no instance for the given path yet.\n\t * \n\t * @return GitClient instance.\n\t */\n\tpublic static GitClient getOrCreate() {\n\t\tIPath path = ConfigPersistenceManager.getPathToGit();\n\t\tString reference = ConfigPersistenceManager.getBranch();\n\t\tString projectKey = ConfigPersistenceManager.getProjectKey();\n\t\treturn getOrCreate(path, reference, projectKey);\n\t}\n\n\t/**\n\t * Retrieves an existing GitClient instance or creates a new instance if there\n\t * is no instance for the given path yet.\n\t * \n\t * @param path\n\t * to the .git folder.\n\t * @param reference\n\t * git object identifier, e.g., HEAD, refs/heads/master or commit id.\n\t * @param projectKey\n\t * of the associated JIRA project.\n\t * @return GitClient instance.\n\t */\n\tpublic static GitClient getOrCreate(IPath path, String reference, String projectKey) {\n\t\tif (instances.containsKey(path)) {\n\t\t\treturn instances.get(path);\n\t\t}\n\t\tGitClient gitClient = new GitClientImpl(path, reference, projectKey);\n\t\tinstances.put(path, gitClient);\n\t\treturn gitClient;\n\t}\n\n\t/**\n\t * Retrieve the commit message for a given line from a blamed file as a\n\t * RevCommit.\n\t * \n\t * @param filePath\n\t * path to the file to be blamed.\n\t * @param line\n\t * the line that is to be analyzed.\n\t * @return {@link GitCommit} object.\n\t */\n\tGitCommit getCommitForLine(IPath filePath, int line);\n\n\t/**\n\t * Retrieve the commit message for a given line from a blamed file.\n\t * \n\t * @param filePath\n\t * path to the file to be blamed.\n\t * @param line\n\t * the line that is to be analyzed.\n\t * @return commit message.\n\t */\n\tString getCommitMessageForLine(IPath filePath, int line);\n\n\t/**\n\t * Retrieves all commits on the current branch.\n\t * \n\t * @return set of all commits on the current branch as a list of\n\t * {@link GitCommit} objects.\n\t */\n\tList<GitCommit> getCommits();\n\n\t/**\n\t * Retrieve the commits with the JIRA issue key in their commit message.\n\t * \n\t * @param jiraIssueKey\n\t * key for which commits are searched.\n\t * @return commits with the JIRA issue key in their commit message as a list of\n\t * {@link GitCommit} objects.\n\t */\n\tList<GitCommit> getCommitsForJiraIssue(String jiraIssueKey);\n\n\t/**\n\t * Get a map of diff entries and the respective edit lists for a commit.\n\t * \n\t * @param commit\n\t * as a {@link GitCommit} object.\n\t * @return map of diff entries and respective edit lists.\n\t */\n\tMap<DiffEntry, EditList> getDiff(GitCommit commit);\n\n\t/**\n\t * Returns a set of changed files for a commit.\n\t * \n\t * @param commit\n\t * as a {@link GitCommit} object\n\t * @return set of {@link ChangedFile} objects.\n\t */\n\tSet<ChangedFile> getChangedFiles(GitCommit commit);\n\n\t/**\n\t * Returns the jgit git object.\n\t * \n\t * @return jgit git object.\n\t */\n\tGit getGit();\n\n\t/**\n\t * Returns the path to the .git folder.\n\t * \n\t * @return path to the .git folder.\n\t */\n\tIPath getPath();\n\n\t/**\n\t * Show what author and revision last modified each line of a file.\n\t * \n\t * @param filePath\n\t * path to the file to be blamed.\n\t * @return git blame result for the given file.\n\t */\n\tBlameResult getGitBlameForFile(IPath filePath);\n\n\t/**\n\t * Get the parent commit for a given commit.\n\t * \n\t * @param commit\n\t * commit as a {@link GitCommit} object.\n\t * @return parent commit as a {@link GitCommit} object.\n\t */\n\tGitCommit getParent(GitCommit commit);\n\n\t/**\n\t * Gets the git object identifier, e.g., HEAD, refs/heads/master or commit id.\n\t * \n\t * @return git object identifier.\n\t */\n\tString getReference();\n\n\t/**\n\t * Get the jgit repository object.\n\t * \n\t * @return jgit repository object\n\t */\n\tRepository getRepository();\n\n\t/**\n\t * Sets the git object identifier, e.g., HEAD, refs/heads/master or commit id.\n\t * \n\t * @param reference\n\t * git object identifier.\n\t */\n\tvoid setReference(String reference);\n}", "protected Registry createRegistry() {\n return new JndiRegistry();\n }", "public interface RegistryFactory {\n\n /**\n * 连接注册中心.\n * \n * 连接注册中心需处理契约:<br>\n * 1. 当设置check=false时表示不检查连接,否则在连接不上时抛出异常。<br>\n * 2. 支持URL上的username:password权限认证。<br>\n * 3. 支持backup=10.20.153.10备选注册中心集群地址。<br>\n * 4. 支持file=registry.cache本地磁盘文件缓存。<br>\n * 5. 支持timeout=1000请求超时设置。<br>\n * 6. 支持session=60000会话超时或过期设置。<br>\n * \n * @param url 注册中心地址,不允许为空\n * @return 注册中心引用,总不返回空\n */\n Registry getRegistry(URL url);\n\n}", "public static WebResource getJerseyClient(String url){\n\t\tif(url == null || url.isEmpty()){\n\t\t\treturn null;\n\t\t}\n\t\tClient client = null;\n\n\t\tClientConfig clientConfigRegisterUser = new DefaultClientConfig();\n\t\tclientConfigRegisterUser.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING,Boolean.TRUE);\n\n\t\tclient = Client.create(clientConfigRegisterUser);\n\n\t\treturn client.resource(url);\n\t}", "public RemoteReferenceFactory getRemoteReferenceFactory\n (Container container, boolean remoteHomeView, String id)\n {\n\tRemoteReferenceFactory factory = new POARemoteReferenceFactory\n (container, this, orb, remoteHomeView, id);\n\t\t\t\t\t\t \n\t// XXX store factory in some kind of table ??\n\treturn factory;\n }", "private static JedisPool createRedisConnectionPool(String redisUrlStr) {\n\n // create the Redis URI\n URI redisUri = null;\n try {\n redisUri = new URI(redisUrlStr);\n } catch(URISyntaxException ex) {\n throw new IllegalArgumentException(\"Invalid URI: \" + redisUrlStr, ex);\n }\n // default maximum connections if not specified\n int maxConnections = DEFAULT_REDIS_MAX_CONNECTIONS;\n String maxConnectionsStr = System.getenv(\"REDIS_MAX_CONNECTIONS\");\n if (maxConnectionsStr != null) {\n maxConnections = Integer.parseInt(maxConnectionsStr);\n }\n // configure the Redis connection pool\n JedisPoolConfig poolConfig = new JedisPoolConfig();\n poolConfig.setMaxTotal(maxConnections);\n poolConfig.setMaxIdle(maxConnections);\n poolConfig.setMinIdle(16);\n poolConfig.setTestOnBorrow(true);\n poolConfig.setTestOnReturn(true);\n poolConfig.setTestWhileIdle(true);\n poolConfig.setMinEvictableIdleTimeMillis(Duration.ofSeconds(60).toMillis());\n poolConfig.setTimeBetweenEvictionRunsMillis(Duration.ofSeconds(30).toMillis());\n poolConfig.setNumTestsPerEvictionRun(3);\n poolConfig.setBlockWhenExhausted(true);\n return new JedisPool(poolConfig, redisUri);\n }", "public ClientRepositoryFactory(LocalAdapterFactory factory) {\n this.factory = factory;\n }", "public ResourceManagerServiceClient(URL url, QName serviceName)\r\n throws ResourceManagerServiceClientCreationException {\r\n super(validateArguments(url, serviceName), serviceName);\r\n\r\n try {\r\n this.port = super.getPort(ResourceManagerService.class);\r\n } catch (WebServiceException e) {\r\n throw new ResourceManagerServiceClientCreationException(\r\n \"Error while instantiating ResourceManagerServiceClient.\", e);\r\n }\r\n }", "Ressource createRessource();", "public static JSONRPCClient create(String uri)\r\n\t{\r\n\t\treturn new JSONRPCHttpClient(uri);\r\n\t}", "public Client create() {\n RequestProvider provider = RequestProviders.lookup();\n return provider.newClient(this);\n }", "public RMIClient() {\n if(ipAdress == null){\n ipAdress = \"127.0.0.1\";\n }\n try {\n loginRegistry = LocateRegistry.getRegistry(ipAdress, 421);\n mainScreenRegistry = LocateRegistry.getRegistry(ipAdress, 422);\n } catch (RemoteException ex) {\n StageController.getInstance().popup(\"Server connection\", false, \"server connection failed.\");\n Logger.getLogger(RMIClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n if (loginRegistry != null) {\n try {\n loginProvider = (ILoginProvider) loginRegistry.lookup(\"loginProvider\");\n } catch (RemoteException | NotBoundException ex) {\n StageController.getInstance().popup(\"Server connection\", false, \"server connection failed.\");\n Logger.getLogger(RMIClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n if (mainScreenRegistry != null) {\n try {\n mainScreenProvider = (IMainScreenProvider) mainScreenRegistry.lookup(\"mainScreenProvider\");\n } catch (RemoteException | NotBoundException ex) {\n StageController.getInstance().popup(\"Server connection\", false, \"server connection failed.\");\n Logger.getLogger(RMIClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public CachetClient(String url) {\n baseUrl = url;\n client = ClientBuilder.newClient();\n target = client.target(baseUrl);\n }", "@Override\n\tpublic void createClient() {\n\t\t\n\t}", "public interface RemoteClientService extends Remote {\n\n /**\n * Returns a ClientDTO object with the given id.\n * @param sessionId session id to gain access\n * @param id database id of the client\n * @return a client dto with the given id\n * @throws RemoteException mandatory\n * @throws UserNotLoggedInException is thrown if the sessionId is invalid\n */\n ClientDTO getById(String sessionId, int id) throws RemoteException, UserNotLoggedInException;\n\n /**\n * Returns all clients.\n * @param sessionId session id to gain access\n * @return list with all clients\n * @throws RemoteException mandatory\n * @throws UserNotLoggedInException is thrown if the sessionId is invalid\n */\n List<ClientDTO> getList(String sessionId) throws RemoteException, UserNotLoggedInException;\n}", "public interface CwmResourceLocatorClass extends javax.jmi.reflect.RefClass {\n /**\n * The default factory operation used to create an instance object.\n * \n * @return The created instance object.\n */\n public CwmResourceLocator createCwmResourceLocator();\n\n /**\n * Creates an instance object having attributes initialized by the passed values.\n * \n * @param name\n * An identifier for the ModelElement within its containing Namespace.\n * @param visibility\n * Specifies extent of the visibility of the ModelElement within its owning Namespace.\n * @param url\n * Contains the text of the resource location. For Internet locations, this will be a web URL (Uniform\n * Resource Locator) but there is no requirement that this be so. In fact, the string can contain any text\n * meaningful to its intended use in a particular environment.\n * @return The created instance object.\n */\n public CwmResourceLocator createCwmResourceLocator( java.lang.String name,\n org.pentaho.pms.cwm.pentaho.meta.core.VisibilityKind visibility, java.lang.String url );\n}", "public NetworkClientController() {\r\n\t\trmiClient = new RMIClient();\r\n\t\trmiClient.addObserver(this);\r\n\t}", "@Override\n public HelixZkClient buildZkClient(HelixZkClient.ZkConnectionConfig connectionConfig,\n HelixZkClient.ZkClientConfig clientConfig) {\n return new ZkClient(createZkConnection(connectionConfig),\n (int) clientConfig.getConnectInitTimeout(), clientConfig.getOperationRetryTimeout(),\n clientConfig.getZkSerializer(), clientConfig.getMonitorType(), clientConfig.getMonitorKey(),\n clientConfig.getMonitorInstanceName(), clientConfig.isMonitorRootPathOnly());\n }", "public interface NetworkClientManager {\n\n /**\n * Get a NetworkClientConnection\n *\n * @return NetworkClientConnection instance\n */\n NetworkClientConnection getConnection();\n\n /**\n * Get a NetworkClientConnection from uriToNode\n * @param uriToNode\n * @return NetworkClientConnection instance\n */\n NetworkClientConnection getConnection(String uriToNode);\n\n}", "@Override\n public Client createClient(Client client)\n throws RemoteException {\n client=clientManager.create(client);\n \n return client;\n }", "private CuratorFramework createCurator() {\n // Create list of Servers\n final String serverStr = sharedZookeeperTestResource.getZookeeperConnectString();\n final List<String> serverList = Arrays.asList(Tools.splitAndTrim(serverStr));\n\n // Create config map\n final Map<String, Object> config = new HashMap<>();\n config.put(\"servers\", serverList);\n\n return CuratorFactory.createNewCuratorInstance(config, getClass().getSimpleName());\n }", "private HttpClient getTemplateServerClient(String remoteSource) throws IOException {\n\n SocketFactory factory = (SocketFactory)mSocketFactories.get(remoteSource);\n\n if (factory == null) {\n\n int port = 80;\n String host = remoteSource.substring(TEMPLATE_LOAD_PROTOCOL.length());\n\n int portIndex = host.indexOf(\"/\");\n \n if (portIndex >= 0) {\n host = host.substring(0,portIndex); \n }\n String hostPort = host; \n portIndex = host.indexOf(\":\");\n if (portIndex >= 0) {\n try {\n port = Integer.parseInt(host.substring(portIndex+1));\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Invalid port number specified\");\n }\n host = host.substring(0,portIndex);\n }\n factory = new PooledSocketFactory(new PlainSocketFactory(InetAddress.getByName(host), \n port, 5000));\n \n if (factory != null) {\n mSocketFactories.put(hostPort, factory);\n }\n }\n return new HttpClient(factory);\n }", "public static GitClient getOrCreate() {\n\t\tIPath path = ConfigPersistenceManager.getPathToGit();\n\t\tString reference = ConfigPersistenceManager.getBranch();\n\t\tString projectKey = ConfigPersistenceManager.getProjectKey();\n\t\treturn getOrCreate(path, reference, projectKey);\n\t}", "@Override\n\tpublic void createClient(Client clt) {\n\t\t\n\t}", "public static GitClient getOrCreate(IPath path, String reference, String projectKey) {\n\t\tif (instances.containsKey(path)) {\n\t\t\treturn instances.get(path);\n\t\t}\n\t\tGitClient gitClient = new GitClientImpl(path, reference, projectKey);\n\t\tinstances.put(path, gitClient);\n\t\treturn gitClient;\n\t}", "public RpcClient(String serviceUrl,\n final RpcClientOptions options,\n List<Interceptor> interceptors,\n NamingServiceFactory namingServiceFactory) {\n Validate.notEmpty(serviceUrl);\n Validate.notNull(options);\n this.init(options, interceptors);\n // parse naming\n BrpcURL url = new BrpcURL(serviceUrl);\n if (namingServiceFactory != null) {\n this.namingService = namingServiceFactory.createNamingService(url);\n } else {\n this.namingService = new DefaultNamingServiceFactory().createNamingService(url);\n }\n }", "Communicator createCommunicator();", "public ClientGui() throws RemoteException, NotBoundException, Exception {\n // Layout initiieren\n initComponents();\n \n //Dem Client mitteilen, wo sein TrustStore liegt. Dieser wurde zuvor mit Keytool erzeugt:\n //keytool erzeugt KeyStore dann wird selbstsigniertes Zertifikat exportiert um im Client importiert und als Vertrauenswürdig erteilt\n System.setProperty(\"javax.net.ssl.trustStore\", \"clientstore.jks\");\n System.setProperty(\"javax.net.ssl.trustStorePassword\", \"password\");\n \n //Dem Client mitteilen, wo sein KeyStore liegt, in diesem Fall gleichzeitig sein TrustStore\n System.setProperty(\"javax.net.ssl.keyStore\", \"clientstore.jks\");\n System.setProperty(\"javax.net.ssl.keyStorePassword\", \"password\");\n\n //KeyStore aus der Datei laden\n KeyStore ks = KeyStore.getInstance(\"JKS\");\n ks.load(new FileInputStream(\"clientstore.jks\"), \"password\".toCharArray());\n \n // SSLServerSocketFactory initialisieren\n SSLServerSocketFactory sssf ;\n \n try{\n //SSLRMIClientSocketFactory erzeugen\n SslRMIClientSocketFactory csf = new SslRMIClientSocketFactory();\n //Verbindung aufbauen zum Registry auf Localhost, Port 2222 und dem SslRMiClientSocketFactory, um mittels RMI Methodenaufrufe zu starten.\n Registry registry =LocateRegistry.getRegistry(\"localhost\", 2222, csf);\n \n \n //Verbindung aufbauen zum Registry um mittels RMI Methodenaufrufe zu starten. Ohne RMI,deshalbt auskommentiert\n //Registry registry =LocateRegistry.getRegistry(\"localhost\", 2222);\n \n //Anlegenen eines TestRemotes Objektes um auf die Methoden zugreifen zu können.\n remote= (TestRemote) registry.lookup(\"remote\");\n }catch(NotBoundException | RemoteException e){\n Logger.getLogger(ClientGui.class.getName()).log(Level.SEVERE, null, e);\n \n }\n \n //Überprüfen ob Methodenaufruf klappt\n System.out.println(remote.isLoginValid(\"heiko\"));\n //AES Objekt erzeugen um auf die Methoden der Klasse zuzugreifen zu können.\n aes = new AES();\n //RSA Schlüsselpaar erzeugen und in Datei speichern\n generateRSA();\n //Liste wer online ist updaten\n online(remote.online());\n \n \n }", "public interface ICordysGatewayClientFactory\r\n{\r\n /**\r\n * Return a client (the factory is also responsable for creating the gateway).\r\n *\r\n * @return A cordys gateway client.\r\n */\r\n ICordysGatewayClient getGatewayClientInstance();\r\n}", "@FunctionalInterface\npublic interface ClientFactory {\n\n /**\n * Builds new client.\n * @param configuration Configuration.\n * @return Client.\n */\n DatabaseClient constructClient(Configuration configuration);\n}", "@Override\n public Collection<Object> createComponents(Client client,\n ClusterService clusterService,\n ThreadPool threadPool,\n NamedXContentRegistry xContentRegistry,\n Environment environment,\n NodeEnvironment nodeEnvironment,\n NamedWriteableRegistry namedWriteableRegistry,\n Supplier<RepositoriesService> repositoriesServiceSupplier) {\n return Collections.singletonList(pipelineRegistry);\n }", "Client createNewClient(Client client);", "WithCreate withRepoUrl(String repoUrl);", "public synchronized static RMIClient getInstance() {\n if (instance == null) {\n instance = new RMIClient();\n }\n\n return instance;\n }", "public Client(String nickname) throws RemoteException {\n\t\n\tthis.nickname=nickname;\n\n\t\t\t\t\t\t\t\t}", "public BankImpl() {\n persons = new ConcurrentHashMap<String, RemotePerson>();\n try {\n registry = LocateRegistry.createRegistry(8080);\n } catch (RemoteException e) {\n e.printStackTrace();\n System.exit(2);\n }\n }", "public interface IXioClientFactory\n{\n /**\n * Returns a client that is connected to the specified address, or is going to be connected to the specified address.\n * If the client is not connected, the caller must not connect the client to any other address but the one specified.\n * @param address The address.\n * @return Returns a new XioClient.\n */\n public XioClient newInstance( InetSocketAddress address);\n}", "public static @NonNull ChannelFactory<? extends Channel> clientChannelFactory() {\n return CURR_NETTY_TRANSPORT.clientChannelFactory();\n }", "public interface MRConnectionManagerContainer {\n\n\n String MR_GROUP_PATH = \"/zk/mr/\";\n\n void start() throws Exception;\n\n void start(Map<String, MRMessageListener> messageListenerMap) throws Exception;\n\n void register();\n\n void add(Map.Entry<String, String> entry) throws Exception;\n\n void update(Map.Entry<String, String> entry);\n\n void addListener(String topic, MRMessageListener mrMessageListener);\n\n void remove(Map.Entry<String, String> entry);\n\n void refresh();\n\n void shutdown();\n\n void shutdownAndWait() throws InterruptedException;\n\n Map<String, MRConnectionManager> getMrConnectionManagerCache();\n\n static String groupPath(String group) {\n return String.format(\"%s%s\", MR_GROUP_PATH, group);\n }\n\n void setPerfetchSize(int perfetchSize);\n\n\n}", "protected abstract T createRessource();", "public ClientWorkspace(\n Session session, RemoteWorkspace remote,\n LocalAdapterFactory factory) {\n super(factory);\n this.session = session;\n this.remote = remote;\n }", "public CreateRemoteClassic<Msg, Ref> create();", "public interface ClientServerRMIInterface extends Remote {\n Metadata getMeta(String id) throws IOException;\n\n Metadata putMeta(String id, long length) throws IOException, NotBoundException, URISyntaxException;\n\n byte[] get(String id, long part) throws IOException;\n\n void put(String id, long part, byte[] data) throws IOException, NotBoundException, URISyntaxException;\n}", "private static ArtifactRepository createLocalRepository( Embedder embedder, Settings settings,\n CommandLine commandLine )\n throws ComponentLookupException\n {\n ArtifactRepositoryLayout repositoryLayout =\n (ArtifactRepositoryLayout) embedder.lookup( ArtifactRepositoryLayout.ROLE, \"default\" );\n\n ArtifactRepositoryFactory artifactRepositoryFactory =\n (ArtifactRepositoryFactory) embedder.lookup( ArtifactRepositoryFactory.ROLE );\n\n String url = settings.getLocalRepository();\n\n if ( !url.startsWith( \"file:\" ) )\n {\n url = \"file://\" + url;\n }\n\n ArtifactRepository localRepository = new DefaultArtifactRepository( \"local\", url, repositoryLayout );\n\n boolean snapshotPolicySet = false;\n\n if ( commandLine.hasOption( CLIManager.OFFLINE ) )\n {\n settings.setOffline( true );\n\n snapshotPolicySet = true;\n }\n\n if ( !snapshotPolicySet && commandLine.hasOption( CLIManager.UPDATE_SNAPSHOTS ) )\n {\n artifactRepositoryFactory.setGlobalUpdatePolicy( ArtifactRepositoryPolicy.UPDATE_POLICY_ALWAYS );\n }\n\n if ( commandLine.hasOption( CLIManager.CHECKSUM_FAILURE_POLICY ) )\n {\n System.out.println( \"+ Enabling strict checksum verification on all artifact downloads.\" );\n\n artifactRepositoryFactory.setGlobalChecksumPolicy( ArtifactRepositoryPolicy.CHECKSUM_POLICY_FAIL );\n }\n else if ( commandLine.hasOption( CLIManager.CHECKSUM_WARNING_POLICY ) )\n {\n System.out.println( \"+ Disabling strict checksum verification on all artifact downloads.\" );\n\n artifactRepositoryFactory.setGlobalChecksumPolicy( ArtifactRepositoryPolicy.CHECKSUM_POLICY_WARN );\n }\n\n return localRepository;\n }", "@Bean(destroyMethod = \"close\", name = \"restClient\")\n public RestHighLevelClient initRestClient() {\n List<HttpHost> hosts = new ArrayList<>();\n String[] hostArrays = host.split(\",\");\n for (String host : hostArrays) {\n if (StringUtils.isNotEmpty(host)) {\n hosts.add(new HttpHost(host.trim(), port, \"http\"));\n }\n }\n\n RestClientBuilder restClientBuilder = RestClient.builder(hosts.toArray(new HttpHost[0]));\n\n // configurable auth\n if (authEnable) {\n final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();\n credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(username, password));\n restClientBuilder.setHttpClientConfigCallback(httpAsyncClientBuilder -> httpAsyncClientBuilder\n .setDefaultCredentialsProvider(credentialsProvider));\n }\n\n restClientBuilder.setRequestConfigCallback(requestConfigBuilder -> requestConfigBuilder\n .setConnectTimeout(connTimeout).setSocketTimeout(socketTimeout)\n .setConnectionRequestTimeout(connectionRequestTimeout));\n\n return new RestHighLevelClient(restClientBuilder);\n }", "public ReferenceRemote getReferenceServer() throws RemoteException, IOException {\n String rmiServiceName\n = PropertiesRemote.getInstance().getProperty(\"remoteServiceName\");\n String rmiHost\n = PropertiesRemote.getInstance().getProperty(\"remoteHost\");\n int rmiPort\n = Integer.parseInt(PropertiesRemote.getInstance().getProperty(\"remotePort\"));\n String lookupString = \"rmi://\" + rmiHost + \":\" + rmiPort + \"/\" + rmiServiceName;\n\n try {\n refObj = (ReferenceRemote) Naming.lookup(lookupString);\n return refObj;\n } catch (NotBoundException nbex) {\n throw new RemoteException(nbex.toString());\n }\n }", "public interface ReplicaRepositoryServiceAsync extends IAsyncRemoteServiceProxy {\n\t\n\t/**\n\t * Add the specified ontology to the pool of shared ontologies. The ontology\n\t * will belong to no group. Use <code>addOWLOntology(OWLOntology, ID)</code>\n\t * if you want to set the group to which the ontology belongs.\n\t * \n\t * @param ontology\n\t * @return\n\t * @throws ReplicaOntologyAddException\n\t * \n\t * @deprecated use addOWLOntology(OWLOntology, ID) instead\n\t */\n\t// OWLOntology addOWLOntology(OWLOntology ontology) throws\n\t// ReplicaOntologyAddException;\n\n\t/**\n\t * Add the specified ontology to the pool of shared ontologies in\n\t * <code>groups</code>. If <code>groups</code> is null, then the ontology will\n\t * belong to no group. If <code>groups</code> does not exist yet, it will be\n\t * created.\n\t * \n\t * @param ontology\n\t * @param groups\n\t * @param listener\n\t * @throws AddException\n\t */\n\tvoid addOWLOntologyAsync(OWLOntology ontology, Set<? extends Object> groups,\n\t\t\tIAsyncCallback<String> callback);\n//\t\t\tthrows AddException;\n\n\t/**\n\t * Fetches the ontology with the specified OWLOntologyID.\n\t * \n\t * @param ontologyID\n\t * @param listener\n\t * @throws FetchException\n\t */\n\tvoid getOWLOntologyAsync(OWLOntologyID ontologyID,\n\t\t\tIAsyncCallback<OWLOntology> callback);\n//\t\t\tthrows FetchException;\n\n\t/**\n\t * Returns IDs of all shared ontologies or an empty list if none found.\n\t * \n\t * @deprecated use getOWLOntologies(String group) instead\n\t */\n\t// List<OWLOntologyID> getOWLOntologies() throws\n\t// ReplicaOntologyFetchException;\n\n\t/**\n\t * Returns IDs of all shared ontologies which belong to the specified groups.\n\t * <br>\n\t * If <code>groups</code> is null, IDs of all shared ontologies will be\n\t * returned.<br>\n\t * Beware that the specified set implementation has to be serializable.\n\t * \n\t * @param groups\n\t * @param listener\n\t */\n\tvoid getOWLOntologyIDsAsync(Set<Object> groups,\n\t\t\tIAsyncCallback<String> callback);\n//\t\t\tthrows FetchException;\n\n\t/**\n\t * Returns a set of all group names currently registered.\n\t * \n\t * @param listener\n\t */\n\tvoid getGroupsAsync(IAsyncCallback<Set<Object>> callback);\n//\t\t\tthrows FetchException;\n\t\n}", "static RepositoryConnection getRepositoryConnection(Repository rep)\n {\n RepositoryConnection connection = null;\n \n try\n {\n connection = rep.getConnection();\n }\n catch (RepositoryException e)\n {\n System.err.println(\"Could not obtain repository connection!\");\n System.exit(1);\n }\n \n return connection;\n }", "public abstract ServiceLocator create(String name);", "public static RegistryOperations createInstance(String name, Configuration conf) {\n Preconditions.checkArgument(conf != null, \"Null configuration\");\n RegistryOperationsClient operations =\n new RegistryOperationsClient(name);\n operations.init(conf);\n return operations;\n }", "List<ArtifactoryRepo> getRepos(String instanceUrl);", "public static Client createClient() {\n JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();\n provider.setAnnotationsToUse(new Annotations[]{Annotations.JACKSON});\n\n ClientConfig config = new ClientConfig(provider);\n //Allow delete request with entity\n config.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);\n //It helps to handle cookies\n config.property(ClientProperties.FOLLOW_REDIRECTS, Boolean.FALSE);\n //Allow PATCH\n config.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);\n\n Logger logger = Logger.getLogger(\"Client\");\n Feature feature = new LoggingFeature(logger, Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY,\n null);\n\n //Allow self trusted certificates\n SSLContext sslcontext;\n try {\n sslcontext = SSLContext.getInstance(\"TLS\");\n sslcontext.init(null, new TrustManager[]{new X509TrustManager() {\n public void checkClientTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public void checkServerTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[0];\n }\n }}, new java.security.SecureRandom());\n } catch (KeyManagementException | NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n\n return ClientBuilder\n .newBuilder()\n .withConfig(config)\n .sslContext(sslcontext)\n .build()\n .register(feature)\n .register(MultiPartFeature.class);\n }", "Network_Resource createNetwork_Resource();", "public CwmResourceLocator createCwmResourceLocator();", "public interface ArtifactoryClient {\n\n /**\n * Obtain list of repos in the given artifactory\n *\n * @param instanceUrl server url\n * @param artifactoryEndpoint endpoint of the artifactory in the instance url\n * @return\n */\n List<ArtifactoryRepo> getRepos(String instanceUrl);\n\n /**\n * Obtain all the artifacts in the given artifactory repo\n *\n * @param instanceUrl server url\n * @param repoName repo name\n * @param lastUpdated timestamp when the repo was last updated\n * @return\n */\n List<BinaryArtifact> getArtifacts(String instanceUrl, String repoName, long lastUpdated);\n\n List<BaseArtifact> getArtifactItems(String instanceUrl, String repoName,String pattern, long lastUpdated);\n}", "public TicketClient(@Value(\"${app.ticket-catalog.url}\") String serverUrl) {\n this.serverUrl = serverUrl;\n this.restTemplate = new RestTemplate();\n var requestFactory = new SimpleClientHttpRequestFactory();\n this.restTemplate.setRequestFactory(requestFactory);\n }", "public static NamedQueueClient create(Context context,String jndiUrl, \n String name) throws MessageServiceException {\n return new NamedQueueClient(context,jndiUrl,name);\n }", "public AccountCreator createAccountCreator(String xmlrpcUrl);", "@Override\n public SessionClient build() {\n Supplier<CompletableFuture<SessionClient>> proxyFactory = () -> CompletableFuture.completedFuture(\n new DefaultRaftSessionClient(\n primitiveName,\n primitiveType,\n serviceConfig,\n partitionId,\n DefaultRaftClient.this.protocol,\n selectorManager,\n sessionManager,\n readConsistency,\n communicationStrategy,\n threadContextFactory.createContext(),\n minTimeout,\n maxTimeout));\n\n SessionClient proxy;\n\n ThreadContext context = threadContextFactory.createContext();\n\n // If the recovery strategy is set to RECOVER, wrap the builder in a recovering proxy client.\n if (recoveryStrategy == Recovery.RECOVER) {\n proxy = new RecoveringSessionClient(\n clientId,\n partitionId,\n primitiveName,\n primitiveType,\n proxyFactory,\n context);\n } else {\n proxy = proxyFactory.get().join();\n }\n\n // If max retries is set, wrap the client in a retrying proxy client.\n if (maxRetries > 0) {\n proxy = new RetryingSessionClient(\n proxy,\n context,\n maxRetries,\n retryDelay);\n }\n return new BlockingAwareSessionClient(proxy, context);\n }", "public String getClientRepository() {\r\n return clientRepository;\r\n }", "public static DatabaseAccess getClient(String hostname, int port)\n\t throws IOException {\n\tString url = \"rmi://\" + hostname + \":\" + port + \"/\"\n\t\t+ RMIRegistrator.REGISTRY_NAME;\n\ttry {\n\t return (DatabaseAccess) Naming.lookup(url);\n\t} catch (NotBoundException e) {\n\t throw new IOException(\"Failed to lookup RMI server\", e);\n\t} catch (IOException e) {\n\t throw new IOException(\"Failed to lookup RMI server\", e);\n\t}\n }", "public interface RepoxRestClient {\n /**\n * Gets the base URI for the client.\n * \n * @return the http address where the REPOX connected to this instance resides\n */\n String getUri();\n\n /**\n * Creates an Aggregator in Repox\n * \n * @param aggregator\n * an Aggregator object\n * @return created aggregator\n * @throws RepoxException\n */\n Aggregator createAggregator(Aggregator aggregator) throws RepoxException;\n\n /**\n * Deletes an existing Aggregator from Repox\n * \n * @param aggregatorId\n * an ID to a Aggregator object\n * @return successful?\n * @throws RepoxException\n */\n String deleteAggregator(String aggregatorId) throws RepoxException;\n\n /**\n * Updates an existing Aggregator in Repox\n * \n * @param aggregator\n * the Aggregator object to update\n * @return updated aggregator\n * @throws RepoxException\n */\n Aggregator updateAggregator(Aggregator aggregator) throws RepoxException;\n\n /**\n * Retrieves all the available Aggregators from Repox\n * \n * @return an object containing all available Aggregators\n * @throws RepoxException\n */\n Aggregators retrieveAggregators() throws RepoxException;\n\n /**\n * Retrieves an aggregator for the specific ID from Repox\n * \n * @param aggregatorId\n * identifer for an aggregator\n * @return aggregator for ID or null if not existing\n * @throws RepoxException\n */\n Aggregator retrieveAggregator(String aggregatorId) throws RepoxException;\n\n /**\n * Retrieves an aggregator for the specific ID from Repox\n * \n * @param mnemonic\n * identifer for an aggregator\n * @return aggregator for ID or null if not existing\n * @throws RepoxException\n */\n Aggregator retrieveAggregatorByNameCode(String mnemonic) throws RepoxException;\n\n /**\n * Creates a provider in Repox and assigns it to the specific Aggregator\n * \n * @param prov\n * Provider definition\n * @param agr\n * Aggregator reference\n * @return created provider\n * @throws RepoxException\n */\n Provider createProvider(Provider prov, Aggregator agr) throws RepoxException;\n\n /**\n * Deletes a provider from Repox\n * \n * @param provID\n * the Provider reference\n * @return successful?\n * @throws RepoxException\n */\n String deleteProvider(String provID) throws RepoxException;\n\n /**\n * Updates a provider within Repox\n * \n * @param prov\n * Provider object to update\n * @return updated provider\n * @throws RepoxException\n */\n Provider updateProvider(Provider prov) throws RepoxException;\n\n /**\n * Retrieves all available providers within Repox\n * \n * @return an object containing all provider references\n * @throws RepoxException\n */\n DataProviders retrieveProviders() throws RepoxException;\n\n /**\n * @param providerId\n * @return specific provider\n * @throws RepoxException\n */\n eu.europeana.uim.repox.rest.client.xml.Provider retrieveProvider(String providerId)\n throws RepoxException;\n\n /**\n * @param mnemonic\n * @return specific provider\n * @throws RepoxException\n */\n eu.europeana.uim.repox.rest.client.xml.Provider retrieveProviderByNameCode(String mnemonic)\n throws RepoxException;\n\n /**\n * Retrieve all available Repox DataSources\n * \n * @return a DataSources object\n * @throws RepoxException\n */\n DataSources retrieveDataSources() throws RepoxException;\n\n /**\n * @param sourceId\n * @return specific data source\n * @throws RepoxException\n */\n Source retrieveDataSource(String sourceId) throws RepoxException;\n\n /**\n * @param mnemonic\n * @return specific data source\n * @throws RepoxException\n */\n Source retrieveDataSourceByNameCode(String mnemonic) throws RepoxException;\n\n /**\n * Creates an OAI DataSource. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/createOai?\n * dataProviderId=DPRestr0&\n * id=bdaSet&\n * description=Biblioteca Digital Do Alentejo&\n * nameCode=00123&\n * name=Alentejo&\n * exportPath=D:/Projectos/repoxdata_new&\n * schema=http://www.europeana.eu/schemas/ese/ESE-V3.3.xsd&\n * namespace=http://www.europeana.eu/schemas/ese/&\n * metadataFormat=ese&\n * oaiURL=http://bd1.inesc-id.pt:8080/repoxel/OAIHandler&\n * oaiSet=bda\n * </code>\n * \n * @param ds\n * a DataSource object\n * @param prov\n * provider to the source\n * @return a Source object\n * @throws RepoxException\n */\n Source createDatasourceOAI(Source ds, Provider prov) throws RepoxException;\n\n /**\n * Creates a Z3950Timestamp DataSource. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/createZ3950Timestamp?\n * dataProviderId=DPRestr0&\n * id=z3950TimeTest&\n * description=test Z39.50 with time stamp&nameCode=00130&\n * name=Z3950-TimeStamp&\n * exportPath=D:/Projectos/repoxdata_new&\n * schema=info:lc/xmlns/marcxchange-v1.xsd&\n * namespace=info:lc/xmlns/marcxchange-v1&\n * address=193.6.201.205&\n * port=1616&\n * database=B1&\n * user=&\n * password=&\n * recordSyntax=usmarc&\n * charset=UTF-8&\n * earliestTimestamp=20110301&\n * recordIdPolicy=IdGenerated&\n * idXpath=&\n * namespacePrefix=&\n * namespaceUri=\n * </code>\n * \n * @param ds\n * a DataSource object\n * @param prov\n * provider to the source\n * @return a Source object\n * @throws RepoxException\n */\n Source createDatasourceZ3950Timestamp(Source ds, Provider prov) throws RepoxException;\n\n /**\n * Creates a Z3950IdFile DataSource. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/createZ3950IdList?\n * dataProviderId=DPRestr0&\n * id=z3950IdFile&\n * description=test Z39.50 with id list&\n * nameCode=00124&\n * name=Z3950-IdFile&\n * exportPath=D:/Projectos/repoxdata_new&\n * schema=info:lc/xmlns/marcxchange-v1.xsd&\n * namespace=info:lc/xmlns/marcxchange-v1&\n * address=aleph.lbfl.li&\n * port=9909&\n * database=LLB_IDS&\n * user=&\n * password=&\n * recordSyntax=usmarc&\n * charset=UTF-8&\n * filePath=C:\\folderZ3950\\1900028192z3960idList.txt&\n * recordIdPolicy=IdGenerated&\n * idXpath=&\n * namespacePrefix=&\n * namespaceUri=\n * </code>\n * \n * @param ds\n * a DataSource object\n * @param prov\n * provider to the source\n * @return a Source object\n * @throws RepoxException\n */\n Source createDatasourceZ3950IdFile(Source ds, Provider prov) throws RepoxException;\n\n /**\n * Creates a Z3950IdSequence DataSource. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/createZ3950IdSequence?\n * dataProviderId=DPRestr0&\n * id=z3950IdSeqTest&\n * description=test%20Z39.50%20with%20id%20sequence&\n * nameCode=00129&\n * name=Z3950-IdSeq&\n * exportPath=D:/Projectos/repoxdata_new&\n * schema=info:lc/xmlns/marcxchange-v1.xsd&\n * namespace=info:lc/xmlns/marcxchange-v1&\n * address=aleph.lbfl.li&\n * port=9909&\n * database=LLB_IDS&\n * user=&\n * password=&\n * recordSyntax=usmarc&\n * charset=UTF-8&\n * maximumId=6000&\n * recordIdPolicy=IdGenerated&\n * idXpath=&\n * namespacePrefix=&\n * namespaceUri=\n * </code>\n * \n * @param ds\n * a DataSource object\n * @param prov\n * provider to the source\n * @return a Source object\n * @throws RepoxException\n */\n Source createDatasourceZ3950IdSequence(Source ds, Provider prov) throws RepoxException;\n\n /**\n * Creates an Ftp DataSource. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/createFtp?\n * dataProviderId=DPRestr0&\n * id=ftpTest&\n * description=test FTP data source&\n * nameCode=00124&\n * name=FTP&\n * exportPath=D:/Projectos/repoxdata_new&\n * schema=http://www.europeana.eu/schemas/ese/ESE-V3.3.xsd&\n * namespace=http://www.europeana.eu/schemas/ese/&\n * metadataFormat=ese&\n * isoFormat=&\n * charset=&\n * recordIdPolicy=IdGenerated&\n * idXpath=&\n * namespacePrefix=&\n * namespaceUri=&\n * recordXPath=record&\n * server=bd1.inesc-id.pt&\n * user=ftp&\n * password=pmath2010.&\n * ftpPath=/Lizbeth\n * </code>\n * \n * @param ds\n * a DataSource object\n * @param prov\n * provider to the source\n * @return a Source object\n * @throws RepoxException\n */\n Source createDatasourceFtp(Source ds, Provider prov) throws RepoxException;\n\n /**\n * Creates an Http DataSource. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/createHttp?\n * dataProviderId=DPRestr0&\n * id=httpTest&\n * description=test HTTP data source&\n * nameCode=00124&\n * name=HTTP&\n * exportPath=D:/Projectos/repoxdata_new&\n * schema=http://www.europeana.eu/schemas/ese/ESE-V3.3.xsd&\n * namespace=http://www.europeana.eu/schemas/ese/&\n * metadataFormat=ese&\n * isoFormat=&\n * charset=&\n * recordIdPolicy=IdGenerated&\n * idXpath=&\n * namespacePrefix=&\n * namespaceUri=&\n * recordXPath=record&\n * url=http://digmap2.ist.utl.pt:8080/index_digital/contente/09428_Ag_DE_ELocal.zip\n * </code>\n * \n * @param ds\n * a DataSource object\n * @param prov\n * provider to the source\n * @return a Source object\n * @throws RepoxException\n */\n Source createDatasourceHttp(Source ds, Provider prov) throws RepoxException;\n\n /**\n * Creates an Folder DataSource. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/createFolder?\n * id=folderTest&\n * description=test%20Folder%20data%20source3333333&\n * nameCode=4444444444400124&\n * name=Folder&\n * exportPath=D:/Projectos/repoxdata_new&\n * schema=info:lc/xmlns/marcxchange-v1.xsd&\n * namespace=info:lc/xmlns/marcxchange-v1&\n * metadataFormat=ISO2709&\n * isoFormat=pt.utl.ist.marc.iso2709.IteratorIso2709&\n * charset=UTF-8&\n * recordIdPolicy=IdExtracted&\n * idXpath=/mx:record/mx:controlfield[@tag=%22001%22]&\n * namespacePrefix=mx&\n * namespaceUri=info:lc/xmlns/marcxchange-v1&\n * recordXPath=&\n * folder=C:\\folderNew\n * </code>\n * \n * @param ds\n * a DataSource object\n * @param prov\n * provider to the source\n * @return a Source object\n * @throws RepoxException\n */\n Source createDatasourceFolder(Source ds, Provider prov) throws RepoxException;\n\n /**\n * Updates an OAI DataSource. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/updateOai?\n * id=bdaSet&\n * description=222Biblioteca Digital Do Alentejo&\n * nameCode=333300123&\n * name=4444Alentejo&\n * exportPath=D:/Projectos/repoxdata_new2&\n * schema=http://www.europeana.eu/schemas/ese/ESE-V3.3.xsd&\n * namespace=http://www.europeana.eu/schemas/ese/&\n * metadataFormat=ese&\n * oaiURL=http://bd1.inesc-id.pt:8080/repoxel/OAIHandler&\n * oaiSet=bda\n * </code>\n * \n * @param ds\n * a Source object\n * @param prov\n * provider to the source\n * @return a Source object\n * @throws RepoxException\n */\n Source updateDatasourceOAI(Source ds) throws RepoxException;\n\n /**\n * Updates a Z3950Timestamp DataSource. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/updateZ3950Timestamp?\n * id=z3950TimeTest&\n * description=new test Z39.50 with time stamp&\n * nameCode=99900130&\n * name=Z3950-TimeStampWorking&\n * exportPath=D:/Projectos/repoxdata_new&\n * schema=info:lc/xmlns/marcxchange-v1.xsd&\n * namespace=info:lc/xmlns/marcxchange-v1&\n * address=193.6.201.205&\n * port=1616&\n * database=B1&\n * user=&\n * password=&\n * recordSyntax=usmarc&\n * charset=UTF-8&\n * earliestTimestamp=20110301&\n * recordIdPolicy=IdGenerated&\n * idXpath=&\n * namespacePrefix=&\n * namespaceUri=\n * </code>\n * \n * @param ds\n * a Source object\n * @param prov\n * provider to the source\n * @return a Source object\n * @throws RepoxException\n */\n Source updateDatasourceZ3950Timestamp(Source ds) throws RepoxException;\n\n /**\n * Updates a Z3950IdFile DataSource. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/updateZ3950IdList?\n * id=z3950IdFile&\n * description=new test Z39.50 with id list&\n * nameCode=001245555&\n * name=Z3950-IdFilenew&\n * exportPath=D:/Projectos/repoxdata_new1&\n * schema=info:lc/xmlns/marcxchange-v1.xsd&\n * namespace=info:lc/xmlns/marcxchange-v1&\n * address=aleph.lbfl.li&port=9909&\n * database=LLB_IDS&\n * user=&\n * password=&\n * recordSyntax=usmarc&\n * charset=UTF-8&\n * filePath=C:\\folderZ3950\\newFile.txt&\n * recordIdPolicy=IdGenerated&\n * idXpath=&\n * namespacePrefix=&\n * namespaceUri=\n * </code>\n * \n * @param ds\n * a Source object\n * @param prov\n * provider to the source\n * @return a Source object\n * @throws RepoxException\n */\n Source updateDatasourceZ3950IdFile(Source ds) throws RepoxException;\n\n /**\n * Updates a Z3950IdSequence DataSource. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/updateZ3950IdSequence?\n * id=z3950IdSeqTest&\n * description=newtest Z39.50 with id sequence&\n * nameCode=222200129&\n * name=NEWZ3950-IdSeq&\n * exportPath=D:/Projectos/repoxdata_new21&\n * schema=info:lc/xmlns/marcxchange-v1.xsd&\n * namespace=info:lc/xmlns/marcxchange-v1&\n * address=aleph.lbfl.li&port=9909&\n * database=LLB_IDS&\n * user=&\n * password=&\n * recordSyntax=usmarc&\n * charset=UTF-8&\n * maximumId=300&\n * recordIdPolicy=IdGenerated&\n * idXpath=&\n * namespacePrefix=&\n * namespaceUri=\n * </code>\n * \n * @param ds\n * a Source object\n * @param prov\n * provider to the source\n * @return a Source object\n * @throws RepoxException\n */\n Source updateDatasourceZ3950IdSequence(Source ds) throws RepoxException;\n\n /**\n * Updates a Ftp DataSource. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/updateFtp?\n * id=ftpTest&\n * description=newtest FTP data source&\n * nameCode=555555500124&\n * name=FTP&\n * exportPath=D:/Projectos/repoxdata_new21212121&\n * schema=http://www.europeana.eu/schemas/ese/ESE-V3.3.xsd&\n * namespace=http://www.europeana.eu/schemas/ese/&\n * metadataFormat=ese&\n * isoFormat=&\n * charset=&\n * recordIdPolicy=IdGenerated&\n * idXpath=&\n * namespacePrefix=&\n * namespaceUri=&\n * recordXPath=record&\n * server=bd1.inesc-id.pt&\n * user=ftp&\n * password=pmath2010.&\n * ftpPath=/Lizbeth\n * </code>\n * \n * @param ds\n * a Source object\n * @param prov\n * provider to the source\n * @return a Source object\n * @throws RepoxException\n */\n Source updateDatasourceFtp(Source ds) throws RepoxException;\n\n /**\n * Updates an Http DataSource. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/updateHttp?\n * id=ftpTest&\n * description=newtest FTP data source&\n * nameCode=555555500124&\n * name=FTP&\n * exportPath=D:/Projectos/repoxdata_new21212121&\n * schema=http://www.europeana.eu/schemas/ese/ESE-V3.3.xsd&\n * namespace=http://www.europeana.eu/schemas/ese/&\n * metadataFormat=ese&\n * isoFormat=&\n * charset=&\n * recordIdPolicy=IdGenerated&\n * idXpath=&\n * namespacePrefix=&\n * namespaceUri=&\n * recordXPath=record&\n * server=bd1.inesc-id.pt&\n * user=ftp&\n * password=pmath2010.&\n * ftpPath=/Lizbeth\n * </code>\n * \n * @param ds\n * a Source object\n * @param prov\n * provider to the source\n * @return a Source object\n * @throws RepoxException\n */\n Source updateDatasourceHttp(Source ds) throws RepoxException;\n\n /**\n * Updates a Folder DataSource. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/updateFolder?\n * id=folderTest&\n * description=test%20Folder%20data%20source3333333&\n * nameCode=4444444444400124&\n * name=Folder&\n * exportPath=D:/Projectos/repoxdata_new&\n * schema=info:lc/xmlns/marcxchange-v1.xsd&\n * namespace=info:lc/xmlns/marcxchange-v1&\n * metadataFormat=ISO2709&\n * isoFormat=pt.utl.ist.marc.iso2709.IteratorIso2709&\n * charset=UTF-8&\n * recordIdPolicy=IdExtracted&\n * idXpath=/mx:record/mx:controlfield[@tag=%22001%22]&\n * namespacePrefix=mx&\n * namespaceUri=info:lc/xmlns/marcxchange-v1&\n * recordXPath=&\n * folder=C:\\folderNew\n * </code>\n * \n * @param ds\n * a Source object\n * @param prov\n * provider to the source\n * @return a Source object\n * @throws RepoxException\n */\n Source updateDatasourceFolder(Source ds) throws RepoxException;\n\n /**\n * Deletes a DataSource of any Type. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/delete?id=ftpTest\n * </code>\n * \n * @param dsID\n * a Source object\n * @return successfull?\n * @throws RepoxException\n */\n String deleteDatasource(String dsID) throws RepoxException;\n\n /**\n * Retrieve a specific Record\n * \n * @param recordID\n * @return a RecordResult object\n * @throws RepoxException\n * @throws RepoxException\n */\n RecordResult retrieveRecord(String recordID) throws RepoxException;\n\n /**\n * Retrieve a specific Record\n * \n * @param recordID\n * @param ds\n * @param recordXML\n * @return successful?\n * @throws RepoxException\n */\n String saveRecord(String recordID, Source ds, String recordXML) throws RepoxException;\n\n /**\n * Marks a Record as eligible for deletion\n * \n * @param recordID\n * @return successful?\n * @throws RepoxException\n */\n String markRecordAsDeleted(String recordID) throws RepoxException;\n\n /**\n * Erases a Record\n * \n * @param recordID\n * @return successful?\n * @throws RepoxException\n */\n String eraseRecord(String recordID) throws RepoxException;\n\n /**\n * Initializes a Harvesting Session. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/startIngest?id=bmfinancas\n * </code>\n * \n * @param dsID\n * the DataSource to be used\n * @param isfull\n * full?\n * @return the harvesting processId\n * @throws RepoxException\n * @throws RepoxException\n */\n String initiateHarvesting(String dsID, boolean isfull) throws RepoxException;\n\n /**\n * Initializes a Harvesting Session. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/scheduleIngest?id=bmfinancas&\n * firstRunDate=06-07-2011&\n * firstRunHour=17:43&\n * frequency=Daily&\n * xmonths=&\n * fullIngest=true\n * </code>\n * \n * @param dsID\n * the DataSource to be used\n * @param ingestionDate\n * the specific Date upon which the\n * @param frequency\n * frequency\n * @param isfull\n * full?\n * @return the harvesting processId\n * @throws RepoxException\n */\n String scheduleHarvesting(String dsID, DateTime ingestionDate, IngestFrequency frequency,\n boolean isfull) throws RepoxException;\n\n /**\n * Cancels an existing Harvesting Session. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/stopIngest?id=bmfinancas\n * </code>\n * \n * @param dsID\n * the DataSource to be used\n * @return successful?\n * @throws RepoxException\n */\n String cancelHarvesting(String dsID) throws RepoxException;\n\n /**\n * Gets the status for a Harvesting Session. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/harvestStatus?id=httpTest\n * </code>\n * \n * @param dsID\n * the harvesting processId\n * @return the status\n * @throws RepoxException\n */\n HarvestingStatus getHarvestingStatus(String dsID) throws RepoxException;\n\n /**\n * Gets the Active Harvesting Sessions. It accesses the following REST Interface:\n * \n * <code>\n * /rest/dataSources/harvesting\n * </code>\n * \n * @return an object containing a reference to all DataSources\n * @throws RepoxException\n */\n RunningTasks getActiveHarvestingSessions() throws RepoxException;\n\n /**\n * Gets the Scheduled Harvesting Sessions for a DataSource. It accesses the following REST\n * Interface:\n * \n * <code>\n * /rest/dataSources/scheduleList?id=bmfinancas\n * </code>\n * \n * @param dsID\n * @return an object containing a reference to all DataSources\n * @throws RepoxException\n */\n ScheduleTasks getScheduledHarvestingSessions(String dsID) throws RepoxException;\n\n /**\n * Gets the latest Harvesting Log record for a DataSource. It accesses the following REST\n * Interface:\n * \n * <code>\n * /rest/dataSources/log?id=httpTest\n * </code>\n * \n * @param dsID\n * the DataSource reference\n * @return the HarvestLog\n * @throws RepoxException\n */\n Log getHarvestLog(String dsID) throws RepoxException;\n\n /**\n * Initializes the export of records\n * \n * <code>\n * /rest/dataSources/startExport?id=bmfinancas&recordsPerFile=1000\n * </code>\n * \n * @param dsID\n * the DataSource reference\n * @param records\n * no of records per file\n * @return successful?\n * @throws RepoxException\n */\n String initializeExport(String dsID, int records) throws RepoxException;\n}", "private static ConnectClient getPool(String address, Class<? extends ConnectClient> connectClientImpl,\n final XxlRpcReferenceBean xxlRpcReferenceBean) throws Exception {\n if (connectClientMap == null) {\n synchronized (ConnectClient.class) {\n if (connectClientMap == null) {\n // init\n connectClientMap = new ConcurrentHashMap<String, ConnectClient>();\n // stop callback\n xxlRpcReferenceBean.getInvokerFactory().addStopCallBack(new BaseCallback() {\n @Override\n public void run() throws Exception {\n if (connectClientMap.size() > 0) {\n for (String key : connectClientMap.keySet()) {\n ConnectClient clientPool = connectClientMap.get(key);\n clientPool.close();\n }\n connectClientMap.clear();\n }\n }\n });\n }\n }\n }\n\n // get-valid client\n ConnectClient connectClient = connectClientMap.get(address);\n if (connectClient != null && connectClient.isValidate()) {\n return connectClient;\n }\n\n // lock\n Object clientLock = connectClientLockMap.get(address);\n if (clientLock == null) {\n connectClientLockMap.putIfAbsent(address, new Object());\n clientLock = connectClientLockMap.get(address);\n }\n\n // remove-create new client\n synchronized (clientLock) {\n\n // get-valid client, avlid repeat\n connectClient = connectClientMap.get(address);\n if (connectClient != null && connectClient.isValidate()) {\n return connectClient;\n }\n\n // remove old\n if (connectClient != null) {\n connectClient.close();\n connectClientMap.remove(address);\n }\n\n // set pool\n ConnectClient connectClient_new = connectClientImpl.newInstance();\n try {\n connectClient_new.init(address, xxlRpcReferenceBean.getSerializerInstance(), xxlRpcReferenceBean.getInvokerFactory());\n connectClientMap.put(address, connectClient_new);\n } catch (Exception e) {\n connectClient_new.close();\n throw e;\n }\n\n return connectClient_new;\n }\n\n }", "TRepo createRepo();", "public void setClientRepository(String clientRepository) {\r\n this.clientRepository = clientRepository;\r\n }", "public RedisClient() {\n init();\n }", "public interface IRemoteClient extends IClient {\t\n\tString getUuid();\n\t\n\t/**\n\t * Send a message to the remote client\n\t * @param msg\n\t */\n\tvoid sendMessage(String msg);\n\t\n\t/**\n\t * Disconnect the client, ending any existing sessions.\n\t * This must be thread safe, as it can be called from a worker thread.\n\t */\n\tvoid disconnect(String reason);\n\t\n\t/**\n\t * Whether this Client is connected.\n\t * If this is false, any message received and sent should be ignored.\n\t * This must be thread safe.\n\t * @return\n\t */\n\tboolean isConnected();\n}", "@Override\n\t\tpublic DRPCClient create() throws Exception {\n\t\t\tMap<String, Object> config = Utils.readStormConfig();\n\t\t\treturn new DRPCClient(config, configuration.drpcHost,\n\t\t\t\t\tconfiguration.drpcPort, MAX_WAIT_TO_EXECUTE);\n\t\t}", "private void initRMI() throws RemoteException {\n log.info(\"Registering with RMI\");\n Registry registry = LocateRegistry.getRegistry();\n registry.rebind(address, this);\n }", "public Connection createRealConnection(String propertiesStr, String userName, String password) {\n\t\tDebug.println(\"Create real connection for initialized id factory, propertiesStr: \" +propertiesStr + \" userName: \" + userName + \" pass: \" + password);\n\t\tConnection originalConn = null;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t // Setup the connection with the DB\n\t try {\n\t \t originalConn = DriverManager\n\t\t\t .getConnection(propertiesStr, userName, password);\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\tDebug.println(\"Successfully create real connection for initializing id factory\");\n\t\treturn originalConn;\n\t}", "public RecipeExecutor build() {\n if (testServerEndpoint != null) {\n try {\n return buildRemote(testServerEndpoint);\n } catch (Exception e) {\n LOG.error(\"Failed to build remote RecipeExecutor for\", e);\n }\n }\n\n Map<String, String> env = System.getenv();\n String endpoint = env.getOrDefault(TESTSERVER_ENDPOINT_PROPERTY, System.getProperty(TESTSERVER_ENDPOINT_PROPERTY));\n if (endpoint != null) {\n try {\n return buildRemote(endpoint);\n } catch (Exception e) {\n LOG.error(\"Failed to build remote RecipeExecutor\", e);\n }\n }\n\n return buildLocal();\n }", "Client findByName(String name){\n return new Client();\n }", "protected abstract ServiceRegistry getNewServiceRegistry();", "public GithubClient() {\n// client = ClientBuilder.newClient();\n// userTarget = client.target(\"https://api.github.com/users/{username}\");\n// userRepoTarget = client.target(\"https://api.github.com/users/{username}/repos\");\n// releaseCountTarget = client.target(\"https://api.github.com/repos/{owner}/{repo}/releases\");\n }", "private void init() {\n\t\tJedisPoolConfig config = new JedisPoolConfig();\r\n\t\tconfig.setMaxTotal(1024);\r\n\t\tconfig.setMaxIdle(200);\r\n\t\tconfig.setMaxWaitMillis(1000);\r\n\t\tconfig.setTestOnBorrow(false);\r\n\t\tconfig.setTestOnReturn(true);\r\n\t\tString ip = \"sg-redis-new.jo1mjq.0001.apse1.cache.amazonaws.com\";\r\n\t\tint port = 6379;\r\n\t\tjedisPool = new JedisPool(config, ip, port);\r\n\t\tlog.info(\"init redis pool[ip:\" + ip + \",port:\" + port + \"]\");\r\n\t}", "public static void main(String[] args) throws RemoteException{\n \r\n Registry registry= LocateRegistry.createRegistry(5099); //registrar a nuestro cliente \r\n registry.rebind(\"hello\", new ObjectRemote());\r\n }", "public Factory() {\n this(getInternalClient());\n }", "private String getRemoteRepositoryName( URL url ) throws IndyDataException\n {\n final String name = repoCreator.formatId( url.getHost(), getPort( url ), 0, null, StoreType.remote );\n\n logger.debug( \"Looking for remote repo starts with name: {}\", name );\n\n AbstractProxyRepositoryCreator abstractProxyRepositoryCreator = null;\n if ( repoCreator instanceof AbstractProxyRepositoryCreator )\n {\n abstractProxyRepositoryCreator = (AbstractProxyRepositoryCreator) repoCreator;\n }\n\n if ( abstractProxyRepositoryCreator == null )\n {\n return name;\n }\n\n Predicate<ArtifactStore> filter = abstractProxyRepositoryCreator.getNameFilter( name );\n List<String> l = storeManager.query()\n .packageType( GENERIC_PKG_KEY )\n .storeType( RemoteRepository.class )\n .stream( filter )\n .map( repository -> repository.getName() )\n .collect( Collectors.toList() );\n\n if ( l.isEmpty() )\n {\n return name;\n }\n return abstractProxyRepositoryCreator.getNextName( l );\n }", "public static Client create() {\n ClientConfig clientConfig = new ClientConfig(JacksonFeature.class,\n JacksonJaxbJsonProvider.class,\n JacksonJsonProvider.class);\n return ClientBuilder.newClient(clientConfig);\n }", "abstract ManagedChannel createChannel(List<ServerInfo> servers);", "public interface JedisDataSource {\n Jedis getRedisClient();\n void returnResource(Jedis jedis);\n void returnResource(Jedis jedis, boolean broken);\n}", "public interface ConnectionFactory {\r\n\r\n\tString testdir = System.getenv(\"SERVER_MODULES_DIR\");\r\n\tint timeout = 139;\r\n\tList<String> modules = Arrays.asList(\r\n/*\t\t\ttestdir + \"/mod_test.so\",\r\n\t\t\ttestdir + \"/mod_test_dict.so\",*/\r\n\t\t\t\"/usr/lib/rad/module/mod_pam.so\",\r\n/*\t\t\ttestdir + \"/mod_test_enum.so\",\r\n\t\t\ttestdir + \"/mod_test_list.so\",*/\r\n\t\t\t\"/usr/lib/rad/protocol/mod_proto_rad.so\",\r\n\t\t\t\"/usr/lib/rad/transport/mod_tls.so\",\r\n\t\t\t\"/usr/lib/rad/transport/mod_tcp.so\");\r\n\r\n\tpublic Connection createConnection() throws Exception;\r\n\tpublic String getDescription();\r\n}", "@Bean // Inject this bean -> -at Qualifier(\"githubWebClient\")\n\tpublic WebClient githubWebClient() {\n\n\t\tfinal DefaultUriBuilderFactory defaultUriBuilderFactory = new DefaultUriBuilderFactory(this.githubBaseUrl);\n\t\tdefaultUriBuilderFactory.setEncodingMode(DefaultUriBuilderFactory.EncodingMode.NONE);\n\t\t\n\t\tfinal TcpClient tcpClient = TcpClient.create()\n\t\t\t\t.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, TIMEOUT)\n\t\t\t\t.doOnConnected(conn -> conn.addHandlerLast(new ReadTimeoutHandler(TIMEOUT)).addHandlerLast(new WriteTimeoutHandler(TIMEOUT)))\n\t\t\t\t.wiretap(true); // Helps logging, each request and response will be logged in full detail.\n\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tfinal ClientHttpConnector clientHttpConnector = new ReactorClientHttpConnector(\n\t\t\t\tHttpClient.from(tcpClient).keepAlive(true));\n\n\t\treturn webClientBuilder\n\t\t\t\t.uriBuilderFactory(defaultUriBuilderFactory)\n\t\t\t\t.baseUrl(this.githubBaseUrl)\n\t\t\t\t.codecs(clientCodecConfigure -> clientCodecConfigure.defaultCodecs().enableLoggingRequestDetails(true))\n\t\t\t\t.clientConnector(clientHttpConnector).codecs(clientConfigurer -> clientConfigurer.defaultCodecs().maxInMemorySize(TRANFER_SIZE * 1024 * 1024))\n\t\t\t\t.defaultHeader(HttpHeaders.CONTENT_TYPE, GITHUB_V3_MIME_TYPE)\n\t\t\t\t.defaultHeader(HttpHeaders.USER_AGENT, USER_AGENT)\n .filter(ExchangeFilterFunctions\n .basicAuthentication(/*appProperties.getGithub().getUsername(),\n appProperties.getGithub().getToken())*/\"username\", \"password\"))\n\t\t\t\t.filters(exchangeFilterFunctions -> {\n\t\t\t\t\texchangeFilterFunctions.add(logRequest());\n//\t\t\t\t\texchangeFilterFunctions.add(logResponse());\n\t\t\t\t})\n\t\t\t\t.build();\n\t}", "public RecipeExecutor buildRemote(String endpoint) throws MalformedURLException {\n Map<String, String> env = System.getenv();\n\n URL url = new URL(endpoint);\n TestServerClient testServerClient = TestServerClient.fromUrl(url.toString());\n\n String user = testServerUser != null ? testServerUser :\n env.getOrDefault(TESTSERVER_USER_PROPERTY, System.getProperty(TESTSERVER_USER_PROPERTY));\n\n String password = testServerPassword != null ? testServerPassword :\n env.getOrDefault(TESTSERVER_PASSWORD_PROPERTY, System.getProperty(TESTSERVER_PASSWORD_PROPERTY));\n\n testServerClient.setCredentials(user, password);\n RecipeExecutor executor = testServerClient.createRecipeExecutor();\n return addFilters(executor);\n }", "public AbstractRoClient(Iterable<String> servers, String realm, String serviceContextId, Version version)\n\t\t\tthrows NoRouteToHostException {\n\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\tLOGGER.debug(\"new AbstractRoClient: servers=\" + servers + \", realm=\" + realm + \", id=\" + serviceContextId + \", version=\" + version);\n\t\t}\n\n\t\tsetVersion(version);\n\t\tsetServiceContextId(serviceContextId);\n\t\t_realm = realm;\n\t\tif (servers != null) {\n\t\t\tfor (String s : servers) {\n\t\t\t\t_servers.add(s);\n\t\t\t}\n\t\t}\n\t\tcreateClient(null);\n\t}", "public interface InterfaceServeurClient extends Remote {\n\n\tpublic void setServeur(InterfaceServeurClient serveur) throws RemoteException;\n\tpublic void setListeClient(ArrayList<InterfaceServeurClient> client) throws RemoteException;\n\tpublic Partie getPartie() throws RemoteException;\n\tpublic void ajouterClient(InterfaceServeurClient client) throws RemoteException;\n\tpublic boolean retirerClient(InterfaceServeurClient client) throws RemoteException;\n\tpublic InterfaceServeurClient getServeur() throws RemoteException;\n\tpublic String getNamespace() throws RemoteException;\n\tpublic String getNomJoueur() throws RemoteException;\n\tpublic int getIdObjetPartie() throws RemoteException;\n\tpublic void setIdObjetPartie(int idObjetPartie) throws RemoteException;\n\tpublic ArrayList<Dynastie> getListeDynastie() throws RemoteException;\n\tpublic void setListeDynastie(ArrayList<Dynastie> liste) throws RemoteException;\n\tpublic ArrayList<Dynastie> getListeDynastieDispo() throws RemoteException;\n\tpublic void setJoueur(Joueur j) throws RemoteException;\n\n\tpublic boolean deconnecter() throws RemoteException;\n\n\tpublic void notifierChangement(ArrayList<Object> args) throws RemoteException;\n\tpublic void addListener(ChangeListener listener) throws RemoteException;\n\tpublic void removeListener(ChangeListener listener) throws RemoteException;\n\tpublic void clearListeners() throws RemoteException;\n\tpublic Joueur getJoueur() throws RemoteException;\n\tpublic void setPartieCourante(Partie partie) throws RemoteException;\n\tpublic ArrayList<InterfaceServeurClient> getClients() throws RemoteException;\n\tpublic boolean send(Action action, int idClient) throws RemoteException;\n\tpublic void passerTour() throws RemoteException;\n\n\tpublic void switchJoueurEstPret(InterfaceServeurClient client) throws RemoteException;\n\tpublic void switchJoueurPret() throws RemoteException;\n\tpublic boolean setDynastieOfClient(InterfaceServeurClient client, Dynastie dynastie) throws RemoteException;\n\tpublic void setDynastie(Dynastie d) throws RemoteException;\n\tpublic void libererDynastie(Dynastie d) throws RemoteException;\n\tpublic int getUniqueId() throws RemoteException;\n\n\tpublic void envoyerNouveauConflit(Conflits conflit, int idClient) throws RemoteException;\n\tpublic void envoyerRenforts(ArrayList<TuileCivilisation> renforts, Joueur joueur) throws RemoteException;\n\tpublic boolean piocherCartesManquantes(Joueur j) throws RemoteException;\n\tpublic void finirPartie() throws RemoteException;\n\tpublic void envoyerPointsAttribues(Joueur joueur) throws RemoteException;\n\tpublic ArrayList<Joueur> recupererListeJoueurPartie() throws RemoteException;\n\tpublic void chargerPartie() throws RemoteException;\n}", "BaseGenieClient(\n @NotEmpty final String url,\n @Nullable final List<Interceptor> interceptors,\n @Nullable final GenieNetworkConfiguration genieNetworkConfiguration\n ) throws GenieClientException {\n\n if (StringUtils.isBlank(url)) {\n throw new GenieClientException(\"Service URL cannot be empty or null\");\n }\n\n final OkHttpClient.Builder builder = new OkHttpClient.Builder();\n\n if (genieNetworkConfiguration != null) {\n this.addConfigParamsFromConfig(builder, genieNetworkConfiguration);\n }\n\n // Add the interceptor to map the retrofit response code to corresponding Genie Exceptions in case of\n // 4xx and 5xx errors.\n builder.addInterceptor(new ResponseMappingInterceptor());\n if (interceptors != null) {\n interceptors.forEach(builder::addInterceptor);\n }\n final OkHttpClient client = builder.build();\n\n this.retrofit = new Retrofit.Builder()\n .baseUrl(url)\n .addConverterFactory(JacksonConverterFactory.create(GenieObjectMapper.getMapper()))\n .client(client)\n .build();\n }", "public interface RemoteDBConnection extends Remote, DBConnection {\n\n\t/**\n\t * Key the database connection in registered with in RMI registry.\n\t */\n\tpublic static final String REGISTRY_KEY = \"DBConnection\";\n}", "private SshClient createClient() {\n java.security.Security.addProvider(\n new org.bouncycastle.jce.provider.BouncyCastleProvider());\n final SshClient client = SshClient.setUpDefaultClient();\n client.setForwardingFilter(AcceptAllForwardingFilter.INSTANCE);\n client.setServerKeyVerifier(AcceptAllServerKeyVerifier.INSTANCE);\n return client;\n }", "public DockerClientInfo(String piAddress, String registryUrl, String registryEmail, String registryUsername, String registryPassword)\n\t{\n\t\tsuper();\n\t\tthis.piAddress = piAddress;\n\t\tthis.registryUrl = registryUrl;\n\t\tthis.registryEmail = registryEmail;\n\t\tthis.registryUsername = registryUsername;\n\t\tthis.registryPassword = registryPassword;\n\t}", "private ProxyCreationResult createRepo( String trackingId, URL url, String name )\n throws IndyDataException\n {\n UrlInfo info = new UrlInfo( url.toExternalForm() );\n\n UserPass up = UserPass.parse( ApplicationHeader.authorization, httpRequest, url.getAuthority() );\n String baseUrl = getBaseUrl( url );\n\n logger.debug( \">>>> Create repo: trackingId=\" + trackingId + \", name=\" + name );\n ProxyCreationResult result = repoCreator.create( trackingId, name, baseUrl, info, up,\n LoggerFactory.getLogger( repoCreator.getClass() ) );\n ChangeSummary changeSummary =\n new ChangeSummary( ChangeSummary.SYSTEM_USER, \"Creating HTTProx proxy for: \" + info.getUrl() );\n\n RemoteRepository remote = result.getRemote();\n if ( remote != null )\n {\n storeManager.storeArtifactStore( remote, changeSummary, false, true, new EventMetadata() );\n }\n\n HostedRepository hosted = result.getHosted();\n if ( hosted != null )\n {\n storeManager.storeArtifactStore( hosted, changeSummary, false, true, new EventMetadata() );\n }\n\n Group group = result.getGroup();\n if ( group != null )\n {\n storeManager.storeArtifactStore( group, changeSummary, false, true, new EventMetadata() );\n }\n\n return result;\n }", "@Override\n public Collection<Object> createComponents(\n Client client,\n ClusterService clusterService,\n ThreadPool threadPool,\n ResourceWatcherService resourceWatcherService,\n ScriptService scriptService,\n NamedXContentRegistry xContentRegistry,\n Environment environment,\n NodeEnvironment nodeEnvironment,\n NamedWriteableRegistry namedWriteableRegistry,\n IndexNameExpressionResolver indexNameExpressionResolver) {\n service = new StoredSynonymsService(client, clusterService, \".stored_synonyms\");\n\n List<Object> components = new ArrayList<>();\n components.add(service);\n\n return components;\n }", "public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "@Override\n\tpublic synchronized <K extends Resource> K getResource(String uri, Class<K> resourceType) {\n\t\tif (hasServerUrl(uri, resourceType) && c != null) {\n\t\t\tif (uri.startsWith(\"repo:\")) {\n\t\t\t\t// it's possible to have a resource with id=repo:something (from\n\t\t\t\t// practice)\n\t\t\t\tK r = doGetResource(uri.startsWith(\"repo:\") ? uri : \"repo:\" + uri, resourceType);\n\t\t\t\tif (r != null)\n\t\t\t\t\treturn r;\n\t\t\t}\n\t\t\treturn doGetResource(uri, resourceType);\n\t\t}\n\t\tif (c == null && uri.startsWith(\"repo:\")) {\n\t\t\tK r = doGetResource(uri.startsWith(\"repo:\") ? uri : \"repo:\" + uri, resourceType);\n\t\t\tif (r != null)\n\t\t\t\treturn r;\n\t\t}\n\t\treturn repService != null ? repService.getResource(uri, resourceType) : null;\n\t}" ]
[ "0.60059685", "0.54720145", "0.5440773", "0.5349037", "0.5345417", "0.5334946", "0.5277255", "0.5232642", "0.5206856", "0.51453936", "0.5089581", "0.5051023", "0.50397754", "0.5038987", "0.5038247", "0.50340474", "0.5025294", "0.50189894", "0.5014227", "0.5005084", "0.49884978", "0.49590454", "0.49276364", "0.4916457", "0.48970234", "0.4890096", "0.4836021", "0.48153767", "0.4804423", "0.48029646", "0.47803774", "0.47703817", "0.47697046", "0.47660795", "0.47614542", "0.4741157", "0.47409457", "0.47302327", "0.47280785", "0.4724307", "0.47210875", "0.47039974", "0.46874407", "0.46866286", "0.46817088", "0.4678076", "0.46726084", "0.46655762", "0.46636075", "0.46608317", "0.4656683", "0.46561867", "0.4651126", "0.46448848", "0.46446308", "0.46401924", "0.46398303", "0.46388587", "0.4637116", "0.46166238", "0.461032", "0.46089628", "0.4605903", "0.460131", "0.45964685", "0.4586816", "0.45809382", "0.45806888", "0.4580166", "0.4574257", "0.45738438", "0.4552398", "0.45378366", "0.45343253", "0.45270267", "0.45215186", "0.45178318", "0.4507353", "0.45058966", "0.4498223", "0.44974002", "0.44926563", "0.4490083", "0.44862872", "0.44858465", "0.4479707", "0.44794655", "0.44790632", "0.44776797", "0.44772166", "0.44756415", "0.4474198", "0.44611096", "0.44544962", "0.44523412", "0.44512782", "0.44457963", "0.4445585", "0.44424245", "0.44419807", "0.44368246" ]
0.0
-1
Verify that item keep selected even moved from source to target, or back. If selected Alaska from sources, and then added to target, it should remain selected in target list
@Test(groups = "smoke") public void testKeepSelected() { String textSource = pickList.advanced().getSourceList().getItem(0).getText(); pickList.add(0); ListItem item = pickList.advanced().getTargetList().getItem(0); assertTrue(item.getRootElement().getAttribute("class").contains("rf-pick-sel")); assertEquals(item.getText(), textSource); pickList.remove(0); item = pickList.advanced().getSourceList().getItem(ChoicePickerHelper.byIndex().last()); assertTrue(item.getRootElement().getAttribute("class").contains("rf-pick-sel")); assertEquals(item.getText(), textSource); assertEquals(Utils.getIndexOfElement(item.getRootElement()), pickList .advanced().getSourceList().size() - 1, "Index of removed item."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreTreeUncontained.class)\r\n public void testSelectedOnSetItemsWithoutUncontained() {\r\n TreeItem uncontained = createItem(\"uncontained\");\r\n // prepare state\r\n getSelectionModel().select(uncontained);\r\n assertEquals(\"sanity: having uncontained selectedItem\", uncontained, getSelectedItem());\r\n assertEquals(\"sanity: no selected index\", -1, getSelectedIndex());\r\n // make uncontained part of the items by replacing old items\r\n ObservableList copy = FXCollections.observableArrayList(items);\r\n int insertIndex = 3;\r\n copy.add(insertIndex, createItem(\"anything\"));\r\n setAllItems(copy);\r\n assertEquals(\"sanity: selectedItem unchanged\", uncontained, getSelectedItem());\r\n assertEquals(\"selectedIndex unchanged\", -1, getSelectedIndex());\r\n }", "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreTreeUncontained.class)\r\n public void testSelectedOnSetItemsWithUncontained() {\r\n TreeItem uncontained = createItem(\"uncontained\");\r\n // prepare state\r\n getSelectionModel().select(uncontained);\r\n assertEquals(\"sanity: having uncontained selectedItem\", uncontained, getSelectedItem());\r\n assertEquals(\"sanity: no selected index\", -1, getSelectedIndex());\r\n // make uncontained part of the items by replacing old items\r\n ObservableList copy = FXCollections.observableArrayList(items);\r\n int insertIndex = 3;\r\n copy.add(insertIndex, uncontained);\r\n setAllItems(copy);\r\n assertEquals(\"sanity: selectedItem unchanged\", uncontained, getSelectedItem());\r\n assertEquals(\"selectedIndex updated\", insertIndex, getSelectedIndex());\r\n }", "public boolean testSelected() {\n // test if set\n boolean set = Card.isSet(\n selectedCards.get(0).getCard(),\n selectedCards.get(1).getCard(),\n selectedCards.get(2).getCard()\n );\n\n // set currentlySelected to false and replace with new Cards (if applicable)\n for (BoardSquare bs : selectedCards)\n bs.setCurrentlySelected(false);\n\n // handle if set\n if (set) {\n if (!deck.isEmpty() && this.numCardsOnBoard() == 12) {\n for (BoardSquare bs : selectedCards)\n bs.setCard(deck.getTopCard());\n }\n else if (!deck.isEmpty() && this.numCardsOnBoard() < 12) {\n board.compressBoard(selectedCards);\n this.add3();\n }\n else {\n board.compressBoard(selectedCards);\n }\n }\n\n // clear ArrayList\n selectedCards.clear();\n\n // return bool\n return set;\n }", "@Test\n \tpublic void testTargetLocationAlwaysSelected() {\n \t\tComputerPlayer player = new ComputerPlayer();\n \t\tplayer.setLastVistedRoom('L');\n \t\tint enteredRoom = 0;\n \t\tboard.calcTargets(6, 7, 4);\n \t\t//pick location with at least one room as a target\n \t\tfor(int i = 0; i < 100; i++) {\n \t\t\tBoardCell selected = player.pickLocation(board.getTargets());\n \t\t\tif (selected == board.getRoomCellAt(4, 6))\n \t\t\t\tenteredRoom++;\n \t\t}\n \t\t//ensure room is taken every time\n \t\tAssert.assertEquals(enteredRoom, 100);\n \t}", "@Test\n\tpublic void furtherSelectionTest() {\n\t\tSelectionController selectionController = new SelectionController();\n\t\tint[] selection = { 1, 2, 3, 4, 5, 6 };\n\t\tint[] unSelecion = { 1, 2, 3 };\n\t\tint[] resultSelection = { 4, 5, 6 };\n\t\tint[] negativeSelection = { -1 };\n\n\t\t// select something and unselect parts of it\n\t\tselectionController.select(selection);\n\t\tassertArrayEquals(\"Selection was different\", selection, selectionController.getSelection());\n\t\tselectionController.unselect(unSelecion);\n\t\tassertArrayEquals(\"Selection was different after unselection\", resultSelection,\n\t\t\t\tselectionController.getSelection());\n\n\t\t// do a reselection\n\t\tselectionController.reselect(unSelecion);\n\t\tassertArrayEquals(\"Selection was different after reselection\", unSelecion, selectionController.getSelection());\n\n\t\tassertTrue(\"Item 1 is selected\", selectionController.isSelected(1));\n\t\tassertTrue(\"Item 2 is selected\", selectionController.isSelected(2));\n\t\tassertTrue(\"Item 3 is selected\", selectionController.isSelected(3));\n\t\tassertFalse(\"Item 4 is not selected\", selectionController.isSelected(4));\n\t\tassertFalse(\"Item 5 is not selected\", selectionController.isSelected(5));\n\t\tassertFalse(\"Item 6 is not selected\", selectionController.isSelected(6));\n\n\t\t// unselect all elements\n\t\tselectionController.unselect(unSelecion);\n\t\tassertFalse(\"Nothing was selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero\", 0, selectionController.getSelection().length);\n\n\t\t// select something negative\n\t\tselectionController.select(negativeSelection);\n\t\tassertFalse(\"Nothing should be selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero after selection\", 0, selectionController.getSelection().length);\n\n\t\t// reselect something negative\n\t\tselectionController.select(selection);\n\t\tselectionController.reselect(negativeSelection);\n\t\tassertFalse(\"Nothing should be reselected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero after reselection\", 0,\n\t\t\t\tselectionController.getSelection().length);\n\n\t}", "public void testMarkAllItemsSelected()\n\t{\n\t\t// Arrange\n\t\taddListWith6Items(\"testlist\");\n\n\t\t// Act\n\t\tservice.markAllItemsSelected(2l, true);\n\t\tActivitiesDataSource allLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tActivityBean newList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tCategoryBean newCategory1 = newList.getCategory(\"cat1\");\n\t\tCategoryBean newCategory2 = newList.getCategory(\"cat2\");\n\t\tassertTrue(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item6\").getIsSelected());\t\t\n\t\t\n\t\t// Act\n\t\tservice.markAllItemsSelected(2l, false);\n\t\tallLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tnewList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tnewCategory1 = newList.getCategory(\"cat1\");\n\t\tnewCategory2 = newList.getCategory(\"cat2\");\n\t\tassertFalse(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item6\").getIsSelected());\t\n\t}", "@Test\n public void selectReplacesSelectionOnlyOnce() throws Exception {\n ArgumentCaptor<Set> itemsCaptor = ArgumentCaptor.forClass(Set.class);\n\n // WHEN\n listView.select(Lists.newArrayList(A));\n verify(listener, only()).onItemSelection(itemsCaptor.capture());\n\n // THEN\n Set<?> items = itemsCaptor.getValue();\n assertThat(items, allOf(hasSize(1), contains(A)));\n }", "public void testSynchLeadSelection() {\n ListSelectionModel viewSelectionModel = new DefaultListSelectionModel();\n int selected = 0;\n viewSelectionModel.setSelectionInterval(selected, selected);\n FilterPipeline pipeline = null; //new FilterPipeline();\n // pipeline.assign(ascendingModelAdapter);\n SelectionMapper selectionMapper = new SelectionMapper(pipeline, viewSelectionModel);\n int anchor = selected;\n int lead = selected;\n assertAnchorLeadSynched(anchor, lead, viewSelectionModel, selectionMapper);\n anchor = 2;\n viewSelectionModel.setValueIsAdjusting(true);\n viewSelectionModel.setAnchorSelectionIndex(anchor);\n viewSelectionModel.setValueIsAdjusting(false);\n // pipeline.flush();\n assertAnchorLeadSynched(anchor, lead, viewSelectionModel, selectionMapper);\n \n }", "@Test\n\tpublic void selectTargetLocation() {\n\t\tboard.findAllTargets(playerComputer.getCurrentLocation(), 6);\n\t\tSet<BoardCell> targets = board.getTargets();\n\t\t\n\t\t//Tests to make sure the computers chosen cell is in targets\n\t\tBoardCell cell = ((computerPlayer) playerComputer).pickLocation(targets);\n\t\tassertTrue(targets.contains(cell));\n\t\t\n\t\t//This test ensures that if there is a room that hasn't been visited the computer picks that cell\n\t\tIterator<BoardCell> iterator = targets.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tBoardCell cell2 = iterator.next();\n\t\t\tif(cell2.isRoom()) {\n\t\t\t\tif(cell2.getInitial() != ((computerPlayer) playerComputer).getLastVisited()) {\n\t\t\t\t\tassertEquals(cell2.getInitial(), cell.getInitial());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n @Test\r\n public void testSelectedOnClearItemsSingle() {\r\n int index = 2;\r\n getSelectionModel().select(index);\r\n TreeItem parent = getSelectedItem().getParent();\r\n int parentIndex = getView().getRow(parent);\r\n clearItems();\r\n if (getSelectionModel().isEmpty()) {\r\n assertTrue(\"selection must be empty\", getSelectionModel().isEmpty());\r\n assertEquals(-1, getSelectedIndex());\r\n assertEquals(null, getSelectedItem());\r\n assertTrue(\"\", getSelectedIndices().isEmpty());\r\n assertTrue(\"\", getSelectedItems().isEmpty());\r\n// assertEquals(\"focus must be cleared\", -1, getFocusModel()\r\n// .getFocusedIndex());\r\n } else {\r\n assertEquals(\"selectedIndex at parentIndex\", parentIndex, getSelectedIndex());\r\n assertEquals(\"parent must be selected after clearing \", parent, \r\n getSelectedItem());\r\n }\r\n }", "public void selectionChanged(GraphSelectionEvent gse) {\n if (!updatingSelection) {\n updatingSelection = true;\n List<Fig> selections = gse.getSelections();\n ActionCut.getInstance().setEnabled(\n selections != null && !selections.isEmpty());\n\n // TODO: If ActionCopy is no longer a singleton, how shall\n // this work?\n ActionCopy.getInstance()\n .setEnabled(selections != null && !selections.isEmpty());\n /*\n * ActionPaste.getInstance().setEnabled( Globals.clipBoard\n * != null && !Globals.clipBoard.isEmpty());\n */\n // the old selection\n Collection currentSelection =\n TargetManager.getInstance().getTargets();\n\n List removedTargets = new ArrayList(currentSelection);\n List addedTargets = new ArrayList();\n for (Object selection : selections) {\n Object owner = TargetManager.getInstance().getOwner(selection);\n if (currentSelection.contains(owner)) {\n removedTargets.remove(owner); // remains selected\n } else {\n // add to selection\n addedTargets.add(owner);\n }\n }\n if (addedTargets.size() == 1\n && removedTargets.size() == currentSelection.size()) {\n // Optimize for the normal case to minimize target changes\n TargetManager.getInstance().setTarget(addedTargets.get(0));\n } else {\n for (Object o : removedTargets) {\n TargetManager.getInstance().removeTarget(o);\n }\n for (Object o : addedTargets) {\n TargetManager.getInstance().addTarget(o);\n }\n }\n updatingSelection = false;\n }\n\n }", "private void restoreSelectedTargetLayer() {\n\n\t\tif (currentNewLayerName != null) {\n\t\t\tthis.comboTargetLayer.setText(currentNewLayerName);\n\t\t} else if (currentTargetLayer != null) {\n\t\t\tint index = this.comboTargetLayer.indexOf(this.currentTargetLayer.getName());\n\t\t\tif (index != -1) {\n\t\t\t\tthis.comboTargetLayer.select(index);\n\t\t\t}else{\n\t\t\t\tcurrentTargetLayer=null;\n\t\t\t\tvalidateParameters();\n\t\t\t}\n\t\t}\n\t}", "public void validateSelection()\r\n {\r\n for (int i = 0; i<getSelectedElements().size(); ++i)\r\n {\r\n ReportElement re = (ReportElement)getSelectedElements().elementAt(i);\r\n if (!getCrosstabElement().getElements().contains( re ))\r\n {\r\n getSelectedElements().remove(re);\r\n --i;\r\n }\r\n }\r\n // UPDATE SELECTION NOW!!!\r\n }", "public void testMarkAllItemsSelectedInCategory()\n\t{\n\t\t// Arrange\n\t\taddListWith6Items(\"testlist\");\n\n\t\t// Act\n\t\tservice.markAllItemsSelectedInCategory(17l, true);\n\t\tActivitiesDataSource allLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tActivityBean newList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tCategoryBean newCategory1 = newList.getCategory(\"cat1\");\n\t\tCategoryBean newCategory2 = newList.getCategory(\"cat2\");\n\t\tassertTrue(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item6\").getIsSelected());\n\t\t\n\t\t// Act\n\t\tservice.markAllItemsSelectedInCategory(17l, false);\n\t\tallLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tnewList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tnewCategory1 = newList.getCategory(\"cat1\");\n\t\tnewCategory2 = newList.getCategory(\"cat2\");\n\t\tassertFalse(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item6\").getIsSelected());\n\t}", "public void testLeadAnchorAfterClearSelection() {\n ListSelectionModel viewSelectionModel = new DefaultListSelectionModel();\n int selected = 5;\n viewSelectionModel.setSelectionInterval(selected, selected);\n assertEquals(selected, viewSelectionModel.getAnchorSelectionIndex());\n assertEquals(selected, viewSelectionModel.getLeadSelectionIndex());\n viewSelectionModel.clearSelection();\n int anchor = selected;\n assertTrue(viewSelectionModel.isSelectionEmpty());\n assertEquals(anchor, viewSelectionModel.getAnchorSelectionIndex());\n assertEquals(anchor, viewSelectionModel.getLeadSelectionIndex());\n \n }", "@Test\r\n public void testSelectedItemsOnRemoveGrandParentOfSelectedItem() {\r\n TreeItem grandParent = createBranch(\"grandParent\", true);\r\n TreeItem childWithSelection = createBranch(\"selected\", true);\r\n grandParent.getChildren().add(childWithSelection);\r\n TreeItem selected = (TreeItem) childWithSelection.getChildren().get(0);\r\n TreeItem oldFirst = (TreeItem) getRootChildren().get(0);\r\n getRootChildren().add(0, grandParent);\r\n getSelectionModel().select(selected);\r\n assertEquals(\"sanity: oldfirst is next child\", oldFirst, getRootChildren().get(1));\r\n getRootChildren().remove(grandParent);\r\n assertEquals(\"sibling of removed selected\", oldFirst, getSelectedItem());\r\n assertEquals(\"selectedItems contain sibling\", oldFirst, getSelectedItems().get(0));\r\n }", "@Override\r\n @Test\r\n public void testSelectedOnClearItemsRange() {\r\n int start = 2;\r\n int end = 5;\r\n getSelectionModel().selectRange(start, end);\r\n TreeItem parent = getSelectedItem().getParent();\r\n clearItems();\r\n if (getSelectionModel().isEmpty()) {\r\n assertEquals(null, getSelectedItem());\r\n assertEquals(-1, getSelectedIndex());\r\n assertEquals(\"selectedItems must be empty\", 0, getSelectedItems().size());\r\n assertTrue(\"\", getSelectedIndices().isEmpty());\r\n// assertEquals(\"focus must be cleared\", -1, getFocusModel()\r\n// .getFocusedIndex());\r\n } else {\r\n assertEquals(0, getSelectedItems().indexOf(parent));\r\n assertEquals(\"parent selected after clearing children\", parent,\r\n getSelectedItem());\r\n }\r\n }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tif (jcb.isSelected()) {\n\t\t\t\t\t\tselectList.add(new Integer(site));\n\t\t\t\t\t\t//System.out.println(selectList);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tselectList.remove(new Integer(site));\n\t\t\t\t\t\t//System.out.println(selectList);\n\t\t\t\t\t}\n\t\t\t\t}", "private void onRemove() throws Exception\n {\n // get the target list selection\n Object selection[] = _lstTarget.getSelectedValues();\n\n // iterate the selection\n TransferEntity te;\n EntityDobj table;\n for(int i = 0; selection != null && i < selection.length; i++)\n {\n // get the te\n te = (TransferEntity)selection[i];\n if(te != null)\n {\n // get the associate entitydobj\n table = _dt.getSourceDataSource().getEntity(te.getSourceEntityName());\n if(table != null)\n {\n // add to the source list\n _lstSource.addItem(table);\n\n // remove from ds\n _dt.removeTransferEntity(te, true);\n }\n }\n }\n\n // remove the selection from the target list\n for(int i = 0; selection != null && i < selection.length; i++)\n {\n // get the table\n te = (TransferEntity)selection[i];\n if(te != null)\n _lstTarget.removeItem(te);\n }\n }", "public void testLeadAnchorAfterRemove() {\n ListSelectionModel viewSelectionModel = new DefaultListSelectionModel();\n int selected = 5;\n viewSelectionModel.setSelectionInterval(selected, selected);\n assertEquals(selected, viewSelectionModel.getAnchorSelectionIndex());\n assertEquals(selected, viewSelectionModel.getLeadSelectionIndex());\n viewSelectionModel.removeIndexInterval(5, 5);\n int anchor = selected -1;\n assertTrue(viewSelectionModel.isSelectionEmpty());\n assertEquals(anchor, viewSelectionModel.getAnchorSelectionIndex());\n assertEquals(anchor, viewSelectionModel.getLeadSelectionIndex());\n \n }", "@Override\n\tpublic boolean isUsedInSelectedLinks() {\n\t\treturn false;\n\t}", "@Test\r\n public void testSelectedItemsOnRemoveGrandParentOfSelectedItemIfLast_38334() {\r\n TreeItem grandParent = createBranch(\"grandParent\", true);\r\n TreeItem childWithSelection = createBranch(\"selected\", true);\r\n grandParent.getChildren().add(childWithSelection);\r\n TreeItem selected = (TreeItem) childWithSelection.getChildren().get(0);\r\n int lastIndex = rawItems.size() - 1;\r\n TreeItem oldFirst = (TreeItem) getRootChildren().get(lastIndex);\r\n getRootChildren().add(grandParent);\r\n getSelectionModel().select(selected);\r\n getRootChildren().remove(grandParent);\r\n assertEquals(\"sibling of removed selected\", oldFirst, getSelectedItem());\r\n assertEquals(\"selectedItems contain sibling\", oldFirst, getSelectedItems().get(0));\r\n }", "public void actionPerformed(ActionEvent e) {\n Object source = e.getSource();\n GSelection<Variant> sel = viewer.getSelection();\n Variant v = sel.isEmpty() ? null : sel.first();\n\n ImOption.apply(viewer.getModel()).foreach(schedule -> {\n\n // Force a repaint of the action if it's a button. This is an AWT bug.\n if (source instanceof JButton)\n ((JButton) source).repaint();\n\n if (source == add) {\n\n // Add a new variant. Selection will not change but position might.\n VariantEditor ve = new VariantEditor(context.getShell().getPeer());\n if (JOptionPane.CANCEL_OPTION != ve.showNew(\"Untitled\", (byte) 0, (byte) 0, (byte) 0))\n schedule.addVariant(ve.getVariantName(), ve.getVariantConditions(), ve.getVariantWindConstraint(), ve.getVariantLgsConstraint());\n setUpDownEnabledState(sel);\n\n } else if (source == del) {\n\n // Delete the selected variant. Selection will change.\n if (JOptionPane.NO_OPTION == JOptionPane.showConfirmDialog(context.getShell().getPeer(),\n \"Do you really want to remove this variant?\",\n \"Confirm Remove\", JOptionPane.YES_NO_OPTION))\n return;\n\n schedule.removeVariant(v);\n\n } else if (source == up) {\n\n // Move up. Selection will not change but position will.\n schedule.moveVariant(v, -1);\n setUpDownEnabledState(sel);\n\n } else if (source == down) {\n\n // Move down. Selection will not change but position will.\n schedule.moveVariant(v, 1);\n setUpDownEnabledState(sel);\n\n } else if (source == dup) {\n\n // Duplicate. Selection will not change but position might.\n Variant dup = schedule.duplicateVariant(v);\n dup.setName(\"Copy of \" + dup.getName());\n setUpDownEnabledState(sel);\n\n }\n });\n }", "@Test\r\n public void testCoupledLists() {\r\n ObservableList<String> list = createObservableList(true);\r\n // simulate selection into list above\r\n ObservableList<Integer> selectedIndices = FXCollections.observableArrayList(2, 3);\r\n // simulate selectedItems\r\n ObservableList<String> selectedItems = FXCollections.observableArrayList();\r\n for (Integer index : selectedIndices) {\r\n selectedItems.add(list.get(index));\r\n }\r\n FilteredList t;\r\n // this listener is responsible for updating the indices on modifications\r\n // of the base llist\r\n ListChangeListener selectedIndexUpdater = c -> {\r\n // PENDING JW: this is _not_ the pattern used in FilteredList, \r\n // think again!\r\n while (c.next()) {\r\n if (c.wasReplaced()) {\r\n // weed out synthetic adds/removes\r\n // ignore for now \r\n } else if (c.wasAdded()) {\r\n // real adds\r\n // position where this change starts\r\n int pos = c.getFrom();\r\n int firstAffected = -1;\r\n for (int i = 0; i < selectedIndices.size(); i++) {\r\n if (selectedIndices.get(i) >= pos) {\r\n firstAffected = i;\r\n break;\r\n }\r\n }\r\n if (firstAffected >= 0) {\r\n int addedSize = c.getAddedSize();\r\n for (int i = firstAffected; i < selectedIndices.size(); i++) {\r\n selectedIndices.set(i, selectedIndices.get(i) + addedSize);\r\n }\r\n }\r\n } else if (c.wasRemoved()) {\r\n // real removes\r\n }\r\n }\r\n };\r\n \r\n list.addListener(selectedIndexUpdater);\r\n // this is the listener that updates the backing list while\r\n // receiving notifications from the updater\r\n // this is _wrong_ if the notifications from the selected\r\n // where fired during processing of the change\r\n // and blows somewhere alöng thelines\r\n ListChangeListener back = c -> {\r\n while (c.next()) {\r\n if (c.wasAdded()) {\r\n List<Integer> added = c.getAddedSubList();\r\n for (int i = added.size() - 1; i >= 0; i--) {\r\n int index = added.get(i);\r\n list.remove(index);\r\n }\r\n }\r\n }\r\n };\r\n// selectedIndices.addListener(back);\r\n list.add(3, \"item-added\");\r\n// LOG.info(selectedIndices + \"\");\r\n }", "@VisibleForTesting\n protected Map<String, Boolean> setProvisionalSelection(Set<String> newSelection) {\n Map<String, Boolean> delta = new HashMap<>();\n\n for (String id: mProvisionalSelection) {\n // Mark each item that used to be in the selection but is unsaved and not in the new\n // provisional selection.\n if (!newSelection.contains(id) && !mSelection.contains(id)) {\n delta.put(id, false);\n }\n }\n\n for (String id: mSelection) {\n // Mark each item that used to be in the selection but is unsaved and not in the new\n // provisional selection.\n if (!newSelection.contains(id)) {\n delta.put(id, false);\n }\n }\n\n for (String id: newSelection) {\n // Mark each item that was not previously in the selection but is in the new\n // provisional selection.\n if (!mSelection.contains(id) && !mProvisionalSelection.contains(id)) {\n delta.put(id, true);\n }\n }\n\n // Now, iterate through the changes and actually add/remove them to/from the current\n // selection. This could not be done in the previous loops because changing the size of\n // the selection mid-iteration changes iteration order erroneously.\n for (Map.Entry<String, Boolean> entry: delta.entrySet()) {\n String id = entry.getKey();\n if (entry.getValue()) {\n mProvisionalSelection.add(id);\n } else {\n mProvisionalSelection.remove(id);\n }\n }\n\n return delta;\n }", "public abstract boolean hasSelection();", "public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }", "private boolean itemSelect(boolean refresh, @MagicConstant(flags = {NEXT_DEFAULT, NEXT_REVERSED, NEXT_STOP_WHEN_END, NEXT_EVERY_ITEM}) int flags) {\n int index = samplesList.getSelectedIndex();\n int next = shipment.getNextIndex(index, flags);\n if (next < 0) return false;\n if (refresh) {\n refreshUI(UI_SAMPLE_INFO | UI_SELECTION, next);\n }\n return true;\n }", "public void itemsSelected() {\n getEntitySelect().close();\n Collection<T> selectedValues = getEntitySelect().getResults().getSelectedValues();\n setReferencesToParentAndPersist((T[]) selectedValues.toArray());\n showAddSuccessful();\n }", "private void checkAndSet() {\n if (value == null) {\n throw new IllegalArgumentException(EXC_NodeCannotBeNull());\n }\n\n if (equalNodes(value, selectedNodes)) {\n return;\n }\n\n List<Node> validNodes = null;\n for (int i = 0; i < value.length; i++) {\n if (value[i] == null) {\n throw new IllegalArgumentException(EXC_NoElementOfNodeSelectionMayBeNull());\n }\n \n if (!isUnderRoot(value[i])) {\n if (validNodes == null) {\n validNodes = new ArrayList<Node>(value.length);\n for (int j = 0; j < i; j++) {\n validNodes.add(value[j]);\n }\n }\n } else if (validNodes != null) {\n validNodes.add(value[i]);\n }\n }\n if (validNodes != null) {\n newValue = validNodes.toArray(new Node[validNodes.size()]);\n if (equalNodes(newValue, selectedNodes)) {\n return;\n } \n } else {\n newValue = value;\n }\n\n if ((newValue.length != 0) && (vetoableSupport != null)) {\n try {\n // we send the vetoable change event only for non-empty selections\n vetoableSupport.fireVetoableChange(PROP_SELECTED_NODES, selectedNodes, newValue);\n } catch (PropertyVetoException ex) {\n veto = ex;\n return;\n }\n }\n updateSelection();\n }", "@Override\n\t\t\t\t\tpublic void OnSelectItem(Item item) {\n\n\t\t\t\t\t\tif(!toDelete.contains(item))\n\t\t\t\t\t\t\ttoDelete.add(item);\n\t\t\t\t\t}", "public void setTargetSelected(boolean targetSelected) {\n this.targetSelected = targetSelected;\n }", "@Test\n\tpublic void testApplyToOptions_SetEquate_Selection() {\n\n\t\t// put the cursor on a scalar\n\t\tputCursorOnOperand(0x1004bbd, 0);\n\n\t\t// make a selection containing the scalar above.\n\t\tmakeSelection(tool, program, addr(\"1004bbd\"), addr(\"1004bc5\"));\n\n\t\tSetEquateDialog d = showSetEquateDialog();\n\n\t\tJRadioButton applyToCurrentButton =\n\t\t\t(JRadioButton) findComponentByName(d.getComponent(), \"applyToCurrent\");\n\t\tfinal JRadioButton applyToSelectionButton =\n\t\t\t(JRadioButton) findComponentByName(d.getComponent(), \"applyToSelection\");\n\t\tfinal JRadioButton applyToAllButton =\n\t\t\t(JRadioButton) findComponentByName(d.getComponent(), \"applyToAll\");\n\t\tJCheckBox overwriteExistingEquatesButton =\n\t\t\t(JCheckBox) findComponentByName(d.getComponent(), \"Overwrite\");\n\n\t\t//change as of 7.0 - dialog should come up with \"current location\" enabled.\n\t\tassertNotNull(applyToCurrentButton);\n\t\tassertTrue(applyToCurrentButton.isEnabled());\n\t\tassertFalse(applyToCurrentButton.isSelected());\n\n\t\t//have selection in this case so should be enabled but not selected\n\t\tassertNotNull(applyToSelectionButton);\n\t\tassertTrue(applyToSelectionButton.isEnabled());\n\t\tassertTrue(applyToSelectionButton.isSelected());\n\n\t\t//entire program should be enabled but not selected\n\t\tassertNotNull(applyToAllButton);\n\t\tassertTrue(applyToAllButton.isEnabled());\n\t\tassertFalse(applyToAllButton.isSelected());\n\n\t\t//overwrite existing should be visible and enabled, but not selected\n\t\tassertTrue(overwriteExistingEquatesButton.isVisible());\n\t\tassertTrue(overwriteExistingEquatesButton.isEnabled());\n\t\tassertFalse(overwriteExistingEquatesButton.isSelected());\n\n\t\t//select applyToSelection and verify that the other buttons respond accordingly\n\t\tapplyToSelectionButton.setSelected(true);\n\t\trunSwing(\n\t\t\t() -> applyToSelectionButton.getActionListeners()[0].actionPerformed(null));\n\t\tprogram.flushEvents();\n\t\twaitForSwing();\n\n\t\tassertFalse(applyToAllButton.isSelected());\n\t\tassertFalse(applyToCurrentButton.isSelected());\n\t\tassertTrue(applyToSelectionButton.isSelected());\n\t\tassertTrue(overwriteExistingEquatesButton.isEnabled());\n\t\tassertFalse(overwriteExistingEquatesButton.isSelected());\n\n\t\tclose(d);\n\t}", "@Override\n public void redo(){\n this.parent.getSelectedArea().clear();\n \n //And add the point to the list again\n this.parent.getSelectedArea().add(this.selected);\n }", "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreNotYetImplemented.class)\r\n public void testSelectedIndicesAfterSort() {\r\n int first = 0;\r\n int last = items.size() -1;\r\n getSelectionModel().select(first);\r\n Comparator comparator = new TreeItemComparator();\r\n FXCollections.sort(items, comparator);\r\n assertEquals(1, getSelectedIndices().size());\r\n assertEquals(last, getSelectedIndices().get(0).intValue());\r\n }", "boolean beforeMasterSelectionChange();", "public void selected(Guy g)\n {\n guy.pickingLocation = !guy.pickingLocation;\n }", "void setSelectedItems(ValueType selectedItems);", "public void testGetSelectedItemsCountWithItemsSelected()\n\t{\n\t\t// arrange\n\t\t// let's add a new list, category, and a few items to the new list\n\t\tUri listUri = helper.insertNewList(\"testlist\");\n\t\tint listId = Integer.parseInt(listUri.getPathSegments().get(1));\n\t\tassertEquals(2, listId);\n\n\t\tUri categoryUri = helper.insertNewCategory(listId, \"dudus\", 1);\n\t\tint categoryId = Integer.parseInt(categoryUri.getPathSegments().get(1));\n\t\thelper.insertNewItem(categoryId, \"item1\", false, 0);\n\t\thelper.insertNewItem(categoryId, \"item2\", false, 1);\n\t\thelper.insertNewItem(categoryId, \"item3\", true, 2);\n\t\thelper.insertNewItem(categoryId, \"item4\", false, 3);\n\t\thelper.insertNewItem(categoryId, \"item5\", true, 4);\n\t\thelper.insertNewItem(categoryId, \"item6\", false, 5);\n\n\t\t// Act & Assert\n\t\tint selectedItemsCount = service.getSelectedItemsCount();\n\t\tassertEquals(2, selectedItemsCount);\n\t}", "protected boolean dropNodes(int action, Transferable transferable,\n Point location) throws IOException, UnsupportedFlavorException {\n OtDragDropObject ddo = (OtDragDropObject)\n transferable.getTransferData(OtDragDropObject.dataFlavor);\n\n // MFO: The following 7 lines are retained from ot-0.5.\n OtTreeNodeWidget node = getNode(location);\n if (node == null) {\n return false;\n }\n\n DnDUtils.debugPrintln(\n (action == DnDConstants.ACTION_COPY ? \"Copy\" : \"Move\")\n + \" item \" + ddo.getSpItem()\n + \" to targetNode \" + node);\n\n // Highlight the drop location while we perform the drop\n _spTree.setIgnoreSelection(true);\n _spTree.selectNode(getNode(location));\n _spTree.setIgnoreSelection(false);\n\n // MFO: The following 32 lines are retained from ot-0.5.\n // (except: try/catch and _spTree.setProgram(prog); from ot-0.9.0)\n\n // Copy source object to the target\n SpInsertData spID = getSpInsertData(ddo, node);\n if (spID == null) {\n return false;\n }\n\n OtTreeWidget ownerTW = ddo.getOwner();\n SpItem[] newItems = spID.items;\n\n try {\n if (ownerTW == _spTree) {\n // The dragged item was owned by this tree, so just move it.\n _spTree.mvItems(spID);\n\n } else {\n if (ownerTW != null) {\n // Make a copy, since these items are owned by another tree.\n for (int i = 0; i < newItems.length; ++i) {\n newItems[i] = newItems[i].deepCopy();\n }\n }\n\n newItems = _spTree.addItems(spID);\n }\n\n _spTree.updateNodeExpansions();\n\n } catch (Exception e) {\n DialogUtil.error(ownerTW, e);\n }\n\n return (newItems != null);\n }", "public void addSelectionToRetained() {\n retained_nodes.addAll(getRTParent().getSelectedEntities());\n newBundlesRoot(getRTParent().getRootBundles());\n }", "@Override\r\n public void onRegionClickSelected(ProteinRegionSelectionEvent event) {\r\n StateChanger changer = new StateChanger();\r\n List<Region> region = new ArrayList<>();\r\n List<PeptideMatch> peptides;\r\n List<String> modifications;\r\n\r\n try {\r\n region.add(new Region(event.getStart(), event.getStart() + event\r\n .getLength() - 1));\r\n changer.addRegionChange(region);\r\n\r\n peptides = PeptideUtils.filterPeptideMatchesNotIn(peptideMatchSelection,\r\n event.getStart(), event.getStart() + event.getLength() - 1);\r\n\r\n if(peptides.size() != peptideMatchSelection.size()) {\r\n changer.addPeptideChange(peptides);\r\n }\r\n\r\n modifications = filterModificationsNotIn(currentModifications,\r\n event.getStart(), event.getStart() + event.getLength() - 1);\r\n\r\n if (modifications.size() != currentModifications.size()) {\r\n changer.addModificationChange(modifications);\r\n }\r\n\r\n UserAction action = new UserAction(UserAction.Type.region,\r\n \"Click Set\");\r\n StateChangingActionEvent.fire(this, changer, action);\r\n } catch (IllegalRegionValueException e) {\r\n // This is probably because of an empty selection,\r\n // we don't send any event\r\n }\r\n }", "@Test\n \tpublic void testTargetRandomSelection() {\n \tComputerPlayer player = new ComputerPlayer();\n \t// Pick a location with no rooms in target, just three targets\n \tboard.calcTargets(23, 7, 2);\n \tint loc_24_8Tot = 0;\n \tint loc_22_8Tot = 0;\n \tint loc_21_7Tot = 0;\n \t// Run the test 100 times\n \tfor (int i=0; i<100; i++) {\n \t\tBoardCell selected = player.pickLocation(board.getTargets());\n \t\tif (selected == board.getRoomCellAt(24, 8))\n \t\t\tloc_24_8Tot++;\n \t\telse if (selected == board.getRoomCellAt(22, 8))\n \t\t\tloc_22_8Tot++;\n \t\telse if (selected == board.getRoomCellAt(21, 7))\n \t\t\tloc_21_7Tot++;\n \t\telse\n \t\t\tfail(\"Invalid target selected\");\n \t}\n \t// Ensure we have 100 total selections (fail should also ensure)\n \tassertEquals(100, loc_24_8Tot + loc_22_8Tot + loc_21_7Tot);\n \t// Ensure each target was selected more than once\n \tassertTrue(loc_24_8Tot > 10);\n \tassertTrue(loc_22_8Tot > 10);\n \tassertTrue(loc_21_7Tot > 10);\t\t\t\t\t\t\t\n }", "@Test\n public void supportsNullSelection() throws Exception {\n listView.select(null);\n verify(listener, only()).onItemSelection((Set) argThat(empty()));\n }", "private void onAdd()\n {\n // get the source list selection\n Object selection[] = _lstSource.getSelectedValues();\n\n // iterate the selection\n EntityDobj table;\n TransferEntity te;\n for(int i = 0; selection != null && i < selection.length; i++)\n {\n // get the table\n table = (EntityDobj)selection[i];\n if(table != null)\n {\n // create new te\n te = new TransferEntity();\n te.setSourceEntityName(table.getName());\n\n // add to the target list and the datasource\n _lstTarget.addItem(te);\n _dt.addTransferEntity(te);\n }\n }\n\n // remove the selection from the source list\n for(int i = 0; selection != null && i < selection.length; i++)\n {\n // get the table\n table = (EntityDobj)selection[i];\n if(table != null)\n _lstSource.removeItem(table);\n }\n }", "@Test\n public void seeingAttributesOfTheSelectedItemTest() {\n field = new Field();\n for (int i = 0; i < 1; i++) {\n for (int j = 0; j < 1; j++) {\n this.field.addCells(false, new Location(i, j));\n }\n }\n DarknessMagicBook dark = new DarknessMagicBook(\"HowToActColdAsSasuke\", 100, 1, 10);\n tactician1 = new Tactician(\"player1\", field, null);\n tactician1.setSelectedItem(dark);\n assertEquals(tactician1.getSelectedItem(),dark);\n assertEquals(tactician1.nameSelectedItem(), \"HowToActColdAsSasuke\");\n assertEquals(tactician1.powerSelectedItem(), 100);\n assertEquals(tactician1.minRangeSelectedItem(), 1);\n assertEquals(tactician1.maxRangeSelectedItem(), 10);\n }", "@Override\n\tpublic final void changedLayerListActions() {\n\n\t\t// Saves the last generated and test if this name was generated to\n\t\t// restore the value.\n\t\t// after the combobox initialization.\n\t\tif (this.comboTargetLayer.isDisposed()) {\n\t\t\treturn;\n\t\t}\n\n\t\tString presentedName = this.comboTargetLayer.getText();\n\n\t\tloadComboWithLayerList(this.comboTargetLayer, ParameterName.TARGET_GEOMETRY_CLASS);\n\n\t\tif (presentedName.equals(this.lastNameGenerated)) {\n\n\t\t\tthis.comboTargetLayer.setText(this.lastNameGenerated);\n\n\t\t}\n\t\tselectedTargetLayerActions(this.comboTargetLayer);\n\n\t}", "boolean updateItems() {\n return updateItems(selectedIndex);\n }", "private <T> void getPossibleTargets(TargetingScheme<T> t, TargetList<T> current, List<? extends T> searchSpace, int startInd,\n List<TargetList<T>> outputList) {\n if (t.isFullyTargeted(current)) {\n outputList.add(current);\n return;\n }\n if (startInd >= searchSpace.size()) {\n System.out.println(\"this shouldn't happen lmao\");\n }\n int numToSelect = Math.min(searchSpace.size(), t.getMaxTargets());\n for (int i = startInd; i < searchSpace.size() - (numToSelect - current.targeted.size() - 1); i++) {\n T c = searchSpace.get(i);\n if (!current.targeted.contains(c)) {\n TargetList<T> copy = current.clone();\n copy.targeted.add(c);\n this.getPossibleTargets(t, copy, searchSpace, i + 1, outputList);\n }\n }\n }", "@Override\n \t\t\tpublic void checkStateChanged(CheckStateChangedEvent event) {\n \t\t\t\tEntityDefinition eventSource = (EntityDefinition) event.getElement();\n \t\t\t\tif (event.getChecked())\n \t\t\t\t\tselection.add(eventSource);\n \t\t\t\telse\n \t\t\t\t\tselection.remove(eventSource);\n \t\t\t}", "void updateSelected(Coord c) {\n this.selected = c;\n }", "boolean hasStablesSelected();", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent actionevent) {\n\t\t\t\tif (select.isSelected()) {\r\n\t\t\t\t\tservice.selectTask(row);\r\n\t\t\t\t\t// service.getTask(row).setSelected(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tservice.cancleTask(row);\r\n\t\t\t\t\t// service.getTask(row).setSelected(false);\r\n\t\t\t\t}\r\n\t\t\t\t// System.out.println(\"after: \" + service.getSelectedSet());\r\n\r\n\t\t\t}", "@Test\n public void selectsItemWithWidthAndHeightWithinSelectionArea() {\n Place place = mock(Place.class);\n when(place.getX()).thenReturn(0);\n when(place.getY()).thenReturn(0);\n when(place.getWidth()).thenReturn(10);\n when(place.getHeight()).thenReturn(10);\n\n net.addPlace(place);\n\n Rectangle selectionRectangle = new Rectangle(5, 5, 40, 40);\n controller.select(selectionRectangle);\n\n assertTrue(controller.isSelected(place));\n }", "public void moveToSelected() {\n if (selectionX != -1) {\n // This short circuits but if it's not multiplayer the second statement will do nothing\n if (map.moveEntity(map.getCurrentTurnHero(), selectionX, selectionY) && multiplayerGameManager\n .hookPlayerMove(selectionX, selectionY)) {\n map.updateVisibilityArray();\n visionChanged = true;\n // See if this hero has moved on a position that meets any movement objectives\n gameState.updateMovementGoal(selectionX, selectionY);\n }\n }\n\n if (map.getCurrentTurnHero().getActionPoints() < 2) {\n nextTurn();\n }\n }", "private void pushSelection()\n {\n ArrayList<Integer> selectedIndices = new ArrayList<>();\n ArrayList<Signal> newSelected = new ArrayList<>();\n for(Signal s: selected)\n {\n int index = listed.indexOf(s);\n if(index >= 0)\n {\n selectedIndices.add(index);\n newSelected.add(s);\n }\n }\n selected.clear();\n selected.addAll(newSelected);\n int[] indices = new int[selectedIndices.size()];\n for(int i = 0; i < selectedIndices.size(); i++)\n {\n indices[i] = selectedIndices.get(i);\n }\n signalList.setSelectedIndices(indices);\n }", "public void updateInspectionChecklist(boolean isPassed, InspectionDTO target) {\n currentInspectionChecklist.updateInspectionDTO(isPassed, target);\n }", "@Test\n\tpublic void argumentTest() {\n\t\tSelectionController selectionController = new SelectionController();\n\t\ttry {\n\t\t\tselectionController.select(null);\n\t\t\tAssert.fail(\"The new selection was null\");\n\t\t} catch (NullPointerException e) {\n\t\t}\n\n\t\ttry {\n\t\t\tselectionController.unselect(null);\n\t\t\tAssert.fail(\"The new unselection was null\");\n\t\t} catch (NullPointerException e) {\n\t\t}\n\n\t\ttry {\n\t\t\tselectionController.reselect(null);\n\t\t\tAssert.fail(\"The new reselection was null\");\n\t\t} catch (NullPointerException e) {\n\t\t}\n\t}", "@Test\n\t\t\tpublic void testTargetOneStep()\n\t\t\t{\n\t\t\t\t//Test one step and check for the right space\n\t\t\t\tboard.calcTargets(0, 7, 1);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(1, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(1, 7)));\n\n\t\t\t\t// Test one step near a door with the incorrect direction\n\t\t\t\tboard.calcTargets(13, 6, 1);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(3, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(14, 6)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 5)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 7)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Test\n public void test_chooseBadTargetOnSacrifice_WithTargets_AI() {\n addCard(Zone.HAND, playerA, \"Redcap Melee\", 1);\n addCard(Zone.BATTLEFIELD, playerA, \"Mountain\", 3);\n //\n addCard(Zone.BATTLEFIELD, playerB, \"Silvercoat Lion\", 1);\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Redcap Melee\", \"Silvercoat Lion\");\n //addTarget(playerA, \"Mountain\"); AI must select targets\n\n //setStrictChooseMode(true); AI must select targets\n setStopAt(1, PhaseStep.END_TURN);\n execute();\n\n assertGraveyardCount(playerA, \"Redcap Melee\", 1);\n assertGraveyardCount(playerA, \"Mountain\", 1);\n assertPermanentCount(playerA, \"Mountain\", 3 - 1);\n assertGraveyardCount(playerB, \"Silvercoat Lion\", 1);\n }", "private void restoreSelectedLandmark(List<HistoricLandmarkDistanceSelect> landmarks) {\n int position = mSelectedPositionId.position;\n if (position >= 0 && position < landmarks.size()) {\n HistoricLandmarkDistanceSelect landmarkDistanceSelect = landmarks.get(position);\n // Previously selected is still in the same position\n if (landmarkDistanceSelect.landmark.id == mSelectedPositionId.id) {\n landmarkDistanceSelect.isSelected = true;\n }\n // A different landmark is in the previously selected position\n else {\n mSelectedPositionId = PositionId.NO_POSITION_ID;\n }\n\n }\n // Previously selected position is now out of bounds\n else {\n mSelectedPositionId = PositionId.NO_POSITION_ID;\n }\n }", "void afterMasterSelectionChange();", "@Override\n\tpublic void deleteSelected() {\n\n\t}", "@Override\n public void setSelectedItems(List<VDS> value) {\n if (value != null && !value.equals(getSelectedItems())) {\n super.setSelectedItems(new ArrayList<VDS>(value));\n } else if (value != null && value.equals(getSelectedItems())) {\n // do nothing, nothing changed\n } else {\n super.setSelectedItems(value);\n }\n if (value == null || value.isEmpty() || value.size() > 1) {\n super.setSelectedItem(null);\n } else {\n super.setSelectedItem(value.get(0));\n }\n }", "protected void dropCompleteMoveTreeNodeAction() {\n List<Map<Long, VMResource>> targets = new ArrayList<Map<Long, VMResource>>();\n List<Map<Long, VMResource>> oldTargets = new ArrayList<Map<Long, VMResource>>();\n Arrays.asList(treeGrid.getSelectedRecords()).forEach(x -> {\n Map<Long, VMResource> target = new HashMap<Long, VMResource>();\n Map<Long, VMResource> oldTarget = new HashMap<Long, VMResource>();\n FileTreeNode targetNode = (FileTreeNode) x;\n Long parentId = tree.getRoot().equals(tree.getParent((TreeNode) x)) ? rootId : ((FileTreeNode) tree.getParent((TreeNode) x)).getResource().getId();\n target.put(parentId, targetNode.getResource());\n targets.add(target);\n oldTarget.put(fileTreeNodeFactory.getParentDirId(targetNode.getResource().getId()), targetNode.getResource());\n oldTargets.add(oldTarget);\n fileTreeNodeFactory.moveVMResource(parentId, targetNode.getResource().getId());\n });\n ZGMoveCommand moveCommand = new ZGMoveCommand(editResourceService, viewHandler, targets, oldTargets, fileTreeNodeFactory);\n moveCommand.addCommandListener(new CommandListener() {\n @Override\n public void executeEvent() {\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n treeGrid.sort();\n treeGrid.redraw();\n }\n\n @Override\n public void undoEvent() {\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n for (Map<Long, VMResource> oldTarget : moveCommand.getOldTargets()) {\n for (Entry<Long, VMResource> entry : oldTarget.entrySet()) {\n tree.move(fileTreeNodeFactory.findTreeNode(tree, entry.getValue().getId()), fileTreeNodeFactory.findTreeNode(tree, entry.getKey()));\n }\n }\n treeGrid.sort();\n treeGrid.redraw();\n }\n\n @Override\n public void redoEvent() {\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n for (Map<Long, VMResource> target : moveCommand.getTargets()) {\n for (Entry<Long, VMResource> entry : target.entrySet()) {\n tree.move(fileTreeNodeFactory.findTreeNode(tree, entry.getValue().getId()), fileTreeNodeFactory.findTreeNode(tree, entry.getKey()));\n }\n }\n treeGrid.sort();\n treeGrid.redraw();\n }\n\n @Override\n public void bindEvent() {\n viewHandler.clear();\n registerRightClickEvent();\n }\n });\n\n CompoundCommand c = new CompoundCommand();\n c.append(moveCommand);\n manager.execute(c.unwrap());\n }", "boolean isSetTarget();", "static void setNotSelected(){isSelected=false;}", "public boolean moveTo(Object target);", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tUser zws = alllist.getSelectedValue();\r\n\t\t\t\tvm.removeElement(zws);\r\n\t\t\t\tverwalter.remove(zws);\r\n\t\t\t\tam.addElement(zws);\r\n\t\t\t\tall.add(zws);\r\n\t\t\t}", "public boolean isTargetSelected() {\n return targetSelected;\n }", "protected boolean release (int x, int y) {\r\n\t\tShape selected = model.getSelected();\r\n\t\tif (selected == null) { return false; }\r\n\r\n\t\tif (originalTarget == null) {\r\n\t\t\t// turn this into a move\r\n\t\t\tmodel.getBoard().add(selected);\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tif (takeAction(selected, x,y)) {\r\n\t\t\t\t// move succeeded. Nothing to do.\r\n\t\t\t} else {\r\n\t\t\t\t// put back in proper spot if mistake or no connection at all\r\n\t\t\t\tmodel.getBoard().add(selected);\r\n\t\t\t\tselected.setLocation(originalx, originaly);\r\n\t\t\t\t\r\n\t\t\t\t// clear up target if it exists\r\n\t\t\t\tif (originalTarget != null) {\r\n\t\t\t\t\tShapeDrawer sd = originalTarget.getDrawer();\r\n\t\t\t\t\tsd.setState(ShapeDrawer.StateNormal);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// return to original drawer\r\n\t\tShapeDrawer sd = selected.getDrawer();\r\n\t\tsd.setState(ShapeDrawer.StateNormal);\r\n\t\t\r\n\t\t// no longer selected\r\n\t\tmodel.setSelected(null);\r\n\t\t\r\n\t\tpanel.redraw();\r\n\t\tpanel.repaint();\r\n\t\treturn true;\r\n\t}", "@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }", "@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }", "@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }", "@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }", "private void checkSelection() {\n \t\tboolean oldIsSelection = isSelection;\n \t\tisSelection = text.getSelectionCount() > 0;\n \t\tif (oldIsSelection != isSelection) {\n \t\t\tfireEnablementChanged(COPY);\n \t\t\tfireEnablementChanged(CUT);\n \t\t}\n \t}", "protected void checkSelectGesture(GraphicsNodeEvent evt) {\n\n\t\tGraphicsNodeMouseEvent mevt = null;\n\t\tif (evt instanceof GraphicsNodeMouseEvent) {\n\t\t\tmevt = (GraphicsNodeMouseEvent) evt;\n\t\t}\n\n\t\tGraphicsNode source = evt.getGraphicsNode();\n\t\tif (isDeselectGesture(evt)) {\n\t\t\tif (selectionNode != null) {\n\t\t\t\tselectionNodeRoot.removeTreeGraphicsNodeChangeListener(this);\n\t\t\t}\n\t\t\tclearSelection();\n\t\t} else if (mevt != null) {\n\n\t\t\tPoint2D p = mevt.getPoint2D();\n\n\t\t\tif ((source instanceof Selectable) && (isSelectStartGesture(evt))) {\n\t\t\t\tif (selectionNode != source) {\n\t\t\t\t\tif (selectionNode != null) {\n\t\t\t\t\t\tselectionNodeRoot.removeTreeGraphicsNodeChangeListener(this);\n\t\t\t\t\t}\n\t\t\t\t\tselectionNode = source;\n\t\t\t\t\tif (source != null) {\n\t\t\t\t\t\tselectionNodeRoot = source.getRoot();\n\t\t\t\t\t\tselectionNodeRoot.addTreeGraphicsNodeChangeListener(this);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t((Selectable) source).selectAt(p.getX(), p.getY());\n\t\t\t\tdispatchSelectionEvent(new SelectionEvent(null, SelectionEvent.SELECTION_STARTED, null));\n\n\t\t\t} else if (isSelectEndGesture(evt)) {\n\t\t\t\tif (selectionNode == source) {\n\t\t\t\t\t((Selectable) source).selectTo(p.getX(), p.getY());\n\t\t\t\t}\n\t\t\t\tObject oldSelection = getSelection();\n\t\t\t\tif (selectionNode != null) {\n\t\t\t\t\tShape newShape;\n\t\t\t\t\tnewShape = ((Selectable) selectionNode).getHighlightShape();\n\t\t\t\t\tdispatchSelectionEvent(new SelectionEvent(oldSelection, SelectionEvent.SELECTION_DONE, newShape));\n\t\t\t\t}\n\t\t\t} else if (isSelectContinueGesture(evt)) {\n\n\t\t\t\tif (selectionNode == source) {\n\t\t\t\t\tboolean result = ((Selectable) source).selectTo(p.getX(), p.getY());\n\t\t\t\t\tif (result) {\n\t\t\t\t\t\tShape newShape = ((Selectable) selectionNode).getHighlightShape();\n\n\t\t\t\t\t\tdispatchSelectionEvent(new SelectionEvent(null, SelectionEvent.SELECTION_CHANGED, newShape));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if ((source instanceof Selectable) && (isSelectAllGesture(evt))) {\n\t\t\t\tif (selectionNode != source) {\n\t\t\t\t\tif (selectionNode != null) {\n\t\t\t\t\t\tselectionNodeRoot.removeTreeGraphicsNodeChangeListener(this);\n\t\t\t\t\t}\n\t\t\t\t\tselectionNode = source;\n\t\t\t\t\tif (source != null) {\n\t\t\t\t\t\tselectionNodeRoot = source.getRoot();\n\t\t\t\t\t\tselectionNodeRoot.addTreeGraphicsNodeChangeListener(this);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t((Selectable) source).selectAll(p.getX(), p.getY());\n\t\t\t\tObject oldSelection = getSelection();\n\t\t\t\tShape newShape = ((Selectable) source).getHighlightShape();\n\t\t\t\tdispatchSelectionEvent(new SelectionEvent(oldSelection, SelectionEvent.SELECTION_DONE, newShape));\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void deselectGolem() {\n }", "private void tagSelectionChanged(TagBase source) {\n if (source.isSelected()) {\n getChildren().stream()\n .filter(c -> c instanceof TagBase)\n .map(c -> (TagBase) c)\n .filter(ov -> ov != source).forEach(ov -> ov.setSelected(false));\n if (source instanceof ObjectTag) {\n source.setAnimateOutline(Settings.isAnimateOutline());\n selectedObjectProperty.set((ObjectTag) source);\n }\n tagCoordsProperty.set(getCoordinates(source.shapeItemProperty().get()));\n source.shapeItemProperty().addListener((observable, oldValue, newValue) -> tagCoordsProperty.set(getCoordinates(newValue)));\n }\n else {\n if (objectsProperty.stream().filter(ov -> ov.isSelected()).count() > 0) {\n return;\n }\n source.setAnimateOutline(false);\n selectedObjectProperty.set(null);\n tagCoordsProperty.set(\"\");\n }\n }", "@Test\r\n\tpublic void testTargetsOneStep() {\r\n\t\tboard.calcTargets(24, 17, 1);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(2, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 17)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(24, 18)));\t\r\n\t\t\r\n\t\tboard.calcTargets(10, 24, 1);\r\n\t\ttargets= board.getTargets();\r\n\t\tassertEquals(2, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 24)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 23)));\t\t\t\r\n\t}", "private boolean inventToInvent(String source, String target, Item toMove, Item toSwap){\n\t\tif (toSwap == null){\n\t\t\ttoMove.setInventoryPosition(target);\n\t\t\treturn true;\n\t\t}\n\t\telse if (source.equals(target)){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\tElement toSwapDrag = nifty.getScreen(\"hud\").findElementByName(\"ItemVal\"+toSwap.getId());\n\t\t\tcleanRemove(toSwapDrag);\n\t\t\tscreenManager.getInventoryManager().addItemInPos(toSwap, toMove.getInventoryPosition());\n\t\t\ttoMove.setInventoryPosition(target);\n\t\t\treturn true;\n\t\t}\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n firstAction(getBanner());\n relocatingTo = new Move(countryAssociation);\n relocatingTo.setMovingTo((Country) getSelectedItem());\n Submit submit = new Submit(getBanner());\n submit.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n relocatingTo.setMovingTo((Country) getSelectedItem());\n countryAssociation.setOrder(relocatingTo);\n isStillRelocating = false;\n }\n });\n lastAction(getBanner(), submit);\n }", "public boolean pickedup(Player player) {\n\t\treturn false;\n\t}", "@Test\n public void resolveClick() {\n Coordinates coords = new Coordinates(0, 0);\n game.resolveClick(coords);\n assertEquals(64, game.getDataSet().size());\n assertEquals(64, game.getBackgroundSet().size());\n\n // selecting movable pieces results in dataSet changes\n game.resolveClick(redManOccupiedCoords);\n assertEquals(64, game.getDataSet().size());\n assertEquals(64, game.getBackgroundSet().size());\n\n // down-left should be selectable...\n Coordinates downLeft = redManOccupiedCoords.moveDownLeft(1);\n assertEquals(TileColor.SELECTED,\n game.getBackgroundSet().get(downLeft.getPosition()));\n\n // ...and down-right too\n Coordinates downRight = redManOccupiedCoords.moveDownRight(1);\n assertEquals(TileColor.SELECTED,\n game.getBackgroundSet().get(downRight.getPosition()));\n\n // but not up-left...\n Coordinates upLeft = redManOccupiedCoords.moveUpLeft(1);\n assertNotEquals(TileColor.SELECTED,\n game.getBackgroundSet().get(upLeft.getPosition()));\n\n // ... nor up-right\n Coordinates upRight = redManOccupiedCoords.moveUpRight(1);\n assertNotEquals(TileColor.SELECTED,\n game.getBackgroundSet().get(upRight.getPosition()));\n\n // pressing on blue tile should move piece and deselect that tile...\n coords = redManOccupiedCoords.moveDownLeft(1);\n game.resolveClick(coords);\n assertEquals(2, game.getDataSet().get(coords.getPosition()).intValue());\n assertNotEquals(TileColor.SELECTED,\n game.getBackgroundSet().get(coords.getPosition()));\n\n // ...and it should also deselect other tiles\n coords = redManOccupiedCoords.moveDownRight(1);\n assertNotEquals(TileColor.SELECTED,\n game.getBackgroundSet().get(coords.getPosition()));\n\n // TODO: capturing moves, canAnyCapture check\n // TODO: wrong team check, outside board check\n }", "public abstract boolean depleteItem();", "@FXML\r\n\tpublic void checkSelected() {\r\n\t\tif(!listView.getSelectionModel().isEmpty())\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(false);\r\n\t\t\taddToShoppingCartButton.setDisable(false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(true);\r\n\t\t\taddToShoppingCartButton.setDisable(true);\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tint box_index = deck_ComboBox.getSelectedIndex();\n\t\t\t\t\tNode n = rm.applySelectionCases(rule_deck_node, box_index);\n\t\t\t\t\trule_deck_node.replace(n);\n\t\t\t\t}\n\t\t\t}", "@Test\n\t@TestProperties(name = \"Set element ${by}:${locator} selected\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void setElementSelected() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "private void itemSelected(){\n \t//* count selected items\n \tint c=0;\n \tfor (int i = 0; i<jTable4.getRowCount(); i++){\n \t\tif((Boolean)jTable4.getModel().getValueAt(i, 0)){\n \t\t\tc++;\n \t\t}\n \t}\n \tif(c==0){\n \t\treturn; //* if no item selected then do nothing\n \t}\n \t\n \t//* get the new selected items\n \tString[][] tmp1=new String[c][2];\n \tfor (int i = 0, j=0; i<jTable4.getRowCount(); i++){\n \t\tif((Boolean)jTable4.getModel().getValueAt(i, 0)){\n \t\t\ttmp1[j]=new String[2];\n \t\t\ttmp1[j][0]=jTable4.getModel().getValueAt(i, 1).toString();\n \t\t\ttmp1[j++][1]=\"0\";\n \t\t}\n \t}\n \t\n \t//* get the previously selected items\n \tString[][] tmp2=new String[jTable3.getModel()==null? 0: jTable3.getModel().getRowCount()][9];\n \tfor (int i = 0; i<tmp2.length; i++){\n \t\ttmp2[i]=new String[9];\n \t\ttmp2[i][0]=jTable3.getModel().getValueAt(i, 1).toString();\n \t\ttmp2[i][1]=jTable3.getModel().getValueAt(i, 2).toString();\n \t\ttmp2[i][2]=jTable3.getModel().getValueAt(i, 3).toString();\n \t\ttmp2[i][3]=jTable3.getModel().getValueAt(i, 5).toString();\n \t\ttmp2[i][4]=jTable3.getModel().getValueAt(i, 7).toString();\n \t\ttmp2[i][5]=jTable3.getModel().getValueAt(i, 9).toString();\n \t\ttmp2[i][6]=jTable3.getModel().getValueAt(i, 11).toString();\n \t\ttmp2[i][7]=jTable3.getModel().getValueAt(i, 13).toString();\n \t\ttmp2[i][8]=jTable3.getModel().getValueAt(i, 15).toString();\n \t}\n \tfillPoDet(tmp2, tmp1); //* reconstruct PO table\n \tjTabbedPane1.setSelectedIndex(0);\n }", "@Override\n public void onClick(View view)\n {\n if(selectedStructure != null) //checks if object is selected and if prev object is same object\n {\n //if object is the same, then deselect the structure\n if (selectedStructure.equals(structureList.get(getAdapterPosition())))\n selected = false;\n else\n selected = true;\n }\n\n // if selected, get object otherwise let no object is selected\n if (selected)\n {\n selectedStructure = structureList.get(getAdapterPosition());\n }\n else\n {\n selectedStructure = null;\n }\n }", "private void actionSwitchSelect()\r\n\t{\r\n\t\tif (FormMainMouse.isSampleSelectOn)\r\n\t\t{\r\n\t\t\thelperSwitchSelectOff();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\thelperSwitchSelectOn();\r\n\r\n\t\t\t//---- If we can select sample, we can not move it\r\n\t\t\thelperSwitchMoveOff();\r\n\t\t}\r\n\t}", "public boolean selectiveUndoClicked(Point h)\n {\n LinkedList\t\t\t\tlastChangedHexes;\n ListIterator\t\t\tit, lastIt;\n ChangedMUXHex\t\t\tchangedHex;\n \n if (!canUndo())\n return false;\t\t\t\t// Nothing to do\n \n // Check to see if we have any data on this hex in any of our undos\n // have to go /backwards/ in the Undoable changes.. the last item is the most recent\n it = undoableChanges.listIterator(undoableChanges.size());\n \n while (it.hasPrevious())\n {\n lastChangedHexes = (LinkedList) it.previous();\n \n // Now iterate through the hexes changed in this change (order doesn't matter here, each hex appears only once)\n lastIt = lastChangedHexes.listIterator();\n \n while (lastIt.hasNext())\n {\n changedHex = (ChangedMUXHex) lastIt.next();\n if (changedHex.getLocation().getX() == h.getX() &&\n changedHex.getLocation().getY() == h.getY())\n {\n // Match!\n map.setHex(changedHex.getLocation(), changedHex.getPrevTerrain(), changedHex.getPrevElevation());\n mapComponent.repaint(mapComponent.rectForHex(changedHex.getLocation()));\n // We've found our match, so let's get out of this nasty looping\n return false;\n }\n } \n }\n \n // Always return false\n return false;\n }", "private void releasedSelect(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n /* End the move (do not need any recourse) or resize the node */\r\n try {\r\n /* End the move of the edge. Set the new adjacents */\r\n if (graphX.isAnyEdgeSelected() && ctrlPressed == false && moveingGraph == false) {\r\n EdgeX edgeX = graphX.getSelectedEdge();\r\n if (graphX.nodesContains(e.getPoint())) {\r\n NodeX nodeX = graphX.getNode(e.getPoint());\r\n\r\n boolean exist = false;\r\n /* Verify if the edge exist */\r\n if (edgeX.getPointToMove() == EdgeX.FIRST_POINT) {\r\n for (int i = 0; i < graphX.edgesNumber(); i++) {\r\n if (graphX.isEdgeInList(nodeX, edgeX.getSeccondAdjacent()) == true) {\r\n exist = true;\r\n break;\r\n }\r\n }\r\n } else if (edgeX.getPointToMove() == EdgeX.SECCOND_POINT) {\r\n for (int i = 0; i < graphX.edgesNumber(); i++) {\r\n if (graphX.isEdgeInList(edgeX.getFirstAdjacent(), nodeX) == true) {\r\n exist = true;\r\n break;\r\n }\r\n }\r\n }\r\n /* Set the new edge only if it doesn't exist */\r\n if (!edgeX.getFirstAdjacent().equals(nodeX) && !edgeX.getSeccondAdjacent().equals(nodeX)\r\n && exist == false) {\r\n Edge edge = edgeOf(edgeX);\r\n\r\n deleteEdge(); // Delete the selected edge\r\n\r\n if (edgeX.getPointToMove() == EdgeX.SECCOND_POINT) {\r\n edge.setSeccondAdjacent(nodeOf(graphX.getNode(e.getPoint())));\r\n edgeX.setSeccondAdjacent(graphX.getNode(e.getPoint()));\r\n addEdge(edge, edgeX);\r\n } else if (edgeX.getPointToMove() == EdgeX.FIRST_POINT) {\r\n edge.setFirstAdjacent(nodeOf(graphX.getNode(e.getPoint())));\r\n edgeX.setFirstAdjacent(graphX.getNode(e.getPoint()));\r\n addEdge(edge, edgeX);\r\n }\r\n\r\n edgeX = graphX.edgeAt(graphX.edgesNumber() - 1);\r\n edgeX.setState(true);\r\n }\r\n }\r\n edgeX.setPointToMove(EdgeX.NONE_POINT);\r\n edgeX.setMoveState(false);\r\n }\r\n /* End the resize of the node */\r\n else if (graphX.isOneNodeSelected()) {\r\n if (graphX.getSelectedNode().isResize()) {\r\n graphX.getSelectedNode().setResize(false);\r\n }\r\n }\r\n /* Select only one node from the multiple selection */\r\n else {\r\n if (ctrlPressed == false && dragMultiple == false) {\r\n graphX.deselectAll();\r\n graphX.selectNode(e.getPoint());\r\n }\r\n }\r\n } catch (NullPointerException e1) {\r\n }\r\n /* Select multiple nodes */\r\n if (selectTool.isMultiple()) {\r\n selectTool.setSeccondPoint(e.getPoint());\r\n graphX.selectNodes(selectTool.getRectangle());\r\n graphX.selectEdgesFromNodes();\r\n }\r\n\r\n selectTool.setMultiple(false);\r\n selectTool.reset();\r\n\r\n moveingGraph = false;\r\n\r\n /* Set the cursor */\r\n if (graphX.nodesResizeContains(e.getPoint()) && graphX.isOneNodeSelected() && !ctrlPressed) {\r\n this.setCursor(GraphBuilder.resizeSE);\r\n } else if (graphX.overSplitPoints(e.getPoint())) {\r\n this.setCursor(GraphBuilder.move);\r\n } else if (graphX.nodesContains(e.getPoint())\r\n || graphX.edgesContains(e.getPoint(), graph instanceof GraphOriented)) {\r\n this.setCursor(GraphBuilder.hand);\r\n } else {\r\n /* Set no split point for the edges */\r\n for (int i = 0; i < graphX.edgesNumber(); i++) {\r\n graphX.edgeAt(i).setNoCurrentPoint();\r\n }\r\n this.setCursor(GraphBuilder.arrow);\r\n }\r\n\r\n } else if (e.getModifiers() >= MouseEvent.BUTTON3_MASK) {\r\n try {\r\n graphX.getSelectedEdge().setNoCurrentPoint();\r\n } catch (NullPointerException e1) {\r\n }\r\n }\r\n }", "@Override\r\n\t\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.SELECTED)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(e.getItem()==cb[0])index1=true;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[1])index2=true;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[2])index3=true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.DESELECTED)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(e.getItem()==cb[0])index1=false;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[1])index2=false;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[2])index3=false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "public void itemSelected(boolean selected);", "private void removeSpeciesUnmatching(int optionselected) {\n for (String s : speciesLeft) {\n if (!(criteriaList.get(currentCriteria).getOptionList().get(optionselected).getEntities().contains(s)))\n speciesLeft.remove(s);\n }\n }", "public boolean forceSelection();", "@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif (e.getStateChange() == ItemEvent.SELECTED) { \r\n\t\t\t\t\tselectSource(e.getItem());\r\n\t\t\t\t}\r\n\t\t\t}", "void stateSelected(State state);", "@Test\r\n\tpublic void testChooseResultWithUnChangeCarPositionThird() {\r\n\t\tMontyHall monty = new MontyHall();\r\n\t\tmonty.setTheDoorWithCar(2);\r\n\t\tmonty.setChanged(false);\r\n\t\tmonty.setUserChoosedDoor(0);\r\n\t\tassertEquals(1, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(false, monty.winThePrize());\r\n\r\n\t\tmonty.setUserChoosedDoor(1);\r\n\t\tassertEquals(0, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(false, monty.winThePrize());\r\n\r\n\t\tmonty.setUserChoosedDoor(2);\r\n\t\tassertNotEquals(2, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(true, monty.winThePrize());\r\n\t}" ]
[ "0.66150767", "0.66124046", "0.628547", "0.6096401", "0.6042488", "0.59165114", "0.58253604", "0.57254344", "0.56743515", "0.56511664", "0.5634435", "0.56254685", "0.56085265", "0.5603975", "0.55852103", "0.5539399", "0.5497803", "0.54863566", "0.5486272", "0.54715896", "0.54618984", "0.5442653", "0.5438542", "0.5416351", "0.54148746", "0.5401872", "0.5398202", "0.5396488", "0.53914136", "0.5355887", "0.53432703", "0.5336668", "0.533614", "0.5334105", "0.5333906", "0.53326637", "0.5320166", "0.5302624", "0.52838343", "0.5281898", "0.52751815", "0.5272624", "0.5268524", "0.52562094", "0.52514213", "0.5248794", "0.52267236", "0.52207446", "0.5211506", "0.52113026", "0.52094144", "0.52088404", "0.5205359", "0.52024746", "0.5199886", "0.5195922", "0.51842785", "0.5182884", "0.51810503", "0.51720697", "0.51588136", "0.51534873", "0.5147601", "0.5146732", "0.51448673", "0.5142566", "0.513903", "0.51236403", "0.5122298", "0.5119565", "0.5113315", "0.51090467", "0.51090467", "0.51090467", "0.51090467", "0.5102977", "0.51019526", "0.50878793", "0.5085736", "0.50818", "0.50694376", "0.5062747", "0.50608224", "0.5059237", "0.5057536", "0.5057421", "0.50491333", "0.5045487", "0.5044729", "0.50337565", "0.5033454", "0.503281", "0.503161", "0.50297016", "0.5029616", "0.5029252", "0.5027868", "0.5017774", "0.50174695", "0.5014062" ]
0.6724073
0
firstly check ordering controls doesn't appear near pickList if not "orderable"
@Test @CoversAttributes("orderable") public void testOrderable() { pickListAttributes.set(PickListAttributes.orderable, Boolean.FALSE); assertNotPresent(pickList.advanced().getBottomButtonElement(), "Button should not be present"); assertNotPresent(pickList.advanced().getDownButtonElement(), "Button should not be present"); assertNotPresent(pickList.advanced().getTopButtonElement(), "Button should not be present"); assertNotPresent(pickList.advanced().getUpButtonElement(), "Button should not be present"); // then make sure that controls appear near pickList when allow ordering behavior pickListAttributes.set(PickListAttributes.orderable, Boolean.TRUE); assertVisible(pickList.advanced().getBottomButtonElement(), "Button should be visible"); assertVisible(pickList.advanced().getDownButtonElement(), "Button should be visible"); assertVisible(pickList.advanced().getTopButtonElement(), "Button should be visible"); assertVisible(pickList.advanced().getUpButtonElement(), "Button should be visible"); // then add some items to target list pickList.addMultiple(ChoicePickerHelper.byIndex().index(0).index(1).index(2)); // all items should remain selected and in this case ordering controls should be disabled assertEquals(pickList.advanced().getTargetList().getItems().size(), 3); for (ListItem item : pickList.advanced().getTargetList().getItems()) { assertTrue(item.getRootElement().getAttribute("class").contains("rf-pick-sel")); } // so check ordering controls if they are disabled assertButtonDisabled(pickList.advanced().getBottomButtonElement()); assertButtonDisabled(pickList.advanced().getDownButtonElement()); assertButtonDisabled(pickList.advanced().getTopButtonElement()); assertButtonDisabled(pickList.advanced().getUpButtonElement()); // now is time to select one item. This should cause ordering controls enable pickList.advanced().getTargetList().getItem(0).select(true); // since it was first item, "Down" and "Last" buttons should be enabled assertButtonEnabled(pickList.advanced().getBottomButtonElement()); assertButtonEnabled(pickList.advanced().getDownButtonElement()); assertButtonDisabled(pickList.advanced().getTopButtonElement()); assertButtonDisabled(pickList.advanced().getUpButtonElement()); // move first item to last OrderingList orderingTargetList = pickList.advanced().getOrderTargetList(); List<? extends ListItem> items = pickList.advanced().getTargetList().getItems(); List<String> targetStrings = Lists.newArrayList(items.get(0).getText(), items.get(1).getText(), items.get(2) .getText()); orderingTargetList.select(0).putItAfter(2); // verify that previously first item is now the last item (select 3rd item, and verify text) items = pickList.advanced().getTargetList().getItems(); List<String> targetStringsAfter = Lists.newArrayList(items.get(0).getText(), items.get(1).getText(), items.get(2).getText()); targetStrings.add(targetStrings.remove(0)); assertEquals(targetStringsAfter, targetStrings); // then move this item one step "up" orderingTargetList.select(2).putItBefore(1); // and then verify if all items are submitted in user defined order as well submitAjax(); items = pickList.advanced().getTargetList().getItems(); targetStrings = Lists.newArrayList(items.get(0).getText(), items.get(1).getText(), items.get(2).getText()); assertEquals(output.getText(), targetStrings.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean checkOrderList() {\n if (size != MainGUI.orderList.size()) {\n size = MainGUI.orderList.size();\n return true;\n }\n\n return false;\n }", "public boolean isPickVisible() {\n\t\treturn false;\n\t}", "private static void setButtonsPlaced(){\r\n for(MyButton b : mylist.getAllButtons()){\r\n b.setPlaced(false);\r\n }\r\n }", "boolean isSetControlPosition();", "public boolean hasOrderButtons() {\n return orderButtonImageCount == 4;\n }", "@Test(priority=5)\r\n\tpublic void displayGroupByListBox() {\r\n\t\t\r\n\t\tboolean expected=true;\r\n\t\tboolean actual=filterReturnsList.displayGroupByListboxOptions();\r\n\t\tassertEquals(actual, expected);\r\n\t}", "@Override\n public void valueChanged(ListSelectionEvent e) {\n add.setEnabled(entry.getObject() != null);\n\n boolean selection = !list.isSelectionEmpty();\n remove.setEnabled(selection);\n\n if (up != null) {\n int index = list.getSelectedIndex();\n up.setEnabled(selection && index > 0);\n down.setEnabled(selection && index < model.getSize() - 1);\n }\n }", "@Test\n public void shouldTestIsReorderValidWithoutUnbreakable() {\n this.gridLayer.setClientAreaProvider(new IClientAreaProvider() {\n\n @Override\n public Rectangle getClientArea() {\n return new Rectangle(0, 0, 1600, 250);\n }\n\n });\n this.gridLayer.doCommand(new ClientAreaResizeCommand(new Shell(Display.getDefault(), SWT.V_SCROLL | SWT.H_SCROLL)));\n\n // in same group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 4, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 4, 4, true));\n // to other group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 6, true));\n // to start of first group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 8, 0, true));\n // to end of last group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 13, false));\n }", "public boolean elementsAreAlphaUpSorted(List<WebElement> elements){\n //adding so to ignore the Multiple\n //Must account for - contacts too\n By footer = By.xpath(\"//div[@id='app-footer']\");\n By multipleFirstResult = By.xpath(\"//div[contains(@class, 'modal')]//div[@class='contact'][1]//*[text()]\");\n\n waitForElement(footer);\n scrollToElement(footer);\n\n String previous = null;\n for (WebElement element : elements) {\n String current = element.getText();\n\n if (current.contains(\"Multiple\")) {\n element.click();\n current = waitForElementToAppear(multipleFirstResult).getText();\n clickCoordinate(searchBar,10,10);\n }\n\n if (previous != null) {\n if (current.compareTo(previous) < 0) {\n System.out.println(\"MIS-SORT: Ascending: '\"+current+\"' should not be after '\"+previous+\"'\");\n return false;\n }\n }\n\n previous = current;\n }\n\n return true;\n }", "private void postInit() {\n fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\n goodList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n goodList.setModel(goodDList);\n\n badList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n badList.setModel(badDList);\n\n moveCopyButtonGroup = new ButtonGroup();\n moveCopyButtonGroup.add(copyRadioButton);\n moveCopyButtonGroup.add(moveRadioButton);\n\n Dimension dsp = topJSplitPane.getParent().getSize();\n topJSplitPane.setDividerLocation((int) ((3 * dsp.width) / 4));\n\n dsp = bottomJSplitPane.getParent().getSize();\n bottomJSplitPane.setDividerLocation((int) (dsp.width / 4));\n }", "boolean isPickEnabled();", "private void updateSortOrderCheckBox(){\n MenuItem alphabeticalSortItem = sortMenu.findItem(R.id.menuSortAlphabetically);\n MenuItem dateSortItem = sortMenu.findItem(R.id.menuSortDate);\n MenuItem fileTypeSortItem = sortMenu.findItem(R.id.menuSortFileType);\n MenuItem fileSizeSortItem = sortMenu.findItem(R.id.menuSortFileSize);\n if(sortOrder == SortOrder.ALPHABETICAL){\n alphabeticalSortItem.setChecked(true);\n dateSortItem.setChecked(false);\n fileTypeSortItem.setChecked(false);\n fileSizeSortItem.setChecked(false);\n } else if (sortOrder == SortOrder.DATE){\n alphabeticalSortItem.setChecked(false);\n dateSortItem.setChecked(true);\n fileTypeSortItem.setChecked(false);\n fileSizeSortItem.setChecked(false);\n } else if (sortOrder == SortOrder.FILE_TYPE){\n alphabeticalSortItem.setChecked(false);\n dateSortItem.setChecked(false);\n fileTypeSortItem.setChecked(true);\n fileSizeSortItem.setChecked(false);\n } else if(sortOrder == SortOrder.FILE_SIZE){\n alphabeticalSortItem.setChecked(false);\n dateSortItem.setChecked(false);\n fileTypeSortItem.setChecked(false);\n fileSizeSortItem.setChecked(true);\n }\n }", "@Test(groups = \"smoke\")\n public void testKeepSelected() {\n String textSource = pickList.advanced().getSourceList().getItem(0).getText();\n pickList.add(0);\n ListItem item = pickList.advanced().getTargetList().getItem(0);\n assertTrue(item.getRootElement().getAttribute(\"class\").contains(\"rf-pick-sel\"));\n assertEquals(item.getText(), textSource);\n\n pickList.remove(0);\n item = pickList.advanced().getSourceList().getItem(ChoicePickerHelper.byIndex().last());\n assertTrue(item.getRootElement().getAttribute(\"class\").contains(\"rf-pick-sel\"));\n assertEquals(item.getText(), textSource);\n assertEquals(Utils.getIndexOfElement(item.getRootElement()), pickList\n .advanced().getSourceList().size() - 1, \"Index of removed item.\");\n }", "public void validateSelection()\r\n {\r\n for (int i = 0; i<getSelectedElements().size(); ++i)\r\n {\r\n ReportElement re = (ReportElement)getSelectedElements().elementAt(i);\r\n if (!getCrosstabElement().getElements().contains( re ))\r\n {\r\n getSelectedElements().remove(re);\r\n --i;\r\n }\r\n }\r\n // UPDATE SELECTION NOW!!!\r\n }", "private boolean checkMultiplePlaneEdit(){\r\n\t\tboolean flag=false;\r\n\t\tfor(UiAirplaneModel model:uiAirplaneModel.getAirplaneList()){\r\n\t\t\tif(model.isInputDisplayItem()){\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "public void BeforePicking() {\r\n\t EventDispatcher.dispatchEvent(this, \"BeforePicking\");\r\n\t }", "private void removeFinalBtn()\n {\n if (finalListModel.size() <= 0)\n JOptionPane.showMessageDialog(null, \"Cannot remove more buttons\");\n else\n if(finalListModel.size() <= order.getSelectedIndex())\n JOptionPane.showMessageDialog(null, \"Sorry, try to pick the previous buttons first \");\n else\n finalListModel.remove(order.getSelectedIndex());\n }", "@Override\n public boolean isPromptAnswered() {\n return ((mSelectedIndex >= 0 && mSelectedIndex < mChoices.size()) || (mSelectedIndex >= 0 && mSelectedIndex < mChoices\n .size() + mCustomChoices.size()));\n }", "private void checkSorting()\n {\n long parentChangeCounter = this.parent.getChangeCount();\n if (this.sortedRecords == null || this.changeCounter != parentChangeCounter)\n {\n long start = System.currentTimeMillis();\n \n // perform sort\n this.sortedRecords = this.parent.cloneRecordList();\n Collections.sort(this.sortedRecords, this);\n \n // recalculate selected index\n recalculateSelectedIndex();\n\n this.changeCounter = parentChangeCounter;\n \n if (logger.isDebugEnabled())\n logger.debug(this.recordCount()+\" records sorted in \"+(System.currentTimeMillis()-start)+ \"ms (selectedIndex=\"+getSelectedRecordIndex()+\")\");\n }\n }", "@Override\n protected boolean isItemsOrderReversed() {\n return Utils.isCornerBottom(mCurrentCorner);\n }", "@Test\n public void shouldTestIsReorderValidWithUnbreakableFromNonGroupedLeft() {\n this.gridLayer.setClientAreaProvider(new IClientAreaProvider() {\n\n @Override\n public Rectangle getClientArea() {\n return new Rectangle(0, 0, 1600, 250);\n }\n\n });\n this.gridLayer.doCommand(new ClientAreaResizeCommand(new Shell(Display.getDefault(), SWT.V_SCROLL | SWT.H_SCROLL)));\n\n // remove first group\n this.rowGroupHeaderLayer.removeGroup(11);\n\n // set all remaining groups unbreakable\n this.rowGroupHeaderLayer.setGroupUnbreakable(0, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(4, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(8, true);\n\n // between unbreakable groups\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 12, 8, true));\n // to start of table\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 13, 0, true));\n }", "@FXML\n private void updateOrganOrder(ActionEvent event) {\n\n if (sortOrder == Order.ORGAN_ASC) {\n\n sortOrder = Order.ORGAN_DESC;\n\n } else if (sortOrder == Order.ORGAN_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.ORGAN_ASC;\n\n }\n\n updateOrderButtons();\n\n }", "boolean hasOrderByDataItem();", "private int getPlayerCounter_CheckForOrderValidity() {\r\n\t\tif ( playerList.size() <= playerCounter)\r\n\t\t\tplayerCounter = 0;\r\n\t\treturn playerCounter;\r\n\t}", "private void checkCriteria() {\n getNextCriteria();\n if (getReferences() < 1) { // Recordar de ver que se hace con la pregunta que se ignora!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n if (firstCriteria != -1)\n firstCriteria = currentCriteria;\n drawOptions();\n if (criteriaLeft.size() == 0)\n setEndingButtons();\n return;\n } else {\n checkCriteria();\n return;\n }\n }", "private void removeInitialBtn() {\n if(order.getItemCount() > orderButtons.length) {\n if(finalListModel.size() == initialListModel.size() || finalListModel.size() >= initialListModel.size()) {\n finalListModel.removeElementAt(order.getItemCount() - 1);\n orderModel.removeElementAt(order.getItemCount() - 1);\n initialListModel.removeElementAt(order.getItemCount());\n }\n else {\n orderModel.removeElementAt(order.getItemCount() - 1);\n initialListModel.removeElementAt(order.getItemCount());\n }\n }\n else\n JOptionPane.showMessageDialog(null, \"Sorry, you can't remove more buttons\");\n }", "private void checkCheckboxes(Order orderToLoad) {\n Map<String, CheckBox> checkBoxes = new TreeMap<>(){{\n put(\"PNEU\",pneuCB);\n put(\"OIL\",oilCB);\n put(\"BATTERY\",batCB);\n put(\"AC\",acCB);\n put(\"WIPER\",wipCB);\n put(\"COMPLETE\",comCB);\n put(\"GEOMETRY\",geoCB);\n }};\n for (String problem : orderToLoad.getProblems()) {\n if (checkBoxes.containsKey(problem)){\n checkBoxes.get(problem).setSelected(true);\n }\n }\n }", "private void updateOrderButtons() {\n\n // Reset button names.\n nameButton.setText(\"Name\");\n organButton.setText(\"Organ\");\n regionButton.setText(\"Region\");\n dateButton.setText(\"Date Added\");\n\n if (sortOrder == Order.NAME_ASC) {\n\n nameButton.setText(nameButton.getText() + ascText);\n sortedRecords.setComparator(new RecNameAlphabeticalComparator());\n\n } else if (sortOrder == Order.NAME_DESC) {\n\n nameButton.setText(nameButton.getText() + descText);\n sortedRecords.setComparator(new RecNameAlphabeticalComparator().reversed());\n\n } else if (sortOrder == Order.ORGAN_ASC) {\n\n organButton.setText(organButton.getText() + ascText);\n sortedRecords.setComparator(new RecOrganComparator());\n\n } else if (sortOrder == Order.ORGAN_DESC) {\n\n organButton.setText(organButton.getText() + descText);\n sortedRecords.setComparator(new RecOrganComparator().reversed());\n\n } else if (sortOrder == Order.DATE_ASC) {\n\n dateButton.setText(dateButton.getText() + ascText);\n sortedRecords.setComparator(new RecDateComparator());\n\n } else if (sortOrder == Order.DATE_DESC) {\n\n dateButton.setText(dateButton.getText() + descText);\n sortedRecords.setComparator(new RecDateComparator().reversed());\n\n } else if (sortOrder == Order.REGION_ASC) {\n\n regionButton.setText(regionButton.getText() + ascText);\n sortedRecords.setComparator(new RegionComparatorRec());\n\n } else if (sortOrder == Order.REGION_DESC) {\n\n regionButton.setText(regionButton.getText() + descText);\n sortedRecords.setComparator(new RegionComparatorRec().reversed());\n\n } else if (sortOrder == Order.DEFAULT) {\n\n // Revert to default order based on name.\n sortedRecords.setComparator(new RecNameAlphabeticalComparator());\n\n }\n\n updatePageCount();\n updateTableView();\n\n }", "private boolean checkMultipleUnitEdit() {\r\n\t\tboolean flag=false;\r\n\t\tfor(UIUnitType model:uiUnitType.getUnitValueList()){\r\n\t\t\tif(model.isInputDisplayItem()){\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "void sortUI();", "private void enablePreferredAndMinimumIfComponentAvaible() {\r\n\t\tboolean itemInRow = tableLayoutUtil.containesItemInRow(cellForEditing.getCellY());\r\n\t\tJMenuItem temp;\r\n\t\tfor (int i = 0; i < changeSizeMeasurementPopupRow.getComponentCount(); i++) {\n\t\t\tComponent c = changeSizeMeasurementPopupRow.getComponent(i);\n\t\t\tif (c instanceof JMenuItem) {\n\t\t\t\ttemp = (JMenuItem) changeSizeMeasurementPopupRow.getComponent(i);\r\n\t\t\t\tif (itemInRow) {\r\n\t\t\t\t\tif (temp.getActionCommand().equals(\"PREFERRED\") || temp.getActionCommand().equals(\"MINIMUM\")) {\r\n\t\t\t\t\t\ttemp.setEnabled(true);\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t} else if (temp.getActionCommand().equals(\"PREFERRED\") || temp.getActionCommand().equals(\"MINIMUM\")) {\r\n\t\t\t\t\ttemp.setEnabled(false);\r\n\t\t\t\t}\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public boolean canBecombo(){\n \treturn super.getPrice() <4;\n }", "@FXML\n private void updateRegionOrder(ActionEvent event) {\n\n if (sortOrder == Order.REGION_ASC) {\n\n sortOrder = Order.REGION_DESC;\n\n } else if (sortOrder == Order.REGION_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.REGION_ASC;\n\n }\n\n updateOrderButtons();\n\n }", "@Override\r\n\t\tpublic ArrayList<Component> getFocusOrderList() {\n\t\t\treturn null;\r\n\t\t}", "boolean isOrderable();", "private void initControls() {\r\n\r\n _preferences = PreferenceManager.getDefaultSharedPreferences(_view.getContext());\r\n\r\n final ImageButton imgbtnClose = (ImageButton) _view.findViewById(R.id.imgbtnClose);\r\n imgbtnClose.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n dismiss();\r\n }\r\n });\r\n imgbtnClose.setOnLongClickListener(new View.OnLongClickListener() {\r\n @Override\r\n public boolean onLongClick(View v) {\r\n Utils.UI.showInformationToast(imgbtnClose, R.string.general_btn_close);\r\n return true;\r\n }\r\n });\r\n\r\n final Button btnOK = (Button) _view.findViewById(R.id.btnOK);\r\n btnOK.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n if (_listener != null)\r\n _listener.onPositiveResult((_sorts != null ? _sorts[_sortSelectedIndex] : null), _isSortAscending, (_filters != null ? _filterSelection : null));\r\n\r\n SharedPreferences.Editor editor = _preferences.edit();\r\n if (_sorts != null) {\r\n editor.putInt(_key + SORT_SELECTED_INDEX_KEY, _sortSelectedIndex);\r\n editor.putBoolean(_key + SORT_IS_ASC_KEY, _isSortAscending);\r\n }\r\n if (_filters != null) {\r\n editor.putString(_key + FILTER_SELECTION_KEY, Utils.Strings.fromList(_filterSelection));\r\n }\r\n editor.apply();\r\n\r\n dismiss();\r\n }\r\n });\r\n\r\n //region Sort by...\r\n\r\n // Checks if sort is enabled:\r\n if (_sorts != null) {\r\n _view.findViewById(R.id.llSortBy).setVisibility(View.VISIBLE);\r\n\r\n _rgSortBy = (RadioGroup) _view.findViewById(R.id.rgSortBy);\r\n _rgSortBy.setOnCheckedChangeListener(this);\r\n // Populates the radio buttons from the sorts list:\r\n for (int i = 0; i < _sorts.length; i++) {\r\n AppCompatRadioButton rbSort = new AppCompatRadioButton(_view.getContext());\r\n rbSort.setId(i);\r\n rbSort.setTextColor(Color.parseColor(\"#cccccc\"));\r\n rbSort.setHighlightColor(Utils.Colors.ACCENT);\r\n rbSort.setTextSize(COMPLEX_UNIT_SP, 16);\r\n rbSort.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));\r\n rbSort.setPadding(25, 25, 25, 25);\r\n rbSort.setText(_sorts[i].getName());\r\n _rgSortBy.addView(rbSort);\r\n }\r\n\r\n _spinnerSortOrder = (Spinner) _view.findViewById(R.id.spinnerSortOrder);\r\n _adapter = new ArrayAdapter<>(_view.getContext(), R.layout.spinner_item);\r\n _adapter.setDropDownViewResource(R.layout.spinner_dropdown_item);\r\n _spinnerSortOrder.setAdapter(_adapter);\r\n _spinnerSortOrder.setOnItemSelectedListener(this);\r\n\r\n // Checks the selected sort state from the SharedPreferences:\r\n _sortSelectedIndex = _preferences.getInt(_key + SORT_SELECTED_INDEX_KEY, _sortSelectedIndex);\r\n _isSortAscending = _preferences.getBoolean(_key + SORT_IS_ASC_KEY, _isSortAscending);\r\n\r\n // Performs the initialization to the UI:\r\n _rgSortBy.check(_sortSelectedIndex);\r\n _spinnerSortOrder.setSelection((_isSortAscending ? 0 : 1), true);\r\n } else {\r\n _view.findViewById(R.id.llSortBy).setVisibility(View.GONE);\r\n }\r\n\r\n //endregion\r\n\r\n //region Filter by...\r\n\r\n // Checks if filter is enabled:\r\n if (_filters != null) {\r\n _view.findViewById(R.id.llFilterBy).setVisibility(View.VISIBLE);\r\n\r\n _filtersChecks = new AppCompatCheckBox[_filters.length];\r\n\r\n // Populates the checkboxes from the filters list:\r\n LinearLayout llFilters = (LinearLayout) _view.findViewById(R.id.llFilters);\r\n for (int i = 0; i < _filters.length; i++) {\r\n AppCompatCheckBox chkFilter = new AppCompatCheckBox(_view.getContext());\r\n chkFilter.setId(i);\r\n chkFilter.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));\r\n chkFilter.setTextColor(Color.parseColor(\"#cccccc\"));\r\n chkFilter.setTextSize(COMPLEX_UNIT_SP, 16);\r\n chkFilter.setPadding(25, 25, 25, 25);\r\n chkFilter.setText(_filters[i]);\r\n chkFilter.setOnCheckedChangeListener(this);\r\n llFilters.addView(chkFilter);\r\n _filtersChecks[i] = chkFilter;\r\n }\r\n\r\n // Checks the filter selection to initial from the SharedPreferences:\r\n String filtersStr = _preferences.getString(_key + FILTER_SELECTION_KEY, null);\r\n if (filtersStr != null) {\r\n _filterSelection = Utils.Strings.toList(filtersStr);\r\n\r\n // Performs the initialization to the UI:\r\n for (CheckBox checkBox : _filtersChecks) {\r\n if (_filterSelection.contains(checkBox.getText().toString()))\r\n checkBox.setChecked(true);\r\n }\r\n }\r\n } else {\r\n _view.findViewById(R.id.llFilterBy).setVisibility(View.GONE);\r\n Utils.UI.setMargins(_view.findViewById(R.id.llSortBy), 0, 0, 0, 0);\r\n }\r\n\r\n //endregion\r\n\r\n }", "@Override\n\tpublic boolean PlaceOrder(Order order) {\n\t\treturn false;\n\t}", "boolean isIsOrdered();", "boolean isOrderCertain();", "private void checkListOrder(String[] sortedList, Collator c) {\n for (int i = 0; i < sortedList.length - 1; i++) {\n if (c.compare(sortedList[i], sortedList[i + 1]) >= 0) {\n errln(\"List out of order at element #\" + i + \": \"\n + sortedList[i] + \" >= \"\n + sortedList[i + 1]);\n }\n }\n }", "boolean isOrdered();", "boolean isOrdered();", "@Override\r\n public boolean isSortable(Object obj) {\r\n if (obj == null || obj instanceof ArrayList<?>) return true;\r\n return false;\r\n }", "@Override\n public void valueChanged(ListSelectionEvent e) {\n if (!strategyList.isSelectionEmpty())\n playButton.setEnabled(true);\n }", "boolean hasGroupPlacementView();", "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreNotYetImplemented.class)\r\n public void testSelectedIndicesAfterSort() {\r\n int first = 0;\r\n int last = items.size() -1;\r\n getSelectionModel().select(first);\r\n Comparator comparator = new TreeItemComparator();\r\n FXCollections.sort(items, comparator);\r\n assertEquals(1, getSelectedIndices().size());\r\n assertEquals(last, getSelectedIndices().get(0).intValue());\r\n }", "public boolean elementsAreAlphaUpSortedMorningCoffee(List<WebElement> elements){\n By multipleFirstResult = By.xpath(\"//div//h2//..//div[1]\");\n By test = By.xpath(\"//div[contains(@class,'footer-content')]\");\n\n\n boolean sortedWell = true;\n for (int i=0; i<elements.size()-1; i++){\n\n String frontElement = elements.get(i+1).getText();\n String backElement = elements.get(i).getText();\n\n if(frontElement.contains(\"Multiple\")){\n findElement(test);\n (elements.get(i+1)).click();\n waitForElementToAppear(multipleFirstResult);\n frontElement = findElement(multipleFirstResult).getText();\n\n // Sometimes multipleFirstResult returns nothing so we run a loop to try again 10 times until text is returned.\n for (int k = 0; k < 9; k++)\n {\n if (frontElement.equalsIgnoreCase(\"\")){\n (elements.get(i+1)).click();\n waitForElementToAppear(multipleFirstResult);\n frontElement = findElement(multipleFirstResult).getText();\n }\n else\n {\n break;\n }\n }\n clickCoordinate(searchBar,10,10);\n pause(500);\n }\n\n if(backElement.contains(\"Multiple\")){\n findElement(test);\n (elements.get(i)).click();\n waitForElementToAppear(multipleFirstResult);\n backElement = findElement(multipleFirstResult).getText();\n\n // Sometimes multipleFirstResult returns nothing so we run a loop to try again 10 times until text is returned.\n for (int k = 0; k < 9; k++)\n {\n if (backElement.equalsIgnoreCase(\"\")){\n (elements.get(i)).click();\n waitForElementToAppear(multipleFirstResult);\n backElement = findElement(multipleFirstResult).getText();\n }\n else\n {\n break;\n }\n }\n\n clickCoordinate(searchBar,10,10);\n pause(500);\n }\n\n if (frontElement.compareTo(backElement) < 0){\n System.out.println(\"MIS-SORT: Ascending: '\"+frontElement+\"' should not be after '\"+backElement+\"'\");\n sortedWell = false;\n }\n }\n return sortedWell;\n }", "boolean hasMoveSortNo();", "public void isPickingUpPowerup(Player player) {\n if (player.getActivePowerup() == null) {\n for (Powerup powerup : powerups) {\n if (powerup.getBoundsInParent().intersects(player.getBoundsInParent())) {\n player.setActivePowerup(powerup);\n fieldPane.getChildren().remove(powerup);\n cleanup.add(powerup);\n }\n }\n }\n }", "public boolean getCanPickupItems ( ) {\n\t\treturn extract ( handle -> handle.getCanPickupItems ( ) );\n\t}", "@Test (priority = 1)\n public void sortAlphabetical(){\n\n for (int i = 0; i < allDepartments.getOptions().size()-1; i++) {\n String current = allDepartments.getOptions().get(i).getText();\n String next = allDepartments.getOptions().get(i+1).getText();\n\n System.out.println(\"comparing: \" + current + \" with \"+ next);\n\n Assert.assertTrue(current.compareTo(next)<=0);\n\n }\n }", "protected void cmbChoicesActionPerformed() {\n\t\tif (!updateLock) {\n\t\t\ttry {\n\t\t\t\tenumPositioner.moveTo(cmbChoices.getSelectedItem());\n\t\t\t} catch (DeviceException e) {\n\t\t\t\tlogger.error(\"device exception while trying to move \" + enumPositionerName + \" to \"\n\t\t\t\t\t\t+ (String) cmbChoices.getSelectedItem() + \": \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "private void displaySortBox() {\n if (playlistIsRunning) {\n if (currentPlaylistPanel.getPlayListSongs().size() >= 2)\n sortPart.showSortBox();\n else\n sortPart.removeSortBox();\n } else\n sortPart.removeSortBox();\n GUIFrame.reload();\n }", "public boolean errorOutOfOrderIsDisplayed() {\n return isDisplayed(errorDisplayedLabel);\n }", "private void doMoveIfPossible() {\r\n if (selected != null) {\r\n if (picked != null) {\r\n if (picked.doMove(selected.getX(), selected.getY())) {\r\n client1.write(ClientMessages.Move, picked.getPositionInArray(), selected.getX(), selected.getY());\r\n client2.write(ClientMessages.Move, picked.getPositionInArray(), selected.getX(), selected.getY());\r\n }\r\n if (picked.doCapture(selected.getX(), selected.getY())) {\r\n client1.write(ClientMessages.Capture, picked.getPositionInArray(), selected.getX(), selected.getY());\r\n client2.write(ClientMessages.Capture, picked.getPositionInArray(), selected.getX(), selected.getY());\r\n }\r\n CastlingMove castl;\r\n if (picked.getClass() == King.class && ((King) picked).doCastling(castl = getCastlingMove())) {\r\n client1.write(ClientMessages.Castling, castl.getRook().getPositionInArray(), castl.getRookX(), selected.getX());\r\n client2.write(ClientMessages.Castling, castl.getRook().getPositionInArray(), castl.getRookX(), selected.getX());\r\n }\r\n }\r\n }\r\n }", "public boolean isPickable() {\n return false;\n }", "public boolean isSortedAscending() {\n\t\treturn iconLabel.getIcon() == UP_ICON;\n\t}", "private void shuffleButtons()\n {\n int index=(int)(Math.random()*3);\n if (index==1)\n {\n a.setBounds(350,500,a.getPreferredSize().height+80,30);\n b.setBounds(200,500,b.getPreferredSize().height+80,30);\n c.setBounds(500,500,c.getPreferredSize().height+80,30);\n }\n else if (index==2)\n {\n a.setBounds(500,500,a.getPreferredSize().height+80,30);\n c.setBounds(200,500,c.getPreferredSize().height+80,30);\n b.setBounds(350,500,b.getPreferredSize().height+80,30);\n }\n else\n {\n a.setBounds(200,500,a.getPreferredSize().height+80,30);\n b.setBounds(350,500,b.getPreferredSize().height+80,30);\n c.setBounds(500,500,c.getPreferredSize().height+80,30);\n }\n }", "public void showSortDialog() {\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);\n LayoutInflater inflater = this.getLayoutInflater();\n View dialogView = inflater.inflate(R.layout.dialog_sort, null);\n dialogBuilder.setView(dialogView);\n\n// final Spinner spinner2 = (Spinner) dialogView.findViewById(R.id.spinner_sort_secondary);\n\n // Set initial spinner selection\n final Spinner spinner1 = (Spinner) dialogView.findViewById(R.id.spinner_sort_primary);\n String[] sortFields = getResources().getStringArray(R.array.pref_sort_field_values);\n int sortFieldIndex = -1;\n for (int i = 0; i < sortFields.length; i++) {\n if (sortFields[i].equalsIgnoreCase(prefs.getString(KEY_SORT_FIELD, \"name\"))) {\n sortFieldIndex = i;\n break;\n }\n }\n\n if (sortFieldIndex >= 0) {\n spinner1.setSelection(sortFieldIndex);\n } else {\n spinner1.setSelection(0); // Default to event name\n }\n\n // Set initial sort order image from preferences\n final ImageButton ib1 = (ImageButton) dialogView.findViewById(R.id.image_button_1);\n if (prefs.getBoolean(KEY_SORT_ORDER_ASCENDING, true)) {\n ib1.setImageDrawable(getDrawable(R.drawable.ic_action_sort_ascending));\n } else {\n ib1.setImageDrawable(getDrawable(R.drawable.ic_action_sort_descending));\n }\n\n // Switch order on click\n ib1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (prefs.getBoolean(KEY_SORT_ORDER_ASCENDING, true)) {\n // Currently set as ascending, so switch to descending\n setBooleanPreference(KEY_SORT_ORDER_ASCENDING, false);\n ib1.setImageDrawable(getDrawable(R.drawable.ic_action_sort_descending));\n } else {\n // Currently set as descending, so switch to ascending\n setBooleanPreference(KEY_SORT_ORDER_ASCENDING, true);\n ib1.setImageDrawable(getDrawable(R.drawable.ic_action_sort_ascending));\n }\n }\n });\n\n // Sort order - button 2\n// final ImageButton ib2 = (ImageButton) dialogView.findViewById(R.id.image_button_2);\n//\n// if (prefs.getBoolean(SORT_SECONDARY_KEY, true)) {\n// ib2.setImageDrawable(getDrawable(R.drawable.ic_action_sort_ascending));\n// } else {\n// ib2.setImageDrawable(getDrawable(R.drawable.ic_action_sort_descending));\n// }\n//\n// ib2.setOnClickListener(new View.OnClickListener() {\n// @Override\n// public void onClick(View view) {\n// if (prefs.getBoolean(SORT_SECONDARY_KEY, true)) {\n// // Currently set as ascending, so switch to descending\n// setBooleanPreference(SORT_SECONDARY_KEY, false);\n// ib2.setImageDrawable(getDrawable(R.drawable.ic_action_sort_descending));\n// } else {\n// // Currently set as descending, so switch to ascending\n// setBooleanPreference(SORT_SECONDARY_KEY, true);\n// ib2.setImageDrawable(getDrawable(R.drawable.ic_action_sort_ascending));\n// }\n// }\n// });\n\n dialogBuilder.setTitle(getResources().getString(R.string.pref_title_sort_field));\n dialogBuilder.setPositiveButton(\"Sort\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n // Get spinner position and set sort preference to corresponding value\n int spinnerPosition = spinner1.getSelectedItemPosition();\n setStringPreference(KEY_SORT_FIELD, getResources()\n .getStringArray(R.array.pref_sort_field_values)[spinnerPosition]);\n\n // Update data\n prepareData();\n }\n });\n dialogBuilder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n // Pass\n }\n });\n AlertDialog b = dialogBuilder.create();\n b.show();\n }", "@Test\n public void shouldTestIsReorderValidWithUnbreakableFromNonGroupedRight() {\n this.gridLayer.setClientAreaProvider(new IClientAreaProvider() {\n\n @Override\n public Rectangle getClientArea() {\n return new Rectangle(0, 0, 1600, 250);\n }\n\n });\n this.gridLayer.doCommand(new ClientAreaResizeCommand(new Shell(Display.getDefault(), SWT.V_SCROLL | SWT.H_SCROLL)));\n\n // remove first group\n this.rowGroupHeaderLayer.removeGroup(0);\n\n // set all remaining groups unbreakable\n this.rowGroupHeaderLayer.setGroupUnbreakable(4, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(8, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(11, true);\n\n // reorder outside group valid\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 4, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 4, true));\n // in same group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 6, 7, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 7, 4, true));\n // in same group where adjacent group is also unbreakable\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 4, 8, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 10, 8, true));\n // to any other group\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 5, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 6, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 1, 9, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 2, 13, true));\n // to start of table\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 0, true));\n // to end of last group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 13, false));\n // between unbreakable groups\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 8, true));\n }", "public boolean isDisplayed_txt_Pick_Up_Text(){\r\n\t\tif(txt_Pick_Up_Text.isDisplayed()) { return true; } else { return false;} \r\n\t}", "private static void updateOrderButtons(boolean orderByArtist, boolean orderByAlbum, boolean orderByYear)\n {\n JSoundsMainWindowViewController.orderByAlbum.setSelected(false);\n JSoundsMainWindowViewController.orderByArtist.setSelected(false);\n JSoundsMainWindowViewController.orderByYear.setSelected(false);\n \n if (orderByAlbum)\n {\n JSoundsMainWindowViewController.orderByAlbum.setSelected(true);\n JSoundsMainWindowViewController.orderByArtist.setSelected(false);\n JSoundsMainWindowViewController.orderByYear.setSelected(false);\n }\n else if (orderByArtist)\n {\n JSoundsMainWindowViewController.orderByAlbum.setSelected(false);\n JSoundsMainWindowViewController.orderByArtist.setSelected(true);\n JSoundsMainWindowViewController.orderByYear.setSelected(false);\n }\n else if (orderByYear)\n {\n JSoundsMainWindowViewController.orderByAlbum.setSelected(false);\n JSoundsMainWindowViewController.orderByArtist.setSelected(false);\n JSoundsMainWindowViewController.orderByYear.setSelected(true);\n }\n }", "@Override\n \t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t\t\t\tList<Pair<Text, Button>> texts = inputFields.get(fp);\n \t\t\t\ttexts.remove(pair);\n \t\t\t\tupdateState();\n \t\t\t\tremoveButton.dispose();\n \t\t\t\ttext.dispose();\n\t\t\t\taddButtons.get(fp).setEnabled(true);\n \t\t\t\tif (texts.size() == fp.getMinOccurrence())\n \t\t\t\t\tfor (Pair<Text, Button> otherPair : texts)\n \t\t\t\t\t\totherPair.getSecond().setEnabled(false);\n \n \t\t\t\t// do layout\n \t\t\t\t((Composite) getControl()).layout();\n \t\t\t\t// pack to make wizard smaller if possible\n \t\t\t\tgetWizard().getShell().pack();\n \t\t\t}", "private void cbOrdonariActionPerformed(java.awt.event.ActionEvent evt) { \n if (cbOrdonari.getSelectedIndex() == 0) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_NUME);\n }\n if (cbOrdonari.getSelectedIndex() == 1) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_PRENUME);\n }\n if (cbOrdonari.getSelectedIndex() == 2) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_DATA_NASTERII);\n }\n if (cbOrdonari.getSelectedIndex() == 3) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_NUMAR_TELEFON);\n }\n }", "boolean wasShownBefore(MultiViewElement element) {\n return shownElements.contains(element);\n }", "@FXML\n private void updateNameOrder(ActionEvent event) {\n\n if (sortOrder == Order.NAME_ASC) {\n\n sortOrder = Order.NAME_DESC;\n\n } else if (sortOrder == Order.NAME_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.NAME_ASC;\n\n }\n\n updateOrderButtons();\n\n }", "@Test\r\n public void testPickOrder() throws Exception\r\n {\r\n String epcToCheck = \"urn:epc:id:sgtin:0614141.107341.1\";\r\n XmlObjectEventType event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n Assert.assertNull(event);\r\n\r\n runCaptureTest(PICK_ORDER_XML);\r\n\r\n event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n assertNotNull(event);\r\n }", "public String verifyDropDownListElementsInSorted(String object, String data) {\n\t\ttry {\n\n\t\t\tWebElement select = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object))));\n\t\t\tselect.click();\n\t\t\tboolean flag = false;\n\t\t\tList<WebElement> options = driver.findElements(By.xpath(OR.getProperty(object) + OR.getProperty(\"OPTION_TAG_DISPLAY\"))); // Modified By Karan\n\t\t\tList<String> actual_list = new ArrayList<String>();\n\t\t\tList<String> sortedlist = new ArrayList<String>();\n\t\t\tfor (int i = 0; i < options.size(); i++) {\n\t\t\t\tString name = options.get(i).getText();\n\t\t\t\tactual_list.add(name);\n\t\t\t\tsortedlist.add(name);\n\t\t\t}\n\t\t\tCollections.sort(sortedlist, String.CASE_INSENSITIVE_ORDER);\n\t\t\tlogger.debug(\"Actual List = \" + actual_list ); // Modified By Karan\n\t\t\tlogger.debug(\"Sorted List = \" + sortedlist );\t// Modified By Karan\n\t\t\tfor (int i = 0; i < sortedlist.size(); i++) {\n\t\t\t\tif (sortedlist.get(i).equals(actual_list.get(i))) {\n\t\t\t\t\tflag = true;\n\t\t\t\t} else {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag)\n\t\t\t\treturn Constants.KEYWORD_PASS + \"--elements in drop down are in sorted order\";\n\t\t\telse\n\t\t\t\treturn Constants.KEYWORD_FAIL + \"--elements are not in sorted order\";\n\t\t} \n\t\tcatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + e.getLocalizedMessage();\n\t\t}\n\t}", "private void initControlList() {\n this.controlComboBox.addItem(CONTROL_PANELS);\n //this.controlComboBox.addItem(PEER_TEST_CONTROL);\n //this.controlComboBox.addItem(DISAGGREGATION_CONTROL);\n this.controlComboBox.addItem(AXIS_CONTROL);\n this.controlComboBox.addItem(DISTANCE_CONTROL);\n this.controlComboBox.addItem(SITES_OF_INTEREST_CONTROL);\n this.controlComboBox.addItem(CVM_CONTROL);\n this.controlComboBox.addItem(X_VALUES_CONTROL);\n }", "public boolean isAddVehiclesSideBarPresent() {\r\n\t\treturn isElementPresent(groupListSideBar.replace(\"Group List\", \"Add Vehicle\"), SHORTWAIT);\r\n\t}", "@When(\"^Sort By dropdown box appeared and selected option$\")\n\tpublic void sort_By_dropdown_box_appeared_and_selected_option() throws Throwable {\n\t\tSelect product = new Select(driver.findElement(By.xpath(\"//*[@id=\\\"selectProductSort\\\"]\")));\n\t\tproduct.selectByVisibleText(\"Product Name: A to Z\");\n\t}", "public boolean canBecombo(){\n \treturn price <5;\n }", "public void validate_GrocerySubOption_NotDisplay() {\n List<WebElement> list = getDriver().findElements(By.name(\"substitution\"));\n Assert.assertTrue(\"=== Grocery Substitution Option Field Not Present!\", list.size() == 0);\n }", "public void createControl(Composite parent) \r\n\t{\r\n\t\tComposite container = new Composite(parent, SWT.NONE);\r\n\r\n\t\tsetControl(container);\r\n\t\t\r\n\t\tSelectionAdapter listener1 = new SelectionAdapter() {\r\n\t public void widgetSelected(SelectionEvent e) {\r\n\t \t if (btnFirstOption.getSelection()){\r\n\t \t\t btnSecondOption.setSelection(false);\r\n\t \t\t btnThirdOption.setSelection(false);\r\n\t \t }\t \t \r\n\t }\r\n\t };\r\n\t SelectionAdapter listener2 = new SelectionAdapter() {\r\n\t \tpublic void widgetSelected(SelectionEvent e) {\r\n\t \t\tif (btnSecondOption.getSelection()){\r\n\t\t \t\t btnFirstOption.setSelection(false);\r\n\t\t \t }\r\n\t \t\tif (btnThirdOption.getSelection()){\r\n\t\t \t\t btnFirstOption.setSelection(false);\r\n\t\t \t } \r\n\t \t}\r\n\t };\r\n\t \r\n\t\tbtnFirstOption = new Button(container, SWT.CHECK);\r\n\t\tbtnFirstOption.setBounds(10, 10, 20, 59);\r\n\t\tbtnFirstOption.addSelectionListener(listener1);\r\n\t\t\r\n\t\tbtnSecondOption = new Button(container, SWT.CHECK | SWT.WRAP);\r\n\t\tbtnSecondOption.setBounds(10, 75, 20, 85);\r\n\t\tbtnSecondOption.addSelectionListener(listener2);\r\n\t\t\r\n\t\tbtnThirdOption = new Button(container, SWT.CHECK | SWT.WRAP);\r\n\t\tbtnThirdOption.setBounds(292, 75, 20, 85);\r\n\t\tbtnThirdOption.addSelectionListener(listener2);\r\n\t\t\r\n\t\tyesList = new List(container,SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);\r\n\t\tyesList.setBounds(36, 166, 224, 106);\r\n\t\t\r\n\t\tfor(Property p: hetColl.getMemberEnds())\r\n\t\t{\t\t\r\n\t\t\tType type = p.getType();\r\n\t\t\tyesList.add(getStereotype(type)+\" \"+type.getName());\t\t\t\r\n\t\t}\r\n\t\tyesList.setSelection(0);\r\n\t\t\r\n\t\tbtnArrowRight = new Button(container, SWT.NONE);\r\n\t\tbtnArrowRight.setBounds(266, 181, 40, 25);\r\n\t\tbtnArrowRight.setText(\"->\");\r\n\t\tbtnArrowRight.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\tfor(String str: yesList.getSelection()){\r\n\t\t\t\t\tif(!contains(noList,str)) { noList.add(str); noList.select(noList.indexOf(str)); } \r\n\t\t\t\t}\r\n\t\t\t\tif(yesList.getSelectionIndex()>=0) { \r\n\t\t\t\t\tint prev = yesList.getSelectionIndex()-1;\r\n\t\t\t\t\tyesList.remove(yesList.getSelectionIndex());\r\n\t\t\t\t\tyesList.select(prev); \r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnArrowLeft = new Button(container, SWT.NONE);\r\n\t\tbtnArrowLeft.setBounds(266, 212, 40, 25);\r\n\t\tbtnArrowLeft.setText(\"<-\");\r\n\t\tbtnArrowLeft.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\tfor(String str: noList.getSelection()){\r\n\t\t\t\t\tif(!contains(yesList,str)) { yesList.add(str); yesList.select(yesList.indexOf(str)); } \r\n\t\t\t\t}\r\n\t\t\t\tif(noList.getSelectionIndex()>=0) {\r\n\t\t\t\t\tint prev = noList.getSelectionIndex()-1;\r\n\t\t\t\t\tnoList.remove(noList.getSelectionIndex());\r\n\t\t\t\t\tnoList.select(prev);\t\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\tnoList = new List(container, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);\r\n\t\tnoList.setBounds(318, 166, 224, 106);\r\n\t\t\r\n\t\tlblFirstOption = new Text(container, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tlblFirstOption.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tlblFirstOption.setBounds(36, 10, 506, 59);\t\t\r\n\t\tlblFirstOption.setText(hetColl.getWhole().getName()+\" is a functional complex and all partOf relations are stereotyped as «componentOf»\");\r\n\t\t\r\n\t\tlblSecondOption = new Text(container, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tlblSecondOption.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tlblSecondOption.setBounds(36, 75, 224, 85);\r\n\t\tlblSecondOption.setText(\"New Label\");\r\n\t\tlblSecondOption.setText(\"The parts are also collectives and their respective relations are stereotyped as «subCollectionOf»\");\r\n\t\t\r\n\t\tlblThirdOption = new Text(container, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tlblThirdOption.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tlblThirdOption.setBounds(318, 75, 224, 85);\r\n\t\tlblThirdOption.setText(\"There is a new type, named MemberPart, which is the super-type of all parts and is connected to \"+hetColl.getWhole().getName()+\" through a single «memberOf» relation. In addition, all other partOf relations are deleted.\");\r\n\t}", "private boolean CheckParkSelection() {\n\t\tif (Park_ComboBox.getSelectionModel().isEmpty()) {\n\t\t\tif (!Park_ComboBox.getStyleClass().contains(\"error\"))\n\t\t\t\tPark_ComboBox.getStyleClass().add(\"error\");\n\t\t\tParkNote.setText(\"* Select park\");\n\t\t\treturn false;\n\t\t}\n\t\tPark_ComboBox.getStyleClass().remove(\"error\");\n\t\tParkNote.setText(\"*\");\n\t\treturn true;\n\t}", "private static void checkCollisions(MyButton button){\r\n for(MyButton b : mylist.getAllButtons()){\r\n if(!button.equals(b)){ \r\n if(b.block.isSameType(button.block)){\r\n b.setCannotBeChosen();\r\n }\r\n }\r\n }\r\n }", "public void verifyUIElements(){\r\n\t\t\tisClickable(Txt_HomePage_Search);\r\n\t\t\tisClickable(Btn_HomePage_Search);\r\n\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 chooseList = new javax.swing.JList();\n jScrollPane2 = new javax.swing.JScrollPane();\n chosenList = new javax.swing.JList();\n removeChosenBt = new javax.swing.JButton();\n addChosen = new javax.swing.JButton();\n propTitle = new javax.swing.JLabel();\n chooseLabel = new javax.swing.JLabel();\n chosenLabel = new javax.swing.JLabel();\n\n chooseList.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n chooseList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jScrollPane1.setViewportView(chooseList);\n\n chosenList.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n chosenList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n chosenList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n chosenListValueChanged(evt);\n }\n });\n chosenList.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n chosenListFocusLost(evt);\n }\n });\n jScrollPane2.setViewportView(chosenList);\n\n removeChosenBt.setText(\"<\");\n removeChosenBt.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n removeChosenBtMousePressed(evt);\n }\n });\n\n addChosen.setText(\">\");\n addChosen.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n addChosenMousePressed(evt);\n }\n });\n\n chooseLabel.setText(\"Choose:\");\n\n chosenLabel.setText(\"Chosen:\");\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 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(propTitle)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(removeChosenBt, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)\n .addComponent(addChosen, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE))))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(chooseLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 233, Short.MAX_VALUE)\n .addComponent(chosenLabel)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\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 .addComponent(propTitle)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)\n .addComponent(chooseLabel))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(chosenLabel)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(15, 15, 15))\n .addGroup(layout.createSequentialGroup()\n .addComponent(addChosen)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 23, Short.MAX_VALUE)\n .addComponent(removeChosenBt)\n .addContainerGap())))\n );\n }", "private void addFinalBtn() {\n if(audioList.isSelectionEmpty()) {\n JOptionPane.showMessageDialog(null, \"Please select an audio from audio list\");\n }\n else {\n String filename = (String)audioList.getSelectedValue();\n if (finalListModel.size() < order.getItemCount())\n if(finalListModel.size() < order.getSelectedIndex())\n JOptionPane.showMessageDialog(null, \"Sorry, try to pick the previous buttons first\");\n else {\n if (finalListModel.contains(filename))\n JOptionPane.showMessageDialog(null, \"Sorry the item already exists\");\n else\n finalListModel.add(order.getSelectedIndex(), filename);\n }\n else\n JOptionPane.showMessageDialog(null, \"Sorry you have exceeded the \" +\n \"number of available buttons, please add a new button, then try.\");\n }\n }", "@Override\n public void onViewPicks() {\n\n // if mPickFragments aren't there, do nothing\n if (mPickFragments == null || mPickFragments.size() == 0) {\n return;\n }\n\n moveToFragment(mPosResults);\n\n }", "public void ordenarXPuntajeSeleccion() {\r\n\t\tfor (int i = 0; i < datos.size()-1; i++) {\r\n\t\t\tJugador menor = datos.get(i);\r\n\t\t\tint cual = i;\r\n\t\t\tfor (int j = i + 1; j < datos.size(); j++ ) {\r\n\t\t\t\tif(datos.get(j).compareTo(menor) < 0) {\r\n\t\t\t\t\tmenor = datos.get(j);\r\n\t\t\t\t\tcual = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tJugador temp = datos.get(i);\r\n\t\t\tdatos.set(i, menor);\r\n\t\t\tdatos.set(cual, temp);\r\n\t\t}\r\n\t}", "@Override\n public void OnOkButtonPressed(OrderDetail detail) {\n orderListAdpater.addOrderDetail(detail);\n orderListAdpater.setSelectedIndex(orderListAdpater.getCount() - 1);\n orderList.setSelection(orderListAdpater.getCount());\n\n// if (orderListAdpater.orderDetailList.size() == 1) {\n orderListAdpater.notifyDataSetChanged();\n// }\n onOrderUpdate();\n\n }", "private static <T extends Comparable <? super T>> boolean isSorted (List <T> list){\r\n\t\tT prev = list.get(0); // 1\r\n\t\tfor (T item : list){ //n\r\n\t\t\tif (item.compareTo(prev) < 0) return false;\r\n\t\t\tprev = item;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public void startOrder() {\n\t\tDeck tempDeck = new Deck();\n\t\tArrayList<Player> highPlayerList = new ArrayList<Player>();\n\t\tStrategy3 testPlayer = new Strategy3();\n\t\tint temp = 0;\n\t\tfor (Player p : this.playerList) {\n\t\t\ttemp++;\n\t\t\tp.hand.add(tempDeck.dealTile());\n\t\t}\n\t\t\n\t\twhile (playerList.isEmpty() == false) {\t\n\t\t\tPlayer min = playerList.get(0);\n\t\t\tfor(Player i : playerList) {\n\t\t\t\tif (i.getHandValue() > min.getHandValue()) {min = i;}\n\t\t\t}\n\t\t\thighPlayerList.add(min);\n\t\t\tplayerList.remove(min);\n\t\t}\n\t\tthis.playerList = highPlayerList;\t\n\t\ttemp = 0; \n\t\tfor(Player p : this.playerList) {\n\t\t\ttemp++;\n\t\t}\n\t\t\n\t\tfor (Player p : playerList) {\n\t\t\tp.hand.clear();\n\t\t}\t\t\n\t}", "public void checkDefaultData() {\n mListForCurrencyDialog.clear();\n mListForOrganizationsDialog.clear();\n\n mPositionOfCurInList = -1;\n mPositionOfOrgInList = -1;\n for (int i = 0; i < mMainListForActions.size(); i++) {\n if (mMainListForActions.get(i).getCurrency().getShortTitle().toUpperCase().equals(mCurrencyShortForm)) {\n mPositionOfCurInList = i;\n List<OrganizationsEntity> org = mMainListForActions.get(i).getOrganizations();\n for (int j = 0; j < org.size(); j++) {\n if (org.get(j).getId().equals(mOrganizationId)) {\n mPositionOfOrgInList = j;\n }\n }\n }\n mListForCurrencyDialog.add(new RecyclerViewDataDialogList(false,\n mMainListForActions.get(i).getCurrency().getTitleUkr(),\n mMainListForActions.get(i).getCurrency().getTitleRus(),\n mMainListForActions.get(i).getCurrency().getTitleEng()));\n }\n\n if (mPositionOfCurInList == -1) {\n mPositionOfCurInList = 0;\n mCurrencyShortForm = mMainListForActions.get(0).getCurrency().getShortTitle().toUpperCase();\n }\n if (mPositionOfOrgInList == -1) {\n mPositionOfOrgInList = 0;\n mOrganizationId = mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getId();\n }\n mPreferenceManager.setConverterCurrencyShortForm(mCurrencyShortForm);\n mPreferenceManager.setConverterOrganizationId(mOrganizationId);\n mListForCurrencyDialog.get(mPositionOfCurInList).setChecked(true);\n List<OrganizationsEntity> org = mMainListForActions.get(mPositionOfCurInList).getOrganizations();\n for (int i = 0; i < org.size(); i++) {\n boolean isChecked = false;\n if (mPositionOfOrgInList == i) {\n isChecked = true;\n }\n for (CurrenciesEntity cur : org.get(i).getCurrencies()) {\n if (cur.getShortTitle().toUpperCase().equals(mCurrencyShortForm)) {\n mListForOrganizationsDialog.add(new RecyclerViewDataDialogListOrganizations(isChecked,\n org.get(i), cur));\n }\n }\n }\n getPurchaseAndSaleValue(mPositionOfCurInList, mPositionOfOrgInList);\n }", "public void checkEnabled()\n {\n if(graph == null || graph.vertices.size() < 1)\n {\n removeJButton.setEnabled(false);\n removeJMenuItem.setEnabled(false);\n printJMenuItem.setEnabled(false);\n calculateJButton.setEnabled(false);\n findPathJMenuItem.setEnabled(false);\n bruteForceJRadioButton.setEnabled(true);\n bruteForceJRadioButtonMenuItem.setEnabled(true);\n }\n else if(graph.vertices.size() < 3)\n {\n removeJButton.setEnabled(true);\n removeJMenuItem.setEnabled(true);\n printJMenuItem.setEnabled(false);\n calculateJButton.setEnabled(false);\n findPathJMenuItem.setEnabled(false);\n bruteForceJRadioButton.setEnabled(true);\n bruteForceJRadioButtonMenuItem.setEnabled(true);\n }\n else if(graph.vertices.size() <= 5)\n {\n removeJButton.setEnabled(true);\n removeJMenuItem.setEnabled(true);\n printJMenuItem.setEnabled(true);\n calculateJButton.setEnabled(true);\n findPathJMenuItem.setEnabled(true);\n bruteForceJRadioButton.setEnabled(true);\n bruteForceJRadioButtonMenuItem.setEnabled(true);\n }\n else\n {\n if(bruteForceJRadioButton.isSelected())\n {\n nearestJRadioButton.setSelected(true);\n nearestNeighborJRadioButtonMenuItem.setSelected(true);\n methodJLabel.setText(\"Nearest Neighbor\");\n }\n printJMenuItem.setEnabled(true);\n removeJButton.setEnabled(true);\n removeJMenuItem.setEnabled(true);\n calculateJButton.setEnabled(true);\n findPathJMenuItem.setEnabled(true);\n bruteForceJRadioButton.setEnabled(false);\n bruteForceJRadioButtonMenuItem.setEnabled(false);\n }\n }", "public void checkSolution() {\r\n\t\tArrayList<Point> current = new ArrayList<>();\r\n\r\n for (JComponent btn : buttons) {\r\n current.add((Point) btn.getClientProperty(\"position\"));\r\n }\r\n\r\n if (compareList(solutions, current)) {\r\n \tJOptionPane.showMessageDialog(jf,\"You win!!!.\");\r\n \tSystem.exit(0);\r\n }\r\n\t}", "public SortPanel() {\n\t\t\t fs = new Font [3];\n\t\t\t fs[0] = new Font(\"Lato\", Font.BOLD, 36);\n\t\t\t fs[1] = new Font(\"Open Sans\", 0 , 20);\n\t\t\t fs[2] = new Font(\"Open Sans\", 0 , 12);\n\t\t\t enterCondB = new JButton(\"Sort Cities\");\n\t\t\t enterCityB = new JButton(\"Sort Conditions\");\n\t\t\t backB = new JButton(\"Return\");\n\t\t\t menuL = new JLabel (\"Sort Feature\");\n\t\t\t String [] cond = new String [8];\n\t\t\t dropDownCond = new JComboBox<String> (mainGui.getCond());\n\t\t\t dropDownCity = new JComboBox<String> (mainGui.getCities());\n\t\t\t tA = new JTextArea ();\n\t\t\t enterCondB.setFont(fs[1]);\n\t\t\t enterCityB.setFont(fs[1]);\n\t\t\t backB.setFont(fs[2]);\n\t\t\t menuL.setFont(fs[0]);\n\t\t\t dropDownCond.setPreferredSize(new Dimension( 200, 24 ));\n\t\t\t dropDownCity.setPreferredSize(new Dimension( 200, 24 ));\n\t\t\t tA.setEditable(false);\n\t\t\t \n\t\t\t // loads UI elements in view\n\t\t\t add(menuL, BorderLayout.PAGE_START);\n\t\t\t add(dropDownCond, BorderLayout.LINE_START);\n\t\t\t add(enterCondB, BorderLayout.CENTER);\n\t\t\t add(dropDownCity, BorderLayout.LINE_START);\n\t\t\t add(enterCityB, BorderLayout.CENTER);\t \n\t\t\t add(tA, BorderLayout.LINE_END);\n\t\t\t add(backB, BorderLayout.PAGE_END);\n\t\t\t //listens to sort by cond button to be pressed\n\t\t\t enterCondB.addActionListener( new ActionListener()\n\t\t\t {\n\t\t\t @Override\n\t\t\t public void actionPerformed(ActionEvent e)\n\t\t\t {\n\t\t\t \t City[] c = mainGui.cities;\n\t\t\t \t int n = dropDownCond.getSelectedIndex();\n\t\t\t \t Heapsort.sortHeap(c, c.length, n);\n\t\t\t \t for(int i = 0; i < c.length / 2; i++)\n\t\t\t \t {\n\t\t\t \t City temp = c[i];\n\t\t\t \t c[i] = c[c.length - i - 1];\n\t\t\t \t c[c.length - i - 1] = temp;\n\t\t\t \t }\n\t\t\t \t tA.setText(\"Cities sorted by occurence of \"+dropDownCond.getSelectedItem().toString()+\":\");\n\t\t\t \t for (int i = 0; i < c.length; i++)\n\t\t\t \t\t tA.append(\"\\n\"+c[i].getCity()+ \", \"+c[i].getCond(n));\n\t\t\t }\n\t\t\t });\n\t\t\t //listens to sort by city button to be pressed\n\t\t\t enterCityB.addActionListener( new ActionListener()\n\t\t\t {\n\t\t\t @Override\n\t\t\t public void actionPerformed(ActionEvent e)\n\t\t\t {\n\t\t\t \t String [] s = mainGui.getCond();\n\t\t\t \t int [] cond = mainGui.cities[dropDownCity.getSelectedIndex()].getCond();\n\t\t\t \t\t System.out.println(s.length+\", \"+cond.length);\n\t\t\t \t Heapsort2.sortHeap(s, cond, cond.length);\n\t\t\t \t for(int i = 0; i < s.length / 2; i++)\n\t\t\t \t {\n\t\t\t \t String temp = s[i];\n\t\t\t \t s[i] = s[s.length - i - 1];\n\t\t\t \t s[s.length - i - 1] = temp;\n\t\t\t \t int t = cond[i];\n\t\t\t \t cond[i] = cond[cond.length - i - 1];\n\t\t\t \t cond[cond.length - i - 1] = t;\n\t\t\t \t }\n\t\t\t \t tA.setText(\"Conditions sorted by occurence in \"+dropDownCity.getSelectedItem().toString()+\":\");\n\t\t\t \t for (int i = 0; i < s.length; i++)\n\t\t\t \t\t tA.append(\"\\n\"+s[i]+ \", \" +cond[i]);\n\t\t\t }\n\t\t\t });\n\t\t\t //listens to back button to be pressed\n\t\t\t backB.addActionListener( new ActionListener()\n\t\t\t {\n\t\t\t @Override\n\t\t\t public void actionPerformed(ActionEvent e)\n\t\t\t {\n\t\t\t //System.out.println(\"backB clicked\");\n\t\t\t mainGui.paneSwitch(0);\n\t\t\t }\n\t\t\t });\n\t\t }", "@Override\n\tpublic boolean addComboStrategy(ComboStrategyPO strategy) {\n\t\treturn false;\n\t}", "public void ordersToDoControl()\n\t{\n\t\tviewOrdersToDo = new OrdersToDoView();\n\t\ttry\n\t\t{\n\t\t\tArrayList<BookInformation> allBooks = adminModel.loadOrdersToDo();\n\t\t\tviewOrdersToDo.showTable(allBooks);\n\t\t}\n\t\tcatch(NullPointerException e)\n\t\t{\n\t\t\tviewOrdersToDo.showMessage(\"Blad polaczenia z baza : \"+ e);\n\t\t}\n\t\tcatch(SQLException e)\n\t\t{\n\t\t\tviewOrdersToDo.showMessage(\"Blad polaczenia z baza : \"+ e);\n\t\t}\n\t\tviewOrdersToDo.showMe();\n\t \n\t\tviewOrdersToDo.setMainMenuActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\tAdminController con = new AdminController(adminModel);\n\t\t\t\tcon.adminMainMenuControl();\n\t\t\t\tviewOrdersToDo.closeFrame();\t\n\n\t\t\t}\n\t\t});\n\t\tviewOrdersToDo.setMakeOrderActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tArrayList<Integer> ordersToDo = viewOrdersToDo.getSelectedOrders();\n\t\t\t\t\tfor(Integer id : ordersToDo)\n\t\t\t\t\t{\n\t\t\t\t\t\tadminModel.confirmOrder(id);\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tcatch(NullPointerException e)\n\t\t\t\t{\n\t\t\t\t\tviewOrdersToDo.showMessage(\"Blad polaczenia z baza : \"+ e);\n\t\t\t\t}\n\t\t\t\tcatch(SQLException e)\n\t\t\t\t{\n\t\t\t\t\tviewOrdersToDo.showMessage(\"Blad polaczenia z baza : \"+ e);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t}", "@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}", "@Test(priority = 8)\n\tpublic void validateSortingByRating() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.selectSortingDropdown(2, locator);\n\t\theroImg.validateStarRating(3, locator, validate);\n\t\tHeroImageProductPageFlow.selectSortingDropdown(3, locator);\n\t\theroImg.validateStarRating(4, locator, validate);\n\t\tlog.info(\"sorting is correct\");\n\t}", "boolean isColPlacementValid(List<Integer> colPlacement) {\n\t\tint lastRowIndex = colPlacement.size() - 1;\n\t\t\n\t\tfor (int i = 0; i < colPlacement.size() - 1; i++) {\n\t\t\tif (colPlacement.get(i) == colPlacement.get(lastRowIndex) || \n\t\t\t\t\tMath.abs(colPlacement.get(lastRowIndex) - colPlacement.get(i)) == lastRowIndex - i) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public synchronized void clkSortByDropdown() {\n\t\ttry {\n\t\t\tWebActionUtil.waitForElement(btnSortBy, \"Sort By\", 30);\n\t\t\tWebActionUtil.clickOnWebElement(btnSortBy, \"sort by\", \"Unable to click sort by drop down \");\n\t\t}\n\t\t catch (Exception e) \n\t\t{\n\t\t\t WebActionUtil.error(e.getMessage());\n\t\t\tWebActionUtil.error(\"Unable to click sort by\");\n\t\t\tAssert.fail(\"Unable to click sort by\");\n\t\t}\n\t}", "private void initializeDropBoxes(String[] sql, int selector)\n {\n if(selector == 1000)\n {\n //Gathers results from sql code\n String branchCodesS[] = processComboBox(sql[0]);\n String productBrandS[] = processComboBox(sql[1]);\n String productTypeS[] = processComboBox(sql[2]);\n \n //Builds combo Box based on sql result\n DefaultComboBoxModel model = new DefaultComboBoxModel(branchCodesS);\n dropBox1.setModel(model);\n model = new DefaultComboBoxModel(productBrandS);\n dropBox2.setModel(model);\n model = new DefaultComboBoxModel(productTypeS);\n dropBox3.setModel(model);\n \n //Controls which boxes are still active\n dropBox1.setEnabled(true);\n dropBox2.setEnabled(true);\n dropBox3.setEnabled(true);\n jButton1.setEnabled(true);\n }\n else\n {\n if(selector == 1001)\n {\n String branchCodesS[] = processComboBox(sql[0]);\n String productBrandS[] = processComboBox(sql[1]);\n String productTypeS[] = new String[1];\n productTypeS[0] = dropBox3.getSelectedItem().toString();\n dropBox3.setSelectedIndex(0);\n \n DefaultComboBoxModel model = new DefaultComboBoxModel(branchCodesS);\n dropBox1.setModel(model);\n model = new DefaultComboBoxModel(productBrandS);\n dropBox2.setModel(model);\n model = new DefaultComboBoxModel(productTypeS);\n \n dropBox3.setModel(model);\n dropBox1.setEnabled(true);\n dropBox2.setEnabled(true);\n dropBox3.setEnabled(false);\n }\n else\n {\n if(selector == 1010)\n {\n String branchCodesS[] = processComboBox(sql[0]);\n String productBrandS[] = new String[1];\n productBrandS[0] = dropBox2.getSelectedItem().toString();\n dropBox2.setSelectedIndex(0);\n String productTypeS[] = processComboBox(sql[2]);\n \n DefaultComboBoxModel model = \n new DefaultComboBoxModel(branchCodesS);\n dropBox1.setModel(model);\n model = new DefaultComboBoxModel(productBrandS);\n dropBox2.setModel(model);\n model = new DefaultComboBoxModel(productTypeS);\n \n dropBox3.setModel(model);\n dropBox1.setEnabled(true);\n dropBox2.setEnabled(false);\n dropBox3.setEnabled(true);\n \n }\n else\n {\n if(selector == 1011)\n {\n String branchCodesS[] = processComboBox(sql[0]);\n String productBrandS[] = new String[1];\n productBrandS[0] = \n dropBox2.getSelectedItem().toString();\n dropBox2.setSelectedIndex(0);\n String productTypeS[] = new String[1];\n productTypeS[0] = \n dropBox3.getSelectedItem().toString();\n dropBox3.setSelectedIndex(0);\n \n DefaultComboBoxModel model = \n new DefaultComboBoxModel(branchCodesS);\n dropBox1.setModel(model);\n model = new DefaultComboBoxModel(productBrandS);\n dropBox2.setModel(model);\n model = new DefaultComboBoxModel(productTypeS);\n dropBox3.setModel(model);\n \n dropBox1.setEnabled(true);\n dropBox2.setEnabled(false);\n dropBox3.setEnabled(false);\n }\n else\n {\n if(selector == 1100)\n {\n String branchCodesS[] = new String[1];\n branchCodesS[0] = \n dropBox1.getSelectedItem().toString();\n dropBox1.setSelectedIndex(0);\n String productBrandS[] = processComboBox(sql[1]);\n String productTypeS[] = processComboBox(sql[2]);\n\n DefaultComboBoxModel model = \n new DefaultComboBoxModel(branchCodesS);\n dropBox1.setModel(model);\n model = new DefaultComboBoxModel(productBrandS);\n dropBox2.setModel(model);\n model = new DefaultComboBoxModel(productTypeS);\n dropBox3.setModel(model);\n \n dropBox1.setEnabled(false);\n dropBox2.setEnabled(true);\n dropBox3.setEnabled(true);\n }\n else\n {\n if(selector == 1101)\n {\n String branchCodesS[] = new String[1];\n branchCodesS[0] = \n dropBox1.getSelectedItem().toString();\n dropBox1.setSelectedIndex(0);\n String productBrandS[] = \n processComboBox(sql[1]);\n String productTypeS[] = new String[1];\n productTypeS[0] = \n dropBox3.getSelectedItem().toString();\n dropBox3.setSelectedIndex(0);\n \n DefaultComboBoxModel model = \n new DefaultComboBoxModel(branchCodesS);\n dropBox1.setModel(model);\n model = new DefaultComboBoxModel(productBrandS);\n dropBox2.setModel(model);\n model = new DefaultComboBoxModel(productTypeS);\n dropBox3.setModel(model);\n \n dropBox1.setEnabled(false);\n dropBox2.setEnabled(true);\n dropBox3.setEnabled(false);\n }\n else\n {\n if(selector == 1110)\n {\n String branchCodesS[] = new String[1];\n branchCodesS[0] = \n dropBox1.getSelectedItem().toString();\n String productBrandS[] = new String[1];\n productBrandS[0] = \n dropBox2.getSelectedItem().toString();\n dropBox2.setSelectedIndex(0);\n String productTypeS[] = \n processComboBox(sql[2]);\n\n DefaultComboBoxModel model = \n new DefaultComboBoxModel(branchCodesS);\n dropBox1.setModel(model);\n model = new DefaultComboBoxModel(productBrandS);\n dropBox2.setModel(model);\n model = new DefaultComboBoxModel(productTypeS);\n dropBox3.setModel(model);\n \n dropBox1.setEnabled(false);\n dropBox2.setEnabled(false);\n dropBox3.setEnabled(true);\n }\n else\n {\n if(selector == 2111)\n {\n String output;\n String branchCodesS[] = new String[1];\n branchCodesS[0] = \n dropBox1.getSelectedItem().toString();\n dropBox1.setSelectedIndex(0);\n String productBrandS[] = new String[1];\n productBrandS[0] = \n dropBox2.getSelectedItem().toString();\n dropBox2.setSelectedIndex(0);\n String productTypeS[] = new String[1];\n productTypeS[0] = \n dropBox3.getSelectedItem().toString();\n dropBox3.setSelectedIndex(0);\n \n //Additional preps for writing results to\n // text field - Lines lets me detect what\n // is there alread to prevent duplicates\n // - Sales Total String is what holds\n // the dollar amount returned from the sql\n String[] lines = displayField.getText().split(\"\\n\");\n String[] salesTotalS = processComboBox(sql[0]);\n output = salesTotalS[1] + \"\";\n \n DefaultComboBoxModel model = \n new DefaultComboBoxModel(branchCodesS);\n dropBox1.setModel(model);\n model = new DefaultComboBoxModel(productBrandS);\n dropBox2.setModel(model);\n model = new DefaultComboBoxModel(productTypeS);\n dropBox3.setModel(model);\n \n dropBox1.setEnabled(false);\n dropBox2.setEnabled(false);\n dropBox3.setEnabled(false);\n jButton1.setEnabled(false);\n \n //Formats and writes to text field\n DecimalFormat myFormatter = \n new DecimalFormat(\"$###,###,###,##0.00\");\n String temp = \n myFormatter.format(parseDouble(output));\n if(lines[lines.length-1] !=null)\n {\n if(!lines[lines.length-1].contains(temp))\n {\n displayField.append(\"The total sales for \\n Branch: \" \n + dropBox1.getSelectedItem().toString() +\"\\n\"\n + \"Brand :\" + dropBox2.getSelectedItem().toString() \n + \"\\nProduct Type: \" + dropBox3.getSelectedItem().toString()\n + \"\\nis \" + temp + \"\\n\\n\");\n \n }\n }\n \n }\n else\n {\n if(selector == 2000)\n {\n String output;\n String branchCodesS[] = new String[1];\n branchCodesS[0] = dropBox1.getSelectedItem().toString();\n dropBox1.setSelectedIndex(0);\n String productBrandS[] = new String[1];\n productBrandS[0] = dropBox2.getSelectedItem().toString();\n dropBox2.setSelectedIndex(0);\n String productTypeS[] = new String[1];\n productTypeS[0] = dropBox3.getSelectedItem().toString();\n dropBox3.setSelectedIndex(0);\n \n String[] lines = displayField.getText().split(\"\\n\");\n String[] salesTotalS = processComboBox(sql[0]);\n output = salesTotalS[1] + \"\";\n \n DefaultComboBoxModel model = new DefaultComboBoxModel(branchCodesS);\n dropBox1.setModel(model);\n model = new DefaultComboBoxModel(productBrandS);\n dropBox2.setModel(model);\n model = new DefaultComboBoxModel(productTypeS);\n dropBox3.setModel(model);\n \n dropBox1.setEnabled(false);\n dropBox2.setEnabled(false);\n dropBox3.setEnabled(false);\n jButton1.setEnabled(false);\n \n DecimalFormat myFormatter = new DecimalFormat(\"$###,###,###,##0.00\");\n String temp = myFormatter.format(parseDouble(output));\n if(lines[lines.length-1] !=null)\n {\n if(!lines[lines.length-1].contains(temp))\n {\n displayField.append(\"The total sales for \\n Branch: \" \n + dropBox1.getSelectedItem().toString() +\"\\n\"\n + \"Brand :\" + dropBox2.getSelectedItem().toString() \n + \"\\nProduct Type: \" + dropBox3.getSelectedItem().toString()\n + \"\\nis \" + temp + \"\\n\\n\");\n }\n }\n }\n else\n {\n if(selector == 2001)\n {\n String output;\n String branchCodesS[] = new String[1];\n branchCodesS[0] = dropBox1.getSelectedItem().toString();\n dropBox1.setSelectedIndex(0);\n String productBrandS[] = new String[1];\n productBrandS[0] = dropBox2.getSelectedItem().toString();\n dropBox2.setSelectedIndex(0);\n String productTypeS[] = new String[1];\n productTypeS[0] = dropBox3.getSelectedItem().toString();\n dropBox3.setSelectedIndex(0);\n \n String[] lines = displayField.getText().split(\"\\n\");\n String[] salesTotalS = processComboBox(sql[0]);\n output = salesTotalS[1] + \"\";\n \n DefaultComboBoxModel model = new DefaultComboBoxModel(branchCodesS);\n dropBox1.setModel(model);\n model = new DefaultComboBoxModel(productBrandS);\n dropBox2.setModel(model);\n model = new DefaultComboBoxModel(productTypeS);\n dropBox3.setModel(model);\n \n dropBox1.setEnabled(false);\n dropBox2.setEnabled(false);\n dropBox3.setEnabled(false);\n jButton1.setEnabled(false);\n \n DecimalFormat myFormatter = \n new DecimalFormat(\"$###,###,###,##0.00\");\n String temp = myFormatter.format(parseDouble(output));\n if(lines[lines.length-1] !=null)\n {\n if(!lines[lines.length-1].contains(temp))\n {\n displayField.append(\"The total sales for \\n Branch: \" \n + dropBox1.getSelectedItem().toString() +\"\\n\"\n + \"Brand :\" + dropBox2.getSelectedItem().toString() \n + \"\\nProduct Type: \" + dropBox3.getSelectedItem().toString()\n + \"\\nis \" + temp + \"\\n\\n\");\n }\n }\n }\n else\n {\n if(selector == 2010)\n {\n String output;\n String branchCodesS[] = new String[1];\n branchCodesS[0] = dropBox1.getSelectedItem().toString();\n dropBox1.setSelectedIndex(0);\n String productBrandS[] = new String[1];\n productBrandS[0] = dropBox2.getSelectedItem().toString();\n dropBox2.setSelectedIndex(0);\n String productTypeS[] = new String[1];\n productTypeS[0] = dropBox3.getSelectedItem().toString();\n dropBox3.setSelectedIndex(0);\n\n String[] lines = displayField.getText().split(\"\\n\");\n\n String[] salesTotalS = processComboBox(sql[0]);\n output = salesTotalS[1] + \"\";\n \n DefaultComboBoxModel model = new DefaultComboBoxModel(branchCodesS);\n dropBox1.setModel(model);\n model = new DefaultComboBoxModel(productBrandS);\n dropBox2.setModel(model);\n model = new DefaultComboBoxModel(productTypeS);\n dropBox3.setModel(model);\n \n dropBox1.setEnabled(false);\n dropBox2.setEnabled(false);\n dropBox3.setEnabled(false);\n jButton1.setEnabled(false);\n \n DecimalFormat myFormatter = new DecimalFormat(\"$###,###,###,##0.00\");\n String temp = myFormatter.format(parseDouble(output));\n if(lines[lines.length-1] !=null)\n {\n if(!lines[lines.length-1].contains(temp))\n {\n displayField.append(\"The total sales for \\n Branch: \" \n + dropBox1.getSelectedItem().toString() +\"\\n\"\n + \"Brand :\" + dropBox2.getSelectedItem().toString() \n + \"\\nProduct Type: \" + dropBox3.getSelectedItem().toString()\n + \"\\nis \" + temp + \"\\n\\n\");\n }\n }\n }\n else\n {\n if(selector == 2011)\n {\n String output;\n String branchCodesS[] = new String[1];\n branchCodesS[0] = dropBox1.getSelectedItem().toString();\n dropBox1.setSelectedIndex(0);\n String productBrandS[] = new String[1];\n productBrandS[0] = dropBox2.getSelectedItem().toString();\n dropBox2.setSelectedIndex(0);\n String productTypeS[] = new String[1];\n productTypeS[0] = dropBox3.getSelectedItem().toString();\n dropBox3.setSelectedIndex(0);\n\n String[] lines = displayField.getText().split(\"\\n\");\n String[] salesTotalS = processComboBox(sql[0]);\n output = salesTotalS[1] + \"\";\n \n DefaultComboBoxModel model = new DefaultComboBoxModel(branchCodesS);\n dropBox1.setModel(model);\n model = new DefaultComboBoxModel(productBrandS);\n dropBox2.setModel(model);\n model = new DefaultComboBoxModel(productTypeS);\n dropBox3.setModel(model);\n \n dropBox1.setEnabled(false);\n dropBox2.setEnabled(false);\n dropBox3.setEnabled(false);\n jButton1.setEnabled(false);\n \n DecimalFormat myFormatter = \n new DecimalFormat(\"$###,###,###,##0.00\");\n String temp = myFormatter.format(parseDouble(output));\n if(lines[lines.length-1] !=null)\n {\n if(!lines[lines.length-1].contains(temp))\n {\n displayField.append(\"The total sales for \\n Branch: \" \n + dropBox1.getSelectedItem().toString() +\"\\n\"\n + \"Brand :\" + dropBox2.getSelectedItem().toString() \n + \"\\nProduct Type: \" + dropBox3.getSelectedItem().toString()\n + \"\\nis \" + temp + \"\\n\\n\");\n }\n }\n }\n else\n {\n if(selector == 2100)\n {\n String output;\n String branchCodesS[] = new String[1];\n branchCodesS[0] = dropBox1.getSelectedItem().toString();\n dropBox1.setSelectedIndex(0);\n String productBrandS[] = new String[1];\n productBrandS[0] = dropBox2.getSelectedItem().toString();\n dropBox2.setSelectedIndex(0);\n String productTypeS[] = new String[1];\n productTypeS[0] = dropBox3.getSelectedItem().toString();\n dropBox3.setSelectedIndex(0);\n\n String[] lines = displayField.getText().split(\"\\n\");\n String[] salesTotalS = processComboBox(sql[0]);\n output = salesTotalS[1] + \"\";\n \n DefaultComboBoxModel model = new DefaultComboBoxModel(branchCodesS);\n dropBox1.setModel(model);\n model = new DefaultComboBoxModel(productBrandS);\n dropBox2.setModel(model);\n model = new DefaultComboBoxModel(productTypeS);\n dropBox3.setModel(model);\n \n dropBox1.setEnabled(false);\n dropBox2.setEnabled(false);\n dropBox3.setEnabled(false);\n jButton1.setEnabled(false);\n \n DecimalFormat myFormatter = \n new DecimalFormat(\"$###,###,###,##0.00\");\n String temp = myFormatter.format(parseDouble(output));\n if(lines[lines.length-1] !=null)\n {\n if(!lines[lines.length-1].contains(temp))\n {\n displayField.append(\"The total sales for \\n Branch: \" \n + dropBox1.getSelectedItem().toString() +\"\\n\"\n + \"Brand :\" + dropBox2.getSelectedItem().toString() \n + \"\\nProduct Type: \" + dropBox3.getSelectedItem().toString()\n + \"\\nis \" + temp + \"\\n\\n\");\n }\n }\n }\n else\n {\n if(selector == 2101)\n {\n String output;\n String branchCodesS[] = new String[1];\n branchCodesS[0] = dropBox1.getSelectedItem().toString();\n dropBox1.setSelectedIndex(0);\n String productBrandS[] = new String[1];\n productBrandS[0] = dropBox2.getSelectedItem().toString();\n dropBox2.setSelectedIndex(0);\n String productTypeS[] = new String[1];\n productTypeS[0] = dropBox3.getSelectedItem().toString();\n dropBox3.setSelectedIndex(0);\n\n String[] lines = displayField.getText().split(\"\\n\");\n String[] salesTotalS = processComboBox(sql[0]);\n output = salesTotalS[1] + \"\";\n \n DefaultComboBoxModel model = new DefaultComboBoxModel(branchCodesS);\n dropBox1.setModel(model);\n model = new DefaultComboBoxModel(productBrandS);\n dropBox2.setModel(model);\n model = new DefaultComboBoxModel(productTypeS);\n dropBox3.setModel(model);\n \n dropBox1.setEnabled(false);\n dropBox2.setEnabled(false);\n dropBox3.setEnabled(false);\n jButton1.setEnabled(false);\n \n DecimalFormat myFormatter = \n new DecimalFormat(\"$###,###,###,##0.00\");\n String temp = myFormatter.format(parseDouble(output));\n if(lines[lines.length-1] !=null)\n {\n if(!lines[lines.length-1].contains(temp))\n {\n displayField.append(\"The total sales for \\n Branch: \" \n + dropBox1.getSelectedItem().toString() +\"\\n\"\n + \"Brand :\" + dropBox2.getSelectedItem().toString() \n + \"\\nProduct Type: \" + dropBox3.getSelectedItem().toString()\n + \"\\nis \" + temp + \"\\n\\n\");\n }\n }\n } \n }\n }\n } \n } \n }\n }\n }\n }\n }\n }\n }\n }\n }\n \n }", "boolean canPickup(int x, int y) {\n return ((posX == x) && (posY == y));\n }", "private void checkEnableDisable() {\n\t\tif (_trainingSet.getCount() > 0) {\n\t\t\t_saveSetMenuItem.setEnabled(true);\n\t\t\t_saveSetAsMenuItem.setEnabled(true);\n\t\t\t_trainMenuItem.setEnabled(true);\n\t\t} else {\n\t\t\t_saveSetMenuItem.setEnabled(false);\n\t\t\t_saveSetAsMenuItem.setEnabled(false);\n\t\t\t_trainMenuItem.setEnabled(false);\n\t\t}\n\n\t\tif (_currentTrainGrid == null) {\n\t\t\t_deleteGridMenuItem.setEnabled(true);\n\t\t} else {\n\t\t\t_deleteGridMenuItem.setEnabled(true);\n\t\t}\n\n\t\tif (_index > 0) {\n\t\t\t_leftGridMenuItem.setEnabled(true);\n\t\t\t_leftBtn.setEnabled(true);\n\t\t\t_firstGridMenuItem.setEnabled(true);\n\t\t\t_firstBtn.setEnabled(true);\n\t\t} else {\n\t\t\t_leftGridMenuItem.setEnabled(false);\n\t\t\t_leftBtn.setEnabled(false);\n\t\t\t_firstGridMenuItem.setEnabled(false);\n\t\t\t_firstBtn.setEnabled(false);\n\t\t}\n\n\t\tif (_index < _trainingSet.getCount() - 1) {\n\t\t\t_rightGridMenuItem.setEnabled(true);\n\t\t\t_rightBtn.setEnabled(true);\n\t\t\t_lastGridMenuItem.setEnabled(true);\n\t\t\t_lastBtn.setEnabled(true);\n\t\t} else {\n\t\t\t_rightGridMenuItem.setEnabled(false);\n\t\t\t_rightBtn.setEnabled(false);\n\t\t\t_lastGridMenuItem.setEnabled(false);\n\t\t\t_lastBtn.setEnabled(false);\n\t\t}\n\n\t\tif (_index >= _trainingSet.getCount()) {\n\t\t\t_indexLabel.setText(String.format(NEW_INDEX_LABEL, _trainingSet.getCount()));\n\t\t} else {\n\t\t\t_indexLabel.setText(String.format(INDEX_LABEL, _index + 1, _trainingSet.getCount()));\n\t\t}\n\n\t\t_resultLabel.setText(EMPTY_RESULT_LABEL);\n\t}", "public boolean hasComparatorInputOverride()\r\n/* 283: */ {\r\n/* 284:338 */ return true;\r\n/* 285: */ }", "@Override\n public int getOrder() {\n return 0;\n }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif (checkBoxReorder.isSelected() == true) {\r\n\t\t\t\thelperGetSet.setInstModReorder(true);\r\n\t\t\t} else if (checkBoxReorder.isSelected() == false) {\r\n\t\t\t\thelperGetSet.setInstModReorder(false);\r\n\t\t\t}\r\n\t\t}" ]
[ "0.6618958", "0.5543544", "0.55425996", "0.54888856", "0.5487099", "0.5428645", "0.5382243", "0.5364356", "0.52790356", "0.5278267", "0.5274227", "0.5271061", "0.52630234", "0.5260457", "0.5256903", "0.5242376", "0.52036446", "0.52033526", "0.51946354", "0.51772094", "0.5161567", "0.5136608", "0.51310813", "0.5126866", "0.51213163", "0.51206315", "0.51192486", "0.51186156", "0.50893605", "0.50889254", "0.5086588", "0.5073462", "0.5058458", "0.50556046", "0.5037128", "0.501786", "0.50163865", "0.50131166", "0.49996993", "0.49819425", "0.49771068", "0.49771068", "0.4977035", "0.4975212", "0.4973319", "0.496751", "0.49584374", "0.49409887", "0.49365747", "0.4932921", "0.49314368", "0.4921827", "0.49070582", "0.4906573", "0.48960733", "0.4890676", "0.4880056", "0.48741546", "0.4873673", "0.48717898", "0.48700404", "0.48665032", "0.4861523", "0.48602858", "0.4858769", "0.48459765", "0.48431444", "0.4843059", "0.48400724", "0.48267132", "0.4823813", "0.48184875", "0.48127872", "0.48085356", "0.4806134", "0.48010713", "0.4797417", "0.47892708", "0.47838837", "0.47826806", "0.47719052", "0.4770716", "0.47652417", "0.47625425", "0.47586882", "0.47573897", "0.475265", "0.47479206", "0.47394913", "0.4738326", "0.47379813", "0.473776", "0.47341084", "0.47331545", "0.4729509", "0.47231838", "0.47207937", "0.47205904", "0.47198856", "0.47103485" ]
0.7329208
0
Verify submit by JSF submit button
@Test public void testSaveJSF() { String textSource = pickList.advanced().getSourceList().getItem(0).getText(); pickList.add(0); submitHTTP(); String textTarget = pickList.advanced().getTargetList().getItem(0).getText(); assertEquals(textTarget, textSource); assertEquals(output.getText(), "[" + textSource + "]"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void click_SubmitButton() {\n\t\tboolean bstatus;\n\n\t\tbstatus = clickElement(btn_Submit);\n\t\tReporter.log(bstatus, \"Submit Button is clicked\", \"Submit Button not clicked\");\n\n\t\t\n\t}", "public void clickOnSubmit() {\r\n\r\n\t\treportStep(\"About to click on Submit button \", \"INFO\");\r\n\r\n\t\tif(clickAfterWait(submitButton)) {\r\n\r\n\t\t\treportStep(\"Successfully clicked on the Submit button \", \"PASS\");\r\n\r\n\t\t}else {\r\n\t\t\tclickAfterWait(submitButton);\r\n\t\t\treportStep(\"Failed to click on the Submit button \", \"INFO\");\r\n\r\n\t\t}\r\n\t}", "public String OnSubmit() {\n\t\tFacesContext context = FacesContext.getCurrentInstance();\r\n\t\tUser user1 = context.getApplication().evaluateExpressionGet(context, \"#{user}\", User.class);\r\n\t\t\r\n\t\t// test purposes, log results to console\r\n\t\tSystem.out.println(\"First Name is: \" + user1.getFirstName());\r\n\t\tSystem.out.println(\"Last Name: \" + user1.getLastName());\r\n\t\t\r\n\t\t// prints message to console to tell us which business service selected in beans.xml\r\n\t\tservice.test();\r\n\t\t\r\n\t\t// start timer when log is clicked\r\n\t\t\r\n\t\ttimer.setTimer(5000);\r\n\t\t\r\n\t\t// put user back in context\r\n\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"user\", user1);\r\n\t\t\r\n\t\t// show next page\r\n\t\treturn \"Response.xhtml\";\r\n\t}", "boolean targettedSubmit() {\n return PageFlowContext.getOperationParameters().getProperty(\"submitTarget\") != null;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbtnSubmit_click(e);\n\t\t\t}", "@Step\r\n\tpublic void clickSubmit() {\r\n\t\tLOGGER.info(\"Clicking submit\");\r\n\t\tspeedoSubmit.click();\r\n\t}", "public SelenideElement submitButton() {\n return formPageRoot().$(By.xpath (\"//button[@type='submit']\")); \n }", "@When(\"^Click's on Submit Button$\")\n\tpublic void click_s_on_Submit_Button() throws Throwable {\n\t\treviewPageObjects.clickonsubmit();\n\t}", "@Override\n public void Submit() {\n }", "public void submit() {\n driver.findElement(SUBMIT_SELECTOR).click();\n }", "public static void pressSubmit(){\n DriverManager.driver.findElement(Constans.SUBMIT_BUTTON_LOCATOR).click();\n }", "@Override\n public void onClick(View view) {\n if ( checkValidation () )\n submitForm();\n \n }", "public void clickSubmitOnly() {\r\n\t\tutilities.clickOnElement(btnSubmit);\r\n\t}", "public String submitText();", "public void checkOutFlight() {\n confirmationPage.checkButton();\n }", "@When(\"^click the submit button$\")\n public void click_the_submit_button() throws Throwable {\n \tSystem.out.println(\"click the button\");\n //throw new PendingException();\n }", "public void clickSubmitButton(){\n actionsWithOurElements.clickOnElement(buttonSubmit);\n }", "public void ClickChecoutSubmitbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Checkout Registration submit button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btncheckoutregistrationsubmit\"));\r\n\t\t\tSystem.out.println(\"Checkout Registration submit button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Checkout Registration submit button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Checkout Registration submit button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btncheckoutregistrationsubmit\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public void onClick(ClickEvent event) {\r\n System.out.println(\"Submit Button geklickt\");\r\n handleEvent();\r\n }", "@Test(priority=3)\n\tpublic void verifySignUpBtn() {\n\t\tboolean signUpBtn = driver.findElement(By.name(\"websubmit\")).isEnabled();\n\t\tAssert.assertTrue(signUpBtn);\n\t}", "public void submitText() {\r\n \t\tthis.dialog.clickOK();\r\n \t}", "@WebElementLocator(webDesktop = \"//input[@type='submit']\",webPhone = \"//input[@type='submit']\")\n private static WebElement buttonSubmit() {\n return getDriver().findElement(By.xpath(new WebElementLocatorFactory().getLocator(LoginPage.class, \"buttonSubmit\")));\n }", "public void actionPerformed(ActionEvent e) {\r\n\t\tif (verifier()){\r\n\t\t\tvue.ajouterJoueur();\r\n\t\t\tJOptionPane.showMessageDialog(vue,\"Joueur ajouté !\");\r\n\t\t}\r\n\r\n\t}", "private void btnSubmit_click(ActionEvent e) {\n\t\tString subjectName=txtSubjectName.getText();\n\t\tString STATUS=txtSTATUS.getText();\n\n\t\t//为空判断\n\t\tif(SysFun.isNullOrEmpty(subjectName)) {\n\t\t\tlblMsg.setText(\"提示:用户名不得为空!\");\n\t\t\treturn;\n\t\t}\n\t\tif(STATUS==null || STATUS.isEmpty()) {\n\t\t\tlblMsg.setText(\"提示:教室号不得为空!\");\n\t\t\treturn;\n\t\t}\n\t\t\n//\t\tLong or=0L;\n//\t\tif(rdoNo.isSelected()) {\n//\t\t\tor=0L;\n//\t\t}else if(rdoYes.isSelected()) {\n//\t\t\tor=1L;\n//\t\t}\n\n\t\tSubject item=subjectService.loadByName(subjectName);\n\t\t\n\t\tif(item!=null) {\n\t\t\tlblMsg.setText(\"提示:该管理员账号已存在!\");\n\t\t\treturn;\n\t\t}\n\t\tSubject bean=new Subject();\n\t\tbean.setSubjectName(subjectName);\n\t\tbean.setSTATUS(STATUS);\n\t\t\n\t\tLong result=0L;\n\t\tString errMsg=null;\n\t\ttry {\n\t\tresult=subjectService.insert(bean);\n\t\t}catch(Exception ex) {\n\t\t\terrMsg=ex.getMessage();\n\t\t}\n\t\t\n\t\tif(result>0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"添加成功!\");\n\t\t\tif(subjectListFrm!=null) {\n\t\t\t\tsubjectListFrm.btnReset_click(null);\n\t\t\t\tsubjectListFrm.setVisible(true);\n\t\t\t}\n\t\t\tthis.dispose();\n\t\t}else {\n\t\t\tJOptionPane.showMessageDialog(null, \"添加失败!\");\n\t\t}\n\n\t\t\n\t\tif(subjectListFrm!=null) {\n\t\t\tsubjectListFrm.btnReset_click(null); \n\t\t\tsubjectListFrm.setVisible(true);\n\t\t}\n\t\tthis.dispose();\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() == submit) {\n int score = answerCheck();\n try {\n Submit submitButton = new Submit(userid, user.getText(), totalScore.getText(), score);\n setVisible(false);\n } catch (SQLException ex) {\n Logger.getLogger(Play.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public boolean submitPerformed(SubmitEvent e) throws Exception {\r\n\t\tif (e.getComponent() == _addButton)\r\n\t\t\ttryAdd();\r\n\t\telse if (e.getComponent() == _saveButton)\r\n\t\t\tdoSave();\r\n\t\telse if (e.getComponent() == _cancelButton) {\r\n\t\t\ttryCancel();\r\n\t\t} else if (e.getComponent() == _deleteButton) {\r\n\t\t\ttryDelete();\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public void ClickMyAccountSubmitbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account Registration submit button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btnMyAccountSubmit\"));\r\n\t\t\tSystem.out.println(\"Checkout Registration submit button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- My Account Registration submit button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- My Account Registration submit button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnMyAccountSubmit\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public void performSubmit(Action action) {\n performSubmit(action, true);\n }", "private void handleSubmitOnPre() {\n }", "@Then(\"user clicks submit button\")\n\tpublic void user_clicks_submit_button(){\n\t\t driver.findElement(By.name(\"sub\")).click();\n\t\t driver.findElement(By.xpath(\"//a[@href='addcustomerpage.php']\")).click();\n\t}", "public void onClick(View v) {\n\t\tswitch (v.getId()) {\r\n\t\tcase R.id.regist_sure: // 确认\r\n\t\t\tsubmit();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test267() throws Throwable {\n Submit submit0 = new Submit((Component) null, \".\\\"=_m?KP<D\\\"\", \"I&{b+CI\");\n ActionExpression actionExpression0 = submit0.action(\"\");\n assertFalse(actionExpression0.isSubmissible());\n }", "@Override\n\t\t\tpublic void onPreSubmit() {\n\t\t\t}", "@Override\n\t\t\tpublic void onPreSubmit() {\n\t\t\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n if (request.getParameter(\"signUpButton\") != null) {\n response.sendRedirect(\"SignUpView\");\n } else {\n loginFormValidation(request, response);\n }\n }", "protected boolean validateForm() {\r\n PerformanceTrace performanceTrace = new PerformanceTrace(TRACE_TAG, \".validateForm()\");\r\n performanceTrace.enterScope();\r\n\r\n HttpServletRequest request = super.getRequest();\r\n BaseSessionStateManager state = super.getState();\r\n boolean isValid = true;\r\n\r\n FamilyPlanValueBean familyPlanBeanFromState = (FamilyPlanValueBean) state.getAttribute(\"familyPlanBean\", request);\r\n FamilyPlanValueBean familyPlanBeanFromRequest = FamilyPlanConversation.createFamilyPlanValueBean(request);\r\n\r\n // *******************************\r\n // *** SAVE OR SAVE AND SUBMIT ***\r\n // *******************************\r\n if (super.isButtonPressed(FamilyPlanConversation.SAVE_BUTTON_ON_DETAIL_PAGE)\r\n || super.isButtonPressed(FamilyPlanConversation.SAVE_SUBMIT_BUTTON)) {\r\n familyPlanBeanFromRequest.setFamilyPlanEvent(familyPlanBeanFromState.getFamilyPlanEvent());\r\n\r\n // At least one principal must be selected.\r\n String[] checkedPrincipals = CheckboxHelper.getCheckedValues(request, \"cbxPrincipalsOnPlan\");\r\n if (checkedPrincipals.length <= 0) {\r\n isValid = false;\r\n setErrorMessage(Messages.MSG_SVC_NEED_PRINCIPALS);\r\n }\r\n // Page can't be populated if there are more than 100 principals in the stage\r\n if (checkedPrincipals.length > 100) {\r\n isValid = false;\r\n setErrorMessage(Messages.MSG_SVC_LISTBOX_FULL);\r\n }\r\n\r\n // The 'Date Plan Prepared' date cannot be after today.\r\n if (familyPlanBeanFromRequest.getDatePlanPrepared() != null) {\r\n if (DateHelper.isAfterToday(familyPlanBeanFromRequest.getDatePlanPrepared())) {\r\n isValid = false;\r\n setErrorMessage(\"txtDatePlanPrepared\", Messages.MSG_FP_DATE_BEFORE_SAME_CURR);\r\n }\r\n }\r\n // The 'Date Plan Completed' date cannot be after today.\r\n if (familyPlanBeanFromRequest.getDatePlanCompleted() != null) {\r\n if (DateHelper.isAfterToday(familyPlanBeanFromRequest.getDatePlanCompleted())) {\r\n isValid = false;\r\n setErrorMessage(\"txtDatePlanCompleted\", Messages.MSG_FP_DATE_BEFORE_SAME_CURR);\r\n }\r\n }\r\n // The 'DateCurrentEvalCompleted' date cannot be after today.\r\n if (familyPlanBeanFromRequest.getDateCurrentEvalCompleted() != null) {\r\n if (DateHelper.isAfterToday(familyPlanBeanFromRequest.getDateCurrentEvalCompleted())) {\r\n isValid = false;\r\n setErrorMessage(\"txtDateReviewedWithFamily\", Messages.MSG_FP_DATE_BEFORE_SAME_CURR);\r\n }\r\n }\r\n\r\n // 'Next Review Due' date cannot be before the 'Date Plan Completed'.\r\n if (familyPlanBeanFromRequest.getDatePlanPrepared() != null\r\n && familyPlanBeanFromRequest.getDateNextEvalDue() != null) {\r\n if (DateHelper.isBefore(familyPlanBeanFromRequest.getDateNextEvalDue(),\r\n familyPlanBeanFromRequest.getDatePlanPrepared())) {\r\n isValid = false;\r\n setErrorMessage(Messages.MSG_SVC_REVIEW_BEF_COMP_WARN);\r\n }\r\n }\r\n\r\n // If the family plan has never been appproved, the 'Next Review Due' date\r\n // cannot be more than 3 months beyond the 'Date Plan Completed' for an\r\n // FPR or FRE stage, or more than 6 months for an FSU stage. If the family\r\n // plan has already been approved, the 'Next Review Due' date cannot be\r\n // more than 3 months beyond the 'Current Eval Completed' date for an FPR\r\n // or FRE stage, or more than 6 months for an FSU stage.\r\n if (!CodesTables.CEVTSTAT_APRV.equals(familyPlanBeanFromRequest.getFamilyPlanEvent().getEventStatusCode())) {\r\n if (familyPlanBeanFromRequest.getDatePlanPrepared() != null\r\n && familyPlanBeanFromRequest.getDateNextEvalDue() != null) {\r\n org.exolab.castor.types.Date datePlanComp = familyPlanBeanFromRequest.getDatePlanPrepared();\r\n org.exolab.castor.types.Date nextEvalDue = familyPlanBeanFromRequest.getDateNextEvalDue();\r\n\r\n // Get the number of days/months between the 'Date Plan Completed'\r\n // and 'Next Review Due' date. (The Vector returned by the\r\n // getDatesInRange() method includes the 'Date Plan Completed', so\r\n // subtract 1 from the total size.)\r\n gov.georgia.dhr.dfcs.sacwis.core.utility.Date datePlanCompAsImpactUtilDate = new gov.georgia.dhr.dfcs.sacwis.core.utility.Date(\r\n datePlanComp\r\n .getDay(),\r\n datePlanComp\r\n .getMonth(),\r\n datePlanComp\r\n .getCentury()\r\n * 100\r\n + datePlanComp\r\n .getYear());\r\n gov.georgia.dhr.dfcs.sacwis.core.utility.Date nextReviewDueAsImpactUtilDate = new gov.georgia.dhr.dfcs.sacwis.core.utility.Date(\r\n nextEvalDue\r\n .getDay(),\r\n nextEvalDue\r\n .getMonth(),\r\n nextEvalDue\r\n .getCentury()\r\n * 100\r\n + nextEvalDue\r\n .getYear());\r\n int numOfMonthsInRange = DateUtility.getDatesInRange(datePlanCompAsImpactUtilDate,\r\n nextReviewDueAsImpactUtilDate, DateUtility.MONTH, 1)\r\n .size() - 1;\r\n\r\n if (numOfMonthsInRange > 3) {\r\n isValid = false;\r\n setErrorMessage(Messages.MSG_FP_REV_WITHIN_THREE_MONTHS);\r\n\r\n }\r\n } // end if ( familyPlanBean.getDatePlanPrepared() != null && familyPlanBean.getDateNextEvalDue() != null )\r\n } else {\r\n if (familyPlanBeanFromRequest.getDateCurrentEvalCompleted() != null\r\n && familyPlanBeanFromRequest.getDateNextEvalDue() != null) {\r\n org.exolab.castor.types.Date currEvalComp = familyPlanBeanFromRequest.getDateCurrentEvalCompleted();\r\n org.exolab.castor.types.Date nextEvalDue = familyPlanBeanFromRequest.getDateNextEvalDue();\r\n\r\n // Get the number of days/months between the 'Current Review\r\n // Completed' and 'Next Review Due' date. (The Vector returned by the\r\n // getDatesInRange() method includes the 'Current Review Completed'\r\n // date, so subtract 1 from the total size.)\r\n gov.georgia.dhr.dfcs.sacwis.core.utility.Date currEvalCompAsImpactUtilDate = new gov.georgia.dhr.dfcs.sacwis.core.utility.Date(\r\n currEvalComp\r\n .getDay(),\r\n currEvalComp\r\n .getMonth(),\r\n currEvalComp\r\n .getCentury()\r\n * 100\r\n + currEvalComp\r\n .getYear());\r\n gov.georgia.dhr.dfcs.sacwis.core.utility.Date nextReviewDueAsImpactUtilDate = new gov.georgia.dhr.dfcs.sacwis.core.utility.Date(\r\n nextEvalDue\r\n .getDay(),\r\n nextEvalDue\r\n .getMonth(),\r\n nextEvalDue\r\n .getCentury()\r\n * 100\r\n + nextEvalDue\r\n .getYear());\r\n int numOfMonthsInRange = DateUtility.getDatesInRange(currEvalCompAsImpactUtilDate,\r\n nextReviewDueAsImpactUtilDate, DateUtility.MONTH, 1)\r\n .size() - 1;\r\n\r\n if (numOfMonthsInRange > 3) {\r\n isValid = false;\r\n setErrorMessage(Messages.MSG_FP_REV_WITHIN_THREE_MONTHS);\r\n }\r\n\r\n } // end if ( familyPlanBean.getDatePlanPrepared() != null && familyPlanBean.getDateNextEvalDue() != null )\r\n } // end if ( familyPlanBean.getFamilyPlanEvent().getApprovalDate() == null )\r\n }\r\n\r\n // ***********************\r\n // *** SAVE AND SUBMIT ***\r\n // ***********************\r\n if (super.isButtonPressed(FamilyPlanConversation.SAVE_SUBMIT_BUTTON)) {\r\n // 'Date Plan Prepared' is required to save and submit.\r\n if (familyPlanBeanFromRequest.getDatePlanPrepared() == null) {\r\n isValid = false;\r\n setErrorMessage(Messages.MSG_SVC_CMPLTD_NOT_FLLD);\r\n }\r\n\r\n // 'Next Review Due' is required to save and submit.\r\n if (familyPlanBeanFromRequest.getDateNextEvalDue() == null) {\r\n isValid = false;\r\n setErrorMessage(Messages.MSG_SVC_NXT_REV_NOT_FLLD);\r\n }\r\n\r\n // 'Date Reviewed with Familiy' is required to save and submit.\r\n if (familyPlanBeanFromRequest.getDateCurrentEvalCompleted() == null) {\r\n isValid = false;\r\n setErrorMessage(Messages.MSG_SVC_FAM_REV_NOT_FLLD);\r\n }\r\n\r\n // 'Reason for CPS Involvement' is required to save and submit.\r\n if (familyPlanBeanFromRequest.getReasonForCPSInvolvement() == null) {\r\n isValid = false;\r\n setErrorMessage(\"txtReasonForInvolvement\", Messages.SSM_COMPLETE_REQUIRED_SAVE_SUBMIT);\r\n }\r\n\r\n // 'Description of Family Strengths and Resources' is required to save\r\n // and submit.\r\n if (familyPlanBeanFromRequest.getStrengthsAndResources() == null) {\r\n isValid = false;\r\n setErrorMessage(\"txtStrengthsResources\", Messages.SSM_COMPLETE_REQUIRED_SAVE_SUBMIT);\r\n }\r\n if (familyPlanBeanFromState.getRiskAssessmentEventId() > 0) {\r\n CaseUtility.Event riskAssmtEvent = CaseUtility.getEvent(familyPlanBeanFromState.getRiskAssessmentEventId());\r\n if (riskAssmtEvent != null\r\n && !(CodesTables.CEVTSTAT_APRV.equals(riskAssmtEvent.getCdEventStatus())\r\n || CodesTables.CEVTSTAT_COMP.equals(riskAssmtEvent.getCdEventStatus()))) {\r\n isValid = false;\r\n setErrorMessage(Messages.MSG_RISK_AS_REQ);\r\n }\r\n\r\n }\r\n\r\n // Item must have Current Level of Concern if it was imported from the\r\n // Risk Assessment.\r\n // (The family plan bean from state must be used for this validation\r\n // because the family plan bean created from the request does not contain\r\n // items data.)\r\n List familyPlanItemsVector = (List) familyPlanBeanFromState.getFamilyPlanItemList();\r\n Iterator itemsIter = familyPlanItemsVector.iterator();\r\n while (itemsIter.hasNext()) {\r\n FamilyPlanItemValueBean itemBean = (FamilyPlanItemValueBean) itemsIter.next();\r\n\r\n if (itemBean.isIdentifiedInRiskAssessment() && itemBean.getCurrentLevelOfConcernScale() == null) {\r\n isValid = false;\r\n setErrorMessage(Messages.MSG_FP_AREA_NEEDS_CURRENT_LOC);\r\n break;\r\n }\r\n } // end while ( itemsIter.hasNext() )\r\n\r\n // Item must have at least one task/service that is not completed if:\r\n // 1. Current Level of Concern is 'Somewhat' or greater, or\r\n // 2. Current Level of Concern is blank, and Initial Level of Concern\r\n // is 'Somewhat' or greater.\r\n // (The family plan bean from state must be used for this validation\r\n // because the family plan bean created from the request does not contain\r\n // items data.)\r\n itemsIter = familyPlanItemsVector.iterator();\r\n while (itemsIter.hasNext()) {\r\n FamilyPlanItemValueBean itemBean = (FamilyPlanItemValueBean) itemsIter.next();\r\n\r\n if (CodesTables.CRISKSOC_3.equals(itemBean.getCurrentLevelOfConcernScale())\r\n || CodesTables.CRISKSOC_4.equals(itemBean.getCurrentLevelOfConcernScale())\r\n || CodesTables.CRISKSOC_5.equals(itemBean.getCurrentLevelOfConcernScale())\r\n || (itemBean.getCurrentLevelOfConcernScale() == null && (CodesTables.CRISKSOC_3\r\n .equals(itemBean\r\n .getInitialLevelOfConcernScale())\r\n || CodesTables.CRISKSOC_4\r\n .equals(itemBean\r\n .getInitialLevelOfConcernScale()) || CodesTables.CRISKSOC_5\r\n .equals(itemBean\r\n .getInitialLevelOfConcernScale())))) {\r\n List tasksVector = (List) itemBean.getTasks();\r\n\r\n // If the tasksVector is empty, this item definitely has no\r\n // uncompleted tasks. Set the error message, and break out of the\r\n // while loop. Otherwise, loop through the tasks, and check for an\r\n // uncompleted one.\r\n if (tasksVector == null) {\r\n isValid = false;\r\n String errorMessage = \"<a href='#\" + itemBean.getAreaOfConcernCode() + \"'>\"\r\n + itemBean.getAreaOfConcernText() + \"</a> - \"\r\n + MessageLookup.getMessageByNumber(Messages.MSG_SVC_NEED_PGTS);\r\n setErrorMessage(errorMessage);\r\n } else {\r\n boolean hasUncompletedTask = false;\r\n Iterator tasksIter = tasksVector.iterator();\r\n while (tasksIter.hasNext()) {\r\n FamilyPlanTaskValueBean taskBean = (FamilyPlanTaskValueBean) tasksIter.next();\r\n if (taskBean.getDateTaskCompleted() == null) {\r\n hasUncompletedTask = true;\r\n break;\r\n }\r\n } // end while ( iter.hasNext() )\r\n\r\n // If this item has no uncompleted tasks, set the error message, and\r\n // break out of the while loop.\r\n if (!hasUncompletedTask) {\r\n isValid = false;\r\n String errorMessage = \"<a href='#\" + itemBean.getAreaOfConcernCode() + \"'>\"\r\n + itemBean.getAreaOfConcernText() + \"</a> - \"\r\n + MessageLookup.getMessageByNumber(Messages.MSG_SVC_NEED_PGTS);\r\n setErrorMessage(errorMessage);\r\n } // end if( !hasUncompletedTask )\r\n } // end if( tasksVector == null )\r\n } // end if( CodesTables.CRISKSOC_3.equals( itemBean.getCurrentLevelOfConcernScale() ) ||...\r\n } // end while ( itemsIter.hasNext() )\r\n\r\n // To save and submit an evaluation...\r\n String taskCode = GlobalData.getSzCdTask(request);\r\n if (taskCode.equals(FamilyPlanValueBean.CD_TASK_FPR_FAM_PLAN_EVAL)\r\n || taskCode.equals(FamilyPlanValueBean.CD_TASK_FRE_FAM_PLAN_EVAL)\r\n || taskCode.equals(FamilyPlanValueBean.CD_TASK_FSU_FAM_PLAN_EVAL)) {\r\n // 'Current Review Completed' is required.\r\n if (familyPlanBeanFromRequest.getDateCurrentEvalCompleted() == null) {\r\n isValid = false;\r\n setErrorMessage(\"txtDateReviewedWithFamily\", Messages.SSM_COMPLETE_REQUIRED_SAVE_SUBMIT);\r\n }\r\n\r\n // Each Area of Concern that was addressed prior to the most recent\r\n // approval date (meaning it has been reviewed and approved by a supervisor)\r\n // must have a Current Level of Concern. Also, if the Current Level of\r\n // Concern is 'Somewhat' or greater, it must have been evaluated during\r\n // this evaluation.\r\n Date mostRecentApprovalDate = FamilyPlanConversation.getMostRecentApprovalDate(familyPlanBeanFromState);\r\n itemsIter = familyPlanItemsVector.iterator();\r\n while (itemsIter.hasNext()) {\r\n FamilyPlanItemValueBean itemBean = (FamilyPlanItemValueBean) itemsIter.next();\r\n\r\n if (itemBean.getDateInitiallyAddressed() != null && mostRecentApprovalDate != null\r\n && itemBean.getDateInitiallyAddressed().before(mostRecentApprovalDate)) {\r\n if (itemBean.getCurrentLevelOfConcernScale() == null) {\r\n isValid = false;\r\n String errorMessage = \"<a href='#\" + itemBean.getAreaOfConcernCode() + \"'>\"\r\n + itemBean.getAreaOfConcernText()\r\n + \"</a> - Please enter a 'Current Level of Concern' for this Area of Concern.\";\r\n setErrorMessage(errorMessage);\r\n } else if (CodesTables.CRISKSOC_3.equals(itemBean.getCurrentLevelOfConcernScale())\r\n || CodesTables.CRISKSOC_4.equals(itemBean.getCurrentLevelOfConcernScale())\r\n || CodesTables.CRISKSOC_5.equals(itemBean.getCurrentLevelOfConcernScale())) {\r\n // If there are no eval items, obviously this Area of Concern has\r\n // not been evaluated for this evaluation. Set the error message for\r\n // this Area of Concern.\r\n if (itemBean.getEvalItems() == null) {\r\n isValid = false;\r\n String errorMessage = \"<a href='#\" + itemBean.getAreaOfConcernCode() + \"'>\"\r\n + itemBean.getAreaOfConcernText()\r\n + \"</a> - Please enter an evaluation for this Area of Concern.\";\r\n setErrorMessage(errorMessage);\r\n } else {\r\n // If the most recent eval item does not belong to the current\r\n // evaluation, then an eval item has not been entered for this\r\n // evaluation. Set the error message for this Area of Concern.\r\n FamilyPlanEvalItemValueBean mostRecentEvalItem = null;\r\n mostRecentEvalItem = (FamilyPlanEvalItemValueBean) itemBean.getEvalItems().iterator().next();\r\n if (mostRecentEvalItem.getFamilyPlanEvalEventId() != GlobalData.getUlIdEvent(request)) {\r\n isValid = false;\r\n String errorMessage = \"<a href='#\" + itemBean.getAreaOfConcernCode() + \"'>\"\r\n + itemBean.getAreaOfConcernText()\r\n + \"</a> - Please enter an evaluation for this Area of Concern.\";\r\n setErrorMessage(errorMessage);\r\n }\r\n } // end if( itemBean.getEvalItems() == null )\r\n } // end else if( CodesTables.CRISKSOC_3.equals( itemBean.getCurrentLevelOfConcernScale() ) ||...\r\n } // end if( itemBean.getDateInitiallyAddressed() != null &&...\r\n } // end while( itemsIter.hasNext() )\r\n } // end if ( taskCode.equals( FamilyPlanValueBean.CD_TASK_FPR_FAM_PLAN_EVAL ) ||...\r\n } // end if ( super.isButtonPressed( FamilyPlanConversation.SAVE_SUBMIT_BUTTON ) )\r\n\r\n // **********************************\r\n // *** SAVE (ON ITEM DETAIL PAGE) ***\r\n // **********************************\r\n if (super.isButtonPressed(FamilyPlanConversation.SAVE_BUTTON_ON_ITEM_PAGE)) {\r\n FamilyPlanItemValueBean familyPlanItemBean = FamilyPlanConversation.createFamilyPlanItemValueBean(request);\r\n List tasksVector = (List) familyPlanItemBean.getTasks();\r\n\r\n // 'Task Created' is required for each Task/Service that has a value.\r\n int loopCounter = 0;\r\n Iterator iter = tasksVector.iterator();\r\n while (iter.hasNext()) {\r\n FamilyPlanTaskValueBean taskBean = (FamilyPlanTaskValueBean) iter.next();\r\n if (taskBean.getTask() != null && taskBean.getDateTaskCreated() == null) {\r\n isValid = false;\r\n String fieldName = \"txtDateCreated\" + loopCounter;\r\n setErrorMessage(fieldName, Messages.SSM_COMPLETE_REQUIRED);\r\n }\r\n if(taskBean.getTask() != null && taskBean.isCourtMandatedClosure() && taskBean.getDateCourtAction()== null){\r\n isValid = false;\r\n String fieldName = \"cbxCourtOrdered\" + loopCounter;\r\n setErrorMessage(fieldName, Messages.MSG_DT_CRT_ACTION_REQ); \r\n }\r\n if(familyPlanItemBean.getDateGoalsCompleted()!=null && (taskBean.getDateTaskCompleted()==null && (taskBean.isCourtMandatedClosure() && taskBean.getDateCourtAction()!= null))){\r\n isValid = false;\r\n String fieldName = \"txtDateCompleted\" + loopCounter;\r\n setErrorMessage(\r\n fieldName,\r\n Messages.MSG_DT_TSK_COMP_REQ); \r\n }\r\n loopCounter++;\r\n } // end while ( iter.hasNext() )\r\n } // end if ( super.isButtonPressed( FamilyPlanConversation.SAVE_BUTTON_ON_ITEM_PAGE ) )\r\n\r\n // ********************************************\r\n // *** USED FOR 'FAMILY PLAN SELECTOR' PAGE ***\r\n // ********************************************\r\n // If the user selected a family plan to be evaluated, check that the family\r\n // plan has no unapproved evaluations.\r\n int selectedFamilyPlanEventId = ContextHelper.getIntSafe(request, \"selectedFamilyPlanEventId\");\r\n if (selectedFamilyPlanEventId > 0) {\r\n // Find the family plan the user selected.\r\n ArrayList approvedFamilyPlans = (ArrayList) state.getAttribute(\"approvedFamilyPlans\", request);\r\n Iterator iter = approvedFamilyPlans.iterator();\r\n while (iter.hasNext()) {\r\n FamilyPlanValueBean familyPlanBean = (FamilyPlanValueBean) iter.next();\r\n if (familyPlanBean.getFamilyPlanEvent().getEventId() == selectedFamilyPlanEventId) {\r\n // Now check the family plan for any unapproved evaluations.\r\n if (familyPlanBean.getFamilyPlanEvaluations() != null) {\r\n ArrayList familyPlanEvaluations = (ArrayList) familyPlanBean.getFamilyPlanEvaluations();\r\n Iterator iter2 = familyPlanEvaluations.iterator();\r\n while (iter2.hasNext()) {\r\n // If the evaluation is unapproved, notify the user that they cannot\r\n // create a new evaluation yet.\r\n FamilyPlanEvalValueBean familyPlanEval = (FamilyPlanEvalValueBean) iter2.next();\r\n if (!CodesTables.CEVTSTAT_APRV.equals(familyPlanEval.getEvalEvent().getEventStatusCode())) {\r\n isValid = false;\r\n setErrorMessage(Messages.MSG_FP_PLAN_HAS_PROC_EVAL);\r\n break;\r\n }\r\n } // end while( iter2.hasNext() )\r\n } // end if ( familyPlanBean.getFamilyPlanEvaluations() != null )\r\n } // end if( familyPlanBean.getFamilyPlanEvent().getEventId() == selectedFamilyPlanEventId )\r\n } // end while( iter.hasNext() )\r\n } // end if( selectedFamilyPlanEventId > 0 )\r\n\r\n performanceTrace.getTotalTime();\r\n performanceTrace.exitScope();\r\n\r\n return isValid;\r\n }", "protected abstract void onSubmit(AjaxRequestTarget target, Form form);", "protected GuiTestObject button_registerNowsubmit() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"button_registerNowsubmit\"));\n\t}", "public void selectSubmitButton() {\n\t\tel = Browser.getDriver().findElement(element_submit_button);\n\t\tuihelper.click(el);\n\t}", "void checkFilter(FacesContext context, UIComponent component, Object value) throws ValidatorException;", "private void btnSubmit_click(ActionEvent e) {\n\t\tString stuAnswer = \"\";\r\n\t\tif (rdoItemA.isSelected()) {\r\n\t\t\tstuAnswer = \"A\";\r\n\t\t}\r\n\t\tif (rdoItemB.isSelected()) {\r\n\t\t\tstuAnswer = \"B\";\r\n\t\t}\r\n\t\tif (rdoItemC != null) {\r\n\t\t\tif (rdoItemC.isSelected()) {\r\n\t\t\t\tstuAnswer = \"C\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (rdoItemD != null) {\r\n\t\t\tif (rdoItemD.isSelected()) {\r\n\t\t\t\tstuAnswer = \"D\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!stuAnswer.isEmpty()) {\r\n\t\t\tExamItem bean = eiList.get(questionNO - 1);\r\n\r\n\t\t\tif (bean.getStuAnswer() == null || !bean.getStuAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\tbean.setStuAnswer(stuAnswer);\r\n\t\t\t\tif (bean.getStdAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\t\tbean.setMarkResult(1l);\r\n\t\t\t\t\tbean.setGainScore(bean.getStdScore());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbean.setMarkResult(0l);\r\n\t\t\t\t\tbean.setGainScore(0l);\r\n\t\t\t\t}\r\n\t\t\t\texamItemService.update(bean);\r\n\t\t\t}\r\n\t\t}\r\n\t\tLong result = examItemService.countNull(pk.longValue());\r\n\t\tString message = \"\";\r\n\t\tif ((questionNum - result) > 0) {\r\n\t\t\tmessage = \"还有\" + (questionNum - result) + \"道题未写,确认交卷?\";\r\n\t\t} else {\r\n\t\t\tmessage = \"确认交卷?\";\r\n\t\t}\r\n\t\tint option = JOptionPane.showConfirmDialog(null, message, \"系统提示\", JOptionPane.YES_NO_OPTION);\r\n\t\tif (option == JOptionPane.YES_OPTION) {\r\n\t\t\tLong trueItem = examItemService.countTrue(pk.longValue());\r\n\t\t\tLong totalScore = eiList.get(0).getStdScore() * trueItem;\r\n\t\t\tExam exam = examService.load(pk.longValue());\r\n\t\t\texam.setTotalScore(totalScore);\r\n\t\t\texamService.update(exam);\r\n\t\t\tJOptionPane.showMessageDialog(null, \"考试结束,\" + totalScore + \"分\");\r\n\t\t\tif (listFrm != null) {\r\n\t\t\t\tlistFrm.setVisible(true);\r\n\t\t\t\tthis.dispose();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "@FXML\n\t private void loadsubmit(ActionEvent event) {\n\t \t if (!isReadyForSubmission) {\n\t Alert alert = new Alert(Alert.AlertType.ERROR);\n\t alert.setTitle(\"Failed\");\n\t alert.setHeaderText(null);\n\t alert.setContentText(\"Please select a book to submit\");\n\t alert.showAndWait();\n\t return;\n\t }\n\n\t Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n\t alert.setTitle(\"Confirm Submission Operation\");\n\t alert.setHeaderText(null);\n\t alert.setContentText(\"Are you sure want to return the book ?\");\n\n\t Optional<ButtonType> response = alert.showAndWait();\n\t if (response.get() == ButtonType.OK) {\n\t String id = Bookid.getText();\n\t String ac1 = \"DELETE FROM ISSUE_LMS WHERE BOOKID = '\" + id + \"'\";\n\t String ac2 = \"UPDATE BOOK_LMS SET ISAVAIL = TRUE WHERE ID = '\" + id + \"'\";\n\n\t if (dbhandler.execAction(ac1) && dbhandler.execAction(ac2)) {\n\t Alert alert1 = new Alert(Alert.AlertType.INFORMATION);\n\t alert1.setTitle(\"Success\");\n\t alert1.setHeaderText(null);\n\t alert1.setContentText(\"Book Has Been Submitted\");\n\t alert1.showAndWait();\n\t } else {\n\t Alert alert1 = new Alert(Alert.AlertType.ERROR);\n\t alert1.setTitle(\"Failed\");\n\t alert1.setHeaderText(null);\n\t alert1.setContentText(\"Submission Has Been Failed\");\n\t alert1.showAndWait();\n\t }\n\t } else {\n\t Alert alert1 = new Alert(Alert.AlertType.INFORMATION);\n\t alert1.setTitle(\"Cancelled\");\n\t alert1.setHeaderText(null);\n\t alert1.setContentText(\"Submission Operation cancelled\");\n\t alert1.showAndWait();\n\t }\n\t }", "public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }", "private void submitForm() {\n final Dialog dialog = new Dialog(context);\n\t\t dialog.setContentView(R.layout.dialogbox);\n\t\t dialog.setTitle(\"Sucess!\");\n\t\t dialog.setCancelable(false);\n\t dialog.setCanceledOnTouchOutside(false);\n\t\t TextView txt = (TextView) dialog.findViewById(R.id.errorlog);\n\t\t txt.setText(\"Registration Successfull.\");\n\t\t Button dialogButton = (Button) dialog.findViewById(R.id.release);\n\t\t dialogButton.setOnClickListener(new OnClickListener() {\n\t\t\t public void onClick(View vd) {\n\t\t\t\t change.setEnabled(true);\n\t\t\t\t dialog.dismiss();\n\t\t\n\t\t}\n\t\t});\n\t\t dialog.show();\n}", "@Then(\"^click on the Register button$\")\r\n\tpublic void click_on_the_Register_button() throws Throwable {\n\t register.submitRegistration();\r\n\t}", "@Override\n\tpublic void postRun(FormCheckerForm form) {\n\t}", "private void onClickSignIn(){\n if(checkValidation()){\n //if Validation is ok\n submitForm();\n }\n else{\n //Something went wrong...\n Toast.makeText(LauncherActivity.this, \"Form contains error!\", Toast.LENGTH_LONG).show();\n }\n }", "private void btnConfirmActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public boolean onOkClicked() {\n try {\n if (form.isValid()) {\n String userName = form.getFieldValue(SysUser.USER_NAME_PROPERTY);\n String userAccount = form.getFieldValue(SysUser.USER_ACCOUNT_PROPERTY);\n String passWord = form.getFieldValue(SysUser.USER_PASSWORD_PROPERTY);\n String cPassWord = form.getFieldValue(\"cPassWord\");\n if (!passWord.equals(cPassWord)) {\n form.getField(SysUser.USER_PASSWORD_PROPERTY).setValue(\"\");\n form.getField(\"cPassWord\").setValue(\"\");\n form.getField(SysUser.USER_PASSWORD_PROPERTY).setFocus(true);\n addModel(\"msg\", \"密码不一致\");\n } else if (SysUserDao.getInstance().canCreate(getSysUser().getObjectContext(), userAccount)) {\n if (SysUserDao.getInstance().createSysUser(getSysUser().getObjectContext(), userName, userAccount, passWord)) {\n setRedirect(UserListPage.class);\n } else {\n addModel(\"msg\", \"失败\");\n }\n } else {\n form.getField(SysUser.USER_ACCOUNT_PROPERTY).setFocus(true);\n addModel(\"msg\", \"账号已存在\");\n }\n }\n } catch (Exception e) {\n logger.error(e.getLocalizedMessage(), e);\n }\n return true;\n }", "private void addSubmitListener() {\n\t\tview.addSubmitListener(new SubmitListener());\n\t}", "public void performSubmit() {\n\t\tgetWrappedElement().submit();\n\t}", "private void onClickSaveButton() {\n // Validate and save form\n if (mDynamicForm.validate()) {\n triggerSubmitForm(mDynamicForm.getForm().getAction(), mDynamicForm.save());\n }\n }", "Boolean getIsPosted();", "@Override\n\t\t\tpublic void onSubmitComplete(FormSubmitCompleteEvent event) {\n\n\t\t\t}", "@Test\n\t@TestProperties(name = \"Submit element ${by}:${locator}\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void submitElement() {\n\t\tfindElement(by, locator).submit();\n\t}", "public String onSubmit(Album album)\n\t{\n\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"album\", album);\n\t\treturn \"AddAlbumResponse.xhtml\";\n\t}", "public boolean isForm();", "@Override\n\t\t\tpublic void onSuccess() {\n\t\t\t\tToast.makeText(MainActivity.this, \"submit success\", Toast.LENGTH_LONG).show();\n\t\t\t}", "public WorkFlowResult processActionGradeSubmitAndEditAnotherVersion() {\n\tif (!AssignmentAuthoringBean.checkCsrf(csrfToken))\n return WorkFlowResult.INSTRUCTOR_FEEDBACK_FAILURE;\n\n WorkFlowResult saveResult = processActionGradeSubmit();\n if (WorkFlowResult.INSTRUCTOR_FEEDBACK_FAILURE.equals(saveResult)) {\n return WorkFlowResult.INSTRUCTOR_FEEDBACK_FAILURE;\n }\n WorkFlowResult togo = WorkFlowResult.INSTRUCTOR_FEEDBACK_SAVE_AND_EDIT_PREFIX;\n togo.setNextSubVersion(getNextVersionIdToEdit());\n return togo;\n }", "protected void onSubmitAction(IModel<StringWrapper> model, AjaxRequestTarget target, Form<?> form) {\n }", "@Override\n public void onClick(View v) {\n if(checkEmptyFields()){\n //submit not successful\n }else {\n //add to database\n Toast.makeText(getApplicationContext(), \"Submit Successful\", Toast.LENGTH_SHORT).show();\n }\n }", "public void cashondeliverysubmit(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Submit order button should be clicked\");\r\n\t\ttry{\r\n\t\t\twaitforElementVisible(locator_split(\"btnsubmitorder\"));\r\n\t\t\tclick(locator_split(\"btnsubmitorder\"));\r\n\t\t\tif(isExist(locator_split(\"btnsubmitorder\")))\r\n\t\t\t{\r\n\t\t\t\tclick(locator_split(\"btnsubmitorder\"));\r\n\t\t\t}\r\n\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(\"Submit order button is clicked.\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Submit order button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Submit order button is not clicked \");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnsubmitorder\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public void ClickLogin()\n\t{\n\t\t\n\t\tbtnLogin.submit();\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tBank.getInstance().passOneMonth();\n\t\t\t\tsuccess.setText(\"success! One month has passed..\");\n\t\t\t}", "FormSubmit findFormSubmitFromResponseId( int nIdResponse, Plugin plugin );", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tnew UserData(Username,true,\"Verification\");\n\t\t\t}", "@Override\r\n\tpublic void validate(FacesContext fc, UIComponent arg1, Object arg2)\r\n\t\t\tthrows ValidatorException {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\r\n Boolean isResponseCorrect = Boolean.FALSE;\r\n javax.servlet.http.HttpSession session = request.getSession();\r\n String parm = (String)arg2;\r\n String c = (String) session.getAttribute(MyCaptcha.CAPTCHA_KEY);\r\n if (!parm.equals(c)) {\r\n \tFacesMessage message = new FacesMessage();\r\n \tmessage.setSummary(\"You have entered invalid text for image.\");\r\n \tmessage.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n \tthrow new ValidatorException(message);\r\n\r\n }\r\n\t}", "private void submit_attendance() {\n }", "List<StatisticFormSubmit> selectStatisticFormSubmit( ResponseFilter filter, Plugin plugin );", "private void setupSubmitButton() {\n\t\tImageIcon submit_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"submit.png\");\n\t\tJButton submit_button = new JButton(\"\", submit_button_image);\n\t\tsubmit_button.setBorderPainted(false);\n\t\tsubmit_button.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//only enable submitting if festival has finished to avoid delayed voice prompts\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t}\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}\n\t\t});\n\t\tsubmit_button.addMouseListener(new VoxMouseAdapter(submit_button,null));\n\t\tadd(submit_button);\n\t\tsubmit_button.setBounds(32, 598, 177, 100);\n\t}", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdatabseExecuteQuery(\"UPDATE userdetails SET verify=1 where username='\"+Username+\"'\");\n\t\t\t\t\n\t\t\t\t//after that make verifiacation GUI again \n\t\t\t\tnew Verification();\n\t\t\t}", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n Submit submit0 = new Submit((Component) null, \".\\\"=_m?KP<D\\\"\", \"style\");\n ActionExpression actionExpression0 = submit0.action(\"K]D$m.xC\");\n assertFalse(actionExpression0.isSubmissible());\n }", "@RequirePOST\n public FormValidation doCheckScript() {\n return FormValidation.ok();\n }", "FormSubmit load( int nIdFormResponse, Plugin plugin );", "public boolean verificarSesion(){\n boolean sesionValida = false;\r\n if(FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"usuarioValidado\")!=null){\r\n sesionValida=true;\r\n }\r\n return sesionValida;\r\n }", "public void buttonClick(ClickEvent event) {\n fireEvent(new SubmitEvent(doneButton, SubmitEvent.SUBMITTED));\n \n // close popup window\n close();\n }", "public JButton getVerifyButton() {\n return VerifyButton;\n }", "private void addSubmitButton(Form<BankBillPaymentConfirmPage> form) {\n\t\t// TODO Auto-generated method stub\n\t\tButton confirmBtn = new Button(\"btnConfirm\") {\n\t\t\t\n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\n\t\t\tpublic void onSubmit() {\n\t\t\t\ttry {\n\t\t\t\t\tif (checkCredential(billPayBean.getPin())) {\n\t\t\t\t\t\thandleConfirmBillPayment();\n\t\t\t\t\t} else {\n\t\t\t\t\t\terror(getLocalizer().getString(\"error.invalid.pin\", this));\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\terror(getLocalizer().getString(\"error.exception\", this));\n\t\t\t\t}\n\t\t\t};\n\n\t\t};\n\t\tform.add(confirmBtn);\n\t}", "public void cot_nuevacotizacion(){\n try{\n FacesContext context = FacesContext.getCurrentInstance();\n context.getExternalContext().redirect(\"cot_nuevacotizacion.xhtml\");\n }\n catch(Exception e ){\n System.out.println(\"Error: \"+e);\n }\n }", "private String _getFormSubmitScript(UIComponent component,\n RenderingContext arc,\n String event,\n String detailItemId,\n String formName,\n String compId,\n boolean isImmediate)\n {\n // Check if PPR enabled, do a _submitPartialChange, else do a formSubmit.\n String onClickHandler = \"\";\n boolean pprEnabled =\n PartialPageUtils.supportsPartialRendering(arc);\n\n String validate = \"1\";\n if (isImmediate)\n {\n validate = \"0\";\n }\n\n if (pprEnabled)\n {\n StringBuilder onClickHandlerBuff =\n new StringBuilder(\"_submitPartialChange('\")\n .append(formName)\n .append(\"',\")\n .append(validate)\n .append(\", {event:'\")\n .append(event)\n .append(\"',source:'\")\n .append(compId)\n .append(\"',targetItem:'\")\n .append(detailItemId)\n .append(\"'});return false;\");\n\n onClickHandler = onClickHandlerBuff.toString(); \n }\n else\n {\n StringBuilder onClickHandlerBuff = new StringBuilder(\"submitForm('\")\n .append(formName)\n .append(\"',\")\n .append(validate)\n .append(\", {event:'\")\n .append(event)\n .append(\"',source:'\")\n .append(compId)\n .append(\"',targetItem:'\")\n .append(detailItemId)\n .append(\"'});return false;\");\n\n onClickHandler = onClickHandlerBuff.toString();\n }\n return onClickHandler;\n }", "private void submitForm() {\n this.setDisable(true);\n clearErrorMessage();\n if(validateForm()) {\n CharSequence chars = passwordField.getCharacters();\n String username = usernameField.getText();\n this.controller.validateLoginCredentials(username, chars);\n }\n this.setDisable(false);\n }", "public void CashonDeliverySubmit(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Cashondelivery should be submitted\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btnsubmitorder\"));\r\n\r\n\t\t\tif(isExist(locator_split(\"btnsubmitorder\"))){\r\n\r\n\t\t\t\tclick_submitorder_creditcard();\r\n\r\n\t\t\t}\r\n\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Cashondelivery should be clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Cashondelivery button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnsubmitorder\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "public String guardarCliente(){\r\n System.out.println(cliente.getIdCliente());\r\n if(modelo.ingresarCliente(cliente)!=1){\r\n modelo.modificarCliente(cliente);\r\n JsfUtil.setFlashMessage(\"exito\",\"Cliente modificado exitosamente\");\r\n return \"cliente?faces-redirect=true\";\r\n \r\n }//fin if\r\n else{\r\n JsfUtil.setFlashMessage(\"exito\",\"Cliente registrado exitosamente\");\r\n //forzando la redireccion en el cliente\r\n return \"cliente?faces-redirect=true\";\r\n }\r\n }", "public boolean isAutoSubmit() {\r\n return autoSubmit;\r\n }", "public void OnOkClick()\r\n {\r\n\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(\"am in Validate click\");\n\t\t\t\t\n\t\t\t\tString u=user.getText();\n\t\t\t\n\t\t\t\tString p=pwd.getText();\n\t\t\t\tif(u.equals(\"seed\")&&p.equals(\"infotech\"))\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"You are a Valid user\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"You are a InValid user\");\n\t\t\t\n\t\t\t\t\n\t\t\t}", "public void buttonShowComplete(ActionEvent actionEvent) {\n }", "@When(\"^Click on Register Button$\")\npublic void click_on_Register_Button() throws Throwable {\n\tdriver.findElement(By.id(\"registration_submit\")).click();\n\tSystem.out.println(\"Successfuly completed the regitration process\");\n \n}", "public void validarPago(){\n RequestContext context = RequestContext.getCurrentInstance(); \n pago = new funciones().redondearMas(pago,2);\n intereses = new funciones().redondearMas(intereses,2);\n mora = new funciones().redondearMas(mora,2);\n if(pago < 0){\n pagoValido = false;\n new funciones().setMsj(3,\"Pago no puede ser Negativo\");\n }else if(pago == 0){\n new funciones().setMsj(3,\"Pago debe ser mayor a 0.00\");\n pagoValido = false;\n }else{\n float saldoActual = new funciones().redondearMas(facturaCredito.getSaldoCreditoCompra().floatValue(),2);\n if(pago <= saldoActual){\n if(intereses < 0 || mora < 0){\n //pago invalido\n pagoValido = false;\n new funciones().setMsj(3,\"Monto de INTERESES o MORA negativo\");\n }else{\n //PAGO VALIDO\n pagoValido = true;\n //calcular nuevo Saldo\n nuevoSaldo = new funciones().redondearMas(saldoActual - pago,2);\n }\n }else{\n //pago invalido\n pagoValido = false;\n new funciones().setMsj(2,\"Pago mayor que SALDO ACTUAL\");\n }\n }\n context.addCallbackParam(\"validar\", pagoValido);\n \n }", "protected void validateAction() {\r\n\t\tthis.lblLoading.setVisible(true);\r\n\t\tThread longThread = new Thread(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tMajFicheClientCarteFidelite.this.newsletter = MajFicheClientCarteFidelite.this.valeurCaseNewsletter;\r\n\t\t\t\tif (checkfields()) {\r\n\t\t\t\t\tconfirmation();\r\n\t\t\t\t} else {\r\n\t\t\t\t\talerte();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tlongThread.start();\r\n\t}", "@Then(\"user clicks on apply button\")\r\n\tpublic void user_clicks_on_apply_button() {\n\t WebElement element = Browser.session.findElement(By.xpath(\"//*[@type='submit']\"));\r\n\t try {\r\n\t\t\tThread.sleep(5000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t element.click();\r\n\t}", "public void clickSubmitSearchButton(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Search Button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"btnSearchSubmit\"));\r\n\t\t\tclick(locator_split(\"btnSearchSubmit\"));\r\n\t\t\twaitForPageToLoad(10);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Search Button is clicked\");\r\n\t\t\tSystem.out.println(\"Sarch icon is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Search Button is not clicked \"+elementProperties.getProperty(\"btnSearchSubmit\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnSearchSubmit\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "void okButtonClicked();", "public void submitButtonPushed() throws IOException {\n\n if (vehicleRegistration.getText().isEmpty() || driverLicense.getText().isEmpty()\n || insuranceProvider.getText().isEmpty() || insuranceNumber.getText().isEmpty()) {\n\n Validator.errorBox(\"Incorrect Info\",\n \"Please Enter Valid Information\");\n\n } else {\n\n Stage stage = main.MainLogin.getPrimaryStage();\n\n Parent signInParent = FXMLLoader.load(getClass()\n .getResource(\"/backgroundcheck/BackGroundCheck.fxml\"));\n\n stage.setScene(new Scene(signInParent));\n\n stage.show();\n }\n }", "@Override\r\n\tpublic ActionForward submit(ActionMapping mapping, BaseForm form,\r\n\t\t\tString operation, HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) {\r\n\t\tAuditUtil.getInstance().writeLog(\r\n\t\t\t\tAuditUtil.FILE_TYPE_G4G,\r\n\t\t\t\tnew StringBuffer(this.getClass().getName()).append(\r\n\t\t\t\t\t\tG4GConstants.COLON_WITH_SPACES)\r\n\t\t\t\t\t\t.append(DataUtil.getCurrentMethod()).append(\r\n\t\t\t\t\t\t\t\tG4GConstants.DASHES).append(\r\n\t\t\t\t\t\t\t\tG4GConstants.SUBMIT_STARTS).toString());\r\n\t\treturn mapping.findForward(G4GConstants.HOMEPAGE);\r\n\t}", "private void jButtonOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonOkActionPerformed\n \n }", "protected abstract void onFormSubmit(DataAccessRule rule);", "public boolean onCloseButtonClicked(AjaxRequestTarget target) {\n return true;\r\n }", "@OnClick(R.id.fragment_register_sign_up_button)\n public void validateSignupInformation() {\n mValidator.validate();\n }", "private void submitForm() {\n Toast.makeText(this, \"Registering...\", Toast.LENGTH_LONG).show();\n }", "public void registrarUsuarioFinal(){\r\n Usuario nuevoUsuario= new Usuario();\r\n nuevoUsuario.setNombreUsuario(nuevoNombreUsuario);\r\n nuevoUsuario.setPassword(nuevoPasswordUsuario);\r\n nuevoUsuario.setTipoUsuario(\"final\");\r\n \r\n IUsuarioDAO iusuarioDAO = new UsuarioDAOImp();\r\n iusuarioDAO.agregarUsuario(nuevoUsuario);\r\n FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Usuario registrado\", \"Usuario registrado exitosamente\");\r\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\r\n\r\n }" ]
[ "0.64138365", "0.6336519", "0.61607003", "0.61421937", "0.61068827", "0.60224164", "0.5989054", "0.59148216", "0.5910453", "0.5906476", "0.58905524", "0.58711994", "0.5870774", "0.5865332", "0.5856619", "0.58448625", "0.58282423", "0.5782745", "0.57694745", "0.57439095", "0.57034296", "0.56869906", "0.5679014", "0.5652621", "0.56520677", "0.5647126", "0.56158596", "0.5567644", "0.5560927", "0.5557094", "0.55315834", "0.5519076", "0.55177814", "0.55177814", "0.54359084", "0.5417533", "0.5406909", "0.54066736", "0.5401291", "0.53886145", "0.5387733", "0.53784287", "0.53737664", "0.5369327", "0.53607726", "0.53578967", "0.5347389", "0.5341356", "0.5337549", "0.5333003", "0.53251654", "0.5323749", "0.53138363", "0.53120446", "0.52931666", "0.5292859", "0.5292345", "0.5265281", "0.52586335", "0.52524257", "0.5251886", "0.5251051", "0.5250778", "0.52463686", "0.52348065", "0.5232227", "0.52307117", "0.52288043", "0.5222908", "0.52134615", "0.5210498", "0.5207933", "0.52052027", "0.5199009", "0.51978505", "0.5191138", "0.518934", "0.5182325", "0.51737136", "0.5172316", "0.5168411", "0.5165705", "0.5162767", "0.5162608", "0.51531595", "0.515257", "0.5147787", "0.5136578", "0.5133867", "0.5130237", "0.51248026", "0.5124556", "0.5119768", "0.5115016", "0.51068586", "0.5106467", "0.51016206", "0.510041", "0.50985986", "0.5096597", "0.509631" ]
0.0
-1
workaround for webdriver issue the initial focus of keyboard is in browser's url bar instead on the actual clicked item clicking any button on the page should workaround this problem
@Override public void perform() { pickList.advanced().getSourceList().getItem(ChoicePickerHelper.byIndex().last()).select(); pickList.advanced().getAddButtonElement().click(); pickList.advanced().getRemoveButtonElement().click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void requestFocus() {\n // Not supported for MenuComponents\n }", "@Ignore(\"b/72154153\")\n @Test\n public void testFocusedViewInNormalCase() {\n controller.menuHelper.showMenu();\n controller.menuHelper.assertNavigateToPlayControlsRow();\n assertButtonHasFocus(BUTTON_ID_PLAY_PAUSE);\n controller.pressBack();\n }", "public void keyDown() {\n\n driver.switchTo().activeElement().sendKeys(Keys.ARROW_DOWN);\n driver.switchTo().activeElement().sendKeys( Keys.ENTER);\n\n\n }", "public void focus() {}", "@Test\n\tpublic void rightClick() throws InterruptedException{\n\t\t\n\t\t//System.setProperty(\"webdriver.gecko.driver\", System.getProperty(\"user.dir\")+\"/geckodriver\");\n\t\tdriver = new FirefoxDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\n\t\tdriver.get(\"https://www.google.com/\");\n\t\tdriver.manage().window().maximize();\n\t\tThread.sleep(3000);\n//\t\tWebElement ele = driver.findElement(By.xpath(\"(//input[@class='gLFyf gsfi'])[1]\"));\n//\t\t\n//\t\tele.sendKeys(\"cricbuzz\");\n//\t\tdriver.findElement(By.xpath(\"(//input[@aria-label='Google Search'])[1]\")).click();;\n//\t\tThread.sleep(3000);\n\t\t\n//\t\tdriver.findElement(By.cssSelector(\"body\")).sendKeys(Keys.COMMAND +\"t\");\n//\t\t\n//\t\tThread.sleep(3000);\n//\t\t\n//\t\tArrayList<String> tabs = new ArrayList<String> (driver.getWindowHandles());\n//\t\tdriver.switchTo().window(tabs.get(0));\n\t\t\n\t\tJavascriptExecutor js = (JavascriptExecutor) driver; \n\t\tjs.executeScript(\"window.open()\");\n\t\t\n//\t\tList<String> handles = driver.getWindowHandles().to\n//\t\tdriver.SwitchTo().Window(handles.Last());\n//\n//\t\tdriver.Navigate().GoToUrl(url);\n\t\t\n\t\t\n\t\tThread.sleep(3000);\n\t\tSystem.out.println(\"Navigated to new tab\");\n\n\n}", "public void keyTab(){\n\n try {\n driver.switchTo().activeElement().sendKeys(Keys.TAB);\n\t\t\tLOGGER.info(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Pass \");\n\n }catch(Exception e)\n {\n\t\t\tLOGGER.error(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Fail \");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while clicking on Tab button\");\n\t\t\n }\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent me) {\n\t\t\t\trequestFocusInWindow();\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\trequestFocusInWindow();\n\t\t\t}", "public void clickBackButton() {\n\t\tbackButton.click();\n\n\t}", "public void setFocus() {\n\t}", "public void activateButton() {\n\t\tif (isBrowser) this.bringToBack();\r\n\t\tMainActivity.resetXY();\r\n\t}", "public void setFocus() {\n }", "void requestSearchViewFocus();", "public static void Focus (WebDriver driver) throws Exception{\r\n\t\t\r\n\t\tString testWindowHandle = driver.getWindowHandle();\t// Saving the current test-window handle\r\n\t\t((JavascriptExecutor)driver).executeScript(\"alert('Test')\"); \t// Running javascript and alert code:\r\n\t\tdriver.switchTo().alert().accept();\t// Every time the driver is focusing on other window,\r\n\t\tdriver.switchTo().window(testWindowHandle);\t//\tIt focusing back to to the test-window \r\n\r\n\t\t\t\r\n\t}", "@Test\n\tpublic void switchWindows() throws InterruptedException{\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"/chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\n\t\tdriver.get(\"https://www.google.com/\");\n\t\tdriver.manage().window().maximize();\n\t\tdriver.findElement(By.xpath(\"(//input[@class='gLFyf gsfi'])[1]\")).sendKeys(\"cricbuzz\");\n\t\tdriver.findElement(By.xpath(\"(//input[@aria-label='Google Search'])[1]\")).click();;\n\t\tThread.sleep(3000);\n\n}", "public void backToHome(){\n logger.debug(\"click on Back to Home button\");\n driver.findElement(oBackToHome).click();\n }", "@Override\r\n\tpublic void setFocus() {\r\n\t}", "public void setFocus();", "private void requestDefaultFocus() {\r\n if( getFunctionType() == TypeConstants.DISPLAY_MODE ){\r\n ratesBaseWindow.btnCancel.requestFocus();\r\n }else {\r\n ratesBaseWindow.btnOK.requestFocus();\r\n }\r\n }", "public void clickFreeDaysHistoryMenu() {\r\n\t\tfreeDaysHistoryButton.click();\r\n\t}", "protected void doSetFocus() {\n\t\t// Ignore\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "public void setFocus() {\n \t\t// set initial focus to the URL text combo\n \t\turlCombo.setFocus();\n \t}", "public void clickOnContinueShoppingButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnContinueShoppingButton.click();\n\n \t}", "void focus();", "void focus();", "@Override\n public void setFocus() {\n }", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "public void requestInputFocus(){\n\t\tuserInput.requestFocus();\n\t}", "@Override\r\n\tpublic void setFocus() {\n\t\t\r\n\t}", "public void clickSearchButton() {\n\t\tsearchButton.click();\n\t}", "@Override\n\tpublic void setFocus() {\n\t}", "@Override\r\n\tpublic void focus() {\r\n\t\tactivate();\r\n\t\ttoFront();\r\n\t}", "@Test\n public void ScrollToView() {\n driver.scrollTo(\"Views\");\n // Click on Views.\n driver.findElement(By.name(\"Views\")).click();\n }", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "public static void goTo() {\n\tBrowser.instance.findElement(maintenanceMenu).click();\r\n\tWebElement element = Browser.instance.findElement(By.linkText(\"Tender and Bag Maintenance\"));\r\n Actions action = new Actions(Browser.instance);\r\n action.moveToElement(element).build().perform(); \r\n Browser.instance.findElement(By.linkText(\"Bag Types\")).click();\r\n // WebDriverWait wait = new WebDriverWait(Browser.instance,10);\r\n WebDriverWait wait = new WebDriverWait(Browser.instance,10);\r\n\twait.until(ExpectedConditions.elementToBeClickable(editButton));\r\n//\tBrowser.instance.manage().timeouts().implicitlyWait(5,TimeUnit.SECONDS);\r\n}", "public void Focus() {\n }", "@Override\n\tpublic void beforeClickOn(WebElement element, WebDriver driver) {\n\t\t\n\t}", "@Test\n \tpublic void testFocusHandling() throws FactoryException {\n \n \t\tMainUI ui = new MainUI();\n \t\tButtonPanel bp = new ButtonPanel();\n \t\tui.withModelInteractor(pi).withButtonPanel(bp);\n \t\tRobot robot = BasicRobot.robotWithCurrentAwtHierarchy();\n \n \t\tui.initialize();\n \t\tui.start();\n \t\tbp.start();\n \n \t\t// perform tab key press and wait until it took place\n \t\trobot.pressAndReleaseKey(KeyEvent.VK_TAB);\n \t\trobot.waitForIdle();\n \n \t\t// perform left key press and wait until it took place\n \t\trobot.pressAndReleaseKey(KeyEvent.VK_LEFT);\n \t\trobot.waitForIdle();\n \n \t\t// verify that the game registered the left key press and that it didn't\n \t\t// lose focus\n \t\tverify(pi).left();\n \t\tassertTrue(ui.isFocusOwner());\n \n \t}", "@Test(priority = 1)\n public void test() throws InterruptedException {\n WebDriverWait webDriverWait = new WebDriverWait(driver, 5);\n WebElement main = webDriverWait.until(new ExpectedCondition<WebElement>() {\n @NullableDecl\n public WebElement apply(@NullableDecl WebDriver driver) {\n return driver.findElement(By.id(\"cn.com.open.mooc:id/lav\"));\n }\n });\n// driver.findElement(By.xpath(\"//*[@text='00']\")).click();\n// driver.findElementByAccessibilityId(\"乘\").click();\n// driver.findElement(By.id(\"digit_6\")).click();\n// driver.findElementByAndroidUIAutomator(\"new UiSelector().text(\\\"2\\\")\").click();\n// driver.findElementById(\"com.coloros.calculator:id/eq\").click();\n\n\n// driver.findElementById(\"cn.com.open.mooc:id/lav\").click();\n int x = driver.manage().window().getSize().width;\n int y = driver.manage().window().getSize().height;\n AndroidTouchAction androidTouchAction = new AndroidTouchAction(driver);\n Thread.sleep(1000);\n System.out.println(x + \"===============\" + y);\n androidTouchAction.press(PointOption.point(x * 9 / 10, y * 2150 / 2163)).release().perform();\n// driver.findElement(By.xpath(\"//*[@text='账号']\")).click();\n Thread.sleep(2000);\n driver.findElementById(\"cn.com.open.mooc:id/tvLoginNow\").click();\n Thread.sleep(2000);\n driver.findElementById(\"cn.com.open.mooc:id/WeiboLogin\").click();\n Thread.sleep(5000);\n Set<String> contexts = driver.getContextHandles();\n for (String context : contexts) {\n System.out.println(\"context:\" + context);\n if (context.contains(\"WEBVIEW\")) {\n driver.context(context);\n }\n }\n WebElement loginName = driver.findElement(By.id(\"loginName\"));\n loginName.click();\n loginName.sendKeys(\"13716812206\");\n Thread.sleep(2000);\n\n WebElement loginPass = driver.findElement(By.id(\"loginPassword\"));\n loginPass.click();\n loginPass.sendKeys(\"123123123\");\n Thread.sleep(2000);\n\n driver.findElement(By.id(\"loginAction\")).click();\n Thread.sleep(5000);\n }", "public void clickbtnBack() {\n\t\tdriver.findElement(btnBack).click();\n\t}", "void setFocus();", "@Override\n public void requestFocus() {\n\tif (term != null) {\n\t //term.requestActive(); // Not implemented yet\n\t // TEMPORARY\n\t // boolean result = term.requestFocusInWindow();\n\t term.requestFocus();\n\t}\n }", "public void clickOnfirstSearchItem(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- first item link should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"ByeleSearchItems1\"));\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tsleep(6000);\r\n\t\t\tSystem.out.println(\"first item link clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- first item link is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- first item link is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"ByeleSearchItems1\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public static void clickBackBtn() {\t\n\t\ttry {\n\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"backquest\\\"]\")).click();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Back button doesnt work\");\n\t\t}\n\t}", "@Test\n public void testFocusedViewWithDisabledActionForward() {\n // Fast forward button\n controller.pressKeyCode(KeyEvent.KEYCODE_MEDIA_FAST_FORWARD);\n controller.menuHelper.assertWaitForMenu();\n assertButtonHasFocus(BUTTON_ID_PLAY_PAUSE);\n controller.pressBack();\n\n // Next button\n controller.pressKeyCode(KeyEvent.KEYCODE_MEDIA_NEXT);\n controller.menuHelper.assertWaitForMenu();\n assertButtonHasFocus(BUTTON_ID_PLAY_PAUSE);\n controller.pressBack();\n }", "public void setFocus() {\n \t\tex.setFocus();\n \t}", "@SuppressWarnings(\"deprecation\")\n void updateFocusTraversalKeys() {\n /*\n * Fix for 4514331 Non-editable JTextArea and similar\n * should allow Tab to keyboard - accessibility\n */\n EditorKit editorKit = getEditorKit(editor);\n if (editorKit instanceof DefaultEditorKit) {\n Set<AWTKeyStroke> storedForwardTraversalKeys = editor.\n getFocusTraversalKeys(KeyboardFocusManager.\n FORWARD_TRAVERSAL_KEYS);\n Set<AWTKeyStroke> storedBackwardTraversalKeys = editor.\n getFocusTraversalKeys(KeyboardFocusManager.\n BACKWARD_TRAVERSAL_KEYS);\n Set<AWTKeyStroke> forwardTraversalKeys =\n new HashSet<AWTKeyStroke>(storedForwardTraversalKeys);\n Set<AWTKeyStroke> backwardTraversalKeys =\n new HashSet<AWTKeyStroke>(storedBackwardTraversalKeys);\n if (editor.isEditable()) {\n forwardTraversalKeys.\n remove(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0));\n backwardTraversalKeys.\n remove(KeyStroke.getKeyStroke(KeyEvent.VK_TAB,\n InputEvent.SHIFT_MASK));\n } else {\n forwardTraversalKeys.add(KeyStroke.\n getKeyStroke(KeyEvent.VK_TAB, 0));\n backwardTraversalKeys.\n add(KeyStroke.\n getKeyStroke(KeyEvent.VK_TAB, InputEvent.SHIFT_MASK));\n }\n LookAndFeel.installProperty(editor,\n \"focusTraversalKeysForward\",\n forwardTraversalKeys);\n LookAndFeel.installProperty(editor,\n \"focusTraversalKeysBackward\",\n backwardTraversalKeys);\n }\n\n }", "@Test(enabled = true)\n public void searchForFlight() throws InterruptedException {\n driver.findElement(By.xpath(\"//*[@id='uitk-tabs-button-container']/li[2]\")).click();\n\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.findElement(By.xpath(\"//button[contains(@aria-label,'Going to')]\")).sendKeys(Keys.ARROW_DOWN);\n Thread.sleep(15000);\n\n //d1-btn\n\n }", "private void clickContinueButton() {\n clickElement(continueButtonLocator);\n }", "public void setFocus() {\n \t\tviewer.getControl().setFocus();\n \t}", "public void scrollDownThePageToFindTheEnrollNowButton() {\n By element =By.xpath(\"//a[@class='btn btn-default enroll']\");\n\t scrollIntoView(element);\n\t _normalWait(3000);\n }", "boolean isTestAlwaysFocus();", "private void setFocusToField(WebElement field) {\n\t\tnew Actions(browser).moveToElement(field).click().build().perform();\n\t}", "@Override\r\n public void beforeClickOn(final WebElement arg0, final WebDriver arg1) {\n\r\n }", "public void setFocus() {\n\t\tui.setFocus();\n\t}", "@Test\n public void rightClick(){\n\n driver.get(\"https://the-internet.herokuapp.com/context_menu\");\n// 3- Cizili alan uzerinde sag click yapalim\n // a - ilk once action objesi olusturur\n Actions act = new Actions(driver);\n // b - mouse action yapacagim web elementini locate edilir\n WebElement stripedBox = driver.findElement(By.id(\"hot-spot\"));\n // c - actions objesi ve locate ettigimiz webelementini kullanarak istedigimiz islemi yapalim\n act.contextClick(stripedBox).perform();\n\n// 4- Alert’te cikan yazinin “You selected a context menu” oldugunu test edelim.\n String alertText =driver.switchTo().alert().getText();\n String expectedText = \"You selected a context menu\";\n Assert.assertEquals(alertText,expectedText);\n\n// 5- Tamam diyerek alert’I kapatalim\n driver.switchTo().alert().accept();\n\n\n// 6- Elemental Selenium linkine tiklayalim\n\n String firstHandle = driver.getWindowHandle();\n\n WebElement selenium = driver.findElement(By.xpath(\"//a[text()='Elemental Selenium']\"));\n\n act.click(selenium).perform();\n\n\n\n// 7- Acilan sayfada h1 taginda “Elemental Selenium” yazdigini test edelim\n\n Set<String> windowHandles = driver.getWindowHandles();\n System.out.println(firstHandle);\n\n String secondHandle =\"\";\n for(String each : windowHandles){\n if(!firstHandle.equals(each)){\n secondHandle=each;\n }\n }\n driver.switchTo().window(secondHandle);\n WebElement h1 = driver.findElement(By.tagName(\"h1\"));\n String actual = h1.getText();\n String expected = \"Elemental Selenium\";\n\n WebElement seleniumText = driver.findElement(By.xpath(\"//h1[text()='Elemental Selenium']\"));\n act.moveToElement(seleniumText).perform();\n\n Assert.assertEquals(actual,expected);\n\n }", "@Test(priority = 4)\n\tpublic void select() throws InterruptedException {\n\t\tThread.sleep(800);\t\t\n\t\tWebElement click = driver.findElement(By.xpath(\"/html/body/div[1]/div[3]/div/div/div/div/ul/li[2]/a\"));\n\t\tclick.click();\n\t\tSystem.out.println(click.getText());\n\n\t\tWebElement item = driver.findElement(By.xpath(\"/html/body/div[2]/div/div/div/div/div/div/div[11]/div/div[2]/div/div/div[1]/div\"));\n\t\titem.click();\n\t\tThread.sleep(800);\n\t\t\n\t\tWebElement data = driver.findElement(By.xpath(\"/html/body/div[2]/div/div/div/div/div/div/div[12]/div/div/div[2]/div[2]\"));\n\t\tdata.click(); \n\t\tSystem.out.println(data.getText());\n\t\t\n\t\tThread.sleep(1000);\n\t\tWebElement expandsize = driver.findElement(By.id(\"headingOne265\"));\n\t\texpandsize.click();\n\t\n\t\tThread.sleep(2000);\n\t\tWebElement expandextra = driver.findElement(By.id(\"heading265\"));\n\t\texpandextra.click();\n\t\t\n\t\tThread.sleep(2000);\n\t\tWebElement closeitem = driver.findElement(By.xpath(\"/html/body/div[2]/div/div/div/div/div/div/div[12]/div/div/div[1]/button\"));\n\t\tcloseitem.click();\n\n\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\n\t\tjs.executeScript(\"window.scrollBy(0,-800)\");\n\n\t\t// *********** changing the language of digital menu ***********\n\n\t\tWebElement restaurantlanguage = driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div/div/div/div[1]/a\"));\n\t\trestaurantlanguage.click();\n\t\tThread.sleep(800);\n\t\tclosedialog();\n\t\tThread.sleep(1000);\n\t\tjs.executeScript(\"window.scrollBy(0,1500)\");\n\n\t\t// *********** downloading the App ***********\n\n/**\t\tThread.sleep(800);\n\t\tWebElement downloadapp = driver.findElement(By.xpath(\"/html/body/div[3]/div[1]/div/section/div/div[4]/a[2]/img\"));\n\t\tdownloadapp.click();\n**/\n\n\t}", "public void clickOnSearchButton() {\n elementControl.clickElement(searchButton);\n }", "public void setFocus() {\n\t\tthis.viewer.getControl().setFocus();\n\t}", "public void requestFocus(){\n\t\tusername.requestFocusInWindow();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "static void removeDefaultFocusTraversal() {\n final java.util.Set<AWTKeyStroke> emptyset = Collections.emptySet();\n KeyboardFocusManager kfm =\n KeyboardFocusManager.getCurrentKeyboardFocusManager();\n kfm.setDefaultFocusTraversalKeys(\n KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,\n emptyset);\n kfm.setDefaultFocusTraversalKeys(\n KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS,\n emptyset);\n }", "@Override\r\n public void beforeNavigateBack(final WebDriver arg0) {\n\r\n }", "@Test(priority = 3)\r\n\t//@BeforeMethod\r\n\tpublic void NavigateToPDPPage() throws Exception\r\n\t{\r\n\t\tthis.driver=driver;\r\n Click_Action.Btn_Click(PageObjectModal.WISE_HomePage_Page.WISE_SearchPDPLink, 6, 6,\"Xpath\");\r\n Thread.sleep(1000);\r\n \r\n //**\r\n Set<String> AllWindowHandles = driver.getWindowHandles();\r\n String window1 = (String) AllWindowHandles.toArray()[0];\r\n System.out.print(\"window1 handle code = \"+AllWindowHandles.toArray()[0]);\r\n String window2 = (String) AllWindowHandles.toArray()[1];\r\n System.out.print(\"\\nwindow2 handle code = \"+AllWindowHandles.toArray()[1]);\r\n driver.switchTo().window(window2);\r\n \r\n //**\r\n AssertCls.AssertText(PageObjectModal.WISE_HomePage_Page.WISE_PDPProdName, 6, 6, 6, 5,\"Xpath\");\r\n //AssertCls.AssertText(PageObjectModal.WISE_HomePage_Page.WISE_SearchPDPLink, 1, 2, 5, 5);\r\n //driver.close();\r\n //driver.switchTo().window(window1);\r\n driver.switchTo().window(window1).close();\r\n driver.switchTo().window(window2);\r\n //driver.close();\r\n\t\t\r\n\t\t\t\t\r\n\t}", "@Test\n\tpublic void navigateDemo() throws InterruptedException {\n\t\tdriver.navigate().to(url);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.findElement(By.xpath(\"//input[@type=\\\"submit\\\"]\")).click();\n\t\tThread.sleep(5000);\n\t\tdriver.navigate().back();\n\t\tThread.sleep(5000);\n\t\tdriver.navigate().forward();\n\t\tThread.sleep(3000);\n\t\tdriver.navigate().refresh();\n\t\tThread.sleep(1000);\n\n\t}", "public void clickOnProceedToCheckoutButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnProceedToCheckoutButton.click();\n\n \t}", "public void clickGoToLogin(){\n\t\t\n\t\tgoToLoginBtn.click();\n\t\t\n\t}", "public void mousePressed(MouseEvent e)\r\n/* 73: */ {\r\n/* 74:111 */ if ((SwingUtilities.isLeftMouseButton(e)) || (e.isPopupTrigger())) {\r\n/* 75:112 */ this.isKeyboardFocusEvent = false;\r\n/* 76: */ }\r\n/* 77:114 */ super.mousePressed(e);\r\n/* 78: */ }", "@Override\r\n public void beforeNavigateTo(final String arg0, final WebDriver arg1) {\n\r\n }", "public void actionPerformed(ActionEvent e){\n repaint();\n requestFocus();\n }", "public static void set100(){\n driver.findElement(By.tagName(\"html\")).sendKeys(Keys.chord(Keys.CONTROL, \"0\"));\n }", "void addFocus();", "public void Inter() throws InterruptedException {\n\t\t//Adv.click();\n\t\tJavascriptExecutor js = (JavascriptExecutor)driver;\n\t\t//js.executeScript(\"arguments[0].click()\", Elemnt);\n\t\t//Thread.sleep(3000);\n\t\tjs.executeScript(\"window.scrollBy(0,360)\");\n\t\tThread.sleep(2000);\n\t\tjs.executeScript(\"arguments[0].click()\", Interactiontab);\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Interaction tab has opened successfully\");\n\t\t\n\t\tjs.executeScript(\"window.scrollBy(0,360)\");\n\t\tThread.sleep(2000);\n\t\tjs.executeScript(\"arguments[0].click()\", Sortable);\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Sortable tab has opened successfully\");\n\t\t\n\t\tGrid.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Grid tab has opened successfully\");\n\n\t\tGridThree.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Grid tab has selected firstnumber successfully\");\n\n\t\tGridNine.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Grid tab has selected Second number successfully\");\n\n\t\tjs.executeScript(\"window.scrollBy(0,360)\");\n\t\tThread.sleep(2000);\n\t\tjs.executeScript(\"arguments[0].click()\", Selectable);\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Selectable tab has opened successfully\");\n\t\t\n\t\tList3.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"List tab has selected first number successfully \");\n\t\t\n\t\tList1.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"List tab has selected second number successfully \");\n\t\t\n\t\t\n\t\tGridSelect.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Grid tab has opened successfully in Selectable tab\");\n\n\t\tGridSeven.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Grid tab has selected firstnumber successfully\");\n\t\t\n\t\tGridfive.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Grid tab has selected firstnumber successfully\");\n\t\t\n\t\t\n\t\tjs.executeScript(\"window.scrollBy(0,360)\");\n\t\tThread.sleep(2000);\n\t\tjs.executeScript(\"arguments[0].click()\",Resize);\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Resize tab has opened successfully\");\n\t\t\n\t\tActions act= new Actions(driver);\n\t\tact.dragAndDropBy(arrow, 20, 15).perform();;\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Size has been changed successfully\");\n\n\t\tjs.executeScript(\"window.scrollBy(0,360)\");\n\t\tThread.sleep(2000);\n\t\tjs.executeScript(\"arguments[0].click()\",drop);\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Dropable tab has opened successfully\");\n\t\t\n\t\tActions action=new Actions(driver);\n\t\taction.dragAndDrop(drag, drop1).perform();\n\t\tLogger5.log(Status.PASS, \"Simple drag has performed successfully\");\n\n\t\t\n\t\taccept.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Accept tab has opened successfully\");\n\t\t\n\t\tActions a =new Actions(driver);\n\t\ta.dragAndDrop(aceptable, drop2);\n\t\tThread.sleep(5000);\n\t\tLogger5.log(Status.PASS, \"Accept drag has performed successfully\");\n\n\t\tjs.executeScript(\"window.scrollBy(0,360)\");\n\t\tThread.sleep(2000);\n\t\tjs.executeScript(\"arguments[0].click()\",dragable);\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Draggable tab has opened successfully\");\n\t\t\n\t\tAxis.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Axis restricted tab has opened successfully\");\n\t\t\t\n\t\n\t\tPoint p=xaxis.getLocation();\n\t\tSystem.out.println(\"Position of X-axis is :-\" +p.getX());\n\t\tSystem.out.println(\"Position of Y-axis is :-\" +p.getY());\n\t\tActions x=new Actions(driver);\n\t\tx.dragAndDropBy(xaxis, -100, p.getY());\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"X Axis has moved successfully\");\n\t\n\t\tActions y=new Actions(driver);\n\t\ty.dragAndDropBy(yaxis, 0, 900);\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Y Axis has moved successfully\");\n\t}", "@BeforeTest\n\tpublic void LaunchBrowser() {\n\t\t driver = init(\"URL_JQuery\");\n\t\t// driver.get(\"https://jqueryui.com/autocomplete/\");\n\t\t driver.switchTo().frame(0);\n\t\t jq = new JQueryAutocompletePage(driver);\n\t\t \n\t}", "@Override\r\n public void afterNavigateForward(final WebDriver arg0) {\n\r\n }", "public void requestFocusOnFirstField() {\n btnLookup.requestFocus();\n SwingUtilities.invokeLater(new Runnable() {\n\n /**\n * put your documentation comment here\n */\n public void run() {\n SwingUtilities.invokeLater(new Runnable() {\n\n /**\n * put your documentation comment here\n */\n public void run() {\n //txtReferredBy.requestFocus(); (commented because the lookup should always be through btnLookup\n btnLookup.requestFocus();\n }\n });\n }\n });\n }", "@Override\r\npublic void beforeClickOn(WebElement arg0, WebDriver arg1) {\n\tSystem.out.println(\"as\");\r\n}", "public void ClickOrderByItemLink(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- OrderByItem Link should be clicked\");\r\n\t\ttry{\r\n\t\t\tsleep(1000);\r\n\t\t\twaitforElementVisible(returnByValue(getValue(\"OrderbyItemLinkText\")));\r\n\t\t\tclick(returnByValue(getValue(\"OrderbyItemLinkText\")));\r\n\t\t\twaitForPageToLoad(100);\r\n\t\t\tSystem.out.println(\"OrderByItem Link is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- OrderByItem is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- OrderByItem Link is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(getValue(\"OrderbyItemLinkText\")).toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Test(priority=5)\r\n\t public void ChangePINCodeD() throws AWTException { \r\n\t\t \r\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); // Implicit wait\r\n\t driver.findElement(By.cssSelector(\"#nav-global-location-slot > span > a\")).click(); // Clicking the pincode link\r\n\t \r\n\t \r\n\t String MainWindow=driver.getWindowHandle();\t\t\r\n\t\t\r\n\t // To handle all new opened window.\t\t\t\t\r\n\t Set<String> s1=driver.getWindowHandles();\t\t\r\n\t Iterator<String> i1=s1.iterator();\t\t\r\n\t \r\n\t\twhile(i1.hasNext())\t\t\t\r\n\t {\t\t\r\n\t String ChildWindow=i1.next();\t\t\r\n\t \t\t\r\n\t if(MainWindow.equalsIgnoreCase(ChildWindow))\t\t\t\r\n\t { \t\r\n\t \r\n\t \r\n\t \t\r\n\t driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); // Implicit wait\r\n\t driver.findElement(By.linkText(\"Change\")).click(); // To click the change hyperlink\r\n\t driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); // Implicit wait \t\r\n\t driver.findElement(By.cssSelector(\"#GLUXZipUpdateInput\")).click();\r\n\t driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); // Implicit wait\r\n\t driver.findElement(By.cssSelector(\"#GLUXZipUpdateInput\")).clear();\r\n\t driver.findElement(By.cssSelector(\"#GLUXZipUpdateInput\")).sendKeys(\"421502\");\r\n\t driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); // Implicit wait\r\n\t \r\n\t Robot robot = new Robot(); \r\n\t robot.keyPress(KeyEvent.VK_TAB);// Using robot class to do keyboard tab key event to focus on the apply button\r\n\t\trobot.keyRelease(KeyEvent.VK_TAB); \r\n\t driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); // Implicit wait\r\n\t robot.keyPress(KeyEvent.VK_ENTER); // Using robot class to do keyboard enter key event to save the pincode\r\n robot.keyRelease(KeyEvent.VK_ENTER);\r\n\t }\r\n\t \r\n\t }\r\n\t\r\n\t }", "public void clickHome(){\n try{\n Thread.sleep(500);\n new WebDriverWait(this.driver, 15)\n .until(ExpectedConditions.elementToBeClickable(this.home)).click();\n } catch (Exception e){\n System.out.println(e.getMessage());\n }\n }", "default public void clickBack() {\n\t\tclickMenu();\n\t}", "public void backToFlights(){\n logger.debug(\"click on Back To Flights button\");\n driver.findElement(oBackToFlights).click();\n }", "public void clickgoButton(){\n \n \t \n driver.findElement(By.cssSelector(goButton)).click();\n }", "default public void clickHome() {\n\t\tremoteControlAction(RemoteControlKeyword.HOME);\n\t}", "public void clickOnAddToCartButton()\n \t{\n \t\tproductRequirementsPageLocators.clickAddToCartButton.click();\n\n \t}" ]
[ "0.6581527", "0.63783634", "0.6349637", "0.6237054", "0.6236354", "0.6232287", "0.62277204", "0.6107649", "0.6052411", "0.6004849", "0.59991676", "0.5978497", "0.59782076", "0.59614265", "0.5958819", "0.5951936", "0.59506357", "0.5941871", "0.5938291", "0.5934354", "0.5929839", "0.5911225", "0.5911225", "0.5911225", "0.5911225", "0.5911225", "0.5911225", "0.5911225", "0.5903417", "0.5891122", "0.588715", "0.588715", "0.5882408", "0.5867636", "0.5867636", "0.5867636", "0.5867636", "0.5867636", "0.58663684", "0.5863927", "0.5849169", "0.584725", "0.5841288", "0.58321565", "0.58204174", "0.58204174", "0.58204174", "0.58204174", "0.5804838", "0.57898426", "0.5787429", "0.5778079", "0.57718605", "0.5770184", "0.57643765", "0.576365", "0.5746946", "0.57468104", "0.5744641", "0.5739391", "0.57379216", "0.57285213", "0.5721413", "0.571549", "0.5712131", "0.5706275", "0.569573", "0.5688344", "0.5687153", "0.5682279", "0.5673437", "0.5654637", "0.56519544", "0.56404805", "0.56374407", "0.56374407", "0.56374407", "0.56336135", "0.56321067", "0.5624839", "0.5624657", "0.5609804", "0.56042755", "0.5569966", "0.55646276", "0.55527383", "0.5547317", "0.55449003", "0.55339897", "0.5531789", "0.55241853", "0.5520595", "0.5519301", "0.5517214", "0.55154157", "0.5510616", "0.5507092", "0.5506411", "0.55035955", "0.5501775", "0.54955894" ]
0.0
-1
This method is used for testing the db using the testdb url
protected FirmRepository(String url){ super(TABLE_NAME,KEY,url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 100)\n public void testAccessToDB() {\n System.out.println(\"Starting DB access test\");\n }", "private Database openTestDb(ReplicatedEnvironment master)\n throws DatabaseException {\n\n Environment env = master;\n DatabaseConfig config = new DatabaseConfig();\n config.setAllowCreate(true);\n config.setTransactional(true);\n config.setSortedDuplicates(true);\n Database testDb = env.openDatabase(null, TEST_DB, config);\n return testDb;\n }", "@Test\n\tpublic void populatedDB() throws URISyntaxException{\n\t\tString pass;\n\t\t LoginController controller = new LoginController();\n\t\t \n\t\tpass = controller.gimmeSalt(\"PASSWORD\");\n pass = controller.hashBrowns(pass);\n\t\tdb.insertUser(\"TESTER\", pass, \"EMAIL\",666);\n\t\t\n\t\tdb.insertBusiness(\"Test1\",\"Somewhere\",7);\n\t\tdb.insertBusiness(\"Test2\",\"Somewhere\",8);\n\t\tdb.insertBusiness(\"Test3\",\"Somewhere\",9);\n\t\tlong start=12418*1000*60;\n\t\tlong end=912518*1000*60;\n\t\tdb.insertEvent(\"t1\",\"This is a tester\",start,end,\"Test1\",\"Somewhere\",1231);\n\t\t start=124118*1000*60;\n\t\tend=912518*1000*60;\n\t\tdb.insertEvent(\"t2\",\"This is a tester\",start,end,\"Test1\",\"Somewhere\",674754);\n\t\t start=412418*1000*60;\n\t\tend=912518*1000*60;\n\t\tdb.insertEvent(\"t3\",\"This is a tester\",start,end,\"Test2\",\"Somewhere\",241254);\n\t\tdb.insertEvent(\"t4\",\"This is a tester\",start,end,\"Test2\",\"Somewhere\",5432);\n\t\t start=1924218*1000*60;\n\t\t end=912518*1000*60;\n\t\tdb.insertEvent(\"t5\",\"This is a tester\",start,end,\"Test3\",\"Somewhere\",12);\n\t\t start=124318*1000*60;\n\t\t end=912518*1000*60;\n\t\tdb.insertEvent(\"t6\",\"This is a tester\",start,end,\"Test3\",\"Somewhere\",1241);\n\t\t\n\t\tdb.insertRelation(\"TESTER\",\"Test1\");\n\t\tdb.insertRelation( \"TESTER\",\"Test2\" );\n\t\tdb.insertRelation(\"TESTER\",\"Test3\");\n\t}", "private void openDatabase() {\r\n if ( connect != null )\r\n return;\r\n\r\n try {\r\n // Setup the connection with the DB\r\n String host = System.getenv(\"DTF_TEST_DB_HOST\");\r\n String user = System.getenv(\"DTF_TEST_DB_USER\");\r\n String password = System.getenv(\"DTF_TEST_DB_PASSWORD\");\r\n read_only = true;\r\n if (user != null && password != null) {\r\n read_only = false;\r\n }\r\n if ( user == null || password == null ) {\r\n user = \"guest\";\r\n password = \"\";\r\n }\r\n Class.forName(\"com.mysql.jdbc.Driver\"); // required at run time only for .getConnection(): mysql-connector-java-5.1.35.jar\r\n connect = DriverManager.getConnection(\"jdbc:mysql://\"+host+\"/qa_portal?user=\"+user+\"&password=\"+password);\r\n } catch ( Exception e ) {\r\n System.err.println( \"ERROR: DescribedTemplateCore.openDatabase() could not open database connection, \" + e.getMessage() );\r\n }\r\n }", "@BeforeClass\n public static void setup() {\n getDatabase(\"mandarin\");\n }", "public static void setDatabaseURL(String url){\n databaseURL=url;\n }", "@BeforeEach\n public void setUp() throws ManagedProcessException, SQLException {\n // See https://github.com/vorburger/MariaDB4j\n DBConfigurationBuilder configBuilder = DBConfigurationBuilder.newBuilder();\n configBuilder.setPort(0); // Setting port to 0 to let configBuilder choose a free open port.\n db = DB.newEmbeddedDB(configBuilder.build());\n db.start();\n db.source(\"database.sql\");\n connection = DriverManager.getConnection(db.getConfiguration().getURL(\"test\"));\n mysqlDatabase = new MysqlDatabase(connection);\n }", "public static void setUseTestDatabase(boolean useTestDatabase) {\n }", "@Test\n public void shouldConnectToDB()\n {\n assertTrue(DatabaseHelper.checkConnection());\n }", "@Test\n public void test() throws SQLException {\n System.out.println(new MyDbutilsDemo().load(12));\n }", "@Test\n\tpublic void testGetDbInstance(){\n\t\tConnection c = DatabaseConnect.getInstance();\n\t\tassertTrue(c != null);\t\n\t}", "@Before\r\n\tpublic void setUp() throws SQLException {\n\t\tconn = DBManager.getInstance().getConnection();\r\n\t}", "public void setup() throws DatabaseTestException;", "DBConnect() {\n \n }", "public interface TestableDatabase {\n\n\tString getJdbcUrl();\n\n\tString getUri();\n\n \t/**\n\t * @return the database scheme for the connection. Example: {@code mysql:}\n\t */\n\tdefault String getScheme() {\n\t\treturn dbType().name().toLowerCase() + \":\";\n\t}\n\n\tdefault String getNativeDatatypeQuery(String tableName, String columnName) {\n\t\treturn \"select data_type from information_schema.columns where table_name = '\" + tableName + \"' and column_name = '\" + columnName + \"'\";\n\t}\n\n\tString getExpectedNativeDatatype(Class<?> dataType);\n\n\tdefault String createJdbcUrl(String host, int port, String database, Map<String, String> params) {\n\t\tfinal StringBuilder paramsBuilder = new StringBuilder();\n\t\tif ( params != null && !params.isEmpty() ) {\n\t\t\tparams.forEach( (key, value) -> {\n\t\t\t\tparamsBuilder.append( jdbcParamDelimiter() );\n\t\t\t\tparamsBuilder.append( key );\n\t\t\t\tparamsBuilder.append( \"=\" );\n\t\t\t\tparamsBuilder.append( value );\n\t\t\t} );\n\t\t}\n\t\tString url = \"jdbc:\" + getScheme() + \"//\" + host;\n\t\tif ( port > -1 ) {\n\t\t\turl += \":\" + port;\n\t\t}\n\t\turl += \"/\";\n\t\tif ( database != null ) {\n\t\t\turl += database;\n\t\t}\n\t\tif ( paramsBuilder.length() > 0 ) {\n\t\t\turl += jdbcStartQuery() + paramsBuilder.substring( 1 );\n\t\t}\n\t\treturn url;\n\t}\n\n\tdefault String jdbcStartQuery() {\n\t\treturn \"?\";\n\t}\n\n\tdefault String jdbcParamDelimiter() {\n\t\treturn \"&\";\n\t}\n}", "public static void test()\n\t{\n\t Environment myDbEnvironment = null;\n\t Database myDatabase = null;\n\n\t /* OPENING DB */\n\n\t // Open Database Environment or if not, create one.\n\t EnvironmentConfig envConfig = new EnvironmentConfig();\n\t envConfig.setAllowCreate(true);\n\t myDbEnvironment = new Environment(new File(\"db/\"), envConfig);\n\n\t // Open Database or if not, create one.\n\t DatabaseConfig dbConfig = new DatabaseConfig();\n\t dbConfig.setAllowCreate(true);\n\t dbConfig.setSortedDuplicates(true);\n\t myDatabase = myDbEnvironment.openDatabase(null, \"schema\", dbConfig);\n\n\t Cursor cursor = null;\n\t /* GET <K,V > FROM DB */\n\t DatabaseEntry foundKey = new DatabaseEntry();\n\t DatabaseEntry foundData = new DatabaseEntry();\n\n\t cursor = myDatabase.openCursor(null, null);\n\t cursor.getFirst(foundKey, foundData, LockMode.DEFAULT);\n\n\t do {\n\t try {\n\t String keyString = new String(foundKey.getData(), \"UTF-8\");\n\t String dataString = new String(foundData.getData(), \"UTF-8\");\n\t System.out.println(\"<\" + keyString + \", \" + dataString + \">\");\n\t } catch (UnsupportedEncodingException e) {\n\t e.printStackTrace();\n\t }\n\t } while (cursor.getNext(foundKey, foundData, LockMode.DEFAULT) == OperationStatus.SUCCESS);\n\t if (cursor != null) cursor.close();\n\t System.out.println(\"-----\");\n\t \n\t if (myDatabase != null) myDatabase.close();\n\t if (myDbEnvironment != null) myDbEnvironment.close();\n\t}", "@Override\n\tpublic void initDemoDB() {\n\t}", "@Test\n public void queryTest() {\n // TODO: test query\n }", "protected void setUp() throws Exception {\r\n\t\tmodelDS = new ServiceModelDS(\"dbtest\",\"pizzeria_service\");\r\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\tconnection = DriverManager.getConnection(\"jdbc:mysql://localhost/dbtest\", \"root\", \"\");\r\n\t\tconnection.setAutoCommit(false);\r\n\t}", "public static void openDatabase() {\n\t\ttry {\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\n\t\t\t/* change the name and password here */\n\t\t\tc = DriverManager.getConnection(\n\t\t\t\t\t\"jdbc:postgresql://localhost:5432/testdata\", \"postgres\",\n\t\t\t\t\t\" \");\n\n\t\t\tlogger.info(\"Opened database successfully\");\n\t\t\tc.setAutoCommit(false);\n\t\t\tstatus = OPEN_SUCCESS;\n\n\t\t} catch (Exception e) {\n\t\t\tstatus = OPEN_FAILED;\n\t\t\tlogger.warn(e.getClass().getName() + \": \" + e.getMessage());\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "@Test\n public void testConnectToDb() {\n System.out.println(\"connectToDb\");\n ClienteDAO instance = new ClienteDAO();\n instance.connectToDb();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tDatabaseProvider.setInstance(new DerbyDatabase());\n\t\tdb = DatabaseProvider.getInstance();\t\t\n\t\t\n\t}", "public setup() {\n dbConnection = \"jdbc:\"+DEFAULT_DB_TYPE+\"://\"+DEFAULT_DB_HOST+\":\"+DEFAULT_DB_PORT+\"/\"+DEFAULT_DB_PATH;\n dbType = DEFAULT_DB_TYPE;\n dbUser = DEFAULT_DB_USER;\n dbPass = DEFAULT_DB_PASSWORD;\n beginSetup();\n }", "private void conntest() {\n\t\tDatabaseDao ddao = null;\r\n\t\tString url;\r\n\r\n\t\tif (dbType.getValue().toString().toUpperCase()\r\n\t\t\t\t.equals((\"oracle\").toUpperCase())) {\r\n\t\t\turl = \"jdbc:oracle:thin:@\" + logTxtIp.getText() + \":\"\r\n\t\t\t\t\t+ logTxtPort.getText() + \"/\" + logTxtSdi.getText();\r\n\t\t\tSystem.out.println(\"?\");\r\n\t\t\tddao = new OracleDaoImpl();\r\n\t\t} else {\r\n\t\t\turl = \"jdbc:mysql://\" + logTxtIp.getText() + \":\"\r\n\t\t\t\t\t+ logTxtPort.getText() + \"/\" + logTxtSdi.getText();\r\n\t\t\tddao = new MysqlDaoImpl();\r\n\t\t}\r\n\t\tSystem.out.println(url);\r\n\t\tString result = ddao.connection(url, logTxtId.getText(),\r\n\t\t\t\tlogTxtPw.getText());\r\n\t\tString resultSet;\r\n\t\tif (result.indexOf(\"오류\") != -1)\r\n\t\t\tresultSet = result.substring(result.indexOf(\"오류\"));\r\n\t\telse if (result.indexOf(\"ORA\") != -1)\r\n\t\t\tresultSet = result.substring(result.indexOf(\"ORA\"));\r\n\t\telse {\r\n\t\t\tresultSet = \"접속 테스트 성공\";\r\n\t\t}\r\n\t\tlogLblLogin.setText(resultSet);\r\n\t}", "@Before\n public void prepare() {\n MetaStore metadb = prepareTestDB();\n testObj = new SdbSchemeRewriter(metadb.getAllDBs().get(0));\n }", "@Test\n public void testConnect() throws MainException {\n System.out.println(\"connect\");\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n Connection result = instance.connect();\n assertNotNull(result);\n boolean expResult = true;\n assertEquals(instance.isConnected(), expResult);\n }", "public void test() throws SQLException{\n /*try {\n Class.forName(\"org.sqlite.JDBC\");\n //DriverManager.registerDriver(new org.sqlite.JDBC());\n\n String dbURL=\"JDBC:sqlite://data/data/com.example.boris.myandroidapp/databases/myapp\";\n Connection conn=DriverManager.getConnection(dbURL);\n if(conn!=null){\n System.out.println(\"Connected to the database\");\n DatabaseMetaData dm=(DatabaseMetaData)conn.getMetaData();\n System.out.println(\"Driver name: \"+dm.getDriverName());\n System.out.println(\"Driver version: \"+dm.getDriverVersion());\n System.out.println(\"Product name: \"+dm.getDatabaseProductName());\n System.out.println(\"Product version: \"+dm.getDatabaseProductVersion());\n conn.close();\n }\n }\n catch (ClassNotFoundException e) {\n e.printStackTrace();}\n catch(SQLException ex){\n ex.printStackTrace();\n }*/\n\n }", "@Test\n @Ignore\n public void connectToDatabaseTest() throws SQLException {\n\n DBCConnection connection = new DBCConnection(\"jdbc:mariadb://mysql2.csse.canterbury.ac.nz/seng302-2018-team600-test\", \"seng302-team600\", \"TailspinElla4435\");\n List<String> result = connection.executeSanatizedStatement(\"SELECT * FROM Users WHERE username='ABC1234'\");\n Assert.assertEquals(\"| ABC1234 | Sweeny | null | Todd | password | 1 | 2018-05-16 23:31:22.0 | 1 |\", result.get(0));\n }", "private void testSQLite() {\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tClass.forName(\"org.sqlite.JDBC\");\n\n\t\t\tconn = DriverManager.getConnection(DATABASE_CONNECTION);\n\t\t\t// 建立事务机制,禁止自动提交,设置回滚点\n\t\t\tconn.setAutoCommit(false);\n\n\t\t\tStatement stat = conn.createStatement();\n\t\t\t// User{weibo=null, id=2438418282, name='心情慵懒',\n\t\t\t// screenName='心情慵懒', location='甘肃 陇南', description='',\n\t\t\t// profileImageUrl='http://tp3.sinaimg.cn/2438418282/50/5612515360/1',\n\t\t\t// province='62', city='26', domain ='', gender ='m',\n\t\t\t// url='',\n\t\t\t// allowAllActMsg=false,\n\t\t\t// followersCount=1,\n\t\t\t// friendsCount=40, createdAt=Sun Oct 02 00:00:00 CST 2011,\n\t\t\t// favouritesCount=0, following=false, statusesCount=0,\n\t\t\t// geoEnabled=false,\n\t\t\t// voiderified=false,\n\t\t\t// status=null}\n\n\t\t\tstat.executeUpdate(\"create table userInfo (\"\n\t\t\t\t\t+ \"id PRIMARY KEY NOT NULL,\"// 用户UID\",主键\n\t\t\t\t\t+ \"screenName,\"// 微博昵称\n\t\t\t\t\t+ \"name,\"// 友好显示名称,同微博昵称\n\t\t\t\t\t+ \"province,\"// 省份编码(参考省份编码表)\n\t\t\t\t\t+ \"city,\"// 城市编码(参考城市编码表)\n\t\t\t\t\t+ \"location,\"// 地址\n\t\t\t\t\t+ \"description,\"// 个人描述\n\t\t\t\t\t+ \"url,\"// 用户博客地址\n\t\t\t\t\t+ \"profileImageUrl,\"// 自定义图像\n\t\t\t\t\t+ \"domain,\"// 用户个性化URL\n\t\t\t\t\t+ \"gender,\"// 性别,m--男,f--女,n--未知\n\t\t\t\t\t+ \"followersCount,\"// 粉丝数\n\t\t\t\t\t+ \"friendsCount,\"// 关注数\n\t\t\t\t\t+ \"statusesCount,\"// 微博数\n\t\t\t\t\t+ \"favouritesCount,\"// 收藏数\n\t\t\t\t\t+ \"createdAt,\"// 创建时间\n\t\t\t\t\t+ \"following,\"// 是否已关注(此特性暂不支持)\n\t\t\t\t\t+ \"verified,\"// 加V标示,是否微博认证用户\n\t\t\t\t\t+ \"status,\"// 状态,由取回的字符中提取,意义不明\n\t\t\t\t\t+ \"geoEnabled,\"// 地理状态信息\n\t\t\t\t\t+ \"allowAllActMsg,\"// 由取回的字符中提取,意义不明\n\t\t\t\t\t+ \"weibo,\"// 由取回的字符中提取,意义不明\n\t\t\t\t\t+ \"access_token,\"// 访问Token\n\t\t\t\t\t+ \"access_secret)\");// 访问密钥\n\n\t\t\t// [createdAt=Sat Oct 01 23:51:54 CST 2011,\n\t\t\t// id=3363835379243442, text=养生之道,首在养气。,\n\t\t\t// source=<a href=\"http://mail.sina.com.cn\"\n\t\t\t// rel=\"nofollow\">新浪免费邮箱</a>,\n\t\t\t// isTruncated=false, inReplyToStatusId=-1, inReplyToUserId=-1,\n\t\t\t// isFavorited=false, inReplyToScreenName=,\n\t\t\t// latitude=-1.0,\n\t\t\t// longitude=-1.0,\n\t\t\t// thumbnail_pic=, bmiddle_pic=,\n\t\t\t// original_pic=,\n\t\t\t// mid=3363835379243442,\n\t\t\t// user=null,\n\t\t\t// retweeted_status=null]}\n\n\t\t\tstat.executeUpdate(\"create table statusInfo (\" + \"created_at,\"// 创建时间\n\t\t\t\t\t+ \"id PRIMARY KEY NOT NULL,\"// 微博ID,主键\n\t\t\t\t\t+ \"text,\"// 微博信息内容\n\t\t\t\t\t+ \"source,\"// 微博来源\n\t\t\t\t\t+ \"favorited,\"// 是否已收藏\n\t\t\t\t\t+ \"truncated,\"// 是否被截断\n\t\t\t\t\t+ \"in_reply_to_status_id,\"// 回复ID\n\t\t\t\t\t+ \"in_reply_to_user_id,\"// 回复人UID\n\t\t\t\t\t+ \"in_reply_to_screen_name,\"// 回复人昵称\n\t\t\t\t\t+ \"thumbnail_pic,\"// 缩略图\n\t\t\t\t\t+ \"bmiddle_pic,\"// 中型图片\n\t\t\t\t\t+ \"original_pic,\"// 原始图片\n\t\t\t\t\t+ \"user,\"// 作者信息\n\t\t\t\t\t+ \"retweeted_status)\");// 转发的博文,内容为status,如果不是转发,则没有此字段\n\t\t\tconn.commit();\n\t\t\tconn.close();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"create table error\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tconn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@ActionKey(\"db\")\n\tpublic void testDB() {\n\t\tUser user = User.dao.findById(1, \"qword_id\");\n\t\trenderText(\"data in database:\" + user.getStr(\"qword_id\"));\n\t\t\n\t}", "private void connectDatabase(){\n }", "public void testDbCommand() throws Exception{\n\t}", "public static void connect(boolean isProduction) throws RocksDBException {\n Options options = new Options();\n options.setCreateIfMissing(true);\n options.useFixedLengthPrefixExtractor(8);\n\n // create and open the database\n // create the DB if directory does not exist, then open the DB\n File directory = isProduction ? new File(\"./src/main/java/tables/WeightIndex\") : new File(\"./src/test/java/tables/WeightIndex\");\n String dbPath = directory.getAbsolutePath();\n if (!directory.exists()) {\n if (directory.mkdirs()) {\n System.out.println(\"Directory created\");\n } else {\n System.out.println(\"Failed to create directory\");\n }\n }\n db = RocksDB.open(options, dbPath);\n }", "@BeforeEach\n void testDataSource() throws SQLException {\n jdbcds = new JdbcDataSource();\n jdbcds.setUrl(\"jdbc:h2:mem:dbmembers;DB_CLOSE_DELAY=-1\");\n Flyway.configure().dataSource(jdbcds).load().migrate();\n }", "public DatabaseInterface(String url) throws SQLException {\n sql = DriverManager.getConnection(url);\n }", "public Database(final String u) {\n this.url = u;\n }", "@Before\n public void setUp() throws Exception {\n this.base = new URL(\"http://localhost:\" + port + \"/api/rules\");\n deleteAllJunitDatabaseEntries();\n }", "@Before\n public void setUp() {\n DB.sql2o = new Sql2o(\"jdbc:postgresql://localhost:5432/hair_salon_test\", \"alexander\", \"1234\");\n }", "@After\n\tpublic void tearDown() throws URISyntaxException {\n\t\tTEST_ENVIRONMENT.emptyDb();\n\t\tTEST_ENVIRONMENT.migrateDb();\n\t}", "public void setTestDB(TestRecordDaoImpl testDB) {\n\t\tthis.testDB = testDB;\n\t}", "public void createIntegrationTestDatabase() throws SQLException {\n\n final Connection connection = DriverManager.getConnection(url + \"postgres\", databaseProperties);\n\n connection.prepareStatement(\"DROP DATABASE IF EXISTS test_disassembly\").execute();\n connection.prepareStatement(\"DROP DATABASE IF EXISTS test_import\").execute();\n connection.prepareStatement(\"DROP DATABASE IF EXISTS test_empty\").execute();\n\n connection.prepareStatement(\"CREATE DATABASE test_disassembly\").execute();\n connection.prepareStatement(\"CREATE DATABASE test_import\").execute();\n connection.prepareStatement(\"CREATE DATABASE test_empty\").execute();\n\n connection.close();\n\n createDatabase(TEST_IMPORT);\n createDatabase(TEST_DISASSEMBLY);\n }", "private void connectToDB() {\n try {\n Class.forName(\"org.postgresql.Driver\");\n this.conn = DriverManager.getConnection(prs.getProperty(\"url\"),\n prs.getProperty(\"user\"), prs.getProperty(\"password\"));\n } catch (SQLException e1) {\n e1.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "@Test\r\n public void testSave() throws SQLException{\r\n System.out.println(\"save\");\r\n //when(c.prepareStatement(any(String.class))).thenReturn(stmt);\r\n //mockStatic(DriverManager.class);\r\n //expect(DriverManager.getConnection(\"jdbc:mysql://10.200.64.182:3306/testdb\", \"jacplus\", \"jac567\"))\r\n // .andReturn(c);\r\n //expect(DriverManager.getConnection(null))\r\n // .andReturn(null);\r\n //replay(DriverManager.class);\r\n Title t = new Title();\r\n t.setIsbn(\"888888888888888\");\r\n t.setTitle(\"kkkkkk\");\r\n t.setAuthor(\"aaaa\");\r\n t.setType(\"E\");\r\n int expResult = 1;\r\n int result = TitleDao.save(t);\r\n assertEquals(expResult, result);\r\n }", "public void createURL(){\n urlDB = ( PREFACE + server + \"/\" + database + options);\n }", "private DBHandler getTestHandler() {\n DBHandler handler = null;\n try {\n Connection c = DriverManager.getConnection(\"jdbc:derby:test_db;create=true\");\n handler = new DBHandler(c);\n } catch(SQLException e) {\n e.printStackTrace();\n fail(e.getMessage());\n }\n return handler;\n }", "public Database(String url) {\n this.url = url;\n\n File f = new File(url);\n\n if (f.exists()) {\n try {\n f.mkdirs();\n f.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //create table relationship\n LinkedList<String> relationship_attributes = new LinkedList<>();\n relationship_attributes.add(\"id_entity1\");\n relationship_attributes.add(\"id_entity2\");\n relationship_attributes.add(\"description\");\n this.create_table(\"relationship\", relationship_attributes);\n }", "private void setupDatabase() throws SQLException {\n\t\tdb.open(\"localhost\", 3306, \"wow\", \"greeneconomyapple\");\n\t\tdb.use(\"auctionscan\");\n\t}", "@Test\n\tpublic void test() {\n\t\tString url = \"jdbc:sqlite:\" + Paths.get(\"\")+\"weatherapp.db\";\n\t\tWeatherDatabase db = new WeatherDatabase(url);\n\t\tassert(db.citiesTableFilled());\n\t\tassert(db.containsCity(\"Boston\", \"MA\"));\n\t\tassert(!db.containsCity(\"Boston\", \"RI\"));\n//\t\t\n\t}", "public void testGetConnection() {\r\n \r\n }", "private void mockUpDB() {\n locationDBAdapter.insertLocationData(\n \"ChIJd0UHJHcw2jARVTHgHdgUyrk\",\n \"Baan Thong Luang\",\n \"https://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png\",\n \"https://maps.google.com/maps/contrib/101781857378275784222/photos\",\n \"CmRSAAAAEegLHnt03YODdRQ658VBWtIhOoz3TjUAj1oVqQIlLq0DkfSttuS-SQ3aOLBBbuFdwKbpkbsrFzMWghgyZeRD-n5rshknOXv6p5Xo3bdYr5FMOUGCy-6f6LYRy1PN9cKOEhBuj-7Dc5fBhX_38N_Sn7OPGhTBRgFIvThYstd7e8naYNPMUS2rTQ\",\n \"GOOGLE\",\n \"236/10 Wualai Road Tumbon Haiya, CHIANG MAI\",\n 18.770709,\n 98.978078,\n 0.0);\n\n }", "private void getDatabase(){\n\n }", "@Before\n public void setupDatabase() {\n graphDb = new TestGraphDatabaseFactory().newImpermanentDatabaseBuilder().newGraphDatabase();\n registerShutdownHook(graphDb);\n \n// server = new WrappingNeoServerBootstrapper((GraphDatabaseAPI) graphDb);\n// server.start();\n \n ProcessEngineConfiguration processEngineConfiguration = new ProcessEngineConfiguration();\n processEngineConfiguration.setGraphDatabaseService(graphDb);\n processEngine = processEngineConfiguration.buildProcessEngine();\n }", "@Before\n public void setUp() throws Exception {\n String connectionString = \"jdbc:h2:mem:testing;INIT=RUNSCRIPT from 'classpath:db/create.sql'\";\n Sql2o sql2o = new Sql2o(connectionString, \"\", \"\");\n departmentDao = new Sql2oDepartmentDao(sql2o); //ignore me for now\n conn = sql2o.open(); //keep connection open through entire test so it does not get erased\n }", "@Test\r\n\tpublic void testSQL() throws Exception {\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}// Mysql 的驱动\r\n\t\t// 2. 获取数据库的连接\r\n\t\tjava.sql.Connection conn = java.sql.DriverManager\r\n\t\t\t\t.getConnection(\r\n\t\t\t\t\t\t\"jdbc:mysql://223.203.192.248/ccindex?useUnicode=true&characterEncoding=utf8\",\r\n\t\t\t\t\t\t\"dba\", \"dba\");\r\n\r\n\t\tRowLoad<Connection,List<Map<String, Object>>> c = new RowLoadDB();\r\n\t\tc.setColums(\"hostname\",\"business\",\"log_type\");\r\n\t\tc.setSplit(\"select hostname , business , log_type from node_list where demand='ALLBU' \");\r\n\t\tc.setSource(conn);\r\n\t\tc.load();\r\n\t\t\r\n\t\tList<Map<String, Object>> ll = c.getData();\r\n\t\tSystem.out.println(ll.get(1).get(\"hostname\"));\r\n\t\tconn.close();\r\n\t}", "private void setupDb(){\n try {\n openConnection();\n s.executeUpdate(\"CREATE TABLE IF NOT EXISTS LIB (NAME text UNIQUE , TYPE text, LANGUAGE text, INTRUSIVE text, OPENSOURCE text)\");\n }catch (SQLException e) {\n System.err.println(e.getMessage());\n }finally {\n if (c != null){\n close(c);\n }\n }\n }", "@Test\n public void testGetResultSet() throws MainException {\n System.out.println(\"getResultSet\");\n String queryText = \"select * from infermieri\";\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n instance.connect();\n ResultSet result = instance.getResultSet(queryText);\n assertNotNull(result);\n // TODO review the generated test code and remove the default call to fail.\n }", "public D4mDbQuerySql(String url, String user, String pword) {\n super();\n try {\n conn = DriverManager.getConnection(url, user, pword);\n } catch (SQLException e) {\n log.warn(\"\",e);\n }\n\n }", "@Test\n public void test1() throws SQLException {\n EmbeddedDatabase db = new EmbeddedDatabaseBuilder()\n .generateUniqueName(true)\n .setType(EmbeddedDatabaseType.H2)\n .setScriptEncoding(\"UTF-8\")\n .ignoreFailedDrops(true)\n .addScript(\"schema.sql\")\n .addScripts(\"data.sql\")\n .build();\n\n JdbcTemplate jdbcTemplate = new JdbcTemplate(db);\n jdbcTemplate.execute(\"insert into user (userName, password) values ('xxx1', 'zzz')\");\n jdbcTemplate.execute(\"insert into user (userName, password) values ('xxx2', 'zzz')\");\n ResultSet resultSet = db.getConnection().createStatement().executeQuery(\"select * from user\");\n DBTablePrinter.printResultSet(resultSet);\n\n Connection connection = db.getConnection();\n DBTablePrinter.printTable(connection, \"user\");\n\n // perform actions against the db (EmbeddedDatabase extends javax.sql.DataSource)\n\n db.shutdown();\n }", "public void setUp() throws IOException\r\n\t{\r\n\r\n\t\tgraphDb = new GraphDatabaseFactory().newEmbeddedDatabase( dbPath );\r\n\t\tSystem.out.println(\"Connecting to the database...\"); \r\n\t\tSystem.out.println(\"Done!\");\r\n\r\n\t}", "private void setupDatabase() {\r\n\t\tDatabaseHelperFactory.init(this);\r\n\t\tdatabase = DatabaseHelperFactory.getInstance();\r\n\t}", "public void testImportNonEmptyDB() throws Exception {\n URL testXMLFileURL = getClass().getResource(\"prox2db-testdb.xml\");\n new ImportProx2XMLApp(testXMLFileURL.getFile());\n\n // check the resulting database\n verifyObjects(new String[]{\"0\", \"1\", \"2\", \"3\", \"4\"});\n verifyLinks(new String[][]{\n {\"0\", \"1\", \"2\"},\n {\"1\", \"0\", \"3\"},\n {\"2\", \"1\", \"3\"},\n {\"3\", \"1\", \"2\"},\n {\"4\", \"3\", \"4\"}});\n verifyAttribute(\"name\", \"O\", \"VARCHAR\", new String[][]{\n {\"3\", \"Matthew Cornell\"},\n {\"2\", \"David Jensen\"},\n {\"4\", \"our place (an already existing obj)\"}});\n verifyAttribute(\"obj-type\", \"O\", \"VARCHAR\", new String[][]{\n {\"3\", \"person\"},\n {\"2\", \"person\"},\n {\"1\", \"research group\"}});\n verifyAttribute(\"office-num\", \"O\", \"INTEGER\", new String[][]{\n {\"3\", \"218\"},\n {\"2\", \"238\"}});\n verifyAttribute(\"double-test\", \"O\", \"DOUBLE\", new String[][]{\n {\"3\", \"3\"},\n {\"2\", \"2.1000000000000001\"}}); // NB: values match those in file and take into account double precision math changes in Monet version 4.3.14\n verifyAttribute(\"date-test\", \"O\", \"DATE\", new String[][]{\n {\"3\", \"2003-08-25\"},\n {\"2\", \"1962-10-22\"}});\n verifyAttribute(\"link-test\", \"L\", \"VARCHAR\", new String[][]{\n {\"3\", \"this looks like an object ref: _[xx],_but it isn_t because it_s inside a link attribute\"}});\n verifyAttribute(\"link-type\", \"L\", \"VARCHAR\", new String[][]{\n {\"2\", \"member\"},\n {\"3\", \"member\"},\n {\"4\", \"lives-at\"}});\n verifyAttribute(\"nickname\", \"O\", \"VARCHAR\", new String[][]{\n {\"1\", \"kdl\"},\n {\"2\", \"dj\"},\n {\"3\", \"me\"},\n {\"4\", \"home\"}});\n verifyAttribute(\"sa.implied\", \"L\", \"INTEGER\", new String[][]{\n {\"0\", \"1\"},\n {\"1\", \"1\"}});\n verifyAttribute(\"sa.undefined\", \"O\", \"INTEGER\", new String[][]{{}});\n\n veryifyCollection(\"test-coll\", new String[]{\"0\"},\n new String[][]{\n {\"0\", \"0\", \"#test\"},\n {\"0\", \"1\", \"kdl\"},\n {\"0\", \"2\", \"dj\"},\n {\"0\", \"3\", \"me\"},\n {\"0\", \"4\", \"home\"}},\n new String[][]{\n {\"0\", \"0\", \"0:implied:kdl->dj\"},\n {\"0\", \"1\", \"1:implied:#test->me\"},\n {\"0\", \"2\", \"2:kdl->me\"},\n {\"0\", \"3\", \"3:kdl->dj\"},\n {\"0\", \"4\", \"4:me->home\"}});\n veryifyCollection(\"qg2test\", new String[]{\"1\", \"2\", \"3\"},\n new String[][]{\n {\"1\", \"1\", \"group\"},\n {\"2\", \"1\", \"group\"},\n {\"3\", \"1\", \"group\"},\n {\"1\", \"2\", \"person\"},\n {\"2\", \"3\", \"person\"},\n {\"3\", \"2\", \"person\"}},\n new String[][]{\n {\"1\", \"0\", \"group-person\"},\n {\"2\", \"2\", \"group-person\"},\n {\"3\", \"3\", \"group-person\"}});\n }", "public setup(String dbType, String dbHost, int dbPort, String dbPath, String dbUser, String dbPass) {\n dbConnection = \"jdbc:\"+dbType+\"://\"+dbHost+\":\"+dbPort+\"/\"+dbPath;\n this.dbType = dbType;\n this.dbUser = dbUser;\n this.dbPass = dbPass;\n beginSetup();\n }", "public void setDatabase(Connection _db);", "@Before\n public void initDb() {\n mDatabase = Room.inMemoryDatabaseBuilder(InstrumentationRegistry.getContext(),\n ToDoDatabase.class).build();\n }", "private void testDB(){\n DB=new LinkedList<>(); \n DB.add(new Offer(\"ID1\",\"AGV923\",\"Nico\",\"Leo\",\"Salvo\",\"\"));\n DB.add(new Offer(\"ID2\",\"ADJ325\",\"Tizio\", \"Caio\", \"Sempronio\",\"\"));\n DB.add(new Offer(\"ID3\",\"T56G2G\",\"Antonella\", \"Daniele\",\"\",\"\"));\n }", "@Test\n public void testGetTabella_String() throws MainException, SQLException {\n System.out.println(\"getTabella\");\n String queryText = \"select * from infermieri\";\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n instance.connect();\n ADISysTableModel result = instance.getTabella(queryText);\n assertNotNull(result);\n queryText = \"select * from infermieri where id = -1\";\n result = instance.getTabella(queryText);\n assertTrue(result.getRowCount() == 0);\n }", "@BeforeClass\n\tpublic static void setupDataSource() {\n\t\tdataSource = new SingleConnectionDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/campground\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(\"postgres1\");\n\t\t/* The following line disables autocommit for connections\n\t\t * returned by this DataSource. This allows us to rollback\n\t\t * any changes after each test */\n\t\tdataSource.setAutoCommit(false);\n\n\t}", "public void prepareDatabase(String testName) throws Exception {\n prepareDatabaseFromPath('/' + testName + \"/\" + prepareFileName);\n }", "public void setDatabase(String db) {\n\t\tthis.database = db;\n\t}", "@BeforeEach\n void setUp() {\n dao = new GenericDao(User.class);\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n }", "@BeforeClass\n\tpublic static void setupDataSource() {\n\t\tdataSource = new SingleConnectionDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/nationalpark\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(\"postgres1\");\n\t\t/* The following line disables autocommit for connections\n\t\t * returned by this DataSource. This allows us to rollback\n\t\t * any changes after each test */\n\t\tdataSource.setAutoCommit(false);\n\t}", "public FakeDatabase() {\n\t\t\n\t\t// Add initial data\n\t\t\n//\t\tSystem.out.println(authorList.size() + \" authors\");\n//\t\tSystem.out.println(bookList.size() + \" books\");\n\t}", "@Test\n public void testIsConnected() throws MainException {\n System.out.println(\"isConnected\");\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n instance.connect();\n boolean expResult = true;\n boolean result = instance.isConnected();\n assertEquals(expResult, result);\n instance.disconnect();\n result = instance.isConnected();\n assertEquals(false, result);\n\n }", "DatabaseClient newModulesDbClient();", "@Before\n public void init() throws ConnectionException, IOException {\n\n final ConnectionPool pool = ConnectionPool.getInstance();\n//\n final Connection connection = pool.takeConnection();\n\n final ScriptRunner scriptRunner = new ScriptRunner(connection);\n\n Reader reader = new BufferedReader(new FileReader(UserDaoTest.class.getClassLoader().getResource(\"db_v2.sql\").getPath()));\n\n scriptRunner.runScript(reader);\n\n pool.closeConnection(connection);\n\n }", "@Override\n public void setUp() {\n deleteTheDatabase();\n }", "public SQLHandler(final String db) throws Exception {\n final String url = \"jdbc:mysql://localhost:8889/\" + db;\n final String user = \"root\";\n final String password = \"root\";\n // Table: trips\n // Columns: start_lat, start_lon, end_lat, end_lon,\n // [start_time], end_time, vehicle\n connection = DriverManager.getConnection(url, user, password);\n System.out.println(connection.getMetaData().getURL());\n }", "public DataStoreTest( String testName )\n {\n super( testName );\n }", "@Before\n public void setup() {\n rest = new RestTemplate();\n jdbc = new JdbcTemplate(dataSource);\n playlists = jdbc.query(\"SELECT * FROM \\\"Playlist\\\";\", playlistMapper);\n }", "@GET\n\t@Path(\"/testData\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String testDatabaseInsert() throws UnknownHostException {\n\t\tMongoClientURI uri = new MongoClientURI( System.getenv(\"MONGOLAB_URI\") ); \n\t MongoClient client = new MongoClient(uri);\n \n // get/select database\n DB db = client.getDB(uri.getDatabase());\n \n // get collection named \"user\" from db\n DBCollection collection = db.getCollection(\"TSA\");\n \n // pase JSON string to BasicDBObject\n String jsonInput = \"{name: 'Jeremy', age: 25, country: 'United States'}\";\n BasicDBObject document = (BasicDBObject) JSON.parse(jsonInput);\n \n // insert\n WriteResult result = collection.insert(document);\n System.out.println(\"result: \" + result);\n \n client.close();\n\t\treturn result.toString();\n\t}", "@Test\n public void testSave()throws Exception {\n System.out.println(\"save\");\n String query = \"insert into librarian(name,password,email,address,city,contact) values(?,?,?,?,?,?)\";\n String name = \"Raf\";\n String password = \"rrrr\";\n String email = \"[email protected]\";\n String address = \"1218/7\";\n String city = \"dacca\";\n String contact = \"016446\";\n int expResult = 0;\n \n //when(mockDb.getConnection()).thenReturn(mockConn);\n when(mockConn.prepareStatement(query)).thenReturn(mockPs);\n int result = mockLibrarian.save(name, password, email, address, city, contact);\n assertEquals(result >0, true);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "@BeforeClass\n public static void connectionBeforeClass() {\n String host = \"localhost\";\n String dbname = \"atm\";\n String username = \"root\";\n String password = \"Kinoshka12\";\n\n try (JDBConnector connector = new ConnectorMariaDb(host, dbname, username, password)) {\n BankRepository bankService = new BankRepository(connector);\n connector.getConnection();\n UserRepository repoUser = new UserRepository(connector);\n IAccountRepository repoAccount = new AccountRepository(connector);\n IBank bank = new Bank(10, \"leumi\");\n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n\tpublic void testExistsDB() throws Exception {\n\t\tassertExists(\"The Rodin database should exist\", rodinDB);\n\t}", "private void setupDB(){\n try {\n Class.forName(\"oracle.jdbc.driver.OracleDriver\");\n String url = \"jdbc:oracle:thin:@localhost:1521:orcl\";\n String username = \"sys as sysdba\"; //Provide username for your database\n String password = \"oracle\"; //provide password for your database\n\n con = DriverManager.getConnection(url, username, password);\n }\n catch(Exception e){\n System.out.println(e);\n }\n }", "public Database initDB() {\n Database db = new Database(\"dataBase.db\");\n\n// db.insertData(\"1 Dragos Dinescu [email protected] 0744522600 Digi 10-12-2020\");\n// db.insertData(\"2 Adelina Mirea [email protected] 0733651320 Orange 14-10-2020\");\n// db.insertData(\"3 Radu Sorostinean [email protected] 0733723321 Digi 1-10-2020\");\n// db.insertData(\"4 Andrei Brasoveanu [email protected] 0732341390 Vodafone 12-11-2020\");\n return db;\n\n //db.deleteFromDB();\n //db.updateDB(\"1 alex radu [email protected] 022256926 orange 10/08/2010\");\n }", "static void resetTestDatabase() {\n String URL = \"jdbc:mysql://localhost:3306/?serverTimezone=CET\";\n String USER = \"fourthingsplustest\";\n\n InputStream stream = UserStory1Test.class.getClassLoader().getResourceAsStream(\"init.sql\");\n if (stream == null) throw new RuntimeException(\"init.sql\");\n try (Connection conn = DriverManager.getConnection(URL, USER, null)) {\n conn.setAutoCommit(false);\n ScriptRunner runner = new ScriptRunner(conn);\n runner.setStopOnError(true);\n runner.runScript(new BufferedReader(new InputStreamReader(stream)));\n conn.commit();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n System.out.println(\"Done running migration\");\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tClass.forName(\"org.neo4j.jdbc.Driver\");\n\t\t\n\t\t// Connect\n\t\tProperties info = new Properties();\n\t\tinfo.put(\"user\", \"neo4j\");\n\t\tinfo.put(\"password\", \"123\");\n//\t\tfinal String connectionStr = \"jdbc:neo4j://192.168.1.22:7474/\";\n\t\tfinal String connectionStr = \"jdbc:neo4j://localhost:7474/\";\n\t\tNeo4jConnection con = (Neo4jConnection)DriverManager.getConnection(connectionStr, info);\n\n\t\t// Querying\n\t\tstmt = con.createStatement();\n\t\t\n\t\t\n\t}", "@Test\n public void testQuery(){\n }", "@Before\n\tpublic void setUp() {\n\t\tgateInfoDatabase = new GateInfoDatabase();\t\t\n\t}", "@Test\n public void listAll_200() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n List<Workflow> wfList = new ArrayList<>();\n wfList.add(addMOToDb(1));\n wfList.add(addMOToDb(2));\n wfList.add(addMOToDb(3));\n\n // PREPARE THE TEST\n // Fill in the workflow db\n\n // DO THE TEST\n Response response = callAPI(VERB.GET, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(200, status);\n\n List<Workflow> readWorkflowList = response.readEntity(new GenericType<List<Workflow>>() {\n });\n assertEquals(wfList.size(), readWorkflowList.size());\n for (int i = 0; i < wfList.size(); i++) {\n assertEquals(wfList.get(i).getId(), readWorkflowList.get(i).getId());\n assertEquals(wfList.get(i).getName(), readWorkflowList.get(i).getName());\n assertEquals(wfList.get(i).getDescription(), readWorkflowList.get(i).getDescription());\n }\n\n\n }", "private void connectToDB() throws Exception\n\t{\n\t\tcloseConnection();\n\t\t\n\t\tcon = Env.getConnectionBradawl();\n\t}", "public DBHandler() {\n\n driverName = \"com.mysql.jdbc.Driver\";\n url = \"jdbc:mysql://us-cdbr-azure-southcentral-e.cloudapp.net/newsstand\";\n userId = (String) \"ba7e286a39ae9e\";\n password = (String) \"d89b6d9b\";\n \n }", "private void configureDB() {\n\t\tmDb = mDbHelper.getWritableDatabase();\n\t}", "private void setupDatabase()\n {\n try\n {\n Class.forName(\"com.mysql.jdbc.Driver\");\n }\n catch (ClassNotFoundException e)\n {\n simpleEconomy.getLogger().severe(\"Could not load database driver.\");\n simpleEconomy.getServer().getPluginManager().disablePlugin(simpleEconomy);\n e.printStackTrace();\n }\n\n try\n {\n connection = DriverManager\n .getConnection(String.format(\"jdbc:mysql://%s/%s?user=%s&password=%s\",\n simpleEconomy.getConfig().getString(\"db.host\"),\n simpleEconomy.getConfig().getString(\"db.database\"),\n simpleEconomy.getConfig().getString(\"db.username\"),\n simpleEconomy.getConfig().getString(\"db.password\")\n ));\n\n // Loads the ddl from the jar and commits it to the database.\n InputStream input = getClass().getResourceAsStream(\"/ddl.sql\");\n try\n {\n String s = IOUtils.toString(input);\n connection.createStatement().execute(s);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n input.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n catch (SQLException e)\n {\n simpleEconomy.getLogger().severe(\"Could not connect to database.\");\n simpleEconomy.getServer().getPluginManager().disablePlugin(simpleEconomy);\n e.printStackTrace();\n }\n }", "@BeforeAll\n public static void setupDataSource() {\n dataSource = new SingleConnectionDataSource();\n dataSource.setUrl(\"jdbc:postgresql://localhost:5432/integral-project-test\");\n dataSource.setUsername(\"postgres\");\n dataSource.setPassword(\"postgres1\");\n dataSource.setAutoCommit(false);\n }", "public ApacheDatabase(String db_name) {\n this.db_name = db_name;\n }", "@BeforeEach\n void setUp() {\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n noteDao = new GenericDao(Note.class);\n }", "public MongoDataBase(String dbserver, String dbport, String dbname, String dbuser, String dbpass,int threadnumber, int testcase) {\n\t\tserver = dbserver;\n\t\tdbName = dbname;\n\t\tport = Integer.parseInt(dbport);\n\t\tthis.threadnumber = threadnumber;\n\t\tthis.testcase = testcase;\n\t\tuser = dbuser;\n\t\tpass = dbpass;\n\t\trg = RandomGenerator.getInstance();\n\t\t\n\t}", "public void setUp(final String database) throws IOException {\n\n\t\t// create the database\n\t\ttmpDir = new File(System.getProperty(\"java.io.tmpdir\"), UUID\n\t\t\t\t.randomUUID().toString());\n\t\tdb = new Db();\n\t\tif (database == null) {\n\t\t\tdb.openNewDb(\"testMetaDataDb\", tmpDir, false);\n\t\t} else {\n\t\t\tdb.addDb(\"testMetaDataDb\", database);\n\t\t}\n\t\tdb.setUpDb();\n\t}", "private DBMaster() {\r\n\t\t//The current address is localhost - needs to be changed at a later date\r\n\t\t_db = new GraphDatabaseFactory().newEmbeddedDatabase(\"\\\\etc\\\\neo4j\\\\default.graphdb\");\r\n\t\tregisterShutdownHook();\r\n\t}", "@Test\n\tpublic void testGetConnection() throws SQLException\n\t{\n\t\tassertTrue(DatabaseGateway.getConnection() != null);\n\t}" ]
[ "0.67828006", "0.66797304", "0.6653053", "0.65248805", "0.6441396", "0.64276046", "0.6410741", "0.64020646", "0.6395334", "0.63443756", "0.6311818", "0.6280315", "0.622401", "0.6211445", "0.6197578", "0.6195634", "0.6186344", "0.61857915", "0.6163003", "0.6144025", "0.61249095", "0.6118865", "0.6098862", "0.60969454", "0.60857594", "0.6082553", "0.60664386", "0.60631347", "0.60602695", "0.6046784", "0.60445446", "0.6033661", "0.6032217", "0.6020938", "0.601915", "0.59992594", "0.5981194", "0.59686327", "0.5960826", "0.5958769", "0.59362775", "0.593434", "0.5933442", "0.5923932", "0.59197664", "0.591866", "0.5911853", "0.5909959", "0.59075046", "0.5903373", "0.58858323", "0.58840144", "0.5878099", "0.58643186", "0.58537185", "0.5840865", "0.5828101", "0.58277476", "0.5813974", "0.5793526", "0.5782441", "0.57726276", "0.5772058", "0.57686627", "0.5767671", "0.57648766", "0.5763554", "0.5763118", "0.5762577", "0.5758957", "0.575394", "0.5745306", "0.57448095", "0.5740665", "0.5731883", "0.5730249", "0.5728025", "0.57271653", "0.57241875", "0.5723524", "0.571628", "0.5715682", "0.57096756", "0.57093656", "0.5708465", "0.57072353", "0.57060325", "0.5702331", "0.5699567", "0.5697462", "0.5689376", "0.56889725", "0.56837785", "0.5681766", "0.5681215", "0.56740576", "0.5673594", "0.5672449", "0.56690377", "0.56556845", "0.56532454" ]
0.0
-1
Constructor for a particle object that takes a coordinate value and a life value, the latter being used to determine how long the particle stays on the level for.
public Particle(int x, int y, int life) { this.x = x; this.y = y; this.xDouble = x; this.yDouble = y; this.zDouble = 0.0; this.life = life + (random.nextInt(life) - life / 2); this.sprite = particle_normal; // Sets the distance delta for the particle to travel to a // random (bell-curved) value in the range -1 to 1 this.xDelta = random.nextGaussian() / 2; this.yDelta = random.nextGaussian() / 2; this.zDelta = random.nextFloat() + 1.5; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Particle(Point2D.Double c)\n {\n center = c;\n }", "public Particle(double x, double y, int depth)\n\t{\n\t\tposition = new Vec3f(x,y,0);\n\t\tthis.depth=depth;\n\t}", "public Particle(double xstart, double ystart, double velx, double vely, Compound c) {\r\n\t\tpos = new Vector(xstart, ystart);\r\n\t\tvel = new Vector(velx, vely);\r\n\t\tcompound = c;\r\n\t\tactivated = false;\r\n\t}", "public Particle() {\n\t}", "public EntityDataParticle() {\n\t\tm_speed=0.5f;\n\t\tm_rotation=0;\n\t\tm_duration=0.5f;\n\t\tm_type=0;\n\t}", "public Particle(float x, float y, float radius) {\n\t\tthis.position = new Vector2d(x, y);\n\t\tthis.radius = radius;\n\t}", "public Explosion(int particleNr, int x, int y) {\r\n\t\tthis.state = STATE_ALIVE;\r\n\t\tthis.particles = new Particle[particleNr];\r\n\t \tfor (int i = 0; i < this.particles.length; i++) {\r\n\t\t\tParticle p = new Particle(x, y);\r\n\t\t\tthis.particles[i] = p;\r\n\t\t}\r\n\t \tthis.size = particleNr;\r\n\t}", "public void spawnParticle(String particle, double x, double y, double z, double dx, double dy, double dz, double speed, int count);", "public Particle(int id, int xTile, int yTile, int lifetime, MovementType mType) {\n this.id = id;\n this.lifetime = lifetime;\n \n this.mType = mType;\n \n //Insert this particle type into the list of particle types\n particles[id] = this;\n \n //Calculate the indexed location of this particle on the SpriteSheet\n tileID = xTile + yTile * (Screen.TILE_SHEET_SIZE / Screen.TILE_SIZE);\n }", "public Particle(FitnessFunction fitnessFunc){\n rnd = new Random();\n position = new double[2];\n position[0] = rnd.nextDouble()*(upperp - lowerp) + lowerp;\n position[1] = rnd.nextDouble()*(upperp - lowerp) + lowerp;\n pbest = position;\n v = new double[2];\n v[0] = rnd.nextDouble()*(upperv - lowerv) + lowerv;\n v[1] = rnd.nextDouble()*(upperv - lowerv) + lowerv;\n this.fitnessFunction = fitnessFunc;\n }", "public Ship(int l){\n this.lifePoints=l;\n }", "private Point(int param, double value) {\r\n this(param, value, false);\r\n }", "public VariablePoint2(){\n super(0, 0);\n x = 0;\n y = 0;\n }", "public VariablePoint2(double x, double y){\n super(x, y);\n this.x = x;\n this.y = y;\n }", "public Point(int x, int y)\n\t{\n\t\t// Instantiate properties with parameter values \n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "public void spawnParticle ( Particle particle , double x , double y , double z , int count ) {\n\t\thandleOptional ( ).ifPresent ( handle -> {\n\t\t\tof ( particle ).display ( new Location ( getWorld ( ) , x , y , z ) ,\n\t\t\t\t\t\t\t\t\t 0.0F , 0.0F , 0.0F , 1.0F , count , null , handle );\n\t\t} );\n\t}", "public void spawnParticle ( Particle particle , double x , double y , double z , int count , double offsetX ,\n\t\t\tdouble offsetY , double offsetZ , double extra ) {\n\t\tspawnParticle ( particle , x , y , z , count , offsetX , offsetY , offsetZ );\n\t}", "Particles particles();", "public Particle(Point[] landmarks, int width, int height) {\r\n this.landmarks = landmarks;\r\n this.worldWidth = width;\r\n this.worldHeight = height;\r\n random = new Random();\r\n x = random.nextFloat() * width;\r\n y = random.nextFloat() * height;\r\n orientation = random.nextFloat() * 2f * ((float)Math.PI);\r\n forwardNoise = 0f;\r\n turnNoise = 0f;\r\n senseNoise = 0f; \r\n }", "public BossEnemy(double xCoord, double yCoord){\r\n super(xCoord, yCoord, 0, 0, 40, 20, 100);\r\n velocity = 6;\r\n }", "Point(int x_, int y_){\n x = x_;\n y = y_;\n }", "public Entity( int x, int y){\n this.x = x;\n this.y = y;\n }", "public void spawnParticle ( Particle particle , double x , double y , double z , int count , double offsetX ,\n\t\t\tdouble offsetY , double offsetZ ) {\n\t\thandleOptional ( ).ifPresent ( handle -> {\n\t\t\tof ( particle ).display ( new Location ( getWorld ( ) , x , y , z ) ,\n\t\t\t\t\t\t\t\t\t ( float ) offsetX , ( float ) offsetY , ( float ) offsetZ ,\n\t\t\t\t\t\t\t\t\t 1.0F , count , null , handle );\n\t\t} );\n\t}", "public Particle(String id, String spritename) {\r\n\t\tsuper(id);\r\n\t\tsprite = Sprite.getSprite(spritename); //FIXME: use a generic particle sprite\r\n\t}", "public Point(Vector position) {\n\t\tthis(position, 5.0);\n\t}", "@Test\n public void testUpdateParticle() {\n\n pe.updateParticle(p, 0.0f, new Vector3f(), new Vector3f());\n // at the very start of the anim, the particle should be its start size\n assertThat(p.size, is(0.2f));\n // when some time has passed the particle should have a different size\n p.life -= 2.0f;\n pe.updateParticle(p, 2.0f, new Vector3f(), new Vector3f());\n assertThat(p.size, is(0.56f));\n // updating start-size should change the value\n pe.setStartSize(0.7f);\n // please note that there is no change in life here!\n pe.updateParticle(p, 0.0f, new Vector3f(), new Vector3f());\n assertThat(p.size, is(0.96000004f));\n // same goes for endSize\n pe.setEndSize(3.0f);\n pe.updateParticle(p, 0.0f, new Vector3f(), new Vector3f());\n assertThat(p.size, is(1.1600001f));\n }", "public Position(Position position) {\n this.x = position.x;\n this.y = position.y;\n this.xVelocity = position.xVelocity;\n this.yVelocity = position.yVelocity;\n this.xAcceleration = position.xAcceleration;\n this.yAcceleration = position.yAcceleration;\n }", "public Entity(float x, float y) {\n this.position = new Point(0,0);\n realX = x;\n realY = y;\n determinePosition();\n }", "public Point(float x, float y)\n {\n this.x = x;\n this.y = y;\n }", "public PositionComponent(float x, float y) {\n\t\tthis(x, y, 0);\n\t}", "public Entity(double x, double y, double width, double height) {\n\t\tsuper(x, y, width, height);\n\t}", "public Coordinate(int x,int y)\n {\n this.x = x;\n this.y = y;\n }", "public FloatingDamageText(int value, Color color, float x, float y, int life) {\n this.value = value;\n this.color = color;\n this.x = x;\n this.y = y;\n this.life = life;\n }", "public ParticleEmotion(World world, Entity host, double posX, double posY, double posZ, float height, int hostType, int emoType)\r\n {\r\n super(world, posX, posY, posZ);\r\n this.host = host;\r\n this.setSize(0F, 0F);\r\n this.setPosition(posX, posY, posZ);\r\n this.prevPosX = posX;\r\n this.prevPosY = posY;\r\n this.prevPosZ = posZ;\r\n this.motionX = 0D;\r\n this.motionZ = 0D;\r\n this.motionY = 0D;\r\n this.particleType = emoType;\r\n this.particleScale = this.rand.nextFloat() * 0.05F + 0.275F;\r\n this.particleAlpha = 0F;\r\n this.playSpeed = 1F;\r\n this.playSpeedCount = 0F;\r\n this.stayTick = 10;\r\n this.stayTickCount = 0;\r\n this.fadeTick = 0;\r\n this.fadeState = 0; //0:fade in, 1:normal, 2:fade out, 3:set dead\r\n this.frameSize = 1;\r\n this.addHeight = height;\r\n this.hostType = hostType; //0:any entity, 1:entity, 2:block\r\n this.particleAge = -1; //prevent showing the emo's initial moving from posY = 0\r\n this.canCollide = false;\r\n \r\n //set icon position\r\n switch(this.particleType)\r\n {\r\n case 1: //小愛心\r\n \tthis.particleIconX = 0.0625F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 4;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n\t\t\tbreak;\r\n case 2: //噴汗\r\n \tthis.particleIconX = 0.0625F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 3;\r\n \t//cancel fade in\r\n \tthis.particleAlpha = 1F;\r\n \tthis.fadeState = 1;\r\n \tthis.fadeTick = 5;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n \tbreak;\r\n case 3: //問號\r\n \tthis.particleIconX = 0.125F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n\t\t\tbreak;\r\n case 4: //驚嘆號\r\n \tthis.particleIconX = 0.125F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//long stay\r\n \tthis.stayTick = 20;\r\n \tbreak;\r\n case 5: //點點點\r\n \tthis.particleIconX = 0.1875F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 20;\r\n \t//slow play\r\n \tthis.playSpeed = 0.5F;\r\n\t\t\tbreak;\r\n case 6: //冒青筋\r\n \tthis.particleIconX = 0.1875F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \tbreak;\r\n case 7: //音符\r\n \tthis.particleIconX = 0.25F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 15;\r\n \tthis.playTimes = 1;\r\n \t//cancel fade in\r\n \tthis.particleAlpha = 1F;\r\n \tthis.fadeState = 1;\r\n \tthis.fadeTick = 3;\r\n \t//short stay\r\n \tthis.stayTick = 3;\r\n \t//slow play\r\n \tthis.playSpeed = 0.7F;\r\n \tbreak;\r\n case 8: //cry\r\n \tthis.particleIconX = 0.3125F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 3;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n \t//slow play\r\n \tthis.playSpeed = 0.5F;\r\n \tbreak;\r\n case 9: //流口水\r\n \tthis.particleIconX = 0.3125F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 2;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//no stay\r\n \tthis.stayTick = 1;\r\n \t//slow play\r\n \tthis.playSpeed = 0.5F;\r\n \tbreak;\r\n case 10: //混亂\r\n \tthis.particleIconX = 0.375F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 4;\r\n \t//cancel fade in\r\n \tthis.particleAlpha = 1F;\r\n \tthis.fadeState = 1;\r\n \tthis.fadeTick = 3;\r\n \t//short stay\r\n \tthis.stayTick = 1;\r\n \tbreak;\r\n case 11: //尋找\r\n \tthis.particleIconX = 0.375F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 2;\r\n \t//cancel fade in\r\n \tthis.particleAlpha = 1F;\r\n \tthis.fadeState = 1;\r\n \tthis.fadeTick = 3;\r\n \t//short stay\r\n \tthis.stayTick = 0;\r\n \t//slow play\r\n \tthis.playSpeed = 0.75F;\r\n \tbreak;\r\n case 12: //驚嚇\r\n \tthis.particleIconX = 0.4375F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 14;\r\n \tthis.playTimes = 1;\r\n \t//cancel fade in\r\n \tthis.particleAlpha = 1F;\r\n \tthis.fadeState = 1;\r\n \tthis.fadeTick = 3;\r\n \t//long stay\r\n \tthis.stayTick = 20;\r\n \t//slow play\r\n \tthis.playSpeed = 0.75F;\r\n \t//large frame\r\n \tthis.frameSize = 2;\r\n \tbreak;\r\n case 13: //點頭\r\n \tthis.particleIconX = 0.5F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 2;\r\n \t//cancel fade in\r\n \tthis.particleAlpha = 1F;\r\n \tthis.fadeState = 1;\r\n \tthis.fadeTick = 3;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n \t//slow play\r\n \tthis.playSpeed = 0.75F;\r\n \tbreak;\r\n case 14: //+_+\r\n \tthis.particleIconX = 0.5F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 2;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n \tbreak;\r\n case 15: //kiss\r\n \tthis.particleIconX = 0.5625F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//long stay\r\n \tthis.stayTick = 15;\r\n \t//slow play\r\n \tthis.playSpeed = 0.7F;\r\n \tbreak;\r\n case 16: //lol\r\n \tthis.particleIconX = 0.5625F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 3;\r\n \t//cancel fade in\r\n \tthis.particleAlpha = 1F;\r\n \tthis.fadeState = 1;\r\n \tthis.fadeTick = 3;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n \tbreak;\r\n case 17: //奸笑\r\n \tthis.particleIconX = 0.625F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 15;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//slow play\r\n \tthis.playSpeed = 0.5F;\r\n \tbreak;\r\n case 18: //殘念\r\n \tthis.particleIconX = 0.6875F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n \t//slow play\r\n \tthis.playSpeed = 0.4F;\r\n \tbreak;\r\n case 19: //舔舔\r\n \tthis.particleIconX = 0.6875F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 3;\r\n \t//cancel fade in\r\n \tthis.particleAlpha = 1F;\r\n \tthis.fadeState = 1;\r\n \tthis.fadeTick = 3;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n \t//slow play\r\n \tthis.playSpeed = 0.75F;\r\n \tbreak;\r\n case 20: //orz\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//long stay\r\n \tthis.stayTick = 20;\r\n \t//slow play\r\n \tthis.playSpeed = 0.5F;\r\n \tbreak;\r\n case 21: //O\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 40;\r\n \tbreak;\r\n case 22: //X\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0.5625F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 40;\r\n \tbreak;\r\n case 23: //!?\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0.625F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 40;\r\n \tbreak;\r\n case 24: //rock\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0.6875F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 40;\r\n \tbreak;\r\n case 25: //paper\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0.75F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 40;\r\n \tbreak;\r\n case 26: //scissors\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0.8125F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 40;\r\n \tbreak;\r\n case 27: //-w-\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0.875F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 40;\r\n \tbreak;\r\n case 28: //-口-\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0.9375F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 40;\r\n \tbreak;\r\n case 29: //blink\r\n \tthis.particleIconX = 0.8125F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//slow play\r\n \tthis.playSpeed = 0.35F;\r\n \t//long stay\r\n \tthis.stayTick = 20;\r\n \tbreak;\r\n case 30: //哼\r\n \tthis.particleIconX = 0.8125F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//slow play\r\n \tthis.playSpeed = 0.75F;\r\n \t//short stay\r\n \tthis.stayTick = 3;\r\n \tbreak;\r\n case 31: //臉紅紅\r\n \tthis.particleIconX = 0.875F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 3;\r\n \tthis.particleScale += 0.2F;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//slow play\r\n \tthis.playSpeed = 0.75F;\r\n \t//long stay\r\n \tthis.stayTick = 30;\r\n \tbreak;\r\n case 32: //尷尬\r\n \tthis.particleIconX = 0.875F;\r\n \tthis.particleIconY = 0.25F;\r\n \tthis.particleMaxAge = 5;\r\n \tthis.playTimes = 4;\r\n \t//slow play\r\n \tthis.playSpeed = 0.75F;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n \tbreak;\r\n case 33: //:P\r\n \tthis.particleIconX = 0.875F;\r\n \tthis.particleIconY = 0.625F;\r\n \tthis.particleMaxAge = 4;\r\n \tthis.playTimes = 1;\r\n \t//slow play\r\n \tthis.playSpeed = 0.25F;\r\n \t//long stay\r\n \tthis.stayTick = 30;\r\n \tbreak;\r\n case 34: //|||\r\n \tthis.particleIconX = 0.875F;\r\n \tthis.particleIconY = 0.9375F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.particleScale += 0.3F;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 50;\r\n \tbreak;\r\n default: //汗\r\n \tthis.particleIconX = 0F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 15;\r\n \tthis.playTimes = 1;\r\n\t\t\tbreak;\r\n }\r\n \r\n //init position\r\n this.px = posX;\r\n this.py = posY;\r\n this.pz = posZ;\r\n this.addx = 0D;\r\n this.addy = 0D;\r\n this.addz = 0D;\r\n \r\n calcParticlePosition();\r\n }", "protected ParticleSys(ParticleSystem _system, float _lifeTime, String _ref)\r\n {\r\n mRef = _ref;\r\n mSystem = _system;\r\n mLife = _lifeTime;\r\n }", "public Boss(String line, String ship, String explosion, Point pos){\r\n\t\tsuper(line,pos,ship,explosion);\r\n\t\tposition=pos;\r\n\t\tbossHb = new Health(600, 10);\r\n\t\tinPosition=false;\r\n\t}", "public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }", "public Space_Object(int xPos, int yPos, int xVel, int yVel, int objectDiameter, Color objectColor, Universe theUniverse)\n {\n xPosition = xPos;\n yPosition = yPos;\n xSpeed = xVel;\n ySpeed = yVel;\n color = objectColor;\n diameter = objectDiameter;\n universe = theUniverse;\n groundPosition = universe.getGround();\n lifeTime = 1000000;\n destroyed = false;\n //degrees = 1;\n \n }", "public Property(String name, int pos, int rent, int oneH, int twoH, int threeH, int fourH,\n\t int hotel, int value, int houses) {\n\t\tthis.rent = rent;\n\t\tthis.oneH = oneH;\n\t\tthis.twoH = twoH;\n\t\tthis.threeH = threeH;\n\t\tthis.fourH = fourH;\n\t\tthis.hotel = hotel;\n\t\tthis.value = value;\n\t\tthis.houses = houses;\n\t\tbuildings = 0;\n\t\tmonopoly = false;\n\t\towned = false;\n\n\t\tthis.pos = pos;\n\t\tthis.name = name;\n\t}", "public void spawnParticle ( Particle particle , Location location , int count ,\n\t\t\tdouble offsetX , double offsetY , double offsetZ ) {\n\t\thandleOptional ( ).ifPresent ( handle -> {\n\t\t\tof ( particle ).display ( location ,\n\t\t\t\t\t\t\t\t\t ( float ) offsetX , ( float ) offsetY , ( float ) offsetZ ,\n\t\t\t\t\t\t\t\t\t 1.0F , count , null , handle );\n\t\t} );\n\t}", "public Position(double x, double y, double z) {\n xCoord = x;\n yCoord = y;\n zCoord = z;\n }", "ShooterExplosion(int x, int y) {\n super(x, y);\n }", "private Point(int param, double value, boolean measured) {\r\n this.param = param;\r\n this.value = value;\r\n this.measured = measured;\r\n }", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "public ParticleSystem (GlContext ctx, Scope parentScope, ParticleSystemConfig config)\n {\n super(ctx, parentScope);\n setConfig(ctx, config);\n }", "public void spawnParticle ( Particle particle , Location location , int count , double offsetX , double offsetY ,\n\t\t\tdouble offsetZ , double extra ) {\n\t\thandleOptional ( ).ifPresent ( handle -> {\n\t\t\tof ( particle ).display ( location ,\n\t\t\t\t\t\t\t\t\t ( float ) offsetX , ( float ) offsetY , ( float ) offsetZ ,\n\t\t\t\t\t\t\t\t\t 1.0F , count , null , handle );\n\t\t} );\n\t}", "public Position(double x, double y) {\n\t\txCoord = x;\n\t\tyCoord = y;\n\t}", "public Point(double x, double y){\n this.x = x;\n this.y = y;\n }", "private static void createNewParticles(int number) {\n\t\t// The following declarations are to initialize the random range for the \n\t\t// particle's feature\n\t\tint maxX = Fountain.positionX + 3;\n\t\tint minX = Fountain.positionX - 3;\n\t\tint boundX = maxX - minX;\n\t\tint maxY = Fountain.positionY + 3;\n\t\tint minY = Fountain.positionY - 3;\n\t\tint boundY = maxY - minY;\n\t\t\n\t\tint particleCount = 0; // For counting the new particles' amount\n\n\t\t\n\t\t\tfor (int i = 0; i < particles.length; i++) {\n\t\t\t\tif (particles[i] == null) {\n\t\t\t\t\t++particleCount;\n\t\t\t\t\t\n\t\t\t\t\t// Following codes are to prepare the setting for the particle\n\t\t\t\t\tint positionX = randGen.nextInt(boundX + 1) + maxX;\n\t\t\t\t\tint positionY = randGen.nextInt(boundY + 1) + maxY;\n\t\t\t\t\tfloat xVelocity = -1 + randGen.nextFloat() * (2);\n\t\t\t\t\tfloat yVelocity = -10 + randGen.nextFloat() * (5);\n\t\t\t\t\tfloat amount = randGen.nextFloat() * 1;\n\t\t\t\t\tint color = Utility.lerpColor(Fountain.startColor, Fountain.endColor, amount);\n\t\t\t\t\tfloat size = randGen.nextFloat() * (11 - 4);\n\t\t\t\t\tint age = randGen.nextInt(40 + 1);\n\t\t\t\t\tint transparency = randGen.nextInt((96)) + 32;\n\t\t\t\t\t\n\t\t\t\t\t// TO set the new particle with random feature\n\t\t\t\t\tparticles[i] = new Particle();\n\t\t\t\t\tparticles[i].setPositionX(positionX);\n\t\t\t\t\tparticles[i].setPositionY(positionY);\n\t\t\t\t\tparticles[i].setVelocityX(xVelocity);\n\t\t\t\t\tparticles[i].setVelocityY(yVelocity);\n\t\t\t\t\tparticles[i].setSize(size);\n\t\t\t\t\tparticles[i].setColor(color);\n\t\t\t\t\tparticles[i].setAge(age);\n\t\t\t\t\tparticles[i].setTransparency(transparency);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Once after creating 10 new particles, ends this method\n\t\t\t\tif (particleCount >= number) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }", "private ParticleMesh createExplosion() {\r\n ParticleMesh pMesh = ParticleFactory.buildParticles(\"explosion\", 30);\r\n pMesh.setEmissionDirection(new Vector3f(0.0f, 1.0f, 0.0f));\r\n pMesh.setMaximumAngle(3.1415927f);\r\n pMesh.setMinimumAngle(0);\r\n pMesh.getParticleController().setSpeed(0.1f);\r\n pMesh.setMinimumLifeTime(20.0f);\r\n pMesh.setMaximumLifeTime(150.0f);\r\n pMesh.setStartSize(15);\r\n pMesh.setEndSize(2);\r\n pMesh.getParticleController().setControlFlow(false);\r\n pMesh.getParticleController().setRepeatType(Controller.RT_CLAMP);\r\n pMesh.warmUp(80);\r\n pMesh.setInitialVelocity(2.5f);\r\n pMesh.setStartColor(new ColorRGBA(1.0f, 0.312f, 0.121f, 1.0f));\r\n pMesh.setEndColor(new ColorRGBA(1.0f, 0.24313726f, 0.03137255f, 0.0f));\r\n pMesh.setRenderState(ts);\r\n pMesh.setRenderState(bs);\r\n pMesh.setRenderState(zs);\r\n\r\n rootNode.attachChild(pMesh);\r\n rootNode.updateRenderState();\r\n \r\n explosions.add(pMesh);\r\n \r\n return pMesh;\r\n }", "public Coordinate(int x, int y, int identity){\r\n\t\tsuper(x,y);\r\n\t\tthis.identity = identity;\r\n\t}", "public void spawnParticle ( Particle particle , Location location , int count ) {\n\t\thandleOptional ( ).ifPresent ( handle -> {\n\t\t\tof ( particle ).display ( location , 0.0F , 0.0F , 0.0F , 1.0F , count , null , handle );\n\t\t} );\n\t}", "public Point(double x, double y) {\r\n this.x = x;\r\n this.y = y;\r\n }", "public Point(double x, double y) {\n this.xPosition = x;\n this.yPosition = y;\n }", "public Point(double x, double y) {\r\n\t\t//Constructors\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}", "Explosion(Point2D.Float position) {\r\n super(position);\r\n this.sprites = ResourceCollection.SpriteMaps.EXPLOSION_SPRITEMAP.getSprites();\r\n\r\n this.centerOffset = 0;\r\n this.spriteIndex = 0;\r\n this.spriteTimer = 0;\r\n }", "public Position() {\n xCoord = 0;\n yCoord = 0;\n zCoord = 0;\n }", "public Clorus (double e) {\n super(\"clorus\");\n if (e < 0) {\n energy = 0;\n }else { energy = e;}\n r = 0;\n g = 0;\n b = 0;\n }", "public InanimateObject(Vector position, World world) throws IllegalArgumentException {\r\n\t\tsuper(position, world);\r\n\t\tthis.setWeight(new Random().nextInt(41) + 10);\r\n\t}", "public LifeComponent() {\n // call other constructor with null param\n this(null);\n }", "public Point(double xCoordinate, double yCoordinate){\r\n\t\tthis.xCoordinate = xCoordinate;\r\n\t\tthis.yCoordinate = yCoordinate;\r\n\t}", "public Parts (double x, double y, double length)\n {\n Path2D.Double line = new Path2D.Double();\n line.moveTo(0.0, length / 2);\n line.lineTo(0.0, -length / 2);\n\n // Making the rotation random, since everything else is random\n setRotation(RANDOM.nextDouble() * 4.5);\n\n // Velocity is also random for a more real life effect\n setVelocity(RANDOM.nextDouble(), RANDOM.nextDouble() * 4.5);\n\n // Sets the \"explosion\" where the ship was destroyed\n setPosition(x, y);\n\n shape = line;\n\n new ParticipantCountdownTimer(this, 2500);\n }", "public Point(double x, double y){\n\t\tsuper();\n\t\tthis.x = x; \n\t\tthis.y = y;\n\t}", "public Light(double xPos, double yPos, double zPos){\n this(xPos, yPos, zPos, 1.0, 1.0, 1.0, 1);\n }", "Punto(){\r\n x=0;\r\n y=0;\r\n }", "public MyPoint1 (double x, double y) {}", "private Vector(double x, double y){\n this.x = x;\n this.y = y;\n }", "public Rocket(float x, float y, int life) {\r\n\t\tRocket.x = x;\r\n\t\tRocket.y = y;\r\n\t\tlifes = life;\r\n\r\n\t\ttry {\r\n\t\t\trocket = ImageIO.read(new File(\"resources/Rocket8.png\"));\r\n\t\t\texplosion = ImageIO.read(new File(\"resources/explosion.png\"));\r\n\t\t\tfire = ImageIO.read(new File(\"resources/animatedFire.png\"));\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Couldn't find rocket or explosion .png\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public Coordinates(int x, int y){\n this.x = x;\n this.y = y;\n }", "public Point(double x, double y) {\n this.x = x;\n this.y = y;\n }", "public Point(double x, double y) {\n this.x = x;\n this.y = y;\n }", "public Point(double x, double y) {\n this.x = x;\n this.y = y;\n }", "public Point(double x, double y) {\n this.x = x;\n this.y = y;\n }", "public Point(double x, double y) {\n this.x = x;\n this.y = y;\n }", "public Bonus(Vector position, double angularSpeed, double radius,\n long lifePoints)\n {\n this.position = position;\n this.angularSpeed = angularSpeed;\n this.radius = radius;\n this.appearence = new BonusParticles(this.radius, Color.green);\n this.collider = new Collider(0.021, this.position, Tag.BONUS, this);\n GeneticRobots.addCollider(this.collider);\n this.currentAngle = 0;\n this.lifePoints = lifePoints;\n }", "public Entity() {\n this.position = new Point(0,0);\n realX=0;\n realY=0;\n }", "private Point(Point p) {\n\t\tthis.name = p.name;\n\t\tthis.position = p.position.copy();\n\t\tthis.collisionRadius = p.collisionRadius;\n\t}", "public Point(int xcoord, int ycoord)\n\t{\n\t\tthis.x= xcoord;\n\t\tthis.y= ycoord;\n\t\tcountOfPoints++;\n\t}", "public PositionComponent(float x, float y, int z) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.z = z;\n\t}", "public Score(int lives) {\n this.lives = lives;\n }", "public Universe()\n\t{\n\t\tthis.dimension = 3;\n\t\tthis.particles = new ArrayList<Particle>();\n\t\tthis.timebase = DEF_TIMEBASE;\n\t}", "private GoodPoint(double x, double y) {\n this.x = x;\n this.y = y;\n }", "public Coordinate(double xCoordinate, double yCoordinate) {\n this.xCoordinate = xCoordinate;\n this.yCoordinate = yCoordinate;\n }", "GameObject(int x, int y){\n loadSprite();\n this.x = x;\n this.y = y;\n }", "public PointC(double x, double y) {\n this.x = x;\n this.y = y;\n }", "public Position( int xCoordinate, int yCoordinate ) {\n xPosition = xCoordinate;\n yPosition = yCoordinate;\n }", "public Point(int x, int y){\n this.x = x;\n this.y = y;\n }", "public Piste(int x, int y){\n\t\tthis.x=x;\n\t\tthis.y=y;\n\t}", "public GameObject(int x, int y, int width, int height, int[] velocity){\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n this.velocity= velocity;\n }", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "public XYValue(int x, int y) {\n this.x = x;\n this.y = y;\n }", "public PotionEffect(PotionEffect paramwq)\r\n/* 35: */ {\r\n/* 36: 44 */ this.id = paramwq.id;\r\n/* 37: 45 */ this.duration = paramwq.duration;\r\n/* 38: 46 */ this.amplifier = paramwq.amplifier;\r\n/* 39: 47 */ this.ambient = paramwq.ambient;\r\n/* 40: 48 */ this.showParticles = paramwq.showParticles;\r\n/* 41: */ }", "public Coordinate(int x, int y, int data){\r\n this.x = x;\r\n this.y = y;\r\n this.data = data;\r\n }", "public Coordinates(int x, int y)\r\n {\r\n xCoord = x;\r\n yCoord = y;\r\n }", "public Property(int boardPosition, String name, int value, int rentPrice, int mortgagePrice, int redeemPrice) {\n this.boardPosition = boardPosition;\n this.name = name;\n this.value = value;\n this.rentPrice = rentPrice;\n this.mortgagePrice = mortgagePrice;\n this.isMortgaged = false;\n this.redeemPrice = redeemPrice;\n this.owner = null;\n }", "Point() {\n this.x = 0;\n this.y = 0;\n }", "public Ninja(int x, int y)\r\n {\r\n super(x, y, 5);\r\n }", "public Coordinate(double x, double y) {\r\n this(x, y, Double.NaN, Double.NaN);\r\n }", "@SuppressWarnings(\"unused\")\n public Coordinate() {}" ]
[ "0.6961296", "0.6871191", "0.6687004", "0.6620784", "0.64959985", "0.64487576", "0.6374881", "0.6248691", "0.62483567", "0.6187162", "0.60257095", "0.6005095", "0.59670657", "0.59386253", "0.5821682", "0.58189154", "0.5816145", "0.576961", "0.5768896", "0.5734599", "0.57336074", "0.57225704", "0.57215214", "0.57180965", "0.57151395", "0.56914717", "0.568917", "0.56862795", "0.5660697", "0.5659244", "0.56352335", "0.5619796", "0.561676", "0.5609238", "0.5604749", "0.5591129", "0.5577489", "0.5561693", "0.55583966", "0.5553536", "0.5549765", "0.5549648", "0.5512279", "0.5509991", "0.5504339", "0.55033976", "0.55027324", "0.550061", "0.5496745", "0.54941815", "0.5485787", "0.5478598", "0.5465649", "0.54562986", "0.5451506", "0.54510635", "0.54492164", "0.54457027", "0.5440656", "0.54394585", "0.54386544", "0.54364455", "0.54296315", "0.5428162", "0.5422731", "0.54142535", "0.5413419", "0.5411263", "0.54109854", "0.54106796", "0.54103565", "0.54103565", "0.54103565", "0.54103565", "0.54103565", "0.54099107", "0.5400685", "0.54006183", "0.5399829", "0.5398422", "0.5397512", "0.53963655", "0.53913724", "0.5386412", "0.53822255", "0.5375202", "0.53746355", "0.53722817", "0.5366068", "0.53642577", "0.53640246", "0.5356886", "0.53533566", "0.5352506", "0.5351869", "0.53477144", "0.5340744", "0.53333426", "0.53245133", "0.53233826" ]
0.7907893
0
/ compiled from: BusinessContext / renamed from: com.beastbikes.framework.business.b
public interface C1372b { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doBusiness(Context mContext) {\n\t}", "public interface BusinessService extends BaseService<Business, String>{\n\n public Pager getBusinessLIst(Integer pageNumber , Integer pageSize , String searchBy , String searchText);\n\n BusinessVO getFromBusiness(String id);\n\n List<CustomerVO> findCustomerAll();\n List<UserVV> findUserAll();\n List<ContactsVO> findContactsAll();\n List<BusinessStatusVO> findBusinessStatusAll();\n List<DictVO> findBusinessTypeAll();\n List<DictVO> findBusinessOriginAll();\n Business fromBusinessVO(BusinessVO businessVO);\n public void saveBusiness(Business business);\n public void updateBusiness(Business business);\n\n public List<BusinessVO> getAllId();\n}", "public interface CustomerManageBusiness extends BaseBusiness {\n\n\t/**\n\t * 条件获取广告主名\n\t * @param condition\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> searchCustomer(int visitId, Map<String, Object> condition) throws BusinessException;\n\t\n\t/**\n\t * 根据ID删除策略-广告主关系\n\t * @param id\n\t * @return\n\t * @throws BusinessException\n */\n\tpublic int deleteInfoById(int id)throws BusinessException;\n\n\tpublic int insertTradeInfo(Map<String,Object> condition) throws BusinessException;\n\n\tpublic List<Map<String,Object>> findAllByCondition(Map<String,Object> condition) throws BusinessException;\n\n\tpublic int countAllByCondition(Map<String,Object> condition) throws BusinessException;\n\n\tpublic List<Map<String,Object>> selectAllInfo(Map<String,Object> condition) throws BusinessException;\n\n\tpublic int countAllInfo(Map<String,Object> condition) throws BusinessException;\n}", "public abstract T mo36028b(Context context);", "BusinessEntityFactory getBusinessEntityFactory();", "public abstract void mo36026a(Context context);", "public abstract BusinessDAO getBusinessDAO();", "public interface GPB2BCustomerAccountService {\n\n\n\t/**\n\t * This method gets b2b order list\n\t * \n\t * @param currentCustomer\n\t * \t\t\tthe current customer\n\t * @param currentBaseStore\n\t * \t\t\tthe current base store\n\t * @param statuses\n\t * \t\t\tthe status\n\t * @param pageableData\n\t * \t\t\tthe data for pagination\n\t * @param b2bUnit\n\t * \t\t\tthe b2b unit\n\t * @return b2b order list\n\t */\n\tSearchPageData<OrderModel> getB2BOrderList(CustomerModel currentCustomer, BaseStoreModel currentBaseStore,\n\t\t\tOrderStatus[] statuses, PageableData pageableData, List<B2BUnitModel> b2bUnit);\n\n\t/**\n\t * This method gets order for code\n\t * @param currentUser\n\t * \t\t\tthe current user\n\t * @param code\n\t * \t\t\tthe code\n\t * @param baseStoreModel\n\t * \t\t\tthe base store model\n\t * @return the order model for code\n\t */\n\tOrderModel getOrderForCode(CustomerModel currentUser, String code, BaseStoreModel baseStoreModel);\n\n\t/**\n\t * This method gets b2b order list for admin\n\t * @param currentCustomer\n\t * \t\t\tthe current customer\n\t * @param currentBaseStore\n\t * \t\t\tthe current base store\n\t * @param statuses\n\t * \t\t\tthe statuses\n\t * @param pageableData\n\t * \t\t\tthe data for pagination\n\t * @param b2bUnitList\t\n\t * \t\t\tthe b2b unit list\n\t * @return the order list for admin\n\t */\n\tSearchPageData<OrderModel> getB2BOrderListForAdmin(\n\t\t\tCustomerModel currentCustomer, BaseStoreModel currentBaseStore,\n\t\t\tOrderStatus[] statuses, PageableData pageableData,\n\t\t\tList<B2BUnitModel> b2bUnitList);\n\n}", "public interface BusinessTransactionService {\n\n /**\n * This method returns the business transaction associated with the\n * supplied id.\n *\n * @param tenantId The tenant\n * @param id The id\n * @return The business transaction, or null if not found\n */\n BusinessTransaction get(String tenantId, String id);\n\n /**\n * This method returns a set of business transactions that meet the\n * supplied query criteria.\n *\n * @param tenantId The tenant\n * @param criteria The query criteria\n * @return The list of business transactions that meet the criteria\n */\n List<BusinessTransaction> query(String tenantId, BusinessTransactionCriteria criteria);\n\n /**\n * This method stores the supplied list of business transaction fragments.\n *\n * @param tenantId The tenant id\n * @param businessTransactions The business transactions\n * @throws Exception Failed to store\n */\n void storeBusinessTransactions(String tenantId, List<BusinessTransaction> businessTransactions) throws Exception;\n\n}", "@Override\n public BusinessObjectService getBusinessObjectService() {\n return businessObjectService;\n }", "Context mo1490b();", "public interface BusinessProcess {\n /**\n * 判断用户是否进行过切换账号的操作,\n * 如果切换账号.则返回true\n * 否则返回false\n *\n * @return\n */\n boolean needRefreshDisplayData();\n\n /**\n * 添加用户\n *\n * @param user\n */\n void insertOrUpdateUserInfo(User user);\n\n /**\n * 如果没有用户则添加一个默认用户\n * 如果有用户 则忽略操作\n */\n void insertDefaultUser();\n\n /**\n * 获得默认账户信息\n *\n * @return\n */\n User getDefaultUser();\n\n /**\n * 检测登录的账户是否是默认账号\n *\n * @return\n */\n boolean checkOnlineIsDefaultAccount();\n\n /**\n * 获取默认登录的用户\n *\n * @return\n */\n User getOnlineUser();\n\n /**\n * 更新登录用户,将此次登录的用户设置为'登录用户'\n * 将上次登录用户设置为'未登录'\n *\n * @param user\n */\n void updateUserLoginState(User user);\n\n /**\n * 默认账号下面有内容,是否要关联到在线用户账户下\n * 用于用户登录时提醒.\n *\n * @return\n */\n boolean checkHaveDataLinkToOnlineAccount();\n\n /**\n * 移动默认账户下面的所有数据到在线账户上去\n */\n boolean moveDataToOnlineAccount();\n\n /**\n * 根据用户查找所有的事项\n *\n * @param user\n * @return\n */\n ArrayList<ToDoThing> listAllThingsByUser(User user);\n\n\n /**\n * 根据用户ID查找所有的事项\n *\n * @param userId 用户id\n * @return\n */\n ArrayList<ToDoThing> listAllThingsByUserId(Long userId);\n\n\n /**\n * 查找数据库中所有的事项\n *\n * @return\n */\n ArrayList<ToDoThing> listAllThings();\n\n /**\n * 根据ToDoThing的id 删除事项\n *\n * @param id ToDoThing的id\n */\n void removeToDoTingById(Long id);\n\n\n /**\n * 根据ToDoThing的id 查找事项\n *\n * @param id ToDoThing的id\n * @return\n */\n ToDoThing getThingById(Long id);\n\n /**\n * 添加事项 已废弃\n *\n * @param toDoThing\n */\n void saveThing(ToDoThing toDoThing);\n\n\n /**\n * 添加事项, 和提醒时间(notificationList 可为空)\n *\n * @param toDoThing\n * @param notificationList\n */\n void saveThing(ToDoThing toDoThing, List<Notification> notificationList);\n\n /**\n * 查找已经完成的事情\n *\n * @return\n */\n ArrayList<ToDoThing> listOnlineUserFinshThingsOrderByFinshTimeDesc();\n\n\n /**\n * 查找还未做的事情\n *\n * @return\n */\n ArrayList<ToDoThing> listOnlineUserNotDoneThingsOrderByCreateTimeDesc();\n\n /**\n * 查找还未做的事情,附带展示需要的各种信息\n *\n * @return\n */\n ArrayList<ShowThingsDTO> listOnlineUserNotDoneThingsOrderByCreateTimeDescWithReminderTime();\n\n /**\n * 查找已经完成的事情 附带展示需要的各种信息\n *\n * @return\n */\n ArrayList<ShowThingsDTO> listOnlineUserFinshThingsOrderByFinshTimeDescWithReminderTime();\n\n\n /**\n * 改变ToDoThing的状态 如果更改为完成状态,则同时设上一次提醒时间为当前时间\n *\n * @param id things id\n * @param state 状态信息\n */\n void updateThingState(Long id, int state);\n\n /**\n * 如果是重复提醒的notification 则\n * 计算下一次提醒的时间\n * 否则.不做操作\n *\n * @param ids\n */\n void updateCalculationNextReminderDate(List<Long> ids);\n\n /**\n * 查找距离此时最近的一次提醒\n *\n * @return\n */\n AlarmDTO listOnlineUserRecentNeedNotifyThings();\n\n\n /**\n * 获取到已经过期但是还未提醒的事项 Expired\n *\n * @return\n */\n AlarmDTO listOnlineUserExpiredThings();\n\n /**\n * 更新Notification 中 上一次提醒的时间\n *\n * @param id Notifaction id\n * @param date\n */\n void updatePreNotifyDate(Long id, Date date);\n\n //获取最近七日内增加的事件数量 date-counts\n ArrayList<ChartDataDTO> countOnlineUserRecentWeekNewThings();\n\n /**\n * 获取最近七日完成的事件 date-counts\n */\n ArrayList<ChartDataDTO> countOnlineUserRecentWeekFinshThings();\n\n /**\n * 获得今天添加的事项 和 已完成的事情\n *\n * @return\n */\n ArrayList<ChartDataDTO> countOnlineUserTodayThings();\n\n\n ArrayList<ResultFormat<PullDataDTO>> listOnlineNeedSyncData();\n\n}", "protected BusinessObject getNewBusinessObjInstance()\n {\n return BUSINESS_OBJ ;\n }", "public interface BusinessDao {\n\n public List<Business> getAllBusiness() throws Exception;\n public Business getBusinessbyId(Long businessId) throws Exception;\n public void addBusiness (Business business) throws Exception;\n public void updateBusiness(Business business) throws Exception;\n public void deleteBusiness(Business business) throws Exception;\n}", "public interface BuildingBlockService {\n\n\t/**\n\t * Retrieves the building block by id.\n\t * \n\t * @param id\n\t * the id of building block to be retrieved.\n\t * @return building block.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock findBuildingBlockById(Long id) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks available.\n\t * \n\t * @return all building blocks available.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;\n\n\t/**\n\t * Saves the building block.\n\t * \n\t * @return the persisted building block.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock saveBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;\n\n\t/**\n\t * Removes the building block.\n\t * \n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tvoid removeBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks by building block type.\n\t * \n\t * @return all building blocks by building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks for branch id.\n\t * \n\t * @param branchId\n\t * branch object id for which all building blocks have to be\n\t * retrieved.\n\t * @return all building blocks for branch id.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks for branch id and building block type.\n\t * \n\t * @param branchId\n\t * branch object id.\n\t * @param buildingBlockType\n\t * building block type.\n\t * @return all building blocks for branch id and building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;\n\n\t/**\n\t * Retrieves building block by building block type and code.\n\t * \n\t * @param buildingBlockType\n\t * building block type.\n\t * \n\t * @param code\n\t * building block code.\n\t * @return all building blocks by building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock findBuildingBlockByTypeAndCode(BuildingBlockConstant buildingBlockType, String code) throws BusinessException;\n\n\t/**\n\t * Retrieve all mandatory building blocks.\n\t * \n\t * @return collection of all mandatory building blocks.\n\t */\n\tCollection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException;\n\n\t/**\n\t * Retrieve all fee Type building blocks for a branch by fee classification.\n\t * \n\t * @param branchId\n\t * the branch id.\n\t * @param feeClassificationLevel\n\t * the fee classification level constant.\n\t * @return\n\t * @throws BusinessException\n\t * in case of any business exceptions.\n\t */\n\tCollection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeClassificationLevel(final Long branchId,\n\t\t\tFeeClassificationLevelConstant feeClassificationLevel) throws BusinessException, SystemException;\n\n\t/**\n\t * Retrieve all fee Type building block for a branch by fee type.\n\t * \n\t * @param branchId\n\t * the branch id.\n\t * @param feeClassificationLevel\n\t * the fee classification level constant.\n\t * @return\n\t * @throws BusinessException\n\t * in case of any business exceptions.\n\t */\n\tCollection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeType(Long branchId, final FeeTypeConstant feeTypeConstant) throws BusinessException,\n\t\t\tSystemException;\n}", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "void mo25261a(Context context);", "public interface VisitBLService {\n\n\n //得到一个新的id\n public int getID();\n\n //增加一条师生出访记录\n public String addItem(AcademicVO academicVO);\n\n //删除一条师生出访的记录\n public UniversalState deleteItem(int id);\n\n //更新一条师生出访的记录\n public UniversalState updateItem(AcademicVO academicVO);\n\n //获取一条师生出访的记录\n public AcademicVO getItem(int id);\n\n //获取全部师生出访的记录\n public ArrayList<AcademicVO> getAllItems(String language);\n\n\n\n}", "private SpringBoHelper() {\n\n\t}", "@Override\n\tpublic void doBusiness() {\n\t\tsuper.doBusiness();\n\t}", "public interface BDService {\n\n\n public List<BfPredict> getAllBf();\n\n public BfPredict getABf(String countyName);\n\n public Integer insertBf(BfPredict bfPredict);\n\n public Predict getAPredict(String countyName);\n\n public Integer insertPredict(Predict predict);\n\n}", "public interface BusinessObjectFormatService\n{\n /**\n * Creates a new business object format.\n *\n * @param businessObjectFormatCreateRequest the business object format create request.\n *\n * @return the created business object format.\n */\n public BusinessObjectFormat createBusinessObjectFormat(BusinessObjectFormatCreateRequest businessObjectFormatCreateRequest);\n\n /**\n * Updates a business object format.\n *\n * @param businessObjectFormatKey the business object format key\n * @param businessObjectFormatUpdateRequest the business object format update request\n *\n * @return the updated business object format.\n */\n public BusinessObjectFormat updateBusinessObjectFormat(BusinessObjectFormatKey businessObjectFormatKey,\n BusinessObjectFormatUpdateRequest businessObjectFormatUpdateRequest);\n\n /**\n * Gets a business object format for the specified key. This method starts a new transaction.\n *\n * @param businessObjectFormatKey the business object format key\n *\n * @return the business object format\n */\n public BusinessObjectFormat getBusinessObjectFormat(BusinessObjectFormatKey businessObjectFormatKey);\n\n /**\n * Deletes a business object format.\n *\n * @param businessObjectFormatKey the business object format alternate key\n *\n * @return the business object format that was deleted\n */\n public BusinessObjectFormat deleteBusinessObjectFormat(BusinessObjectFormatKey businessObjectFormatKey);\n\n /**\n * Gets a list of business object formats for the specified business object definition name.\n *\n * @param businessObjectDefinitionKey the business object definition key\n * @param latestBusinessObjectFormatVersion specifies is only the latest (maximum) versions of the business object formats are returned\n *\n * @return the list of business object formats.\n */\n public BusinessObjectFormatKeys getBusinessObjectFormats(BusinessObjectDefinitionKey businessObjectDefinitionKey,\n boolean latestBusinessObjectFormatVersion);\n\n /**\n * Gets a list of business object formats for the specified business object definition name and business object format usage.\n *\n * @param businessObjectDefinitionKey the business object definition key\n * @param businessObjectFormatUsage the business object format usage\n * @param latestBusinessObjectFormatVersion specifies is only the latest (maximum) versions of the business object formats are returned\n *\n * @return the list of business object formats.\n */\n public BusinessObjectFormatKeys getBusinessObjectFormatsWithFilters(BusinessObjectDefinitionKey businessObjectDefinitionKey,\n String businessObjectFormatUsage, boolean latestBusinessObjectFormatVersion);\n\n /**\n * Retrieves the DDL to initialize the specified type of the database system (e.g. Hive) by creating a table for the requested business object format. This\n * method starts a new transaction.\n *\n * @param businessObjectFormatDdlRequest the business object format DDL request\n *\n * @return the business object format DDL information\n */\n public BusinessObjectFormatDdl generateBusinessObjectFormatDdl(BusinessObjectFormatDdlRequest businessObjectFormatDdlRequest);\n\n /**\n * Retrieves the DDL to initialize the specified type of the database system (e.g. Hive) by creating tables for a collection of business object formats.\n * This method starts a new transaction.\n *\n * @param businessObjectFormatDdlCollectionRequest the business object format DDL collection request\n *\n * @return the business object format DDL information\n */\n public BusinessObjectFormatDdlCollectionResponse generateBusinessObjectFormatDdlCollection(\n BusinessObjectFormatDdlCollectionRequest businessObjectFormatDdlCollectionRequest);\n\n /**\n * Update business object format parents\n *\n * @param businessObjectFormatKey business object format key\n * @param businessObjectFormatParentsUpdateRequest business object format parents update request\n *\n * @return business object format\n */\n public BusinessObjectFormat updateBusinessObjectFormatParents(BusinessObjectFormatKey businessObjectFormatKey,\n BusinessObjectFormatParentsUpdateRequest businessObjectFormatParentsUpdateRequest);\n\n /**\n * Updates a business object format attributes.\n *\n * @param businessObjectFormatKey the business object format key\n * @param businessObjectFormatAttributesUpdateRequest the business object format attributes update request\n *\n * @return the updated business object format.\n */\n public BusinessObjectFormat updateBusinessObjectFormatAttributes(BusinessObjectFormatKey businessObjectFormatKey,\n BusinessObjectFormatAttributesUpdateRequest businessObjectFormatAttributesUpdateRequest);\n\n /**\n * Replaces the list of attribute definitions for an existing business object format.\n *\n * @param businessObjectFormatKey the business object format key\n * @param businessObjectFormatAttributeDefinitionsUpdateRequest the business object format attribute definitions update request\n *\n * @return the updated business object format.\n */\n public BusinessObjectFormat updateBusinessObjectFormatAttributeDefinitions(BusinessObjectFormatKey businessObjectFormatKey,\n BusinessObjectFormatAttributeDefinitionsUpdateRequest businessObjectFormatAttributeDefinitionsUpdateRequest);\n\n /**\n * Update business object format retention information\n * @param businessObjectFormatKey the business object format alternate key\n * @param businessObjectFormatRetentionInformationUpdateRequest business object format retention information update request\n * @return updated business object format\n */\n public BusinessObjectFormat updateBusinessObjectFormatRetentionInformation(BusinessObjectFormatKey businessObjectFormatKey,\n BusinessObjectFormatRetentionInformationUpdateRequest businessObjectFormatRetentionInformationUpdateRequest);\n}", "@Component\npublic interface BidDao {\n\n /**\n * 通过标id查找该标的信息\n * @return\n */\n @Select(value = \"select id,userId,bidAmount,bidCurrentAmount,bidRepaymentMethod,bidRate,bidDeadline,substr(to_char(bidIssueDate,'yyyy-mm-dd hh24:mi:ss'),0,19) bidIssueDate,bidDeadDay,bidDeadDate,bidApplyDate,bidDesc,bidType from bid_info where id=#{id}\")\n Map getBidInfoById(int id);\n\n /**\n * 根据用户id查找该用户的信息\n * @param userId\n * @return\n */\n @Select(value = \"select realname,sex,address,idnumber,academic,housed,marriage,income from realname_certification where userId=#{userId}\")\n Map getBaseInfoByUserId(int userId);\n\n /**\n * 将投标信息放入到bid_submit投资记录表中\n * @param map\n * @return\n */\n @Insert(value = \"insert into bid_submit values(seq_bidinfo_id.nextval,#{bidid},#{userId},#{bidNum},#{bidRate},sysdate)\")\n int investBid(Map map);\n\n /**\n * 根据标的id来查投该标的总钱数\n * @param map\n * @return\n */\n @Select(value = \"select nvl(sum(bidAmount),0) bidAmount,nvl(sum(bidRate),0) bidRate from bid_submit where bidInfoID=#{bidid}\")\n Map findInvestMoney(Map map);\n\n /**\n * 通过当前用户查找该用户的登录信息\n * @param userId\n * @return\n */\n @Select(value = \"select username,password,telephone from user_login_info where id=#{userId}\")\n Map findUserName(int userId);\n\n /**\n * 根据标id查找该标的投资状况\n * @param id\n * @return\n */\n @Select(value = \"select b.id,b.BIDINFOID,b.BIDAMOUNT,b.BIDRATE,substr(to_char(b.BIDDATE,'yyyy-mm-dd hh24:mi:ss'),0,19) BIDDATE,u.id,u.USERNAME,u.PASSWORD,u.TELEPHONE from bid_submit b left join USER_LOGIN_INFO u on u.ID=b.USERID where b.BIDINFOID=#{id}\")\n List<Map> findInvestInfo(int id);\n\n /**\n * 通过标id找到招标人id\n * @param id\n * @return\n */\n @Select(value = \"select userId from bid_info where id=#{id}\")\n Map findBidUserId(int id);\n\n /**\n * 根据招标人的id查找该人的还款信息\n * @param bidUserId\n * @return\n */\n /*@Select(value = \"select id,bidID,bidRepayAmount,bidRepayDate,bidRepayDeadDate,bidNextRepayDate,bidNextReapyAmount,bidRepayState,bidRepayNumber,bidRepayTotPmts,bidRepayMethod,(select max(bidrepaydeaddate) from bid_repay_info where bidRepayUserID=#{bidUserId}) lastDate from bid_repay_info where bidRepayUserID=#{bidUserId}\")*/\n @Select(value = \"select id,bidID,bidRepayAmount,bidRepayDate,bidRepayDeadDate,substr(to_char(bidNextRepayDate,'yyyy-mm-dd hh24:mi:ss'),0,19) bidNextRepayDate,bidNextReapyAmount,bidRepayState,bidRepayNumber,bidRepayTotPmts,bidRepayMethod,(select substr(to_char(max(bidrepaydeaddate),'yyyy-mm-dd hh24:mi:ss'),0,19) from bid_repay_info where bidRepayUserID=#{bidUserId}) lastDate from bid_repay_info where bidRepayUserID=#{bidUserId}\")\n List<Map> findRepayByBidUserId(int bidUserId);\n\n /**\n * 根据登录人id查找用户的支付密码\n * @param userId\n * @return\n */\n @Select(value = \"select paypwd from user_info where userId=#{userId}\")\n Map getPayPwd(int userId);\n\n /**\n * 根据登录人的id查找该用户的总的待收利息,总的待收本金\n * @param userId\n * @return\n */\n @Select(value = \"select sum(bidrate) bidrate,sum(bidAmount) bidAmount from bid_submit where userId = #{userId}\")\n Map findTotalRateAndMoney(int userId);\n\n /**\n * 根据用户id查找该用户的账户信息表\n * @param userId\n * @return\n */\n @Select(value = \"select id,USERID,AVAILABLEBALANCE,RECEIVEINTEREST,RECEIVEPRINCIPAL,RETURNAMOUNT,FREEZINGAMOUNT,CREDITLINE,SURPLUSCREDITLINE,TRANSACTIONPASSWORD from user_account where userId=#{userId}\")\n Map findUserAccount(int userId);\n\n /**\n * 根据用户的投标相应的更新用户账户表\n * @param userAccountMap\n * @return\n */\n @Update(value = \"update user_account set availableBalance=#{availableBalance},receiveInterest=#{receiveInterest},receivePrincipal=#{receivePrincipal},freezingAmount=#{freezingAmount} where userId = #{userID}\")\n int updateUserAccount(Map userAccountMap);\n\n /**\n * 用户投标之后将该条信息插入到用户账户流水表中去\n * @param map\n * @return\n */\n @Insert(value = \"insert into user_account_flow values(seq_user_account_flow_id.nextval,#{userId},#{accountId},#{amount},#{availableBalance},sysdate,8)\")\n int insertUserAccountFolw(Map map);\n}", "@Override\n\tpublic void businessMoney() {\n\n\t}", "public QueryBO() {\r\n }", "public interface BusinessDao extends JpaRepository<Business, Long> {\r\n}", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public interface SalesDateLocationDetailService extends BaseService<SalesDateLocationDetailHolder>,\r\n DBActionService<SalesDateLocationDetailHolder>\r\n{\r\n public List<SalesDateLocationDetailHolder> selectSalesLocationDetailByKey(BigDecimal salesOid) throws Exception;\r\n}", "public interface MessageResourceBo\n{\n \n \n /**\n * Sets the required Data Access Object (DAO)\n * @param messageResourceDao the messageResourceDao used to access the messageResource entity.\n */\n public void setMessageResourceDao(MessageResourceDao messageResourceDao);\n \n\n /**\n * Returns the required Data Access Object (DAO)\n * @return the MessageResourceDao used to access the messageResource entity.\n */\n public MessageResourceDao getMessageResourceDao();\n \n\n \n /**\n * Loads a MessageResource object based on the MESSAGERESOURCEID column\n * @param MESSAGERESOURCEID the primary key for the underlying record.\n * @param userID the userID is checked for authorisation to view the record\n * @ return a MessageResource object matching the parameter or null if none can be found. The\n * method also returns null if the parameter is null.\n */\n public MessageResource load(Long messageResourceID, Long loggedInUserId) throws MessageResourceLoadException, AuthorisationException, InvalidUserIDException;\n \n \n\n /**\n * Load all existing MessageResource objects. \n * @return List a List of MessageResource objects.\n */\n public List<MessageResource> listMessageResource();\n \n \n /**\n * Returns a <code>List</code> of MessageResource objects that have a matching messageKey\n * @return List a List of MessageResource objects that match the messageKey property given as parameter.\n * @param messageKey the messageKey on which to match the required records.\n */\n public List<MessageResource> listMessageResourceByMessageKey(String messageKey);\n\n /**\n * Returns a <code>List</code> of MessageResource objects that have a matching locale\n * @return List a List of MessageResource objects that match the locale property given as parameter.\n * @param locale the locale on which to match the required records.\n */\n public List<MessageResource> listMessageResourceByLocale(String locale);\n\n /**\n * Returns a <code>List</code> of MessageResource objects that have a matching localeReferenceId\n * @return List a List of MessageResource objects that match the localeReferenceId property given as parameter.\n * @param localeReferenceId the localeReferenceId on which to match the required records.\n */\n public List<MessageResource> listMessageResourceByLocaleReferenceId(Long localeReferenceId);\n\n /**\n * Returns a <code>List</code> of MessageResource objects that have a matching message\n * @return List a List of MessageResource objects that match the message property given as parameter.\n * @param message the message on which to match the required records.\n */\n public List<MessageResource> listMessageResourceByMessage(String message);\n\n \n /**\n * Load existing MessageResource objects from the database that have a createdByID column\n * that matches the userId parameter.\n * @return List a List of MessageResource objects that match the userId parameter.\n */\n public List<MessageResource> listMessageResourceByCreatedById(Long userId);\n \n \n /**\n * Load all existing MessageResourceHistory objects for a particular MessageResource.\n * The <code>List</code> of MessageResourceHistory objects contains all of the changes that have been made to the\n * MessageResource object identified by the messageResource parameter'\n * @return List a List of MessageResourceHistory objects.\n */\n public List<MessageResourceHistory> listMessageResourceHistory(Long messageResource) throws Exception;\n \n \n /**\n * Load a <code>List</code> of MessageResource objects from the database that match the\n * messageResourceId parameter, the View and the MessageResource being related by an association.\n * @return a <code>List</code> of MessageResource objects that match the messageResourceId parameter.\n */\n public List<MessageResource> listMessageResourceByViewId(Long viewId);\n \n \n /**\n * Load a MessageResource object using the Locale and messageKey as search parameters.\n * @return a MessageResource object.\n */\n public MessageResource loadMessageResourceForLocale(String messageKey, String locale) throws MessageResourceLoadException;\n\t \n \n /**\n * Creates a new entry in the MESSAGERESOURCE table containing the parameters passed here.\n *\n * @param userID the userID of the currently logged in user, this can be retrieved from the session.\n * This value must be set for auditing purposes.\n * @return the database generated Id of the newly created record.\n * @throws MessageResourceSaveException on failure to save. \n */\n public Long createAndStoreMessageResource(MessageResource messageResource, Long userID)\n throws MessageResourceSaveException;\n\n\n /**\n * Updates an existing entry in the MESSAGERESOURCE table containing the parameters passed here.\n * Only non-null parameters will be applied to the underlying table so preserving any existing entries.\n *\n * @param userID the userID of the currently logged in user, this can be retrieved from the session.\n * This value must be set for auditing purposes.\n * @throws MessageResourceLoadException if the existing record cannot be loaded\n * @throws MessageResourceSaveException if there is an issue populating or saving the updated object\n * @throws AuthorisationException if the user is not authorised to update the object\n * @throws InvalidUserIDException if the userID passed as parameter is not valid\n */\n public void updateMessageResource(MessageResource messageResource, Long userID)\n throws MessageResourceSaveException, MessageResourceLoadException, AuthorisationException, InvalidUserIDException;\n \n \n /**\n * Loads a MessageResourceFilter object based on the participantID of the currently logged in user\n * @param userId the userId is checked for authorisation to view the record. It is also the key to load a against the createdByID\n * column of the underlying record. There should only ever be one or zero filter records per MessageResource.\n * @ return a MessageResourceFilter object matching the parameter or a newly constructed, empty object if none can be found\n */\n public MessageResourceFilter loadMessageResourceFilter(Long userId) throws MessageResourceLoadException, AuthorisationException, InvalidUserIDException;\n\n\n \n /**\n * Creates a new entry in the MESSAGERESOURCEFILTER table containing the parameters passed here.\n *\n * @param userId the userId of the currently logged in user, this can be retrieved from the session.\n * This value must be set for auditing purposes.\n * @return the userId which is also the assigned Id for the newly created record.\n * @throws MessageResourceSaveException on failure to save. \n */\n public Long createAndStoreMessageResourceFilter(MessageResourceFilter messageResourceFilter, Long userId)\n throws MessageResourceSaveException;\n \n \n /**\n * Updates an existing entry in the MESSAGERESOURCEFILTER table and associated tables \n * containing the parameters passed here. If the entry denoted by the userID does not exist then one is created.\n *\t\n * @param userId the userId of the currently logged in user, this can be retrieved from the session.\n * This value must be set for auditing purposes.\n * @throws MessageResourceSaveException if there is an issue populating or saving the updated object\n * @throws AuthorisationException if the user is not authorised to update the object\n * @throws InvalidUserIDException if the userID passed as parameter is not valid\n */\n public Long updateMessageResourceFilter(MessageResourceFilter messageResourceFilter, Long userId)\n throws MessageResourceLoadException, MessageResourceSaveException, AuthorisationException, InvalidUserIDException;\n \n}", "public void setBusiness(String Business) {\n this.Business = Business;\n }", "interface C9251a {\n /* renamed from: a */\n boolean mo24941a(Context context);\n }", "public interface BACSSettlementDataService extends BaseDataService<BACSSettlement, BACSSettlementDTO> {\r\n\r\n List<BACSSettlementDTO> findByStatus(String status);\r\n\r\n BACSSettlementDTO findBySettlementNumber(Long settlementNumber);\r\n \r\n BACSSettlementDTO findByFinancialServicesReference(Long financialServicesReferenceNumber); \r\n \r\n List<BACSSettlementDTO> findByOrderNumber(Long orderNumber);\r\n \r\n}", "public String getBusinessObjectType() {\r\n return businessObjectType;\r\n }", "public FetchingAllDataModel() {\n\n context = AppController.getInstance().getApplicationContext();\n }", "public String getBusiness_id() {\n return this.business_id;\n }", "public interface AdminBiz extends Biz {\n\n\t/** An array of all supported cache keys for {@link #getCacheStatuses(String)}. */\n\tpublic static final String[] CACHE_KEYS = new String[] {\n\t\t\tApplicationConstants.CacheFactoryKeys.ALBUM,\t\n\t\t\tApplicationConstants.CacheFactoryKeys.ALBUM_PERMISSIONS,\t\n\t\t\tApplicationConstants.CacheFactoryKeys.COLLECTION,\t\n\t\t\tApplicationConstants.CacheFactoryKeys.COLLECTION_ITEMS,\t\n\t\t\tApplicationConstants.CacheFactoryKeys.ITEM,\t\n\t\t\tApplicationConstants.CacheFactoryKeys.ITEM_COMMENTS,\t\n\t\t\tApplicationConstants.CacheFactoryKeys.ITEM_FREE_DATA,\t\n\t\t\tApplicationConstants.CacheFactoryKeys.ITEM_HITS,\t\n\t\t\tApplicationConstants.CacheFactoryKeys.ITEM_RATINGS,\t\n\t\t\tApplicationConstants.CacheFactoryKeys.THEME,\t\n\t\t\tApplicationConstants.CacheFactoryKeys.THEME_FOR_USER,\n\t\t\tApplicationConstants.CacheFactoryKeys.THEME_FOR_USER_GLOBALS,\n\t\t\tApplicationConstants.CacheFactoryKeys.THEME_FOR_USER_OWNER,\n\t\t\tApplicationConstants.CacheFactoryKeys.USER,\n\t\t\tApplicationConstants.CacheFactoryKeys.USER_FREE_DATA,\n\t};\n\n\t/** An array of all supported object pool classes. */\n\tpublic static final Class[] POOL_CLASSES = new Class[] {\n\t\t\tAdminData.class,\n\t\t\tMediaAlbumData.class,\t\n\t\t\tMediaAlbumSettings.class,\t\n\t\t\tBrowseData.class\t\n\t};\n\n/**\n * Return array of cache status data.\n * \n * @param populateBucketsKey if matches any supported cache key, then\n * bucket status data will be populated for that cache\n * @return array of cache statuses, or <em>null</em> if none available\n * @throws MediaAlbumException if an error occurs\n * @see #CACHE_KEYS\n */\npublic CacheStatus[] getCacheStatuses(String populateBucketsKey)\nthrows MediaAlbumException;\n\n/**\n * Return array of object poool status data.\n * \n * @return array of ObjectPoolStatus objects\n * @throws MediaAlbumException if an error occurs\n */\npublic ObjectPoolStatus[] getObjectPoolStatuses() throws MediaAlbumException;\n\n/**\n * Scan one or more collections.\n * \n * @param collectionIds the collections to scan\n * @param forceRescan if <em>true</em> then clear the last-scanned date\n * from the collection and scan all items in the collections\n * @throws MediaAlbumException if an error occurs\n */\npublic void scan(Integer[] collectionIds, boolean forceRescan) \nthrows MediaAlbumException;\n\n/**\n * Recreate the application's search indicies.\n * @throws MediaAlbumException if an error occurs\n */\npublic void recreateSearchIndicies() throws MediaAlbumException;\n\n/**\n * Clear out a cache.\n * \n * @param cacheKey the cache key\n * @return <em>true</em> if the cache was reset\n * @throws MediaAlbumException if an error occurs\n */\npublic boolean resetCache(String cacheKey) throws MediaAlbumException;\n\n}", "public interface AppBottomIconCfgService {\n\n AppBottomIConCfg getAppBottomIConCfgById(int id) throws Exception;\n\n PageInfo<AppBottomIConCfg> getAppBottomIConCfgByPage(int page_number, int page_size, String search_value) throws Exception;\n\n String insert(String message, String user_id) throws Exception;\n\n String update(String message, String user_id) throws Exception;\n\n int delete(int id) throws Exception;\n\n PageInfo<AppBottomIConCfg> getAppBottomIConCfgScreen(int page_number, int page_size, Map<String, String> map) throws Exception;\n\n AppBottomIConCfg getAppBottomIConCfgByCorp(String isactive, String corp_code) throws Exception;\n\n List<AppBottomIConCfg> getListByCorp(String isactive, String corp_code) throws Exception;\n\n\n}", "public interface BusinessExecutor {\n\n int getBusinessType();\n\n void execute(String businessId);\n\n}", "public String getBusiness() {\n return this.Business;\n }", "public static void m94914b() {\n m94910a((Context) BaseApplication.get(), f65698a, true);\n }", "public BusinessLogic()\n\t{\n\t\tcreateConnection();\n\t}", "public interface BInformationService {\n\n /**\n * Save a bInformation.\n *\n * @param bInformation the entity to save\n * @return the persisted entity\n */\n BInformation save(BInformation bInformation);\n\n /**\n * Get all the bInformations.\n *\n * @return the list of entities\n */\n List<BInformation> findAll();\n\n /**\n * Get the \"id\" bInformation.\n *\n * @param id the id of the entity\n * @return the entity\n */\n BInformation findOne(Long id);\n\n /**\n * Delete the \"id\" bInformation.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n /**\n * 查询用户详细信息\n */\n InfoDTO findUserInformation(String username);\n\n /**\n * 新增用户工作经历\n */\n void insertWorkExperience(List<WorkProjectVM> workProjects);\n\n /**\n * 通过用户账号查询详细信息\n */\n BInformation findInformationByUsername(String username);\n\n /**\n * 通过用户账号查询联系方式\n */\n BContact findContactByUsername(String username);\n\n /**\n * 通过用户账号查询教育背景\n */\n BEducation findEducationByUsername(String username);\n\n /**\n * 通过用户账号查询工作经验\n */\n List<BWork> findWorkByUsername(String username);\n\n /**\n * 通过用户账号查询项目经验\n */\n List<BWorkProject> findWorkProjectByUsername(String username);\n\n /**\n * 通过用户账号查询自我评价\n */\n BSelf findSelfByUsername(String username);\n\n /**\n * 通过用户账号查询兴趣爱好\n */\n BHobby findHobbyByUsername(String username);\n\n /**\n * 通过用户账号查询荣誉奖项\n */\n BHonour findHonourByUsername(String username);\n\n /**\n * 通过用户账号查询求职意向\n */\n JobObjective findJobObjectiveByUsername(String username);\n\n}", "public interface TransactionContext extends Serializable {\n\n\n class Factory {\n public static TransactionContext getInstance() {\n TransactionContext instance = TransactionContextImpl.getInstance();\n if (instance == null) {\n instance = TransactionContextImpl.newInstance();\n }\n return instance;\n }\n }\n\n void setContextData(String key, Object value);\n\n <T> T getContextData(String key, Class<T> valueType);\n\n EncodeProtocol getProtocol();\n\n String getServiceName();\n\n String getMethod();\n\n String getVersion();\n\n /** 获取option整个值(int型) */\n int getOptions();\n\n /** 判断option中二进制第index位是否为1 */\n boolean getOption(int index);\n\n int getSequence();\n\n String getCallerId();\n\n long getSessionTid();\n\n long getCallerTid();\n\n long getCalleeTid();\n\n @Deprecated\n long getUid();\n\n long getStartTime();\n\n @Deprecated\n int getConcurrentCount();\n\n String getUip();\n\n String getForwardedFor();\n\n String getProxyIP();\n\n InetAddress getCallerIP();\n\n int getCallerPort();\n\n Map<String, String> getCookie();\n\n TransactionContext setCookie(Map<String, String> cookie);\n\n TransactionContext setCookie(String key, String value);\n\n String getUserSign();\n\n TransactionContext setTimeout(long timeout);\n\n long getTimeout();\n\n String getReturnCode();\n\n void setReturnCode(String returnCode);\n\n String getReturnMessage();\n\n void setReturnMessage(String returnMessage);\n\n String getErrorGroup();\n\n void setErrorGroup(String errorGroup);\n\n String getErrorLevel();\n\n String getErrorLocation();\n\n boolean isCircuitBroken();\n\n void setCircuitBroken(boolean circuitBroken);\n\n /** 是否重试 */\n boolean isRetry();\n\n void setRetry(boolean retry);\n\n @Deprecated\n long getReceivedTime();\n\n @Deprecated\n int getCalleeTime1();\n\n @Deprecated\n int getCalleeTime2();\n\n @Deprecated\n int getSendLength();\n\n @Deprecated\n int getRecvLength();\n\n @Deprecated\n Long getMscTraceId();\n\n @Deprecated\n Long getMscSpanId();\n\n String getRemoteAddress();\n\n String getLocalAddress();\n\n String getDomain();\n}", "public void setBusiness_id(String business_id) {\n this.business_id = business_id;\n }", "public void e(android.arch.persistence.a.b bVar) {\n android.arch.persistence.a.b bVar2 = bVar;\n HashMap hashMap = new HashMap(2);\n hashMap.put(\"work_spec_id\", new android.arch.persistence.room.b.b.a(\"work_spec_id\", \"TEXT\", true, 1));\n hashMap.put(\"prerequisite_id\", new android.arch.persistence.room.b.b.a(\"prerequisite_id\", \"TEXT\", true, 2));\n HashSet hashSet = new HashSet(2);\n hashSet.add(new android.arch.persistence.room.b.b.b(\"WorkSpec\", \"CASCADE\", \"CASCADE\", Arrays.asList(new String[]{\"work_spec_id\"}), Arrays.asList(new String[]{\"id\"})));\n hashSet.add(new android.arch.persistence.room.b.b.b(\"WorkSpec\", \"CASCADE\", \"CASCADE\", Arrays.asList(new String[]{\"prerequisite_id\"}), Arrays.asList(new String[]{\"id\"})));\n HashSet hashSet2 = new HashSet(2);\n hashSet2.add(new d(\"index_Dependency_work_spec_id\", false, Arrays.asList(new String[]{\"work_spec_id\"})));\n hashSet2.add(new d(\"index_Dependency_prerequisite_id\", false, Arrays.asList(new String[]{\"prerequisite_id\"})));\n android.arch.persistence.room.b.b bVar3 = new android.arch.persistence.room.b.b(\"Dependency\", hashMap, hashSet, hashSet2);\n android.arch.persistence.room.b.b a = android.arch.persistence.room.b.b.a(bVar2, \"Dependency\");\n StringBuilder stringBuilder;\n if (bVar3.equals(a)) {\n hashMap = new HashMap(23);\n hashMap.put(\"id\", new android.arch.persistence.room.b.b.a(\"id\", \"TEXT\", true, 1));\n hashMap.put(\"state\", new android.arch.persistence.room.b.b.a(\"state\", \"INTEGER\", true, 0));\n hashMap.put(\"worker_class_name\", new android.arch.persistence.room.b.b.a(\"worker_class_name\", \"TEXT\", true, 0));\n hashMap.put(\"input_merger_class_name\", new android.arch.persistence.room.b.b.a(\"input_merger_class_name\", \"TEXT\", false, 0));\n hashMap.put(\"input\", new android.arch.persistence.room.b.b.a(\"input\", \"BLOB\", true, 0));\n hashMap.put(\"output\", new android.arch.persistence.room.b.b.a(\"output\", \"BLOB\", true, 0));\n hashMap.put(\"initial_delay\", new android.arch.persistence.room.b.b.a(\"initial_delay\", \"INTEGER\", true, 0));\n hashMap.put(\"interval_duration\", new android.arch.persistence.room.b.b.a(\"interval_duration\", \"INTEGER\", true, 0));\n hashMap.put(\"flex_duration\", new android.arch.persistence.room.b.b.a(\"flex_duration\", \"INTEGER\", true, 0));\n hashMap.put(\"run_attempt_count\", new android.arch.persistence.room.b.b.a(\"run_attempt_count\", \"INTEGER\", true, 0));\n hashMap.put(\"backoff_policy\", new android.arch.persistence.room.b.b.a(\"backoff_policy\", \"INTEGER\", true, 0));\n hashMap.put(\"backoff_delay_duration\", new android.arch.persistence.room.b.b.a(\"backoff_delay_duration\", \"INTEGER\", true, 0));\n hashMap.put(\"period_start_time\", new android.arch.persistence.room.b.b.a(\"period_start_time\", \"INTEGER\", true, 0));\n hashMap.put(\"minimum_retention_duration\", new android.arch.persistence.room.b.b.a(\"minimum_retention_duration\", \"INTEGER\", true, 0));\n hashMap.put(\"schedule_requested_at\", new android.arch.persistence.room.b.b.a(\"schedule_requested_at\", \"INTEGER\", true, 0));\n hashMap.put(\"required_network_type\", new android.arch.persistence.room.b.b.a(\"required_network_type\", \"INTEGER\", false, 0));\n hashMap.put(\"requires_charging\", new android.arch.persistence.room.b.b.a(\"requires_charging\", \"INTEGER\", true, 0));\n hashMap.put(\"requires_device_idle\", new android.arch.persistence.room.b.b.a(\"requires_device_idle\", \"INTEGER\", true, 0));\n hashMap.put(\"requires_battery_not_low\", new android.arch.persistence.room.b.b.a(\"requires_battery_not_low\", \"INTEGER\", true, 0));\n hashMap.put(\"requires_storage_not_low\", new android.arch.persistence.room.b.b.a(\"requires_storage_not_low\", \"INTEGER\", true, 0));\n hashMap.put(\"trigger_content_update_delay\", new android.arch.persistence.room.b.b.a(\"trigger_content_update_delay\", \"INTEGER\", true, 0));\n hashMap.put(\"trigger_max_content_delay\", new android.arch.persistence.room.b.b.a(\"trigger_max_content_delay\", \"INTEGER\", true, 0));\n hashMap.put(\"content_uri_triggers\", new android.arch.persistence.room.b.b.a(\"content_uri_triggers\", \"BLOB\", false, 0));\n hashSet = new HashSet(0);\n hashSet2 = new HashSet(1);\n hashSet2.add(new d(\"index_WorkSpec_schedule_requested_at\", false, Arrays.asList(new String[]{\"schedule_requested_at\"})));\n bVar3 = new android.arch.persistence.room.b.b(\"WorkSpec\", hashMap, hashSet, hashSet2);\n a = android.arch.persistence.room.b.b.a(bVar2, \"WorkSpec\");\n if (bVar3.equals(a)) {\n hashMap = new HashMap(2);\n hashMap.put(\"tag\", new android.arch.persistence.room.b.b.a(\"tag\", \"TEXT\", true, 1));\n hashMap.put(\"work_spec_id\", new android.arch.persistence.room.b.b.a(\"work_spec_id\", \"TEXT\", true, 2));\n hashSet = new HashSet(1);\n hashSet.add(new android.arch.persistence.room.b.b.b(\"WorkSpec\", \"CASCADE\", \"CASCADE\", Arrays.asList(new String[]{\"work_spec_id\"}), Arrays.asList(new String[]{\"id\"})));\n hashSet2 = new HashSet(1);\n hashSet2.add(new d(\"index_WorkTag_work_spec_id\", false, Arrays.asList(new String[]{\"work_spec_id\"})));\n bVar3 = new android.arch.persistence.room.b.b(\"WorkTag\", hashMap, hashSet, hashSet2);\n a = android.arch.persistence.room.b.b.a(bVar2, \"WorkTag\");\n if (bVar3.equals(a)) {\n hashMap = new HashMap(2);\n hashMap.put(\"work_spec_id\", new android.arch.persistence.room.b.b.a(\"work_spec_id\", \"TEXT\", true, 1));\n hashMap.put(\"system_id\", new android.arch.persistence.room.b.b.a(\"system_id\", \"INTEGER\", true, 0));\n hashSet = new HashSet(1);\n hashSet.add(new android.arch.persistence.room.b.b.b(\"WorkSpec\", \"CASCADE\", \"CASCADE\", Arrays.asList(new String[]{\"work_spec_id\"}), Arrays.asList(new String[]{\"id\"})));\n bVar3 = new android.arch.persistence.room.b.b(\"SystemIdInfo\", hashMap, hashSet, new HashSet(0));\n a = android.arch.persistence.room.b.b.a(bVar2, \"SystemIdInfo\");\n if (bVar3.equals(a)) {\n hashMap = new HashMap(2);\n hashMap.put(\"name\", new android.arch.persistence.room.b.b.a(\"name\", \"TEXT\", true, 1));\n hashMap.put(\"work_spec_id\", new android.arch.persistence.room.b.b.a(\"work_spec_id\", \"TEXT\", true, 2));\n HashSet hashSet3 = new HashSet(1);\n hashSet3.add(new android.arch.persistence.room.b.b.b(\"WorkSpec\", \"CASCADE\", \"CASCADE\", Arrays.asList(new String[]{\"work_spec_id\"}), Arrays.asList(new String[]{\"id\"})));\n hashSet = new HashSet(1);\n hashSet.add(new d(\"index_WorkName_work_spec_id\", false, Arrays.asList(new String[]{\"work_spec_id\"})));\n android.arch.persistence.room.b.b bVar4 = new android.arch.persistence.room.b.b(\"WorkName\", hashMap, hashSet3, hashSet);\n android.arch.persistence.room.b.b a2 = android.arch.persistence.room.b.b.a(bVar2, \"WorkName\");\n if (!bVar4.equals(a2)) {\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Migration didn't properly handle WorkName(androidx.work.impl.model.WorkName).\\n Expected:\\n\");\n stringBuilder.append(bVar4);\n stringBuilder.append(\"\\n Found:\\n\");\n stringBuilder.append(a2);\n throw new IllegalStateException(stringBuilder.toString());\n }\n return;\n }\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Migration didn't properly handle SystemIdInfo(androidx.work.impl.model.SystemIdInfo).\\n Expected:\\n\");\n stringBuilder.append(bVar3);\n stringBuilder.append(\"\\n Found:\\n\");\n stringBuilder.append(a);\n throw new IllegalStateException(stringBuilder.toString());\n }\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Migration didn't properly handle WorkTag(androidx.work.impl.model.WorkTag).\\n Expected:\\n\");\n stringBuilder.append(bVar3);\n stringBuilder.append(\"\\n Found:\\n\");\n stringBuilder.append(a);\n throw new IllegalStateException(stringBuilder.toString());\n }\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Migration didn't properly handle WorkSpec(androidx.work.impl.model.WorkSpec).\\n Expected:\\n\");\n stringBuilder.append(bVar3);\n stringBuilder.append(\"\\n Found:\\n\");\n stringBuilder.append(a);\n throw new IllegalStateException(stringBuilder.toString());\n }\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Migration didn't properly handle Dependency(androidx.work.impl.model.Dependency).\\n Expected:\\n\");\n stringBuilder.append(bVar3);\n stringBuilder.append(\"\\n Found:\\n\");\n stringBuilder.append(a);\n throw new IllegalStateException(stringBuilder.toString());\n }", "public interface IBizLoanDataService {\n\n\t/**\n\t * 新增.\n\t *\n\t * @param loanVo the loan vo\n\t * @param userVo the user vo\n\t * @return the ext data< loan vo>\n\t * @throws Exception the exception\n\t */\n\tExtData<BizLoanDataVo> doInsertLoan(BizLoanDataVo loanVo,SysUserVo userVo)\n\t\t\tthrows Exception;\n\n\t/**\n\t * 修改.\n\t *\n\t * @param loanVo the loan vo\n\t * @param userVo the user vo\n\t * @return the ext data< loan vo>\n\t * @throws Exception the exception\n\t */\n\tExtData<BizLoanDataVo> doUpdateLoan(BizLoanDataVo loanVo,SysUserVo userVo)\n\t\t\tthrows Exception;\n\t\n\t/**\n\t * 贷后信息维护.\n\t *\n\t * @param loanVo the loan vo\n\t * @param userVo the user vo\n\t * @return the ext data< loan vo>\n\t * @throws Exception the exception\n\t */\n\tExtData<BizLoanDataVo> doMaintainLoan(BizLoanDataVo loanVo,SysUserVo userVo)\n\t\t\tthrows Exception;\n\n\t/**\n\t * 提交.\n\t *\n\t * @param loanVo the loan vo\n\t * @param userVo the user vo\n\t * @return the ext data< loan vo>\n\t * @throws Exception the exception\n\t */\n\tExtData<BizLoanDataVo> doSubmitLoan(BizLoanDataVo loanVo,SysUserVo userVo)\n\t\t\tthrows Exception;\n\t\n\t/**\n\t * 手工商户认证.\n\t *\n\t * @param loanVo the loan vo\n\t * @param userVo the user vo\n\t * @return the ext data< loan vo>\n\t * @throws Exception the exception\n\t */\n\tExtData<BizLoanDataVo> doCertifyLoan(BizLoanDataVo loanVo,SysUserVo userVo)\n\t\t\tthrows Exception;\n\t\n\t/**\n\t * 手工贷款申请驳回.\n\t * 填写驳回原因\n\t *\n\t * @param loanVo the loan vo\n\t * @param userVo the user vo\n\t * @return the ext data< loan vo>\n\t * @throws Exception the exception\n\t */\n\tExtData<BizLoanDataVo> doDenyLoan(BizLoanDataVo loanVo,SysUserVo userVo)\n\t\t\tthrows Exception;\n\n\t/**\n\t * 手工贷款通过.\n\t *\n\t * @param loanVo the loan vo\n\t * @param userVo the user vo\n\t * @return the ext data< loan vo>\n\t * @throws Exception the exception\n\t */\n\tpublic ExtData<BizLoanDataVo> doAuditLoan(BizLoanDataVo loanVo,SysUserVo userVo)\n\t\t\tthrows Exception; \n\t\n\t/**\n\t * 查询.\n\t *\n\t * @param filters the filters\n\t * @param page the page\n\t * @return the ext data< loan vo>\n\t * @throws Exception the exception\n\t */\n\tExtData<BizLoanDataVo> findLoan(List<Filter> filters, Page page) throws Exception;\n\t\n\t/**\n\t * 查询代理商户下的所有贷款信息.\n\t *\n\t * @param customerCode the customer code\n\t * @param page the page\n\t * @return the ext data< loan vo>\n\t * @throws Exception the exception\n\t */\n\tExtData<BizLoanDataVo> findLoanbyAgentCustomerCode(Long customerCode, Page page) throws Exception;\n\t\n\t/**\n\t * 查询会员的贷款信息\n\t * @param customerCode\n\t * @param page\n\t * @return\n\t * @throws Exception\n\t */\n\tExtData<BizLoanDataVo> findBizLoanDataCustomerCode(Long customerCode, Page page) throws Exception;\n\n\t/**\n\t * 贷款申请提交银行.\n\t *\n\t * @param loanVo the loan vo\n\t * @param user the user\n\t * @return the ext data\n\t * @throws Exception the exception\n\t */\n\tExtData<BizLoanDataVo> doSend2Bank(BizLoanDataVo loanVo, SecurityUserDetail user) throws Exception;\n\t\n\t/**\n\t * 贷款申请成功.\n\t *\n\t * @param loanVo the loan vo\n\t * @param user the user\n\t * @return the ext data\n\t * @throws Exception the exception\n\t */\n\tExtData<BizLoanDataVo> doLoanSuccess(BizLoanDataVo loanVo, SecurityUserDetail user) throws Exception;\n\t\n\t/**\n\t * 贷款申请失败.\n\t *\n\t * @param loanVo the loan vo\n\t * @param user the user\n\t * @return the ext data\n\t * @throws Exception the exception\n\t */\n\tExtData<BizLoanDataVo> doLoanFailed(BizLoanDataVo loanVo, SecurityUserDetail user) throws Exception;\n\t\n\t/**\n\t * 通过loanId查找贷款信息\n\t * @param loanId\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic BizLoanDataVo findBizLoanDataByLoanId(String loanId) throws Exception;\n\t\n\t/**\n\t * 发送邮件到银行\n\t * @param loanVo\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic ExtData<CmMediaResVo> zipFileAndSendMaill(File dir, Map<String,String> map,String datestr)throws Exception; \n\t\n\t/**\n\t * 查询用户下的附件访问路径\n\t * @param customerCode\n\t * @return\n\t * @throws BaseException\n\t */\n\tpublic List<BizMchntAttachVo> findWebMemberInfoAttach(Long customerCode) throws BaseException; \n\t\n}", "private interface GetBundleContextStrategy {\n\t\t/**\n\t\t * Obtain the caller's BundleContext. \n\t\t * \n\t\t * @param environment the JNDI environment properties\n\t\t * @param namingClassType the name of the javax.naming class to use when\n\t\t * searching for the calling Bundle. \n\t\t * @return the caller's BundleContext, or\n\t\t * null if none found. \n\t\t */\n\t\tpublic BundleContext getBundleContext(Hashtable< ? , ? > environment,\n\t\t\t\tString namingClassType);\n\t}", "@Test(expected = BusinessException.class)\n public void blacklistArchived() throws BusinessException {\n final ProductService productService = new ProductService();\n\n final Long pProductId = 1L;\n\n new Expectations() {\n\n {\n\n Deencapsulation.setField(productService, \"productDAO\", mockProductDAO);\n\n ProductBO productBO = new ProductBO();\n productBO.setStatus(Status.ARCHIVED);\n mockProductDAO.get(1L);\n times = 1;\n returns(productBO);\n }\n };\n\n productService.blacklist(pProductId);\n }", "@Test(expected = BusinessException.class)\n public void blacklistDeleted() throws BusinessException {\n final ProductService productService = new ProductService();\n\n final Long pProductId = 1L;\n\n new Expectations() {\n\n {\n\n Deencapsulation.setField(productService, \"productDAO\", mockProductDAO);\n\n ProductBO productBO = new ProductBO();\n productBO.setStatus(Status.DELETED);\n mockProductDAO.get(1L);\n times = 1;\n returns(productBO);\n }\n };\n\n productService.blacklist(pProductId);\n }", "public interface BranchService extends Service<Branch, Long> {\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}", "public static c b(Context context) {\n Object object = a;\n if (object != null) return a;\n object = c.class;\n synchronized (object) {\n c c10 = a;\n if (c10 != null) return a;\n a = c10 = new c(context);\n return a;\n }\n }", "void mo97180a(Context context);", "public interface OIMBizLocal {\n \n public void localOp();\n \n public void processEvent(BusinessEvent event);\n}", "public interface StudentBiz {\n public boolean addStudent(Student stu);\n public int deleteStudent(int stuId);\n public boolean modifyStudent(String mdSql);\n public List<Student> getAll();\n}", "public interface C35590c {\n /* renamed from: a */\n void mo56317a(Context context, Bundle bundle, C4541a c4541a);\n}", "public ApplicationUserBoImpl()\n {\n \t//Initialise the related Object stores\n \n }", "public interface BillService {\n\n//\t/**\n//\t * <p>MethodName: getCount</p>\n//\t * <p>Description: </p>\n//\t * <p>Company: www.shuiguoyizhan.com</p>\n//\t * <p>Parameter: </P>\n//\t * <p>Return Type: int</P>\n//\t * @author yjs\n//\t * @date 2016-5-8\n//\t * @vession 1.0.0\n//\t */\n//\tint getCount() throws Exception;\n//\n//\t/**\n//\t * <p>MethodName: getPageList</p>\n//\t * <p>Description: </p>\n//\t * <p>Company: www.shuiguoyizhan.com</p>\n//\t * <p>Parameter: </P>\n//\t * <p>Return Type: List<BaseInfo></P>\n//\t * @author yjs\n//\t * @date 2016-5-8\n//\t * @vession 1.0.0\n//\t */\n//\tList<BaseInfo> getPageList(PageParameter pageParameter) throws Exception;\n//\n//\t/**\n//\t * <p>MethodName: delete</p>\n//\t * <p>Description: </p>\n//\t * <p>Company: www.shuiguoyizhan.com</p>\n//\t * <p>Parameter: </P>\n//\t * <p>Return Type: int</P>\n//\t * @author yjs\n//\t * @date 2016-5-8\n//\t * @vession 1.0.0\n//\t */\n//\tint delete(List<String> idList) throws Exception;\n//\n//\t/**\n//\t * <p>MethodName: delete</p>\n//\t * <p>Description: </p>\n//\t * <p>Company: www.shuiguoyizhan.com</p>\n//\t * <p>Parameter: </P>\n//\t * <p>Return Type: int</P>\n//\t * @author yjs\n//\t * @date 2016-5-8\n//\t * @vession 1.0.0\n//\t */\n//\tint delete(String billId) throws Exception;\n\n\t\n}", "public interface BeeDataDao {\n\n /*获取兼职数据*/\n BeeJobTime getBeeJobTime();\n\n /*分页获取兼职数据*/\n BeeJobTime getBeeJobTimes(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n /*获取暑期工数据*/\n BeeSummerJob getBeeSummerJob();\n\n /*分页获取暑期工数据*/\n BeeSummerJob getBeeSummerJobs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n /*根据JID获取兼职详细信息*/\n BeeJobTimeDetailed getBeeJobTimeDetailed(int jid);\n\n /*根据SID获取兼职详细信息*/\n BeeSummerJobDetailed getSummerJobDetailed(int sid);\n\n /*分页获取兼职报名信息*/\n UserMessageList getSignUpJobFairs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n /*获取兼职报名List*/\n UserMessageList getSignUpJobFair();\n\n /*根据phone查询兼职报名人员*/\n UserMessageList selectJobFairUser(String phone);\n\n /*兼职报名*/\n void putSignUpJobFair(@Param(\"userMessage\") UserMessage userMessage);\n\n /*根据UserId查询报名人员*/\n String selectSignUpJobFairByUserId(int UserId);\n\n /*插入amount*/\n void insertAmount(@Param(\"amount\") String amount,@Param(\"jobNames\") String jobNames,@Param(\"userId\") int userId);\n\n /*暑期工报名*/\n void putSignUpSummerJob(@Param(\"userMessage\") UserMessage userMessage);\n\n /*暑期工发布*/\n void publishSummerJob(@Param(\"beeSummerJobDetailed\") BeeSummerJobDetailed beeSummerJobDetailed,@Param(\"tag\") String tag);\n\n /*兼职发布*/\n void publishJobFair(@Param(\"beeSummerJobDetailed\") BeeSummerJobDetailed beeSummerJobDetailed,@Param(\"tag\") String tag);\n\n /*分页获取暑期工报名信息*/\n UserMessageList getSignUpSummerJobs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n /*获取暑期工报名List*/\n UserMessageList getSignUpSummerJob();\n\n BeeSummerJobDetailedList AuditingJobFairs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n BeeSummerJobDetailedList AuditingJobFair();\n\n BeeSummerJobDetailedList AuditingSummerJob();\n\n BeeSummerJobDetailedList AuditingSummerJobs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n String selectSignUpJobFairByJIDS(int userId);\n\n UserMessageList selectSummerJobUser(String phone);\n\n String selectSignUpSummerJobByJIDS(int userId);\n\n String selectSignUpSummerJobByUserId(int userId);\n\n void insertAmount1(String jids, String jobNameS, int userId);\n\n int getSid(int id);\n\n int getJid(int id);\n\n void putOpenId(@Param(\"openId\") Object openId,@Param(\"targetId\") int targetId);\n\n BeeJobTime getAuditingBeeJobTimeByOpenId(String openId);\n\n BeeJobTime getAuditingBeeJobTimesByOpenId(@Param(\"openId\") String openId, @Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n BeeJobTime getBeeJobTimesByOpenId(@Param(\"openId\") String openId, @Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n BeeJobTime getBeeJobTimeByOpenId(String openId);\n\n int selectIsGet(int i);\n\n UserMessageList getSignUpJobFairsByJid();\n\n UserMessageList getSignUpJobFairByJid(@Param(\"jid\") String jid,@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n int selectargetId(String openId);\n\n BeeJobTimeDetailed getAuditingBeeJobTimeDetailed(int jid);\n\n int selectOpenId(Object openId);\n\n Object selectOpenIds(Object openId);\n\n List<Integer> getJidByOpenId(String openId);\n\n void getJobTimeUserByJid(List<Integer> jid);\n\n String getJidsByOpenId(String openId);\n\n BeeJobTime getJobTimeByOpenId(@Param(\"jidS\") List<String> jidS);\n\n BeeJobTime getBeeJobTimesByOpenIds(int startIndex, int endAmount);\n\n String getJidsByJid(int i);\n\n String[] getJids();\n}", "public interface TbFlockRelevanceService {\r\n\r\n /**\r\n * 新增\r\n */\r\n public int insert(TbFlockRelevance tbFlockRelevance);\r\n\r\n /**\r\n * 删除\r\n */\r\n public int delete(int id);\r\n\r\n /**\r\n * 更新\r\n */\r\n public int update(TbFlockRelevance tbFlockRelevance);\r\n\r\n /**\r\n * Load查询\r\n */\r\n public TbFlockRelevance load(TbFlockRelevance tbFlockRelevance);\r\n\r\n /**\r\n * 分页查询\r\n */\r\n public PageBean pageList(Request request);\r\n\r\n}", "public BusinessObjectService getBusinessObjectService() {\n return businessObjectService;\n }", "public interface IBBO {\n String getSecurityId();\n\n double getBidPx();\n\n double getOfferPx();\n\n double getBidSize();\n\n double getOfferSize();\n\n String getTradingStatus();\n\n double getLastPx();\n\n double getLastSize();\n\n double getLowPx();\n\n double getHighPx();\n\n double getOpenPx();\n\n double getClosePx();\n\n PerformanceData getPerformanceData();\n\n boolean isInRecovery(IChannelStatus.ChannelType channelType);\n\n boolean isInRecoverySet(IChannelStatus.ChannelType channelType);\n}", "public interface TeamBLS {\n\n /**\n * 获取TeamListActivity显示内容\n *\n * @param context\n * @return\n */\n public List<TeamConferenceVo> getTeamConference(Context context);\n\n /**\n * 获取TeamActivity的顶层显示内容\n *\n * @param context\n * @param abbr\n * @return\n */\n public TeamInfoVo getTeamInfo(Context context,String abbr);\n\n public List<TeamSeasonInfoVo> getTeamSeasonTotal(Context context,String abbr);\n}", "public ShippingResultABCAnalysis2Business()\n {\n super();\n }", "public Statistics(Context context){\n this.context=context;\n dalDynamic=new DalDynamic(context);\n\n\n }", "public interface ProductBrandCommon {\n\n /**\n * SQL statement that filter product brand by its description or id.\n */\n String FIND_BY_PRODUCT_BRAND_SQL = \"select productBrand from ProductBrand productBrand \" +\n \"where productBrand.productBrandId like concat('%', :productBrand, '%') \" +\n \"or upper(productBrand.productBrandDescription) like concat('%', upper(:productBrand), '%')\";\n\n /**\n * SQL statement that filter product brand by its description and show own brand only.\n */\n String FIND_BY_PRODUCT_BRAND_AND_OWN_BRAND_SQL = \"select productBrand from ProductBrand productBrand \" +\n \"where (productBrand.productBrandId like concat('%', :productBrand, '%') \" +\n \"or upper(productBrand.productBrandDescription) like concat('%', upper(:productBrand), '%')) \" +\n \"and productBrand.productBrandTier.productBrandTierCode <> :productBrandTierCode\";\n\n /**\n * SQL statement that filter product brands by brand description or id and brand tier name.\n */\n String FIND_BY_PRODUCT_BRAND_AND_BRAND_TIER_SQL = \"select productBrand from ProductBrand productBrand \" +\n \"where (productBrand.productBrandId like concat('%', :productBrand, '%') \" +\n \"or upper(productBrand.productBrandDescription) like concat('%', upper(:productBrand), '%')) \" +\n \"and upper(productBrand.productBrandTier.productBrandName) like concat('%', upper(:brandTier),'%')\";\n\n /**\n * SQL statement that filter product brands by brand description or id and brand tier name and show own brand only.\n */\n String FIND_BY_PRODUCT_BRAND_AND_BRAND_TIER_AND_OWN_BRAND_SQL =\n \"select productBrand from ProductBrand productBrand join productBrand.productBrandTier brandTier \" +\n \"where (productBrand.productBrandId like concat('%', :productBrand, '%') \" +\n \"or upper(productBrand.productBrandDescription) like concat('%', upper(:productBrand), '%')) \" +\n \"and upper(brandTier.productBrandName) like concat('%', upper(:brandTier),'%') \" +\n \"and brandTier.productBrandTierCode <> :productBrandTierCode\";\n\n\t/**\n\t * SQL statement that filter product brands by brand description or id.\n\t */\n\tString FIND_BY_PRODUCT_BRAND_AND_DESCRIPTION_SQL =\n\t\t\t\"from ProductBrand productBrand \" +\n\t\t\t\t\t\"where (productBrand.productBrandId like concat('%', :id, '%') \" +\n\t\t\t\t\t\"or upper(productBrand.productBrandDescription) like concat('%', upper(:desciption), '%')) \";\n\n /**\n * SQL statement that filter brands by productBrandId.\n */\n String FIND_BY_BRAND_ID_SQL = \"select productBrand from ProductBrand productBrand \" +\n \"where productBrand.productBrandId like concat('%', :productBrandId, '%')\";\n\n /**\n * SQL statement that filter brands by productBrandId and productBrandDescription.\n */\n String FIND_BY_PRODUCT_BRAND_ID_AND_BRAND_DESCRIPTION_SQL = \"select productBrand from ProductBrand productBrand \" +\n \"where productBrand.productBrandId like concat('%', :productBrandId, '%') \" +\n \"and upper(productBrand.productBrandDescription) like concat('%', upper(:productBrandDescription), '%')\";\n\n\n String FIND_BY_BRAND_DESCRIPTION_EXCEPT_ITSELF_SQL = \"select productBrand from ProductBrand productBrand \" +\n \"where upper(TRIM(productBrand.productBrandDescription)) = upper(:productBrandDescription) \" +\n \"and productBrand.productBrandId != :productBrandId\";\n\n\n}", "private void fetchBusinessGoalFromDB() \r\n\t{\r\n\t\tthis.showLoadingStatusBar();\r\n\t\tServiceDefTarget endpoint = (ServiceDefTarget) service; \t\t// get the business goal and associated subgoals and assets\r\n\t\tendpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + \"identifyGoalAssetService.rpc\");\r\n\t\tservice.loadBusinessGoalInfo(getCurrentState().getProjectID(), new AsyncCallback<GwtBusinessGoal>()\r\n\t\t{\r\n\t\t\tpublic void onFailure(Throwable caught)\r\n\t\t\t{\r\n\t\t\t\tWindow.alert(caught.getMessage());\r\n\t\t\t}\r\n\r\n\t\t\tpublic void onSuccess(GwtBusinessGoal result)\r\n\t\t\t{\t\t\r\n\t\t\t\t\tbusinessGoal = result;\r\n\t\t\t\t\tsummaryPageCommand.execute();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public interface IBidService {\n\n\t/**\n\t * 账户的保存方法\n\t * @param bid\n\t * @return 操作成功受影响的行数\n\t */\n\tint save(Bid bid);\n\n\t/**\n\t * 账户的更新方法\n\t * @param bid\n\t * @return 操作成功受影响的行数\n\t */\n\tint update(Bid bid);\n\n\t/**\n\t * 账户的单独查询方法\n\t * @param id\n\t * @return 方法单个Bid对象\n\t */\n\tBid get(Long id);\n\n\t/**\n\t * 批量修改投标的状态\n\t * @param bidRequestId\n\t * @param bidRequestState\n\t */\n\tvoid updateState(Long bidRequestId, int bidRequestState);\n}", "java.lang.String getBusinessId();", "public interface MergerService {\n /**\n * 封存、启封、销户 分页\n * @param map\n * @return\n */\n List<PersonsAccountNumberState> SealedPage1(Map map);\n\n /**\n * 封存、启封 销户 查询信息条数\n * @param map\n * @return\n */\n List<Map> SealedPageCount1(Map map);\n\n\n /**\n * 判断唯一性校验 封存 启封 销户 校验 不能重复操作\n * @param map\n * @return\n */\n List<Map> verification(Map map);\n\n /**\n * 校验贷款的人 不能销户 和 封存\n * @param map\n * @return\n */\n List<Map> loansVerification(Map map);\n /**\n * 封存 启封 销户 操作弹出层查询信息\n * @param map\n * @return\n * element--controller放到service层\n */\n Map operationQuery(Map map);\n\n /**\n * 获取审核信息 放入审核表中\n * @param map\n * @return\n * element 放到service层\n */\n Map unsealAudit1(Map map, HttpSession session);\n\n /**\n * 获取审核信息 添加到审核表中\n * @param map\n * @return\n * element\n */\n int unsealAuditAdd1(Map map);\n\n /**\n * 获取分页数据\n * @param map\n * @return\n */\n List<personDetail> getPage1(Map map);\n\n /**\n * 获取分页数据总数量\n * @param map\n * @return\n */\n int getPageCount1(Map map);\n\n\n //12121648查看审批\n /**\n * 审批工作类别查询\n * @return\n */\n List<Map> accraditation1();\n\n /**\n * 查询贷款记录表中的信息 录入查看审批表中\n * @param map\n * @return\n */\n List<Map> loans1(Map map);\n\n /**\n * 查询贷款记录表中的总信息条数\n * @return\n */\n int loansCount1();\n\n /**\n * 查询封存、启封、销户 记录表\n * @param map\n * @return\n */\n List<Map> breaka1(Map map);\n\n /**\n * 查询封存、启封、销户 记录表 条数\n * @return\n */\n int breakaCount1();\n\n /**\n * 查询人员转移记录表中信息 录入查看审批表中\n * @param map\n * @return\n */\n List<Map> transfer(Map map);\n\n /**\n * 查询人员转移记录表 条数\n * @return\n */\n int transferCount();\n\n /**\n * 查询公积金提取记录表\n * @param map\n * @return\n */\n List<Map> extract(Map map);\n /**\n * 查询公积金提取记录表\n * @param map\n * @return\n */\n List<Map> extract1(Map map);\n\n /**\n * 查询公积金提取记录表 条数\n * @return\n */\n int extractCount1();\n}", "public interface TransactionBo {\n\n String save();\n}", "public interface AcGlobalDomesticPlannedVsActualRouteServiceIF\n extends AcModelServiceIF\n{\n AcGlobalDomesticPlannedVsActualRoute getGlobalDomesticPlannedVsActualRoute(Integer id);\n AcGlobalDomesticPlannedVsActualRoute getGlobalDomesticPlannedVsActualRoute(AcGlobalDomesticPlannedVsActualRoutePkIF pk);\n boolean globalDomesticPlannedVsActualRouteExists(Integer id);\n boolean globalDomesticPlannedVsActualRouteExists(AcGlobalDomesticPlannedVsActualRoutePkIF pk);\n AcGlobalDomesticPlannedVsActualRoute getGlobalDomesticPlannedVsActualRouteByWebKey(String webKey);\n JwList<AcGlobalDomesticPlannedVsActualRoute> getAll();\n JwList<AcGlobalDomesticPlannedVsActualRoute> getAllAvailable();\n JwList<AcGlobalDomesticPlannedVsActualRoute> getAllWhere(String whereClause, Integer rowLimit);\n AcGlobalDomesticPlannedVsActualRoute getByFlightIds(Integer globalDomesticPlannedVsActualRouteFlightId1, Integer globalDomesticPlannedVsActualRouteFlightId2, Integer globalDomesticPlannedVsActualRouteFlightId3, Integer globalDomesticPlannedVsActualRouteFlightId4);\n Integer insert(AcGlobalDomesticPlannedVsActualRoute globalDomesticPlannedVsActualRoute);\n void update(AcGlobalDomesticPlannedVsActualRoute globalDomesticPlannedVsActualRoute);\n void delete(Integer id);\n JwList<AcGlobalDomesticPlannedVsActualDisplayVo> getGlobalDomesticPlannedVsActualDisplayVos(AcGlobalDomesticPlannedVsActualReportCriteriaVo c);\n}", "@Test(expected = BusinessException.class)\n public void unblacklistDeleted() throws BusinessException {\n final ProductService productService = new ProductService();\n\n final Long pProductId = 1L;\n\n new Expectations() {\n\n {\n\n Deencapsulation.setField(productService, \"productDAO\", mockProductDAO);\n\n ProductBO productBO = new ProductBO();\n productBO.setStatus(Status.DELETED);\n mockProductDAO.get(1L);\n times = 1;\n returns(productBO);\n }\n };\n\n productService.unblacklist(pProductId);\n }", "public interface BannerService {\n// 分页查询\n Map selectAllByPage(int page, int rows);\n\n // 添加\n void insert(Banner record);\n\n // 修改\n void updateByPrimaryKey(int id, int status);\n// 批量删除\n void deleteByPrimaryKey(int[] ids);\n\n\n}", "public interface IDBContext {\n IUsers getUsers();\n}", "@Repository\npublic interface BusinessRepository extends CrudRepository<Business, Integer> {\n Business findByFbPage(FBPage fbPage);\n}", "@Override\n @TransactionAttribute(TransactionAttributeType.REQUIRED)\n public synchronized Boleto procesarBoleto(Boleto b) throws CRUDException {\n Optional op;\n Aerolinea a = em.find(Aerolinea.class, b.getIdAerolinea().getIdAerolinea());\n Cliente c = em.find(Cliente.class, b.getIdCliente().getIdCliente());\n NotaDebito notaDebito = null;\n NotaDebitoTransaccion transaccion = null;\n ComprobanteContable comprobanteAsiento = null, comprobanteIngreso = null;\n AsientoContable totalCancelar = null, montoPagarLinea = null,\n montoDescuento = null, montoComision = null, montoFee = null;\n\n AsientoContable ingTotalCancelarCaja = null, ingTotalCancelarHaber = null;\n IngresoCaja ingreso = null;\n IngresoTransaccion ingTran = null;\n\n try {\n // Revisamos que el boleto no este registrado\n if (isBoletoRegistrado(b)) {\n throw new CRUDException(\"El Numero de Boleto ya ha sido registrado\");\n }\n\n //4. Obtenemos la configuracion del Boleto para guardar en el comprobanteAsiento\n HashMap<String, Integer> parameters = new HashMap<>();\n parameters.put(\"idEmpresa\", b.getIdEmpresa());\n List lconf = ejbComprobante.get(\"ContabilidadBoletaje.find\", ContabilidadBoletaje.class, parameters);\n if (lconf.isEmpty()) {\n throw new CRUDException(\"Los parametros de Contabilidad para la empresa no estan Configurados\");\n }\n\n AerolineaCuenta av = getAerolineCuenta(b, \"V\");\n\n if (av == null) {\n throw new CRUDException(\"No existe Cuenta asociada a la Aerolinea para Ventas\");\n }\n\n AerolineaCuenta ac = getAerolineCuenta(b, \"C\");\n\n if (ac == null) {\n throw new CRUDException(\"No existe Cuenta asociada a la Aerolinea para Comisiones\");\n }\n\n //Obtenemos la configuracion de las cuentas para el boletaje\n ContabilidadBoletaje cbconf = (ContabilidadBoletaje) lconf.get(0);\n\n // SI no existiera alguna configuraion, no hace nada\n if (validarConfiguracion(cbconf)) {\n //1. Registra el nombre del pasajero en la tabla cnt_cliente_pasajero\n saveClientePasajero(b);\n\n //2. CRear nota de debito para el boleto en la tabla cnt_nota_debito\n notaDebito = ejbNotaDebito.createNotaDebito(b);\n notaDebito.setIdNotaDebito(insert(notaDebito));\n\n b.setIdNotaDebito(notaDebito.getIdNotaDebito());\n b.setEstado(Boleto.Estado.EMITIDO);\n insert(b);\n //notaDebito.getNotaDebitoPK().setIdNotaDebito(insert(notaDebito));\n //crea la transaccion de la nota de Debito\n transaccion = ejbNotaDebito.createNotaDebitoTransaccion(b, notaDebito);\n //transaccion.getNotaDebitoTransaccionPK().setIdNotaDebitoTransaccion(insert(transaccion));\n transaccion.setIdNotaDebitoTransaccion(insert(transaccion));\n //3. Registramos el Boleto\n\n //insert(b);\n // creamos el Comprobante Contable\n comprobanteAsiento = ejbComprobante.createAsientoDiarioBoleto(b);\n comprobanteAsiento.setIdNotaDebito(notaDebito.getIdNotaDebito());\n comprobanteAsiento.setIdLibro(insert(comprobanteAsiento));\n // se crean los asientos de acuerdo a la configuracion.\n b.setIdLibro(comprobanteAsiento.getIdLibro());\n\n //TotalCancelar\n //totalCancelar = ejbComprobante.crearTotalCancelar(b, comprobanteAsiento, cbconf, a, transaccion.getIdNotaDebitoTransaccion());\n totalCancelar = ejbComprobante.crearTotalCancelar(b, comprobanteAsiento, cbconf, a, transaccion);\n insert(totalCancelar);\n //ejbComprobante.insert(totalCancelar);\n //DiferenciaTotalBoleto\n montoPagarLinea = ejbComprobante.crearMontoPagarLineaAerea(b, comprobanteAsiento, cbconf, av, notaDebito, transaccion);\n //ejbComprobante.insert(montoPagarLinea);\n insert(montoPagarLinea);\n //Comision\n montoComision = ejbComprobante.crearMontoComision(b, comprobanteAsiento, a, ac, notaDebito, transaccion);\n //ejbComprobante.insert(montoComision);\n insert(montoComision);\n //Fee\n montoFee = ejbComprobante.crearMontoFee(b, comprobanteAsiento, cbconf, a, notaDebito, transaccion);\n //ejbComprobante.insert(montoFee);\n insert(montoFee);\n //Descuento\n montoDescuento = ejbComprobante.crearMontoDescuentos(b, comprobanteAsiento, cbconf, a, notaDebito, transaccion);\n //ejbComprobante.insert(montoDescuento);\n insert(montoDescuento);\n\n //actualizamos los montos Totales del Comprobante.\n double totalDebeNac = 0;\n double totalDebeExt = 0;\n double totalHaberNac = 0;\n double totalHaberExt = 0;\n //Se realizan las sumas para el comprobanteAsiento.\n if (b.getTipoCupon().equals(Boleto.Cupon.INTERNACIONAL)) {\n op = Optional.ofNullable(totalCancelar.getMontoDebeExt());\n if (op.isPresent()) {\n totalDebeExt += totalCancelar.getMontoDebeExt().doubleValue();\n }\n\n op = Optional.ofNullable(montoDescuento);\n if (op.isPresent()) {\n totalDebeExt += montoDescuento.getMontoDebeExt().doubleValue();\n }\n\n op = Optional.ofNullable(totalDebeExt);\n if (op.isPresent()) {\n totalDebeNac = totalDebeExt * b.getFactorCambiario().doubleValue();\n }\n // Haber\n\n op = Optional.ofNullable(montoPagarLinea.getMontoHaberExt());\n if (op.isPresent()) {\n totalHaberExt += montoPagarLinea.getMontoHaberExt().doubleValue();\n }\n\n op = Optional.ofNullable(montoComision);\n if (op.isPresent()) {\n totalHaberExt += montoComision.getMontoHaberExt().doubleValue();\n }\n\n op = Optional.ofNullable(montoFee);\n if (op.isPresent()) {\n totalHaberExt += montoFee.getMontoHaberExt().doubleValue();\n }\n\n op = Optional.ofNullable(totalHaberExt);\n if (op.isPresent()) {\n totalHaberNac = totalHaberExt * b.getFactorCambiario().doubleValue();\n }\n\n } else if (b.getTipoCupon().equals(Boleto.Cupon.NACIONAL)) {\n op = Optional.ofNullable(totalCancelar.getMontoDebeNac());\n if (op.isPresent()) {\n totalDebeNac += totalCancelar.getMontoDebeNac().doubleValue();\n }\n\n op = Optional.ofNullable(montoDescuento.getMontoDebeNac());\n if (op.isPresent()) {\n totalDebeNac += montoDescuento.getMontoDebeNac().doubleValue();\n }\n op = Optional.ofNullable(totalDebeNac);\n if (op.isPresent()) {\n totalDebeExt = totalDebeNac / b.getFactorCambiario().doubleValue();\n }\n //\n\n op = Optional.ofNullable(montoPagarLinea.getMontoHaberNac());\n if (op.isPresent()) {\n totalHaberNac += montoPagarLinea.getMontoHaberNac().doubleValue();\n }\n op = Optional.ofNullable(montoComision.getMontoHaberNac());\n if (op.isPresent()) {\n totalHaberNac += montoComision.getMontoHaberNac().doubleValue();\n }\n op = Optional.ofNullable(montoFee.getMontoHaberNac());\n if (op.isPresent()) {\n totalHaberNac += montoFee.getMontoHaberNac().doubleValue();\n }\n op = Optional.ofNullable(totalHaberNac);\n if (op.isPresent()) {\n totalHaberExt = totalHaberNac / b.getFactorCambiario().doubleValue();\n }\n }\n\n comprobanteAsiento.setTotalDebeExt(new BigDecimal(totalDebeExt));\n comprobanteAsiento.setTotalHaberExt(new BigDecimal(totalHaberExt));\n comprobanteAsiento.setTotalDebeNac(new BigDecimal(totalDebeNac));\n comprobanteAsiento.setTotalHaberNac(new BigDecimal(totalHaberNac));\n\n em.merge(comprobanteAsiento);\n\n // creamos para las formas de pago\n //Si son Contado o Tarjeta, se crea el Ingreso a Caja y el Comprobante de Ingreso\n if (b.getFormaPago().equals(FormasPago.CONTADO) || b.getFormaPago().equals(FormasPago.TARJETA)) {\n //Crear Ingreso a Caja\n ingreso = ejbIngresoCaja.createIngresoCaja(b, notaDebito);\n ingreso.setIdIngresoCaja(insert(ingreso));\n b.setIdIngresoCaja(ingreso.getIdIngresoCaja());\n\n ingTran = ejbIngresoCaja.createIngresoCajaTransaccion(b, notaDebito, transaccion, ingreso);\n ingTran.setIdTransaccion(insert(ingTran));\n b.setIdIngresoCajaTransaccion(ingTran.getIdTransaccion());\n\n //Crear Comprobante de Ingreso\n comprobanteIngreso = ejbComprobante.createComprobante(a, b, c, ComprobanteContable.Tipo.COMPROBANTE_INGRESO);\n comprobanteIngreso.setIdNotaDebito(notaDebito.getIdNotaDebito());\n /* if (ingreso.getMoneda().equals(Moneda.EXTRANJERA)) {\n comprobanteIngreso.setTotalDebeExt(ingreso.getMontoAbonadoUsd());\n comprobanteIngreso.setTotalHaberExt(ingreso.getMontoAbonadoUsd());\n comprobanteIngreso.setTotalDebeNac(ingreso.getMontoAbonadoUsd().multiply(ingreso.getFactorCambiario()));\n comprobanteIngreso.setTotalHaberNac(ingreso.getMontoAbonadoUsd().multiply(ingreso.getFactorCambiario()));\n\n notaDebito.setMontoAdeudadoUsd(notaDebito.getMontoTotalUsd().subtract(ingreso.getMontoAbonadoUsd()));\n } else {\n comprobanteIngreso.setTotalDebeExt(ingreso.getMontoAbonadoBs());\n comprobanteIngreso.setTotalHaberExt(ingreso.getMontoAbonadoBs());\n comprobanteIngreso.setTotalDebeNac(ingreso.getMontoAbonadoBs().divide(ingreso.getFactorCambiario()));\n comprobanteIngreso.setTotalHaberNac(ingreso.getMontoAbonadoBs().divide(ingreso.getFactorCambiario()));\n\n notaDebito.setMontoAdeudadoBs(notaDebito.getMontoTotalBs().subtract(ingreso.getMontoAbonadoBs()));\n }*/\n insert(comprobanteIngreso);\n\n /**\n *\n */\n // ESTAS TRANSACCIONES PASARLAS. al nuevo metodo de cada uno\n /*ingTotalCancelarCaja = ejbComprobante.createTotalCancelarIngresoCajaDebe(comprobanteIngreso, cbconf, a, b);\n ingTotalCancelarCaja.setIdIngresoCajaTransaccion(ingTran.getIdTransaccion());\n insert(ingTotalCancelarCaja);\n\n ingTotalCancelarHaber = ejbComprobante.createTotalCancelarIngresoClienteHaber(comprobanteIngreso, cbconf, a, b);\n ingTotalCancelarHaber.setIdIngresoCajaTransaccion(ingTran.getIdTransaccion());\n insert(ingTotalCancelarHaber);*/\n /**\n *\n */\n //actualizar nota debito\n em.merge(notaDebito);\n }\n\n //b.setIdLibro(notaDebito.getIdNotaDebito());\n if (ingTran != null) {\n b.setIdIngresoCajaTransaccion(ingTran.getIdTransaccion());\n }\n\n em.merge(b);\n }\n } catch (Exception e) {\n\n em.clear();\n\n Optional opex = Optional.ofNullable(notaDebito);\n if (opex.isPresent()) {\n remove(notaDebito);\n }\n\n opex = Optional.ofNullable(transaccion);\n if (opex.isPresent()) {\n remove(transaccion);\n }\n\n opex = Optional.ofNullable(comprobanteAsiento);\n if (opex.isPresent()) {\n remove(comprobanteAsiento);\n }\n\n opex = Optional.ofNullable(totalCancelar);\n if (opex.isPresent()) {\n remove(totalCancelar);\n }\n\n opex = Optional.ofNullable(montoPagarLinea);\n if (opex.isPresent()) {\n remove(montoPagarLinea);\n }\n opex = Optional.ofNullable(montoDescuento);\n if (opex.isPresent()) {\n remove(montoDescuento);\n }\n opex = Optional.ofNullable(montoComision);\n if (opex.isPresent()) {\n remove(montoComision);\n }\n opex = Optional.ofNullable(montoFee);\n if (opex.isPresent()) {\n remove(montoFee);\n }\n\n opex = Optional.ofNullable(b);\n if (opex.isPresent() && b.getIdBoleto() > 0) {\n remove(b);\n }\n\n opex = Optional.ofNullable(ingreso);\n if (opex.isPresent()) {\n remove(ingreso);\n }\n\n opex = Optional.ofNullable(ingTran);\n if (opex.isPresent()) {\n remove(ingTran);\n }\n\n opex = Optional.ofNullable(ingTotalCancelarCaja);\n if (opex.isPresent()) {\n remove(ingTotalCancelarCaja);\n }\n\n opex = Optional.ofNullable(ingTotalCancelarHaber);\n if (opex.isPresent()) {\n remove(ingTotalCancelarHaber);\n }\n\n throw new CRUDException(e.getMessage());\n\n }\n\n em.flush();\n return b;\n }", "BOp createBOp();", "public abstract void mo36027a(Context context, T t);", "@Override\n\tpublic void b() {\n\n\t}", "public interface BSQL2Java2Factory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n BSQL2Java2Factory eINSTANCE = bsql2java.bSQL2Java2.impl.BSQL2Java2FactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>BSQL2 Java2</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSQL2 Java2</em>'.\n * @generated\n */\n BSQL2Java2 createBSQL2Java2();\n\n /**\n * Returns a new object of class '<em>BSQL Machine</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSQL Machine</em>'.\n * @generated\n */\n BSQLMachine createBSQLMachine();\n\n /**\n * Returns a new object of class '<em>BOperation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BOperation</em>'.\n * @generated\n */\n BOperation createBOperation();\n\n /**\n * Returns a new object of class '<em>BTable</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BTable</em>'.\n * @generated\n */\n BTable createBTable();\n\n /**\n * Returns a new object of class '<em>Attribute</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Attribute</em>'.\n * @generated\n */\n Attribute createAttribute();\n\n /**\n * Returns a new object of class '<em>BType</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BType</em>'.\n * @generated\n */\n BType createBType();\n\n /**\n * Returns a new object of class '<em>Bool Operation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Bool Operation</em>'.\n * @generated\n */\n BoolOperation createBoolOperation();\n\n /**\n * Returns a new object of class '<em>BSub True</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSub True</em>'.\n * @generated\n */\n BSubTrue createBSubTrue();\n\n /**\n * Returns a new object of class '<em>BSub False</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSub False</em>'.\n * @generated\n */\n BSubFalse createBSubFalse();\n\n /**\n * Returns a new object of class '<em>String Operation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>String Operation</em>'.\n * @generated\n */\n StringOperation createStringOperation();\n\n /**\n * Returns a new object of class '<em>BAny Block</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BAny Block</em>'.\n * @generated\n */\n BAnyBlock createBAnyBlock();\n\n /**\n * Returns a new object of class '<em>Void Operation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Void Operation</em>'.\n * @generated\n */\n VoidOperation createVoidOperation();\n\n /**\n * Returns a new object of class '<em>BPredicate</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BPredicate</em>'.\n * @generated\n */\n BPredicate createBPredicate();\n\n /**\n * Returns a new object of class '<em>SQL Call</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>SQL Call</em>'.\n * @generated\n */\n SQLCall createSQLCall();\n\n /**\n * Returns a new object of class '<em>Table Instance</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Table Instance</em>'.\n * @generated\n */\n TableInstance createTableInstance();\n\n /**\n * Returns a new object of class '<em>TI Assignment</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>TI Assignment</em>'.\n * @generated\n */\n TIAssignment createTIAssignment();\n\n /**\n * Returns a new object of class '<em>BParameter Typing</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BParameter Typing</em>'.\n * @generated\n */\n BParameterTyping createBParameterTyping();\n\n /**\n * Returns a new object of class '<em>BSubstitution</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSubstitution</em>'.\n * @generated\n */\n BSubstitution createBSubstitution();\n\n /**\n * Returns a new object of class '<em>BUnion</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BUnion</em>'.\n * @generated\n */\n BUnion createBUnion();\n\n /**\n * Returns a new object of class '<em>BElement Structure</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BElement Structure</em>'.\n * @generated\n */\n BElementStructure createBElementStructure();\n\n /**\n * Returns a new object of class '<em>BElement</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BElement</em>'.\n * @generated\n */\n BElement createBElement();\n\n /**\n * Returns a new object of class '<em>BSet</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSet</em>'.\n * @generated\n */\n BSet createBSet();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n BSQL2Java2Package getBSQL2Java2Package();\n\n}", "public BusinessUser(){\n\n }", "public interface ComponentDAO {\r\n /**\r\n * Retrieves all coverage components\r\n *\r\n * @param record input record\r\n * @param recordLoadProcessor an instance of the load processor to set page entitlements\r\n * @return\r\n */\r\n RecordSet loadAllComponents(Record record, RecordLoadProcessor recordLoadProcessor);\r\n\r\n /**\r\n * Retrieves all pending prior act coverage components\r\n *\r\n * @param record input record\r\n * @param recordLoadProcessor an instance of the load processor to set page entitlements\r\n * @return\r\n */\r\n RecordSet loadAllPendPriorActComp(Record record, RecordLoadProcessor recordLoadProcessor);\r\n\r\n /**\r\n * Save all input component records with the Pm_Nb_End.Save_Covg_Component stored procedure.\r\n * Set the rowStatus field to NEW for records that are newly added in this request.\r\n * Set the rowStatus field to MODIFIED for records that have already been saved in this WIP transaction,\r\n * and are just being updated.\r\n *\r\n * @param inputRecords a set of Records, each with the PolicyHeader, PolicyIdentifier,\r\n * and Component Detail info matching the fields returned from the loadAllComponents method.\r\n * @return the number of rows updated.\r\n */\r\n int addAllComponents(RecordSet inputRecords);\r\n\r\n /**\r\n * Update all given input records with the Pm_Endorse.Change_Covg_Component stored procedure.\r\n *\r\n * @param inputRecords a set of Records, each with the PolicyHeader, PolicyIdentifier,\r\n * and Component Detail info matching the fields returned from the loadAllComponents method.\r\n * @return the number of rows updated.\r\n */\r\n int updateAllComponents(RecordSet inputRecords);\r\n\r\n /**\r\n * Delete all given input records with the Pm_Nb_Del.Del_Covg_Component stored procedure.\r\n *\r\n * @param inputRecords a set of Records, each with the PolicyHeader, PolicyIdentifier,\r\n * and Component Detail info matching the fields returned from the loadAllComponents method.\r\n * @return the number of rows updated.\r\n */\r\n int deleteAllComponents(RecordSet inputRecords);\r\n\r\n /**\r\n * Get the Cancel WIP rule\r\n *\r\n * @param record\r\n * @return\r\n */\r\n public Record getCancelWipRule(Record record);\r\n\r\n /**\r\n * Get the component cycle years\r\n *\r\n * @param record\r\n * @return\r\n */\r\n public int getCycleYearsForComponent(Record record);\r\n\r\n /**\r\n * Get the component num days\r\n *\r\n * @param record\r\n * @return\r\n */\r\n public int getNumDaysForComponent(Record record);\r\n\r\n /**\r\n * To load all dependent components\r\n *\r\n * @param record\r\n * @param recordLoadProcessor\r\n * @return\r\n */\r\n public RecordSet loadAllAvailableComponent(Record record, RecordLoadProcessor recordLoadProcessor);\r\n\r\n /**\r\n * Get the earliest contiguous coverage effective date with the function Pm_Dates.Nb_Covg_Startdt(coverage_fk, check_dt)\r\n *\r\n * @param record\r\n * @return\r\n */\r\n public Record getCoverageContiguousEffectiveDate(Record record);\r\n\r\n /**\r\n * Get component PK and base record FK\r\n *\r\n * @param record\r\n * @return\r\n */\r\n public Record getComponentIdAndBaseId(Record record);\r\n\r\n /**\r\n * Load Cycle Detail\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllCycleDetail(Record inputRecord);\r\n\r\n /**\r\n * Load Surcharge Points\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllSurchargePoint(Record inputRecord);\r\n\r\n /**\r\n * Save all surcharge points data.\r\n *\r\n * @param inputRecords intput record\r\n * @return the number of row updateds\r\n */\r\n public int saveAllSurchargePoint(RecordSet inputRecords);\r\n\r\n /**\r\n * validate component copy\r\n * @param inputRecord\r\n * @return validate status code statusCode\r\n */\r\n String validateCopyAllComponent(Record inputRecord);\r\n\r\n /**\r\n * delete all component from coverage for delete risk all\r\n * @param compRs\r\n */\r\n void deleteAllCopiedComponent(RecordSet compRs);\r\n\r\n /**\r\n * Load all processing event.\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllProcessingEvent(Record inputRecord, RecordLoadProcessor entitlementRLP);\r\n\r\n /**\r\n * Load all processing detail.\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllProcessingDetail(Record inputRecord);\r\n\r\n /**\r\n * Save all processing event.\r\n *\r\n * @param inputRecords\r\n * @return the number of row updated\r\n */\r\n public int saveAllProcessingEvent(RecordSet inputRecords);\r\n\r\n /**\r\n * Set RMT Classification indicator.\r\n *\r\n * @param inputRecord\r\n */\r\n public void setRMTIndicator(Record inputRecord);\r\n\r\n /**\r\n * Process RM Discount\r\n *\r\n * @param inputRecord\r\n * @return Record\r\n */\r\n public Record processRmDiscount(Record inputRecord);\r\n\r\n /**\r\n * Load all Corp/Org discount member.\r\n *\r\n * @param inputRecord\r\n * @param entitlementRLP\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllCorpOrgDiscountMember(Record inputRecord, RecordLoadProcessor entitlementRLP);\r\n\r\n /**\r\n * Process Corp/Org discount\r\n *\r\n * @param inputRecord\r\n * @return Record\r\n */\r\n public Record processCorpOrgDiscount(Record inputRecord);\r\n\r\n /**\r\n * Load all processing event history\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllProcessEventHistory(Record inputRecord);\r\n\r\n /**\r\n * Load all processing detail history\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllProcessDetailHistory(Record inputRecord);\r\n\r\n /**\r\n * Apply the component\r\n *\r\n * @param inputRecord\r\n * @return Record\r\n */\r\n public Record applyMassComponet(Record inputRecord);\r\n\r\n /**\r\n * Check if it is a problem policy\r\n *\r\n * @param inputRecord\r\n * @return String\r\n */\r\n public String isProblemPolicy(Record inputRecord);\r\n\r\n /**\r\n * Check if add component allowed\r\n *\r\n * @param inputRecord\r\n * @return\r\n */\r\n String isAddComponentAllowed(Record inputRecord);\r\n\r\n /**\r\n * Get short term component's effective from and effective to date\r\n *\r\n * @param inputRecord Input record containing risk and coverage level details\r\n * @return Record that contains component effective from date and effective to date.\r\n */\r\n Record getShortTermCompEffAndExpDates(Record inputRecord);\r\n\r\n /**\r\n * Check if the official component record has a temp record exists for the specific transaction.\r\n *\r\n * @param inputRecord include component base record id and transaction id\r\n * @return true if component temp record exists\r\n * false if component temp record does not exist\r\n */\r\n boolean isComponentTempRecordExist(Record inputRecord);\r\n\r\n /**\r\n * Check if changing component expiring date in OOSE is allowed\r\n *\r\n * @param inputRecord\r\n * @return\r\n */\r\n String isOoseChangeDateAllowed(Record inputRecord);\r\n\r\n /**\r\n * Load effective to date with PM_Dates.NB_Covg_ExpDt stored procedure.\r\n * <p/>\r\n *\r\n * @param inputRecord a Record with information to load the effective to date.\r\n * @return Coverage effective to date.\r\n */\r\n String getCoverageExpirationDate(Record inputRecord);\r\n\r\n /**\r\n * Validate component duplicate.\r\n * @param inputRecord\r\n * @return\r\n */\r\n Record validateComponentDuplicate(Record inputRecord);\r\n\r\n /**\r\n * Check if the NDD expiration date is configured for the component.\r\n *\r\n * @param inputRecord include component base record id and transaction id\r\n * @return true if configured\r\n * false if not configured\r\n */\r\n boolean getNddSkipValidateB(Record inputRecord);\r\n\r\n /**\r\n * Load experience discount history information.\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadExpHistoryInfo(Record inputRecord);\r\n\r\n /**\r\n * Load claim information for a specific period of the risk.\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadClaimInfo(Record inputRecord);\r\n}", "@Override\n public String getBusinessName() {\n\n if(this.businessName == null){\n\n this.businessName = TestDatabase.getInstance().getClientField(token, id, \"businessName\");\n }\n\n return businessName;\n }", "public interface PhoneCallHibernateService {\n\n /**\n * Perstits PhoneCallBean\n * @param pcb - bean to be persisted\n * @throws Exception\n */\n public void savePhoneCall(PhoneCallBean pcb) throws Exception;\n\n /**\n * Gets all PhoneCallBeans from the database.\n * @return List of all phone calls from the database\n * @throws Exception\n */\n // public List<PhoneCallBean> getPhoneCallList() throws Exception;\n \n public List<PhoneCallBean> getPhoneCallList(Integer startId, int numberOfRows, \n \t\tList<Criterion> criterions, List<Order> orders) throws Exception;\n \n /**\n * Gets unique list of all available phone numbers in current DB\n * @return\n * @throws Exception\n */\n public List<String> getUniquePhoneNo();\n \n /**\n * @return count of all available rows\n */\n public int getRowCount();\n \n /**\n * Retrieve count of calls performed by phone number given \n * as parameter. Result format is \n * Object[(String) phoneNumber, (Integer) count]\n */\n public List<Object[]> getChartDataForPhoneNumber(String phoneNumber);\n \n}", "public interface IPLMBasicFeeInfoService {\n\n void save(IMetaObjectImpl object);\n\n //费率信息\n\n void delete(int objid);\n void deleteByIds_(String objids);\n void deleteByProductId(int productid);\n\n IMetaDBQuery getSearchList(Map<String, String> map);\n IMetaObjectImpl getInfoById(int objid);\n\n public IMetaDBQuery queryByids(String objids);\n List<Map> getListByProductId(int productid);\n\n //获得管理费统计信息\n\n List<Map> getManageFeeCountList(Map map);\n\n\n\n //利率要素\n IMetaObjectImpl getInfoById_feeRate(int objid);\n void delete_feeRate(int objid);\n void deleteByIds__feeRate(String objids);\n void deleteByProductId_feeRate(int productid);\n\n List<Map> getListByProductId_feeRate(int productid);\n\n\n}", "List<CustomerOrderBroadbandASID> selectCustomerOrderBroadbandASID(CustomerOrderBroadbandASID cobasid);", "public interface BalanceInfoService {\r\n\r\n\t/** The user balance Dao. */\r\n\tUserBalanceDao userBalance=null;\r\n\t\r\n\t/**\r\n\t * Gets the balance info.\r\n\t *\r\n\t * @param request the webservice request from which the function is called. \r\n\t * @param user the user \r\n\t * @return the balance info in the json format similar to the object com.mobisols.tollpayments.response.get.BalanceInfoResponse\r\n\t */\r\n\tpublic String getBalanceInfo(String request,String user);\r\n}", "public void c() {\n List<DBUserBrief> b2 = this.f16688d.b(this.f16687c.c());\n ArrayList arrayList = new ArrayList();\n for (DBUserBrief a2 : b2) {\n UserBriefInfo userBriefInfo = new UserBriefInfo();\n b.a(a2, userBriefInfo);\n arrayList.add(userBriefInfo);\n }\n com.garena.android.appkit.b.b.a(\"MY_CUSTOMER_LOAD\", new a(arrayList), b.a.NETWORK_BUS);\n }", "public BusinessObjectException() {\r\n super();\r\n }", "public interface ActivityReservationDao {\n List<ActivityReservationBo> query(Map<String,Object> map);\n int querycount();\n int queryListcount(Map<String,Object> map);\n void updatestatus(ActivityReservationBo activityReservationBo);\n ActivityReservationBo queryById(Integer id);\n\n}", "void mo56317a(Context context, Bundle bundle, C4541a c4541a);", "BOperation createBOperation();", "public void process(EdaContext xContext) throws IcofException {\n\n\t// Connect to the database\n\tconnectToDB(xContext);\n\n\t// Determine if branch/component are for a production or development TK.\n\tfindToolKit(xContext);\n\trollBackDBAndSetReturncode(xContext, APP_NAME, SUCCESS);\n\n }", "public interface EntityContext extends EJBContext\n{\n /**\n * Obtain a reference to the EJB local object that is currently \n * associated with the instance.\n *\n * <p> An instance of an entity enterprise Bean can call this method only\n * when the instance is associated with an EJB local object identity, i.e.\n * in the ejbActivate, ejbPassivate, ejbPostCreate, ejbRemove,\n * ejbLoad, ejbStore, and business methods.\n *\n * <p> An instance can use this method, for example, when it wants to\n * pass a reference to itself in a method argument or result.\n *\n * @return The EJB local object currently associated with the instance.\n *\n * @exception IllegalStateException if the instance invokes this\n * method while the instance is in a state that does not allow the\n * instance to invoke this method, or if the instance does not have\n * a local interface.\n */\n EJBLocalObject getEJBLocalObject() throws IllegalStateException;\n\n /**\n * Obtain a reference to the EJB object that is currently associated with \n * the instance.\n *\n * <p> An instance of an entity enterprise Bean can call this method only\n * when the instance is associated with an EJB object identity, i.e.\n * in the ejbActivate, ejbPassivate, ejbPostCreate, ejbRemove,\n * ejbLoad, ejbStore, and business methods.\n *\n * <p> An instance can use this method, for example, when it wants to\n * pass a reference to itself in a method argument or result.\n *\n * @return The EJB object currently associated with the instance.\n *\n * @exception IllegalStateException Thrown if the instance invokes this\n * method while the instance is in a state that does not allow the\n * instance to invoke this method, or if the instance does not have\n * a remote interface.\n */\n EJBObject getEJBObject() throws IllegalStateException;\n\n /**\n * Obtain the primary key of the EJB object that is currently\n * associated with this instance.\n *\n * <p> An instance of an entity enterprise Bean can call this method only\n * when the instance is associated with an EJB object identity, i.e.\n * in the ejbActivate, ejbPassivate, ejbPostCreate, ejbRemove,\n * ejbLoad, ejbStore, and business methods.\n *\n * <p><b>Note</b>: The result of this method is that same as the\n * result of getEJBObject().getPrimaryKey().\n *\n * @return The primary key currently associated with the instance.\n *\n * @exception IllegalStateException Thrown if the instance invokes this\n * method while the instance is in a state that does not allow the\n * instance to invoke this method.\n */\n Object getPrimaryKey() throws IllegalStateException;\n}", "public interface C10724a {\n /* renamed from: a */\n void mo25616a(Context context);\n }", "public List<User> GetAllUsers() {\n/* 38 */ return this.userDal.GetAllUsers();\n/* */ }", "public interface CSUserLocal extends javax.ejb.EJBLocalObject {\n\t/**\n\t * getEntityContext\n\t */\n\tpublic javax.ejb.EntityContext getEntityContext();\n\t/**\n\t * Returns the idPassword.\n\t * @return String\n\t */\n\tpublic String getIdPassword();\n\t/**\n\t * Returns the idProfile.\n\t * @return String\n\t */\n\tpublic String getIdProfile();\n\t/**\n\t * Returns the idProfileDesc.\n\t * @return String\n\t */\n\tpublic String getIdProfileDesc();\n\t/**\n\t * Returns the idWrkr.\n\t * @return String\n\t */\n\tpublic String getIdWrkr();\n\t/**\n\t * Returns the idWrkrCreate.\n\t * @return String\n\t */\n\tpublic String getIdWrkrCreate();\n\t/**\n\t * Returns the idWrkrUpdate.\n\t * @return String\n\t */\n\tpublic String getIdWrkrUpdate();\n\t/**\n\t * Returns the myEntityCtx.\n\t * @return javax.ejb.EntityContext\n\t */\n\tpublic javax.ejb.EntityContext getMyEntityCtx();\n\t/**\n\t * Returns the tsCreate.\n\t * @return java.sql.Timestamp\n\t */\n\tpublic java.sql.Timestamp getTsCreate();\n\t/**\n\t * Returns the tsUpdate.\n\t * @return java.sql.Timestamp\n\t */\n\tpublic java.sql.Timestamp getTsUpdate();\n\t/**\n\t * Sets the idPassword.\n\t * @param idPassword The idPassword to set\n\t */\n\tpublic void setIdPassword(String idPassword);\n\t/**\n\t * Sets the idProfile.\n\t * @param idProfile The idProfile to set\n\t */\n\tpublic void setIdProfile(String idProfile);\n\t/**\n\t * Sets the idProfileDesc.\n\t * @param idProfileDesc The idProfileDesc to set\n\t */\n\tpublic void setIdProfileDesc(String idProfileDesc);\n\t/**\n\t * Sets the idWrkrUpdate.\n\t * @param idWrkrUpdate The idWrkrUpdate to set\n\t */\n\tpublic void setIdWrkrUpdate(String idWrkrUpdate);\n\t/**\n\t * Sets the tsUpdate.\n\t * @param tsUpdate The tsUpdate to set\n\t */\n\tpublic void setTsUpdate(java.sql.Timestamp tsUpdate);\n\t/**\n\t * Returns the nmWrkr.\n\t * @return String\n\t */\n\tpublic String getNmWrkr();\n\t/**\n\t * Sets the nmWrkr.\n\t * @param nmWrkr The nmWrkr to set\n\t */\n\tpublic void setNmWrkr(String nmWrkr);\n\t/**\n\t * Returns the cdPasswordStatus.\n\t * @return String\n\t */\n\tpublic String getCdPasswordStatus();\n\t/**\n\t * Sets the cdPasswordStatus.\n\t * @param cdPasswordStatus The cdPasswordStatus to set\n\t */\n\tpublic void setCdPasswordStatus(String cdPasswordStatus);\n\t/**\n\t * Returns the cdAccptWrkld.\n\t * @return String\n\t */\n\tpublic String getCdAccptWrkld();\n\t/**\n\t * Returns the nbApproval.\n\t * @return int\n\t */\n\tpublic int getNbApproval();\n\t/**\n\t * Returns the nbCompleted.\n\t * @return int\n\t */\n\tpublic int getNbCompleted();\n\t/**\n\t * Returns the nbOutstanding.\n\t * @return int\n\t */\n\tpublic int getNbOutstanding();\n\t/**\n\t * Sets the cdAccptWrkld.\n\t * @param cdAccptWrkld The cdAccptWrkld to set\n\t */\n\tpublic void setCdAccptWrkld(String cdAccptWrkld);\n\t/**\n\t * Sets the nbApproval.\n\t * @param nbApproval The nbApproval to set\n\t */\n\tpublic void setNbApproval(int nbApproval);\n\t/**\n\t * Sets the nbCompleted.\n\t * @param nbCompleted The nbCompleted to set\n\t */\n\tpublic void setNbCompleted(int nbCompleted);\n\t/**\n\t * Sets the nbOutstanding.\n\t * @param nbOutstanding The nbOutstanding to set\n\t */\n\tpublic void setNbOutstanding(int nbOutstanding);\n\t/**\n\t * Returns the byAgent.\n\t * @return boolean\n\t */\n\tpublic boolean isByAgent();\n\t/**\n\t * Returns the byControlNbr.\n\t * @return boolean\n\t */\n\tpublic boolean isByControlNbr();\n\t/**\n\t * Returns the byCounty.\n\t * @return boolean\n\t */\n\tpublic boolean isByCounty();\n\t/**\n\t * Returns the byCP.\n\t * @return boolean\n\t */\n\tpublic boolean isByCP();\n\t/**\n\t * Returns the byCustomer.\n\t * @return boolean\n\t */\n\tpublic boolean isByCustomer();\n\t/**\n\t * Returns the byDtCompleted.\n\t * @return boolean\n\t */\n\tpublic boolean isByDtCompleted();\n\t/**\n\t * Returns the byDtDue.\n\t * @return boolean\n\t */\n\tpublic boolean isByDtDue();\n\t/**\n\t * Returns the byDtReceived.\n\t * @return boolean\n\t */\n\tpublic boolean isByDtReceived();\n\t/**\n\t * Returns the byEmail.\n\t * @return boolean\n\t */\n\tpublic boolean isByEmail();\n\t/**\n\t * Returns the byIdPart.\n\t * @return boolean\n\t */\n\tpublic boolean isByIdPart();\n\t/**\n\t * Returns the byNbCase.\n\t * @return boolean\n\t */\n\tpublic boolean isByNbCase();\n\t/**\n\t * Returns the byNbDkt.\n\t * @return boolean\n\t */\n\tpublic boolean isByNbDkt();\n\t/**\n\t * Returns the byNbSSN.\n\t * @return boolean\n\t */\n\tpublic boolean isByNbSSN();\n\t/**\n\t * Returns the byNCP.\n\t * @return boolean\n\t */\n\tpublic boolean isByNCP();\n\t/**\n\t * Returns the byReferralType.\n\t * @return boolean\n\t */\n\tpublic boolean isByReferralType();\n\t/**\n\t * Returns the bySrc1.\n\t * @return boolean\n\t */\n\tpublic boolean isBySrc1();\n\t/**\n\t * Returns the bySrc2.\n\t * @return boolean\n\t */\n\tpublic boolean isBySrc2();\n\t/**\n\t * Returns the bySrc3.\n\t * @return boolean\n\t */\n\tpublic boolean isBySrc3();\n\t/**\n\t * Returns the bySrc4.\n\t * @return boolean\n\t */\n\tpublic boolean isBySrc4();\n\t/**\n\t * Returns the dirty.\n\t * @return boolean\n\t */\n\tpublic boolean isDirty();\n\t/**\n\t * Sets the byAgent.\n\t * @param byAgent The byAgent to set\n\t */\n\tpublic void setByAgent(boolean byAgent);\n\t/**\n\t * Sets the byControlNbr.\n\t * @param byControlNbr The byControlNbr to set\n\t */\n\tpublic void setByControlNbr(boolean byControlNbr);\n\t/**\n\t * Sets the byCounty.\n\t * @param byCounty The byCounty to set\n\t */\n\tpublic void setByCounty(boolean byCounty);\n\t/**\n\t * Sets the byCP.\n\t * @param byCP The byCP to set\n\t */\n\tpublic void setByCP(boolean byCP);\n\t/**\n\t * Sets the byCustomer.\n\t * @param byCustomer The byCustomer to set\n\t */\n\tpublic void setByCustomer(boolean byCustomer);\n\t/**\n\t * Sets the byDtCompleted.\n\t * @param byDtCompleted The byDtCompleted to set\n\t */\n\tpublic void setByDtCompleted(boolean byDtCompleted);\n\t/**\n\t * Sets the byDtDue.\n\t * @param byDtDue The byDtDue to set\n\t */\n\tpublic void setByDtDue(boolean byDtDue);\n\t/**\n\t * Sets the byDtReceived.\n\t * @param byDtReceived The byDtReceived to set\n\t */\n\tpublic void setByDtReceived(boolean byDtReceived);\n\t/**\n\t * Sets the byEmail.\n\t * @param byEmail The byEmail to set\n\t */\n\tpublic void setByEmail(boolean byEmail);\n\t/**\n\t * Sets the byIdPart.\n\t * @param byIdPart The byIdPart to set\n\t */\n\tpublic void setByIdPart(boolean byIdPart);\n\t/**\n\t * Sets the byNbCase.\n\t * @param byNbCase The byNbCase to set\n\t */\n\tpublic void setByNbCase(boolean byNbCase);\n\t/**\n\t * Sets the byNbDkt.\n\t * @param byNbDkt The byNbDkt to set\n\t */\n\tpublic void setByNbDkt(boolean byNbDkt);\n\t/**\n\t * Sets the byNbSSN.\n\t * @param byNbSSN The byNbSSN to set\n\t */\n\tpublic void setByNbSSN(boolean byNbSSN);\n\t/**\n\t * Sets the byNCP.\n\t * @param byNCP The byNCP to set\n\t */\n\tpublic void setByNCP(boolean byNCP);\n\t/**\n\t * Sets the byReferralType.\n\t * @param byReferralType The byReferralType to set\n\t */\n\tpublic void setByReferralType(boolean byReferralType);\n\t/**\n\t * Sets the bySrc1.\n\t * @param bySrc1 The bySrc1 to set\n\t */\n\tpublic void setBySrc1(boolean bySrc1);\n\t/**\n\t * Sets the bySrc2.\n\t * @param bySrc2 The bySrc2 to set\n\t */\n\tpublic void setBySrc2(boolean bySrc2);\n\t/**\n\t * Sets the bySrc3.\n\t * @param bySrc3 The bySrc3 to set\n\t */\n\tpublic void setBySrc3(boolean bySrc3);\n\t/**\n\t * Sets the bySrc4.\n\t * @param bySrc4 The bySrc4 to set\n\t */\n\tpublic void setBySrc4(boolean bySrc4);\n\t/**\n\t * Returns the cdApprovalRequired.\n\t * @return String\n\t */\n\tpublic String getCdApprovalRequired();\n\t/**\n\t * Sets the cdApprovalRequired.\n\t * @param cdApprovalRequired The cdApprovalRequired to set\n\t */\n\tpublic void setCdApprovalRequired(String cdApprovalRequired);\n\t/**\n\t * Returns the userEntityBean.\n\t * @return UserEntityBean\n\t */\n\tpublic UserEntityBean getUserEntityBean();\n\t/**\n\t * Sets the userEntityBean.\n\t * @param userEntityBean The userEntityBean to set\n\t */\n\tpublic void setUserEntityBean(UserEntityBean userEntityBean);\n}", "public interface IMyBmobInstallationBiz {\n void UpdateMyBmobInstallationUser(String uid,OnBindListener bindListener,Context context);\n}", "public interface cew {\n void a(Context context);\n}" ]
[ "0.6260421", "0.618527", "0.6090181", "0.6078354", "0.6048982", "0.5844536", "0.573192", "0.5690518", "0.5689353", "0.5687512", "0.5651732", "0.5628393", "0.5627187", "0.55748403", "0.5520656", "0.55032086", "0.54811144", "0.5476865", "0.54655826", "0.54570043", "0.54558194", "0.5455382", "0.54502505", "0.54221284", "0.5404838", "0.5391236", "0.53582793", "0.53520286", "0.5345317", "0.5339716", "0.5304076", "0.5302359", "0.5302073", "0.52771103", "0.527219", "0.5231696", "0.52294993", "0.52255076", "0.5217035", "0.5210036", "0.51985264", "0.5198473", "0.51955056", "0.5193044", "0.51923186", "0.5188033", "0.518654", "0.51862496", "0.51792073", "0.5178346", "0.5171701", "0.5171701", "0.5167747", "0.51550597", "0.51539266", "0.51384884", "0.5135904", "0.5134585", "0.5129567", "0.5125608", "0.512439", "0.5114365", "0.51036", "0.5102328", "0.5100961", "0.50896084", "0.50883436", "0.5085914", "0.5085009", "0.5077573", "0.50762475", "0.50731355", "0.50723296", "0.5067573", "0.50675005", "0.5065428", "0.50594306", "0.5059251", "0.5054274", "0.50510424", "0.5047332", "0.5042019", "0.5032889", "0.50303966", "0.5030087", "0.5027991", "0.50278765", "0.50243926", "0.5022724", "0.50208557", "0.50165963", "0.5015845", "0.50144744", "0.50101227", "0.50053644", "0.5001545", "0.4999089", "0.49892145", "0.4985626", "0.49805897", "0.49804753" ]
0.0
-1
((a + b) + (c + d)) > false (a + b) + ((c + d)) > true will form a Stack to push and pop the element
static boolean findDuplicate (String word) { Stack<Character> st = new Stack<>(); for (int i = 0; i < word.length(); i++) { char currentChar = word.charAt(i); if (currentChar == ')') { if (st.peek() == '(') { return true; } else { while (st.peek() != '(') { st.pop(); } st.pop(); } } else { st.push(currentChar); } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean keepEvaluating(Stack<Operator> pOperatorStack, Operator pOperator) {\n if (pOperatorStack.isEmpty()) {\n return false;\n } else {\n return pOperatorStack.peek().stackPrecedence() >= pOperator.precedence();\n }\n }", "public boolean isPushed(int x, int y);", "public void testPush() {\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.push(10);\n assertEquals(this.stack.size(), 11, 0.01);\n assertEquals(this.stack.peek(), 10, 0.01);\n }", "@Override\r\n\tpublic boolean push(T e) {\r\n\t\tif(!isFull()) {\r\n\t\t\tstack[topIndex + 1] = e;\r\n\t\t\ttopIndex++;\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean postFixEvalution(char operator) throws ArithmeticException{\n //Pre: Validar que el stack no este vacio y que los operandos sean numeros.\n //Post: Realizar la operacion indicada\n try{\n if(!stack.empty()){\n //Se obtienen los dos operandos mas recientes del stack.\n Integer op2 = stack.pop();\n Integer op1 = stack.pop();\n\n //Se determina la operacion por hacer.\n if(op1 != null && op2 != null){\n switch (operator){\n case '+':\n stack.push(op1 + op2);\n break;\n case '-':\n stack.push(op1 - op2);\n break;\n case '*':\n stack.push(op1 * op2);\n break;\n case '/':\n stack.push(op1 / op2);\n break;\n }\n return true;\n }\n else\n return false;\n }\n else{\n return false;\n }\n }\n catch (ArithmeticException e){\n String ex = \"Error: Division por 0\";\n throw new ArithmeticException(ex);\n }\n }", "@Test\n void whenElementAddedToStackLastElementShouldTop() {\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\n boolean result = myStack.head.equals(myFirstNode) && myStack.head.getNext().equals(mySecondNode)\n && myStack.tail.equals(myThirdNode);\n\n Assertions.assertTrue(result);\n }", "@Test\r\n public void testPushShouldReturnTrue() {\r\n stackInstance=new StackUsingLinkedList<Integer>();\r\n boolean actualOutput=stackInstance.push(4);\r\n assertEquals(true,actualOutput);\r\n }", "@Test\n public void testPush(){\n ms=new MyStack();\n ms.push(1);\n assertFalse(ms.IsEmpty());\n }", "@Test\n public void testPushAndPopD() {\n System.out.println(\"popC - Out of Order\");\n\n String elementOne = \"Bill\";\n String elementTwo = \"Steve\";\n String elementThree = \"Tim\";\n String elementFour = \"Dave\";\n\n //Stack<String> instance = new StackArrayImpl();\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n instance.push(elementOne);\n instance.push(elementTwo);\n instance.push(elementThree);\n\n int fourSize = instance.size();\n assertEquals(fourSize, 3);\n assertEquals(instance.isEmpty(), false);\n\n String resultThree = instance.pop();\n String resultTwo = instance.pop();\n\n instance.push(elementFour);\n String resultFour = instance.pop();\n\n String resultOne = instance.pop();\n\n assertEquals(elementOne, resultOne);\n assertEquals(elementTwo, resultTwo);\n assertEquals(elementThree, resultThree);\n assertEquals(elementFour, resultFour);\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "public boolean contains(int total) {\n \t \n \tint sum=0;\n \tfor (int j=(stack.size()-3);j<stack.size();j++){\n \t\tsum=sum+stack.peek();\n \t}\n \tif(total==sum){\n \t\treturn true;\n \t}\n\t\treturn false;\n \n }", "@Test\n public void testCal(){\n Stack<Double> stack = new Stack<>();\n Double num = 3.14;\n stack.push(num);\n operator = new UndoOperator();\n Stack<String> historyStack = new Stack<>();\n historyStack.push(num.toString());\n try {\n operator.cal(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(0,stack.size());\n Assert.assertEquals(0,historyStack.size());\n\n //test \"+\"\n Double result = 100.00;\n stack.clear();\n stack.push(result);\n operator = new UndoOperator();\n Double secOperand = 5.00;\n historyStack.clear();\n historyStack.push(secOperand.toString());\n historyStack.push(OperatorType.PLUS.getName());\n try {\n operator.calculate(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(secOperand,stack.pop(),0.0000001);\n Assert.assertEquals(result-secOperand,stack.pop(),0.0000001);\n\n //test \"-\"\n result = 100.00;\n stack.clear();\n stack.push(result);\n operator = new UndoOperator();\n secOperand = 5.00;\n historyStack.clear();\n historyStack.push(secOperand.toString());\n historyStack.push(OperatorType.MINUS.getName());\n try {\n operator.calculate(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(secOperand,stack.pop(),0.0000001);\n Assert.assertEquals(result+secOperand,stack.pop(),0.0000001);\n\n //test \"*\"\n result = 100.00;\n stack.clear();\n stack.push(result);\n operator = new UndoOperator();\n secOperand = 5.00;\n historyStack.clear();\n historyStack.push(secOperand.toString());\n historyStack.push(OperatorType.MULTIPLY.getName());\n try {\n operator.calculate(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(secOperand,stack.pop(),0.0000001);\n Assert.assertEquals(result/secOperand,stack.pop(),0.0000001);\n\n //test \"/\"\n result = 100.00;\n stack.clear();\n stack.push(result);\n operator = new UndoOperator();\n secOperand = 5.00;\n historyStack.clear();\n historyStack.push(secOperand.toString());\n historyStack.push(OperatorType.DIVIDE.getName());\n try {\n operator.calculate(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(secOperand,stack.pop(),0.0000001);\n Assert.assertEquals(result*secOperand,stack.pop(),0.0000001);\n\n //test \"sqrt\"\n result = 100.00;\n stack.clear();\n stack.push(result);\n operator = new UndoOperator();\n historyStack.clear();\n secOperand = 5.00;\n historyStack.push(secOperand.toString());\n historyStack.push(OperatorType.SQRT.getName());\n try {\n operator.calculate(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(result*result,stack.pop(),0.0000001);\n }", "public boolean push(E element){\r\n\t\t/**If array is full, create an array double the current size*/\r\n\t\tif(top==stack.length-1){\r\n\t\t\tstack = Arrays.copyOf(stack, 2*stack.length);\r\n\t\t}\r\n\t\tstack[++top] = element;\t\r\n\t\treturn true;\r\n\t}", "@Test /*Test 19 - implemented push() method to NumStack class.*/\n public void testPush() {\n numStackTest.push(5);\n assertFalse(\"NumStack object shouldn't be empty after pushing first entry onto it\", \n numStackTest.isEmpty());\n numStackTest.push(10);\n assertFalse(\"NumStack object shouldn't be empty after pushing second entry onto it\", \n numStackTest.isEmpty());\n numStackTest.push(15);\n assertFalse(\"NumStack object shouldn't be empty after pushing third entry onto it\", \n numStackTest.isEmpty());\n }", "@Test\n public void pushOnStackTest_InCorrect(){\n assertNotEquals(10 , stack.getStack().returnFirst());\n }", "boolean push(int x) \r\n {\n if(top >= (MAX-1))\r\n {\r\n System.out.println(\"Stack Overflow Occurred!\");\r\n return false;\r\n }\r\n //Write your code here\r\n a[++top] = x;\r\n System.out.println(\"Pushed \" + x + \" into stack\");\r\n return true;\r\n }", "@Test\n public void testPushAndPopC() {\n\n System.out.println(\"pushB - All Nulls\");\n String elementOne = null;\n String elementTwo = null;\n String elementThree = null;\n String elementFour = null;\n\n //Stack<String> instance = new StackArrayImpl();\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n instance.push(elementOne);\n instance.push(elementTwo);\n instance.push(elementThree);\n instance.push(elementFour);\n\n int fourSize = instance.size();\n assertEquals(fourSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String resultFour = instance.pop();\n String resultThree = instance.pop();\n String resultTwo = instance.pop();\n String resultOne = instance.pop();\n\n assertEquals(elementOne, resultOne);\n assertEquals(elementTwo, resultTwo);\n assertEquals(elementThree, resultThree);\n assertEquals(elementFour, resultFour);\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "public boolean push(Card card) {\n if (this.size() == 0) {\n if (card.get_value() != 1) {\n return false;\n }\n else {\n this.color = card.get_color();\n this.force_push(card);\n return true;\n }\n }\n else if (card.get_color() == this.color && card.get_value() == (1 + this.top().get_value())) {\n this.force_push(card);\n return true;\n }\n else {\n return false;\n }\n }", "public boolean balancedparantheses(String exp) {\n\t\tStack<Character> stack = new Stack<Character>();\n\t\tfor (int i = 0; i < exp.length(); i++) {\n\t\t\tchar charValue = exp.charAt(i);\n\t\t\tif (charValue == '[' || charValue == '(' || charValue == '{') {\n\t\t\t\tstack.push(charValue);\n\t\t\t} else if (charValue == ']') {\n\t\t\t\tif (stack.isEmpty()) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (stack.pop() != '[') {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else if (charValue == ')') {\n\t\t\t\tif (stack.isEmpty()) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (stack.pop() != '(') {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else if (charValue == '}') {\n\t\t\t\tif (stack.isEmpty()) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (stack.pop() != '{') {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn stack.isEmpty();\n\t}", "public E push(E element) \r\n {\r\n \tif (maxStack2.size() > 0)\r\n \t{\r\n \t \tif (maxStack2.lastElement().compareTo(element) <= 0)\r\n\t \t{\r\n\t \t\tmaxStack2.push(element);\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\tmaxStack2.push(maxStack2.lastElement());\r\n\t \t}\r\n \t}\r\n \telse\r\n \t{\r\n \t\tmaxStack2.push(element);\r\n \t}\r\n \t\r\n return maxStack.push(element);\r\n }", "static\nboolean\ncheck(\nint\nA[], \nint\nN) { \n\n// Stack S \n\nStack<Integer> S = \nnew\nStack<Integer>(); \n\n\n// Pointer to the end value of array B. \n\nint\nB_end = \n0\n; \n\n\n// Traversing each element of A[] from starting \n\n// Checking if there is a valid operation \n\n// that can be performed. \n\nfor\n(\nint\ni = \n0\n; i < N; i++) { \n\n// If the stack is not empty \n\nif\n(!S.empty()) { \n\n// Top of the Stack. \n\nint\ntop = S.peek(); \n\n\n// If the top of the stack is \n\n// Equal to B_end+1, we will pop it \n\n// And increment B_end by 1. \n\nwhile\n(top == B_end + \n1\n) { \n\n// if current top is equal to \n\n// B_end+1, we will increment \n\n// B_end to B_end+1 \n\nB_end = B_end + \n1\n; \n\n\n// Pop the top element. \n\nS.pop(); \n\n\n// If the stack is empty We cannot \n\n// further perfom this operation. \n\n// Therefore break \n\nif\n(S.empty()) { \n\nbreak\n; \n\n} \n\n\n// Current Top \n\ntop = S.peek(); \n\n} \n\n\n// If stack is empty \n\n// Push the Current element \n\nif\n(S.empty()) { \n\nS.push(A[i]); \n\n} \nelse\n{ \n\ntop = S.peek(); \n\n\n// If the Current element of the array A[] \n\n// if smaller than the top of the stack \n\n// We can push it in the Stack. \n\nif\n(A[i] < top) { \n\nS.push(A[i]); \n\n} \n// Else We cannot sort the array \n\n// Using any valid operations. \n\nelse\n{ \n\n// Not Stack Sortable \n\nreturn\nfalse\n; \n\n} \n\n} \n\n} \nelse\n{ \n\n// If the stack is empty push the current \n\n// element in the stack. \n\nS.push(A[i]); \n\n} \n\n} \n\n\n// Stack Sortable \n\nreturn\ntrue\n; \n\n}", "@Test\n public void testThreePushPop(){\n ms = new MyStack();\n int pn1=3, pn2=4, pn3=5;\n ms.push(pn1);\n ms.push(pn2);\n ms.push(pn3);\n assertEquals(pn3,ms.pop());\n assertEquals(pn2,ms.pop());\n assertEquals(pn1,ms.pop());\n }", "private boolean inStack(int[] pushed, int left, int[] popped, int p) {\n\t\twhile (p >= 0 && pushed[left] != popped[p]) {\n\t\t\tp--;\n\t\t}\n\n\t\treturn p < 0;\n }", "private void addition() throws Exception {\n\t\tif(!(stackBiggerThanTwo())) throw new Exception(\"Stack hat zu wenig einträge mindestens 2 werden gebraucht!!\");\n\t\telse{\n\t\t\tvalue1=stack.pop();\n\t\t\tvalue2=stack.peek();\n\t\t\tstack.push(value2+value1);\n\t\t}\n\t\t\n\t}", "@Test\n public void testPushCallTop(){\n ms = new MyStack();\n ms.push(1);\n ms.top();\n assertFalse(ms.IsEmpty());\n }", "public boolean stackEmpty() {\r\n\t\treturn (top == -1) ? true : false;\r\n\t }", "@Test\r\n public void testStackstack() {\r\n StackArrayList<Integer> stack = new StackArrayList<Integer>();\r\n\r\n stack.push(1);\r\n stack.push(2);\r\n stack.push(3);\r\n stack.push(4);\r\n stack.push(5);\r\n\r\n assertEquals(5, stack.peek());\r\n assertEquals(5, stack.pop());\r\n assertEquals(4, stack.size());\r\n }", "public boolean validateStackSequences_stack(int[] pushed, int[] popped) {\n Stack<Integer> stack = new Stack<>();\n int i = 0;\n for (int x : pushed) {\n stack.push(x);\n while (!stack.empty() && stack.peek() == popped[i]) {\n stack.pop();\n i++;\n }\n }\n return stack.empty();\n }", "@Test\n public void basicQueueOfStacksTest() {\n \n QueueOfStacks<String> tempQueue = new QueueOfStacks<String>();\n String tempCurrentElement;\n \n assertTrue(\"Element not in queue\", tempQueue.isEmpty());\n tempQueue.add(\"a\");\n assertTrue(\"Element not in queue\", !tempQueue.isEmpty());\n tempQueue.add(\"b\");\n assertTrue(\"Number of elements not correct\", tempQueue.size() == 2);\n \n tempCurrentElement = tempQueue.peek();\n assertTrue(\"Element not correct\", tempCurrentElement.equals(\"a\"));\n\n tempCurrentElement = tempQueue.remove();\n assertTrue(\"Element not correct\", tempCurrentElement.equals(\"a\") &&\n tempQueue.size() == 1);\n \n tempQueue.add(\"c\");\n assertTrue(\"Number of elements not correct\", tempQueue.size() == 2);\n \n tempCurrentElement = tempQueue.remove();\n assertTrue(\"Element not correct\", tempCurrentElement.equals(\"b\") &&\n tempQueue.size() == 1 &&\n !tempQueue.isEmpty());\n \n tempCurrentElement = tempQueue.remove();\n assertTrue(\"Element not correct\", tempCurrentElement.equals(\"c\") &&\n tempQueue.size() == 0 &&\n tempQueue.isEmpty());\n \n }", "@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 canStack() {\n return this.hasStacking;\n }", "boolean isAdditionAllowed();", "@Test\n public void testStack() {\n DatastructureTest.STACK.push(3);\n DatastructureTest.STACK.push(7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == -1);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == -1);\n }", "public boolean getResult() {\n\t\tif (stack.size() != 1) {\n\t\t\tthrow new IllegalStateException(\"Stack size mismatch\");\n\t\t}\n\t\t\n\t\treturn stack.peek();\n\t}", "@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}", "private static boolean isSorted() {\n for (int i=0; i<stack.size()-1; i++)\n if (stack.get(i)<stack.get(i+1)) return false;\n\n return true;\n }", "@Test\n public void pushOnStackTest_Correct(){\n assertEquals(stack.getTop().getData() , stack.getStack().returnFirst());\n }", "static boolean areParanthesisBalanced(String str) \r\n\t\t{ \r\n\t\t\t// Using ArrayDeque is faster than using Stack class \r\n\t\t\tDeque<Character> stack = new ArrayDeque<Character>(); \r\n\t\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\tchar ch = str.charAt(i);\r\n\t\t\tif (ch == '[' || ch == '(' || ch == '{') {\r\n\t\t\t\tstack.push(ch);\r\n\t\t\t} else if ((ch == ']' || ch == '}' || ch == ')')\r\n\t\t\t\t\t&& (!stack.isEmpty())) {\r\n\t\t\t\tif (((char) stack.peek() == '(' && ch == ')')\r\n\t\t\t\t\t\t|| ((char) stack.peek() == '{' && ch == '}')\r\n\t\t\t\t\t\t|| ((char) stack.peek() == '[' && ch == ']')) {\r\n\t\t\t\t\tstack.pop();\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ((ch == ']' || ch == '}' || ch == ')')) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\t}\r\n\t\t\treturn (stack.isEmpty());\r\n\t\t\t}", "@Test\n public void testPushPop(){\n ms=new MyStack();\n ms.push(2);\n ms.pop();\n assertTrue(ms.IsEmpty());\n }", "boolean hasOperator();", "public boolean test(FluidStack stack) {\n Fluid fluid = stack.getFluid();\n return stack.getAmount() >= getAmount(fluid) && test(stack.getFluid());\n }", "public double pop()\n {\n if (empty()) {\n \tthrow new IllegalArgumentException(\"too many operators!\");\n \t\n }\n else\n {\n return s[top--];\n }\n }", "@Override\n\tpublic boolean push(T e) throws StackOverflowException {\n\t\t//If the stack is full, throw Exception\n\t\tif(this.isFull()) throw new StackOverflowException(\"The stack is full. The operation may not be completed\");\n\t\t\n\t\telse {\n\t\t\tNode newNode = new Node(e, topNode);\n\t\t\ttopNode = newNode;\n\t\t\tnodeCount++;\n\t\t\treturn true;\n\t\t}\n\t}", "public static void main(String[] args) \r\n\t{\n\t \r\n Stack st=new Stack();\r\n st.push(6);\r\n st.push(5);\r\n st.push(3);\r\n st.push(2);\r\n st.push(1);\r\n \r\n System.out.println( st.peek());\r\n \r\n \r\n // System.out.println( st.isEmpty());\r\n\t}", "@Test\n public void testMassiveStack() {\n\n System.out.println(\"isEmpty\");\n\n int sizeTest = 10000;\n\n List<String> elementList = new ArrayList();\n String tempString = \"\";\n\n for (int i = 0; i < sizeTest; i++) {\n\n tempString = tempString + \"z\";\n elementList.add(tempString);\n\n }\n\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n for (String string : elementList) {\n instance.push(string);\n }\n\n int fourSize = instance.size();\n assertEquals(fourSize, sizeTest);\n assertEquals(instance.isEmpty(), false);\n\n for (int i = sizeTest; i > 0; i--) {\n\n String result = instance.pop();\n\n String expected = elementList.get(i - 1);\n\n assertEquals(expected, result);\n\n }\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "public boolean placeStack(TakStack stack, Point p){\n // START CONDITIONS\n //----------------\n // Is the space empty that we are trying to place\n if(stacks[p.x][p.y].size() > 0) return false;\n //----------------\n // END CONDITIONS\n\n // Valid - move start operation\n // Add new piece to the stack\n stacks[p.x][p.y].add(stack);\n\n // RETURN FALSE WHILE NOT IMPLEMENTED\n return true;\n }", "public boolean validateStackSequences(int[] pushed, int[] popped) \n {\n if (pushed == null || pushed.length == 0)\n {\n return (popped == null || popped.length == 0);\n }\n else if (pushed.length != popped.length)\n {\n return false;\n }\n \n Stack<Integer> stack = new Stack<>();\n int size = pushed.length;\n int index1 = 0, index2 = 0;\n \n while (index2 < size && index1 < size)\n {\n if (pushed[index1] != popped[index2])\n {\n if (!stack.isEmpty() && popped[index2] == stack.peek())\n {\n stack.pop();\n index2++;\n }\n else\n {\n stack.push(pushed[index1]);\n index1++;\n }\n }\n else\n {\n index1++;\n index2++;\n }\n }\n \n while (index2 < size && !stack.isEmpty())\n {\n if (popped[index2++] != stack.pop())\n {\n return false;\n }\n }\n \n return index2 == size && stack.isEmpty();\n }", "public boolean validateStackSequences_3_pointer(int[] pushed, int[] popped) {\n\t\tint n = pushed.length, left = 0, right = 0, p = 0;\n\n\t\twhile (p < n && (left >= 0 || right < n)) {\n\t\t\t// search right\n\t\t\tint tmp = right;\n\t\t\twhile (right < n && pushed[right] != popped[p]) {\n\t\t\t\tright++;\n\t\t\t}\n\t\t\tif (right < n) {\n\t\t\t\tp++;\n\t\t\t\t\n\t\t\t\t// reset left if found the popped one on the right and there are \n\t\t\t\t// new elements need to be pushed into stack\n\t\t\t\tif (right > tmp + 1)\n\t\t\t\t\tleft = right - 1;\n\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tright = tmp; // restore right if not found\n\n\t\t\t// search left\n\t\t\twhile (left >= 0 && !inStack(pushed, left, popped, p - 1)) {\n\t\t\t\tleft--;\n\t\t\t}\n\t\t\tif (left >= 0 && pushed[left] == popped[p]) {\n\t\t\t\tleft--;\n\t\t\t\tp++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\n\t\treturn p == n;\n\t}", "public void enfoncerPlus() {\n\t\ttry {\n\t\t\tthis.op = new Plus();\n\t\t\tif (!raz) {\n\t\t\t\tthis.pile.push(valC);\n\t\t\t}\n\t\t\tint a = this.pile.pop(); int b = this.pile.pop();\n\t\t\tthis.valC = this.op.eval(b,a);\n\t\t\tthis.pile.push(this.valC);\n\t\t\tthis.raz = true;\n\t\t}\n\t\tcatch (EmptyStackException e) {\n\t\t\tSystem.out.println(\"Erreur de syntaxe : Saisir deux operandes avant de saisir un operateur\");\n\t\t}\n\t}", "private void addition()\n {\n\tint tempSum = 0;\n\tint carryBit = 0;\n\tsum = new Stack<String>();\n\tStack<String> longerStack = pickLongerStack(number, otherNumber);\n\twhile(!longerStack.isEmpty())\n\t{\n\t tempSum = digitOf(number) + digitOf(otherNumber) + carryBit; //adding\n\t carryBit = tempSum / 10;\n\t sum.push((tempSum % 10) + \"\"); //store the digit which is not carryBit\n\t}\n\tif(carryBit == 1) sum.push(\"1\"); //the last carry bit need to be add as very first digit of sum if there is carry bit\n }", "public boolean stackPop() {\r\n\t\t if(stackEmpty())\r\n\t\t {\r\n\t\t\t return false;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t if(top == 0)\r\n\t\t {\r\n\t\t \ttop = -1;\r\n\t\t \tcount--;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t \tarray[top] = array[top-1];\r\n\t\t \ttop--;\r\n\t\t \tcount--;\r\n\t\t }\r\n\t\t\t return true;\r\n\t\t } \t\r\n\t }", "@Test\r\n public void testPopShouldReturnObjectWhenStackNotEmpty() {\r\n stackInstance=new StackUsingLinkedList<Integer>();\r\n stackInstance.push(49);\r\n stackInstance.push(57);\r\n stackInstance.push(2);\r\n Integer actualOutput=stackInstance.pop();\r\n Integer expectedOutput=2;\r\n assertEquals(expectedOutput,actualOutput);\r\n }", "@Test\r\n\tpublic void testPop()\r\n\t{\n\t\tassertEquals(null,myStack.pop());\r\n\t\r\n\t\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\t\tassertEquals(27,myStack.top().getId());\r\n\t\tassertEquals(\"Chur\",myStack.pop().getName());\r\n\t\tassertEquals(4,myStack.pop().getId());\r\n\t\tassertEquals(2,myStack.pop().getId());\r\n\t\t\r\n\t\t// leerer Stack\r\n\t\tassertEquals(null,myStack.pop());\r\n\t\tassertEquals(null,myStack.top());\r\n\t}", "public String evaluate(String statement) {\n // TODO: Implement the logic here\n\n if (statement == null | statement == \"\"){\n return null;\n }\n\n String addition = \"+\";\n String substraction = \"-\";\n String multiplication = \"*\";\n String division = \"/\";\n String leftbracket = \"(\";\n String rightbracket = \")\";\n\n Stack<String> temporaryStack = new Stack<>();\n Stack<String> inputStack = new Stack<>();\n Stack<String> outputStack = new Stack<>();\n Stack<String> stackOperators = new Stack<>();\n Stack<String> reverseStack = new Stack<>();\n Stack<Double> computingStack = new Stack<>();\n\n String crutch = \"crutch\";\n stackOperators.push(crutch);\n inputStack.push(crutch);\n\n Double leftNumber;\n Double rightNumber;\n Double outResult;\n int stackCounter = 1;\n int reverseCounter = 0;\n\n String solution;\n\n if (statement.contains(\",\") | statement.contains(\"..\") | statement.contains(\"//\")| statement.contains(\"**\") | statement.contains(\"++\") |\n statement.contains(\"--\")) {\n return null;\n }\n\n//преобразование выражения в обратную польскую нотацию\n StringTokenizer stTok = new StringTokenizer(statement, \"+-*/()\", true);\n while (stTok.hasMoreTokens()) {\n temporaryStack.push(stTok.nextToken());\n stackCounter++;\n }\n while (!temporaryStack.isEmpty()){\n inputStack.push(temporaryStack.peek());\n temporaryStack.pop();\n }\n\n for (int i=1; i<stackCounter; i++){\n if (Character.isDigit(inputStack.peek().charAt(0))){\n outputStack.push(inputStack.peek());\n inputStack.pop();\n }\n else if (stackOperators.peek().equals(crutch) && (inputStack.peek().equals(addition) |\n inputStack.peek().equals(substraction) | inputStack.peek().equals(multiplication) |\n inputStack.peek().equals(division))){\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(addition) | inputStack.peek().equals(substraction)){\n while (stackOperators.peek().equals(addition) | stackOperators.peek().equals(substraction) |\n stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(multiplication) | inputStack.peek().equals(division)){\n while (stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(leftbracket)){\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(rightbracket)){\n while (!stackOperators.peek().equals(leftbracket)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n if (stackOperators.peek().equals(crutch)){\n return null;\n }\n inputStack.pop();\n stackOperators.pop();\n }\n }\n while (!stackOperators.peek().equals(crutch)){\n if (stackOperators.peek().equals(leftbracket) | stackOperators.peek().equals(rightbracket)){\n return null;\n } else {\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n\n }\n while (!outputStack.isEmpty()){\n reverseStack.push(outputStack.peek());\n outputStack.pop();\n reverseCounter++;\n }\n\n//вычисление выражения\n for (int i=0; i<reverseCounter; i++){\n if (Character.isDigit(reverseStack.peek().charAt(0))) {\n computingStack.push(Double.parseDouble(reverseStack.peek()));\n }\n else if (reverseStack.peek().equals(addition)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber + rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(substraction)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber - rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(multiplication)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber * rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(division)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n if (rightNumber!=0){\n outResult = leftNumber / rightNumber;\n computingStack.push(outResult);\n } else\n return null;\n }\n reverseStack.pop();\n }\n\n DecimalFormat myFormatter = new DecimalFormat(\"#.####\");\n String format = myFormatter.format(computingStack.peek());\n\n solution = format.replace( ',', '.');\n\n return solution;\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\n public void testBigStack() {\n\n System.out.println(\"isEmpty\");\n\n int sizeTest = 500;\n\n List<String> elementList = new ArrayList();\n String tempString = \"\";\n\n for (int i = 0; i < sizeTest; i++) {\n\n tempString = tempString + \"z\";\n elementList.add(tempString);\n\n }\n\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n for (String string : elementList) {\n instance.push(string);\n }\n\n int fourSize = instance.size();\n assertEquals(fourSize, sizeTest);\n assertEquals(instance.isEmpty(), false);\n\n for (int i = sizeTest; i > 0; i--) {\n\n String result = instance.pop();\n\n String expected = elementList.get(i - 1);\n\n assertEquals(expected, result);\n\n }\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "@Test /*Test 20 - implemented pop() method to NumStack class. Refactored this method to a singe \n line return statement.*/\n public void testPop() throws Exception {\n numStackTest.push(5);\n assertEquals(\"The pop() method should return 5\", numStackTest.pop(), 5, 0.001);\n assertTrue(\"The stack should be empty after popping the only entry\", numStackTest.isEmpty());\n }", "@Override\n\tpublic boolean add(E e) {\n\t\tStack<Node> stack = new Stack<Node>();\n\t\tStack<Node> stackForParent = new Stack<Node>();\n\t\t\n\t\t\n\t\tNode tempRoot = root;\n\t\tif(root == null) {\n\t\t\tsize += 1;\n\t\t\troot = new Node(e);\n\t\t\troot.height = max(heightOfNode(root.left) , heightOfNode(root.right)) + 1;\n\t\t} else {\n\n\t\t\tNode newNode = new Node(e);\n\n\t\t\tNode y = null;\n\n\t\t\twhile(tempRoot != null){\n\t\t\t\ty = tempRoot;\n\t\t\t\tif(e.compareTo(tempRoot.value) < 0){\n\t\t\t\t\tstack.push(tempRoot);\n\t\t\t\t\tstackForParent.push(tempRoot);\n\t\t\t\t\ttempRoot = tempRoot.left;\n\n\t\t\t\t} else {\n\t\t\t\t\tstack.push(tempRoot);\n\t\t\t\t\tstackForParent.push(tempRoot);\n\t\t\t\t\ttempRoot = tempRoot.right;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(y == null){\n\t\t\t\ty = newNode;\n\t\t\t\tsize += 1;\n\t\t\t\ty.balanceFactor = 0;\n\t\t\t} else if(e.compareTo(y.value) < 0){\n\t\t\t\ty.left = newNode;\n\t\t\t\ty.left.balanceFactor = 0;\n\t\t\t\tsize += 1;\n\t\t\t} else if(e.compareTo(y.value) == 0) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\ty.right = newNode;\n\t\t\t\ty.right.balanceFactor = 0;\n\t\t\t\tsize += 1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tNode parent = null;\n\t\t\tNode walkBackNode;\n\t\t\tint lHeight,rHeight;\n\t\t\tif(!stackForParent.empty()) {\n\t\t\t\tstackForParent.pop();\n\t\t\t}\n\t\t\t\n//\t\t\tSystem.out.println(stack.pop().value);\n\t\t\twhile(!stack.empty()) {\n\t\t\t\twalkBackNode = stack.pop();\n//\t\t\t\twalkBackNode.height = walkBackNode.height + 1;\n\t\t\t\tif(!stackForParent.empty()) {\n\t\t\t\t\tparent = stackForParent.pop();\n\t\t\t\t}\n\t\t\t\tif(walkBackNode.left == null) {\n\t\t\t\t\tlHeight = -1;\n\t\t\t\t} else {\n\t\t\t\t\tlHeight = walkBackNode.left.height ;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(walkBackNode.right == null) {\n\t\t\t\t\trHeight = -1;\n\t\t\t\t} else {\n\t\t\t\t\trHeight = walkBackNode.right.height;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\twalkBackNode.balanceFactor = lHeight - rHeight;\n\t\t\t\t\n\t\t\t\twalkBackNode.height = 1 + max(lHeight,rHeight);\n\t\t\t\t\n\t\t\t\tif((walkBackNode.balanceFactor < -1) || walkBackNode.balanceFactor > 1) {\n\t\t\t\t\t// tree is violating the rules of AVL tree\n\t\t\t\t\tif(walkBackNode.balanceFactor > 1 && e.compareTo(walkBackNode.left.value) < 0) {\n\t\t\t\t\t\tif(walkBackNode.value == this.root.value) {\n\t\t\t\t\t\t\tthis.root = rrRotation(walkBackNode);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tparent.right = rrRotation(walkBackNode);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tif(walkBackNode.balanceFactor < -1 && e.compareTo(walkBackNode.right.value) > 0) {\n\t\t\t\t\t\tif(walkBackNode.value == this.root.value) {\n\t\t\t\t\t\t\tthis.root = lrRotation(walkBackNode);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tparent.left = lrRotation(walkBackNode);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tif(walkBackNode.balanceFactor > 1 && e.compareTo(walkBackNode.left.value) > 0) {\n\t\t\t\t\t\twalkBackNode.left = lrRotation(walkBackNode.left);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(walkBackNode.value == this.root.value) {\n\t\t\t\t\t\t\tthis.root = rrRotation(walkBackNode);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tparent.left = rrRotation(walkBackNode);\n\t\t\t\t\t\t}\n//\t\t\t\t\t\trrRotation(walkBackNode);\n//\t\t\t\t\t\tSystem.out.println(\"Root value:= \" + values.balanceFactor);\n//\t\t\t\t\t\tSystem.out.println(\"Left value:= \" + values.left.balanceFactor);\n//\t\t\t\t\t\tSystem.out.println(\"Right value:= \" + values.right.balanceFactor);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tif(walkBackNode.balanceFactor< -1 && e.compareTo(walkBackNode.right.value) < 0) {\n\t\t\t\t\t\twalkBackNode.right = rrRotation(walkBackNode.right);\n\t\t\t\t\t\tif(walkBackNode.value == this.root.value) {\n\t\t\t\t\t\t\tthis.root = lrRotation(walkBackNode);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tparent.right = lrRotation(walkBackNode);\n\t\t\t\t\t\t}\n//\t\t\t\t\t\tlrRotation(walkBackNode); \n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\r\n public boolean canBePushed()\r\n {\r\n return true;\r\n }", "@Test\n public void testBiggerStack() {\n\n System.out.println(\"isEmpty\");\n\n int sizeTest = 5000;\n\n List<String> elementList = new ArrayList();\n String tempString = \"\";\n\n for (int i = 0; i < sizeTest; i++) {\n\n tempString = tempString + \"z\";\n elementList.add(tempString);\n\n }\n\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n for (String string : elementList) {\n instance.push(string);\n }\n\n int fourSize = instance.size();\n assertEquals(fourSize, sizeTest);\n assertEquals(instance.isEmpty(), false);\n\n for (int i = sizeTest; i > 0; i--) {\n\n String result = instance.pop();\n\n String expected = elementList.get(i - 1);\n\n assertEquals(expected, result);\n\n }\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "public static void QtoS(){\n while(!POOR.isEmpty()){\n stack.push(POOR.remove());\n }\n while(!FAIR.isEmpty()){\n stack.push(FAIR.remove());\n }\n while(!GOOD.isEmpty()){\n stack.push(GOOD.remove());\n }\n while(!VGOOD.isEmpty()){\n stack.push(VGOOD.remove());\n }\n while(!EXCELLENT.isEmpty()){\n stack.push(EXCELLENT.remove());\n }\n \n \n}", "@Override\r\n\tpublic boolean pushValuesBackward() {\r\n\t\tboolean mod = false;\r\n\r\n\t\tValue resultBusValue = getResultBus().getValue();\r\n\r\n\t\tValue newValue = new Value(resultBusValue.getSize(),\r\n\t\t\t\tresultBusValue.isSigned());\r\n\r\n\t\tfor (int i = 0; i < resultBusValue.getSize(); i++) {\r\n\t\t\tBit bit = resultBusValue.getBit(i);\r\n\t\t\tif (!bit.isCare()) {\r\n\t\t\t\tnewValue.setBit(i, Bit.DONT_CARE);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tmod |= getDataPorts().get(0).pushValueBackward(newValue);\r\n\r\n\t\treturn mod;\r\n\t}", "@Test\n public void testRememberNumberPushPop(){\n ms = new MyStack();\n int pushNum=4, popNum;\n ms.push(pushNum);\n popNum=ms.pop();\n assertEquals(pushNum,popNum);\n }", "private boolean postops() {\r\n return OPT(GO() && postop() && postops());\r\n }", "private CustomQueue<String> evaluatePostFix(CustomQueue<String>postfix){\r\n CustomStack<String> numberStack = new CustomStack();\r\n CustomQueue<String> result = new CustomQueue();\r\n \r\n while (postfix.isEmpty() == false){\r\n String value = postfix.remove();\r\n if (isOperator(value)){\r\n //First popped value should be on the right hand side of the operator\r\n double val2 = Double.parseDouble(numberStack.pop());\r\n //Second popped value should be on the left hand side of the operator\r\n double val1 = Double.parseDouble(numberStack.pop());\r\n String operation_result = calculate(val1, val2, value);\r\n numberStack.push(operation_result);\r\n }\r\n else{\r\n //It should be a number\r\n numberStack.push(value);\r\n }\r\n }\r\n \r\n if (numberStack.empty())\r\n result.add(\"0\");\r\n else\r\n result.add(numberStack.pop());\r\n \r\n return result;\r\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 }", "@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 int calculate(String s) {\n Deque<Integer> stack = new ArrayDeque<>();\n\n // Init\n int result = 0; // For the on-going result\n int sign = 1; // 1 means positive, -1 means negative\n int operand = 0;\n\n // 1 + 2 + 1\n // The tricky part is that we find an operator/sign first, then we know\n // the operand after that. We save the sign first, and when we evaluate the\n // expression so far, we use that sign.\n\n // Go through the expression string character by character.\n // Evaluate to the left when we find '+', '-', ')', or end of loop.\n // We use a stack when we find parenthesis.\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (Character.isDigit(c)) {\n // Form operand, since it could be more than one digit.\n operand = 10 * operand + (c - '0');\n } else if (c == '+') {\n // We can evaluate the expression to the left,\n // with result, sign, operand\n result += sign * operand;\n // Save the recently encountered '+' sign\n sign = 1;\n // Reset operand\n operand = 0;\n } else if (c == '-') {\n // We can evaluate the expression to the left,\n result += sign * operand;\n // Save the '-' sign.\n sign = -1;\n operand = 0;\n } else if (c == '(') {\n // Push the result so far and sign onto the stack, for later use.\n // We push the result first, then sign in the stack.\n stack.push(result);\n stack.push(sign);\n // Reset result, sign, and operand, as if new evaluation begins for the new\n // sub-expression\n result = 0;\n sign = 1;\n operand = 0;\n } else if (c == ')') {\n // We can evaluate the sub-expression to the left.\n result += sign * operand;\n // Now that we know the sub-expression ended, we can also evaluate to the left.\n // First we take the sign out of the stack, and then add the result we saved\n // before to the result of the sub-expression.\n result *= stack.pop();\n result += stack.pop();\n // Reset sign and operand.\n sign = 1;\n operand = 0;\n }\n }\n\n // We need to evaluate again.\n result += sign * operand;\n\n return result;\n }", "public final boolean greaterThanEquals() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue >= topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasMore()\n\t{\n\t\treturn numLeft.compareTo(BigInteger.ZERO) == 1;\n\t}", "boolean isFull(Stack stack){\n\t\tif(stack.getStackSize() >= 100) return true;\r\n\t\telse return false;\t\r\n\t}", "boolean isCommutative();", "@Test\n public void testPush() {\n System.out.println(\"push\");\n instance.push(1);\n String expResult = \"[1]\";\n assertEquals(expResult, instance.toString());\n instance.push(2);\n expResult = \"[1, 2]\";\n assertEquals(expResult, instance.toString());\n }", "boolean push(String x) {\r\n\t if (top >= (max -1)) {\r\n\t System.out.println(\"Message has to be under 250 letters\");\r\n\t return false;\r\n\t }\r\n\r\n\t // insert element on top of stack\r\n\t else {\r\n\t msg[++top] = x;\r\n\t System.out.println(x + \" has been pushed\");\r\n\t return true;\r\n\t }\r\n\t }", "@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 abstract boolean push(Object E);", "public void StackTest() {\n\tSystem.out.println( \"\\nQuestion (8) Stack Test\" );\n\tSystem.out.println( \"-----------------------\");\n\tStack s = new Stack(3);\n\tSystem.out.println( \"push 0\");\n\ts.push(0);\n\tSystem.out.println( \"push 1\");\n\ts.push(1);\n\tSystem.out.println( \"push 2\");\n\ts.push(2);\n\tSystem.out.println( \"try to push 3\");\n\ts.push(3); // error here pushing beyond stack depth, will print error messgae\n\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() ); \n\tSystem.out.println( \"try to pop \" ); // error here poping off empty stack\n\ts.pop();\n }", "public boolean hasNext() {\n\r\n\t\tif (stack.isEmpty()) {\r\n\r\n\t\t\treturn false;\r\n\r\n\t\t} else {\r\n\r\n\t\t\tIterator<Node> it = stack.peek();\r\n\r\n\t\t\tif (it.hasNext()) {\r\n\r\n\t\t\t\treturn true;\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tstack.pop();\r\n\r\n\t\t\t\treturn hasNext();\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public static void main( String[] args )\n {\n\tStack<String> cakes = new LLStack<String>();\n\n\t//\"bronze jungle fail smite challenger nunu consume blue\"\n\tSystem.out.println( \"is cakes empty: \" + cakes.isEmpty() + \"\\n\" );\n\t\n\t//push tests\n\tcakes.push( \"blue\" );\t\n\tSystem.out.println( \"top value of cakes after pushing blue:\\n\" + cakes.peek() );\t\n\tcakes.push( \"consume\" );\t\n\tSystem.out.println( \"top value of cakes after pushing consume:\\n\" + cakes.peek() );\t\n\tcakes.push( \"nunu\" );\n\tSystem.out.println( \"top value of cakes after pushing nunu:\\n\" + cakes.peek() );\t\t\n\tcakes.push( \"challenger\" );\n\tSystem.out.println( \"top value of cakes after pushing challenger:\\n\" + cakes.peek() );\t\n\tcakes.push( \"smite\" );\t\n\tSystem.out.println( \"top value of cakes after pushing smite:\\n\" + cakes.peek() );\t\n\tcakes.push( \"fail\" );\t\n\tSystem.out.println( \"top value of cakes after pushing fail:\\n\" + cakes.peek() );\t\n\tcakes.push( \"jungle\" );\t\n\tSystem.out.println( \"top value of cakes after pushing jungle:\\n\" + cakes.peek() );\t\n\tcakes.push( \"bronze\" );\t\n\tSystem.out.println( \"top value of cakes after pushing bronze:\\n\" + cakes.peek() );\n\t\n\tSystem.out.println( \"\\nis cakes empty: \" + cakes.isEmpty() + \"\\n\" );\n\t\n\t//pop tests\n\tfor( int i = 0; i < 8; i ++ ){\n\t\tSystem.out.println( \"top value of cakes: \" + cakes.peek() );\n\t\tSystem.out.println( \"value popped from cakes: \" + cakes.pop() );\n\t}\n\t\n\tSystem.out.println( \"\\nis cakes empty: \" + cakes.isEmpty() + \"\\n\" );\n\t\n }", "private boolean has(String s) {\n\t\tboolean result = false;\n\t\tMyStack newBurger = new MyStack();\n\t\twhile (myBurger.size() != 0) {\n\t\t\tif (myBurger.peek().equals(s)) {\n\t\t\t\tresult = true;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tnewBurger.push(myBurger.pop());\n\t\t\t}\n\t\t}\n\t\twhile (newBurger.size() != 0) {\n\t\t\tmyBurger.push(newBurger.pop());\n\t\t}\n\t\treturn result;\n\t}", "@Test\n public void testMassiveStackOfNothing() {\n\n System.out.println(\"isEmpty\");\n\n int sizeTest = 10000;\n int expectedSize = 0;\n \n String tempString = null;\n String expected = null;\n \n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n for (int i = 0; i < sizeTest; i++) {\n instance.push(tempString);\n }\n\n int fourSize = instance.size();\n assertEquals(fourSize, expectedSize);\n assertEquals(instance.isEmpty(), true);\n\n for (int i = sizeTest; i > 0; i--) {\n\n String result = instance.pop();\n\n assertEquals(expected, result);\n\n }\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "private Expr comparison() {\n Expr expr = addition();\n\n while(match(GREATER, GREATER_EQUAL, LESS, LESS_EQUAL)) { // These variable length arguments are real convenient\n Token operator = previous();\n Expr right = addition();\n expr = new Expr.Binary(expr, operator, right);\n }\n\n return expr;\n }", "public static boolean stackHelper(Stack st)\n\t{\n\t\tif (st.empty() || (int) st.peek() < 0)\n\t\t{\n\t\t\tthrow new InvalidSequenceException();\n\t\t}\n\t\treturn true;\n\t}", "@Test\n public void testCalculateRPNStack() throws Exception {\n String[] expression = {\"3\",\"4\",\"+\",\"8\",\"3\",\"-\",\"+\",\"10\",\"2\",\"/\", \"3\", \"+\", \"*\", \"15\",\"/\"};\n double result = solver.calculateRPNCustom(expression);\n\n assertThat(result, is(6.4));\n }", "@Test\n public void testPop() {\n System.out.println(\"pop\");\n Stack2 instance = new Stack2();\n int expResult = 3;\n instance.push(1);\n instance.push(2);\n instance.push(expResult);\n int result = instance.pop();\n assertEquals(expResult, result);\n }", "private void topEval(Stack<Operator> pOperatorStack, Stack<Operand> pOperandStack) {\n Operand right = pOperandStack.pop();\n Operator operator = pOperatorStack.pop();\n if (operator instanceof UnaryOperator) {\n pOperandStack.push(((UnaryOperator)operator).evaluate(right));\n } else {\n Operand left = pOperandStack.pop();\n pOperandStack.push(((BinaryOperator)operator).evaluate(left, right));\n }\n }", "public interface Stack<E> {\r\n \r\n /** \r\n * Pre: Se ingresa el dato\r\n * @param data se ingresa un dato para agregar al Vector\r\n * Post: Se guarda el dato en Stack\r\n */\r\n public void push(E data);\r\n\r\n /** \r\n * Pre: Estan todos los datos en el Stack\r\n * @return E se regresa un item.\r\n * Post: Se regresa y elimina un dato del Stack\r\n */\r\n public E pop();\r\n\r\n /** \r\n * Pre: Se encuentra el Stack con sus datos\r\n * @return E se regresa cualquier tipo de dato\r\n * @throws EmptyStackException regresa un error\r\n * Post: Se regresa el dato sobre la lista\r\n */\r\n public E peek();\r\n\r\n /** \r\n * Pre:Se encuentra el Stack\r\n * @return boolean se regresa un valor True o False\r\n * Post: Si el Stack se encuentra vacio este regresa True\r\n */\r\n public boolean empty();\r\n\r\n /** \r\n * Pre:Se encuentra el Stack \r\n * @return int se regrea cualquier numero\r\n * Post: Se devuelve el numero de objetos que tiene el Stack\r\n */\r\n public int size();\r\n\r\n}", "public static void main(String[] args) {\n Stack<Integer> st = new Stack<Integer>();\n System.out.println(\"push\"+st.push(2));\n st.push((54));\n st.push(10);\n System.out.println(\"pop \"+st.pop());\n System.out.println(st.peek());\n System.out.println(st.isEmpty());\n \n System.out.println(\"----\");\n \n Queue<Integer> qu = new LinkedList<Integer>();\n System.out.println(qu.isEmpty());\n System.out.println(qu.add(5));\n System.out.println(qu.add(12));\n System.out.println(qu.size());\n qu.clear();\n System.out.println(qu.size());\n \n }", "public static boolean isBalancedParentheses(String str) {\r\n\t\tStack<Character> stk = new Stack<Character>();\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\tchar ch = str.charAt(i);\r\n\t\t\tif (ch == '(' || ch == '[') {\r\n\t\t\t\tstk.push(ch);\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (ch == ')' || ch == ']') {\r\n\t\t\t\tif (!stk.isEmpty() && (stk.peek() == '(' || stk.peek() == '[')) {\r\n\t\t\t\t\tstk.pop();\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tstk.push(ch);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn stk.isEmpty();\r\n\t}", "public static void main(String[] args) {\n String s=\"[()]{}{[()()]()}\";\n char s1[]=s.toCharArray();\n Stack<Character> a=new Stack<>();\n \n for (int i = 0; i < s.length(); i++) {\n \t char x=s.charAt(i);\n// \t if(a.isEmpty()) {\n// \t\t a.push(x);\n// \t }\n \t \n\t\tif(x=='{'||x=='['||x=='('){\n\t\t\ta.push(x);\n\t\t}\n\t\telse if(x=='}'||x==']'||x==')'&& !a.isEmpty()) {\n//\t\t\tif(a.peek()=='}'||a.peek()==']'||a.peek()==')')\n\t\t\ta.pop();\n\t\t}\n\t}\n System.out.println(a.toString());\n if(a.isEmpty()) {\n \t System.out.println(\"balanced\");\n }\n else\n {\n \t System.out.println(\"Unbalanced\"); \t \n }\n\t}", "public boolean hasPop() {\n return pop_ != null;\n }", "public boolean validateStackSequences2(int[] pushed, int[] popped) \n {\n if (pushed == null || pushed.length == 0)\n {\n return (popped == null || popped.length == 0);\n }\n else if (pushed.length != popped.length)\n {\n return false;\n }\n \n int index1 = 0, stackTop = -1;\n int size = pushed.length;\n Set<Integer> visited = new HashSet<>();\n \n for (int index2 = 0; index2 < size; index2++)\n {\n while (stackTop != -1 && visited.contains(pushed[stackTop]))\n {\n stackTop--;\n }\n \n if (stackTop != -1 && pushed[stackTop] == popped[index2])\n {\n visited.add(popped[index2]);\n stackTop--;\n continue;\n }\n \n while (index1 < size && pushed[index1] != popped[index2])\n {\n index1++;\n }\n \n if (index1 == size)\n {\n return false;\n }\n \n stackTop = index1-1;\n visited.add(popped[index2]);\n index1++;\n }\n \n return true;\n }", "public void pop() {\r\n \t Queue<Integer> temp=new LinkedList<Integer>();\r\n \t int counter=0;\r\n \t while(!stack.isEmpty()){\r\n \t temp.add((Integer) stack.poll());\r\n \t counter++;\r\n \t \r\n \t }\r\n \t while(counter>1)\r\n \t {\r\n \t \r\n \t stack.add(temp.poll());\r\n \t counter--;\r\n \t }\r\n }", "public static void main(String args[]) {\n StackVenkataKalyanKrishnaVarmaSagi<Integer> stackVenkataKalyanKrishnaVarmaSagi = new StackVenkataKalyanKrishnaVarmaSagi();\n\n //Take input\n System.out.println(\"Enter a string: \");\n Scanner scanner = new Scanner(System.in);\n String input = scanner.next();\n for (int i = 0; i < input.length(); i++) {\n if (input.charAt(i) == '*' || input.charAt(i) == '+' || input.charAt(i) == '-' || input.charAt(i) == '*' || input.charAt(i) == '^') {\n char operator = input.charAt(i);\n int a = stackVenkataKalyanKrishnaVarmaSagi.pop();\n int b = stackVenkataKalyanKrishnaVarmaSagi.pop();\n if (operator == '+')\n stackVenkataKalyanKrishnaVarmaSagi.push(b + a);\n if (operator == '-')\n stackVenkataKalyanKrishnaVarmaSagi.push(b - a);\n if (operator == '*')\n stackVenkataKalyanKrishnaVarmaSagi.push(b * a);\n if (operator == '/' && a != 0) //make sure you are not performing division with 0\n stackVenkataKalyanKrishnaVarmaSagi.push(b / a);\n if (operator == '^')\n stackVenkataKalyanKrishnaVarmaSagi.push((int) Math.pow(b, a));\n } else {\n int operand = Character.getNumericValue(input.charAt(i));\n stackVenkataKalyanKrishnaVarmaSagi.push(operand);\n }\n }\n if (stackVenkataKalyanKrishnaVarmaSagi.size() > 1)\n System.out.println(\"The input Postfix expression is not valid.\");\n else\n System.out.println(\"Result value: \" + stackVenkataKalyanKrishnaVarmaSagi.pop());\n }", "public boolean isAddable(Card card, Card middle)\n {\n //ensure that the stack does not include cards of different rank\n if (stack.size() == 0)\n {\n //when a suit is manually picked by a previous draw of a queen\n if (!setOfCards.middle.get(0).firstCard && (setOfCards.middle.get(0).getRank() == \"Q\"))\n {\n if (card.suit == manualSuit)\n {\n return true;\n }\n else if (card.getRank() == \"Q\")\n {\n return true;\n }\n else\n {\n return false;\n }\n }\n if (middle.sameRank(card) || middle.sameSuit(card))\n {\n\n return true;\n }\n else if (card.getRank() == \"Q\")\n {\n return true;\n }\n else\n return false;\n }\n else if (stack.get(0).sameRank(card))\n {\n return true;\n }\n else\n return false;\n }", "@Test\n public void testPushTop(){\n ms = new MyStack();\n ms.push(2);\n assertEquals(2,ms.top());\n }", "boolean hasComputeSum();", "@Test\n\tpublic void testPush(){\n\t\tArrayIntStack stack = buildStack(4);\n\t\tassertEquals(4, stack.intCol.size());\n\t}", "@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Fixed Stack\");\r\n\t\t\r\n\t}", "public abstract boolean fragmentStackUnderFlow();", "public boolean hasPop() {\n return popBuilder_ != null || pop_ != null;\n }", "public static int evaluate(Math impl, String[] postfix) throws StackOverflowError, MalformedPostfixException {\n\n // a stack for implementing the evaluation\n Stack<Integer> stack = new Stack<Integer>();\n\n try {\n \n for (int i = 0; i < postfix.length; i++) {\n\n if (postfix[i].length() == 1 && !Character.isDigit(postfix[i].charAt(0))) {\n\n // if the first character of the element is not a digit then we \n // assume it is an operator\n\n String operator = postfix[i];\n\t\t\n if (operator.equals(\"<\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.lshift(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\">\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.rshift(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"+\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.add(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"-\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.sub(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"*\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.mul(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"/\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.div(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"^\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.pow(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"!\")) {\n int num = stack.pop();\n int result = impl.fac(num);\n stack.add(result);\n } // if\n\n } else {\n\n // otherwise we assume it is an operand and add it to the stack\n stack.add(Integer.parseInt(postfix[i]));\n\n } // if\n\n } // for\n\n } catch (Exception e) {\n \n // propogate as a malformed postfix exception\n throw new MalformedPostfixException(postfix);\n \n } // try\n \n // if the stack size is not 1, then the expression is malformed\n if (stack.size() != 1) {\n throw new MalformedPostfixException(postfix);\n } // if\n\n // the only element left in the stack will be the result of the evaluation\n return stack.pop();\n\n }" ]
[ "0.60824645", "0.5868058", "0.5832321", "0.5816312", "0.5787575", "0.5779924", "0.57780963", "0.57612467", "0.57177013", "0.5693586", "0.5678405", "0.56711984", "0.56635195", "0.5629365", "0.5618725", "0.5586702", "0.5583178", "0.55528736", "0.554318", "0.55323064", "0.55316645", "0.55022913", "0.54795754", "0.5475358", "0.5462869", "0.5428887", "0.5423743", "0.5416358", "0.5413886", "0.54057556", "0.54015243", "0.53999233", "0.5394191", "0.5382304", "0.5381741", "0.53791624", "0.5374527", "0.53263265", "0.53227997", "0.53171545", "0.5308593", "0.53035384", "0.53022593", "0.5302251", "0.5289279", "0.5249662", "0.5239947", "0.5234791", "0.5233722", "0.5232429", "0.5232075", "0.52282274", "0.5223615", "0.5222175", "0.52075076", "0.52071726", "0.5205377", "0.5203001", "0.5189021", "0.51816934", "0.5168436", "0.5165279", "0.5157971", "0.5147232", "0.51439756", "0.51430404", "0.5138205", "0.5120127", "0.5112526", "0.5096067", "0.509269", "0.5091776", "0.5090265", "0.5080761", "0.5075205", "0.50698024", "0.5067499", "0.5066792", "0.50587046", "0.50399727", "0.5036993", "0.5030697", "0.50292444", "0.5028917", "0.5022663", "0.50144404", "0.5011675", "0.50090086", "0.5008565", "0.5006258", "0.50052077", "0.50031894", "0.5002635", "0.5000203", "0.4999008", "0.49910745", "0.498643", "0.49825838", "0.49802178", "0.49794105", "0.497889" ]
0.0
-1
metodo para iniciar la sesion
public void iniciaOperacion() throws HibernateException { //Creamos conexión BBDD e inicamos una sesion sesion = HibernateUtil.getSessionFactory().openSession(); //iniciamos transaccion tx = sesion.beginTransaction(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }", "void markAsUserSession();", "private void login() {\n setCredentials();\n setSysProperties();\n\n Properties sysProperties = System.getProperties();\n sysProperties.put(\"mail.store.protocol\", \"imaps\");\n this.session = Session.getInstance(sysProperties,\n new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n }", "Session begin();", "public void StartLogIn(){\n\t}", "private void doLogin() {\n\t\tSharedPreferences.Editor prefEditor = mSP.edit();\n\t\tSession.FirstLogin = true;\n\t\tmUserPin = et_password.getText().toString();\n\t\t// Time to update the session\n\t\tif (inTruckMode) {\n\t\t\tSession.setVehicle(vehicle);\n\t\t\tSession.setDriver(userDao.getByPin(mUserPin));\n\n\t\t\tprefEditor.putString(Config.VEHICLE_ID_KEY, vehicle.getId());\n\t\t\tprefEditor.putString(Config.LAST_VEHICLE_KEY, vehicle.getId());\n\t\t\tprefEditor.putString(Config.SITE_ID_KEY, null);\n\n\t\t\tSession.setType(SessionType.VEHICLE_SESSION);\n\t\t} else {\n\t\t\tSession.setSite(site);\n\t\t\tSession.setDriver(userDao.getByPin(mUserPin));\n\n\t\t\tprefEditor.putString(Config.VEHICLE_ID_KEY, null);\n\t\t\tprefEditor.putString(Config.LAST_VEHICLE_KEY, null);\n\t\t\tprefEditor.putString(Config.SITE_ID_KEY, site.getId());\n\n\t\t\tSession.setType(SessionType.SITE_SESSION);\n\t\t}\n\n\t\tstartupSync();\n\t\tstartSync();\n\n\t\tprefEditor.putString(Config.USER_PIN_KEY, mUserPin);\n\t\tprefEditor.putString(Config.LAST_USER_PIN_KEY, mUserPin);\n\t\tprefEditor.putString(Config.SYNC_SERVICE_KEY, \"yes\");\n\t\tprefEditor.commit();\n\n\t\t// if no VIMEI associated with truck, starting GPSService on SB device\n\t\tif (!vehiclesDao.xergoEsn(getApplicationContext())) {\n\t\t\tvimei = vehiclesDao.getVimei(this);\n\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.setAction(GPSService.UPDATE_IMEI_EVENT);\n\t\t\tintent.putExtra(\"Value\", vimei);\n\t\t\tsendBroadcast(intent);\n\n\t\t\tintent = new Intent();\n\t\t\tintent.setAction(GPSService.SEND_IGNITION_ON_EVENT);\n\t\t\tsendBroadcast(intent);\n\t\t}\n\n\t\tstartSession(mUserPin);\n\t\tIntent intent = new Intent(this, MapActivity.class);\n\t\tthis.startActivity(intent);\n\t\tfinish();\n\t}", "public boolean inicioSession(String usuario, String password, String aplicacion){\n Session session = obtenerConexion().authenticate( aplicacion, usuario, password);\n if(session != null){\n setSesion(session);\n return true;\n }else{\n return false;\n }\n }", "public void sessionStarted() {\n\t\t\r\n\t}", "protected void login() {\n\t\t\r\n\t}", "private void setupSession() {\n // TODO Retreived the cached Evernote AuthenticationResult if it exists\n// if (hasCachedEvernoteCredentials) {\n// AuthenticationResult result = new AuthenticationResult(authToken, noteStoreUrl, webApiUrlPrefix, userId);\n// session = new EvernoteSession(info, result, getTempDir());\n// }\n ConnectionUtils.connectFirstTime();\n updateUiForLoginState();\n }", "private void updateActiveSession(Session s)\r\n\t{\r\n\t\t\r\n\t\t/**\r\n\t\t * Part Two\r\n\t\t */\r\n\t\t//TODO: BMH\r\n\t\t\r\n\t\t/**\r\n\t\t * Part Three\r\n\t\t */\r\n\t\ttry\r\n\t\t{\r\n\t\t\ts.serverSock.setSoTimeout(1);\r\n\t\t\tSocket client = s.serverSock.accept();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tOutput.processMessage(\"Accepted a connection from: \"+\r\n\t\t \t\tclient.getInetAddress(), Constants.Message_Type.debug);\r\n\t\t\t\r\n\t\t\r\n\t\t\tif (client != null)\r\n\t\t\t{\r\n\t\t\t\tSessionUtils.acceptNewClient(client, s);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "public void LogIn() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "@Override\r\n public void onModuleLoad() {\r\n //register auto refreshing timer\r\n// autoRefresh = new Timer() {\r\n// @Override\r\n// public void run() {\r\n// Shared.EVENT_BUS.fireEvent(new UIRefreshEvent());\r\n// }\r\n// };\r\n// autoRefresh.scheduleRepeating(AUTO_REFRESH_INTERVAL);\r\n \r\n \r\n //read cookies to recover previous session\r\n if (cookie.getSeesionID().isEmpty()) {\r\n //create new session\r\n newSession();\r\n }else{\r\n //try to rebind the old session\r\n Shared.RPC.getSession(cookie.getSeesionID(), new AsyncCallback<Session>() {\r\n @Override\r\n public void onSuccess(Session s) {\r\n if (s == null){\r\n //the session is absent on server\r\n Info.display(\"Expired\", \"Your session is expired, please sign in again\");\r\n newSession();\r\n }else{\r\n Shared.MY_SESSION = s; \r\n //try to auto sign in using saved accountKey\r\n if (cookie.getAccountKey(s).isEmpty() || s.getAccount() == null){\r\n //not to keep signed in / or not yet signed in\r\n //do nothing, wait for signing in\r\n }else{\r\n //try to sign in\r\n Shared.EVENT_BUS.fireEvent(new SignEvent(SignEvent.Action.SIGN_IN)); //didn't set the account key because setting it result in overwrite the cookies\r\n Shared.RPC.signInAndBindSession(s.getAccount(), s, cookie.getAccountKey(s), new AsyncCallback<Session>() {\r\n @Override\r\n public void onSuccess(Session s) {\r\n if (s != null) {\r\n //login successful\r\n Shared.MY_SESSION = s;\r\n //dispatch sign in event\r\n Shared.EVENT_BUS.fireEvent(new SignEvent(SignEvent.Action.SIGNED_IN));\r\n } else {\r\n Info.display(\"Incorrect\", \"Please check your password and try again\");\r\n }\r\n }\r\n\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Info.display(\"Error\", caught.getMessage());\r\n }\r\n }); \r\n }\r\n }\r\n }\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Info.display(\"Error\", caught.getMessage());\r\n }\r\n });\r\n }\r\n \r\n\r\n\r\n \r\n \r\n res.common_css().ensureInjected(); \r\n Widget loginpage = new LoginPage();\r\n RootPanel.get().add(loginpage);\r\n\r\n //add event handler for SignEvent event\r\n Shared.EVENT_BUS.addHandler(SignEvent.TYPE, new SignEvent.SignEventHandler(){\r\n @Override\r\n public void onSign(SignEvent event){\r\n //process sign_in\r\n //process signed_in\r\n if (event.getAction().equals(SignEvent.Action.SIGNED_IN)) {\r\n //write cookies if keep signed in\r\n if (event.getAccountKey() != null && !event.getAccountKey().isEmpty()) {\r\n cookie.setAccountKey(Shared.MY_SESSION, event.getAccountKey());\r\n }\r\n //already signed in, load workspace\r\n RootPanel.get().clear();\r\n Widget workspace = new Workspace().asWidget();\r\n RootPanel.get().add(workspace); \r\n Info.display(\"Welcome\", \"Signed in as \" + Shared.MY_SESSION.getAccount().getFullName());\r\n }\r\n //process sign_out\r\n if (event.getAction().equals(SignEvent.Action.SIGN_OUT)){\r\n String accountKey = cookie.getAccountKey(Shared.MY_SESSION);\r\n Shared.RPC.signOutAndDetachSession(Shared.MY_SESSION, accountKey, new AsyncCallback<Session>() {\r\n @Override\r\n public void onSuccess(Session s) {\r\n if (s != null) {\r\n Shared.MY_SESSION = s;\r\n //sign out seems OK on server side, dispatch SIGNED_OUT event\r\n Shared.EVENT_BUS.fireEvent(new SignEvent(SignEvent.Action.SIGNED_OUT)); //WARN: don't dispatch SIGN_OUT avoiding deadlock call\r\n } else {\r\n Info.display(\"Error\", \"Account is already signed out or database error\");\r\n }\r\n }\r\n\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Info.display(\"Error\", caught.getMessage());\r\n }\r\n });\r\n }\r\n //process signed_out\r\n if (event.getAction().equals(SignEvent.Action.SIGNED_OUT)){\r\n //delete cookies\r\n cookie.discardCookie(Shared.MY_SESSION); \r\n //return UI to welcome status\r\n RootPanel.get().clear();\r\n RootPanel.get().add(new LoginPage()); \r\n Info.display(\"See you\", \"You are now signed out!\");\r\n }\r\n }\r\n });\r\n \r\n \r\n }", "@Override\r\n\tpublic void iniciarSesion() {\n\t\tthis.contextoOrdenMenosUno = new Contexto();\r\n\t\t//Obtengo el orden del xml de configuración\r\n\t\tthis.orden = Constantes.ORDER_MAX_PPMC;\r\n\t\t//Creo tantos Ordenes como dice el XML\r\n\t\tthis.listaOrdenes = new ArrayList<Orden>(this.orden+1);\r\n\t\tthis.inicializarListas();\r\n\t\tthis.compresorAritmetico = new LogicaAritmetica();\r\n\t\tthis.initSession = true;\r\n\t\tthis.tiraBits = \"\";\r\n\t\tthis.bitsBuffer = new StringBuffer();\r\n\t\tthis.finalizada = false;\r\n\t\tthis.contextoPrevio = false;\r\n\t\tthis.contextoActual = new String();\r\n\t}", "private void loggedInUser() {\n\t\t\n\t}", "public abstract Thread startSession();", "@Override\n\t\t\tpublic void handleNewSession() throws Exception {\n\t\t\t\t\n\t\t\t}", "public void iniciar() {\n abrirPuerto();\n\n while (true) {\n esperarCliente();\n lanzarHilo();\n }\n }", "static void startSession() {\n /*if(ZeTarget.isDebuggingOn()){\n Log.d(TAG,\"startSession() called\");\n }*/\n if (!isContextAndApiKeySet(\"startSession()\")) {\n return;\n }\n final long now = System.currentTimeMillis();\n\n runOnLogWorker(new Runnable() {\n @Override\n public void run() {\n logWorker.removeCallbacks(endSessionRunnable);\n long previousEndSessionId = getEndSessionId();\n long lastEndSessionTime = getEndSessionTime();\n if (previousEndSessionId != -1\n && now - lastEndSessionTime < Constants.Z_MIN_TIME_BETWEEN_SESSIONS_MILLIS) {\n DbHelper dbHelper = DbHelper.getDatabaseHelper(context);\n dbHelper.removeEvent(previousEndSessionId);\n }\n //startSession() can be called in every activity by developer, hence upload events and sync datastore\n // only if it is a new session\n //syncToServerIfNeeded(now);\n startNewSessionIfNeeded(now);\n\n openSession();\n\n // Update last event time\n setLastEventTime(now);\n //syncDataStore();\n //uploadEvents();\n\n }\n });\n }", "private void initSession(HttpServletRequest request, HttpServletResponse response) throws IOException {\n // create new seassion for user\n HttpSession session = request.getSession();\n if (session != null) {\n _sessionId = session.getId();\n }\n\n response.getWriter().write(_sessionId);\n }", "public static void login(Skier skier){\n String uuid=java.util.UUID.randomUUID().toString();\n response().setCookie(COOKIE_NAME, uuid);\n Session s= new Session(uuid,skier.getId());\n s.save();\n }", "public WebConnectorRequestHandler () {\t\t\n\t\t_userSessions = new Hashtable<Long, UserSession>(); //manage all active sessions\n\t\t\n\t scheduledExecutorService.scheduleWithFixedDelay( //thread looping and checking for timeouts\n\t \t\tnew Runnable() {\t\t\t\t\t\t//if the user is logged in for too long without sending any requests-> logout\n\t\t\t public void run() {\t\t\t\t\t\n\t\t\t \tcheckforLogout(false);\n\t\t\t \n\t\t\t }\n\t\t\t }\n\t \t\t, LOGOUT_INTERVAL, LOGOUT_INTERVAL, TimeUnit.SECONDS);\n\t\t\t \n\n\n\t}", "private Session establishSession(String sessionid) throws AxisFault {\n Session s = sessionManager.getSession(sessionid);\n\n if (s == null) {\n throw new AxisFault(\"Session \\\"\" + sessionid + \"\\\" is not active\");\n }\n s.setActive();\n sessionManager.setCurrentSession(s);\n return s;\n }", "void sessionExpired();", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "@Override\r\n\tpublic void login() {\n\r\n\t}", "public static void startSession (HttpServletRequest request, HttpServletResponse response) throws IOException {\n DBAccess dbAccess = DBAccess.getInstance();\n PreparedStatement pstm;\n PrintWriter out = response.getWriter();\n HttpSession session = request.getSession();\n ObjectMapper objM = new ObjectMapper();\n PropertiesReader props = PropertiesReader.getInstance();\n UserLogin userL = objM.readValue(request.getReader().lines().collect(Collectors.joining(System.lineSeparator())), UserLogin.class);\n String encryptedPass = NitroEncrypted.getNitroPassword(userL.getPassword());\n Response<LoginData> res = new Response<>();\n LoginData loginData = new LoginData();\n String r;\n\n\n try {\n Connection con = dbAccess.createConnection();\n pstm = con.prepareStatement(props.getValue(\"queryLogin\"), ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n pstm.setString(1, userL.getUser());\n pstm.setString(2, encryptedPass);\n ResultSet rs = pstm.executeQuery();\n if (rs.next()){\n\n if (rs.getInt(\"type_id\") == 1){\n System.out.println(props.getValue(\"isAdmin\") + \": \" + userL.getUser());\n res.setMessage(\"Correct Username and Password!\");\n res.setStatus(200);\n loginData.setAdmin(true);\n loginData.setName(rs.getString(props.getValue(\"retName\")));\n loginData.setId(rs.getInt(props.getValue(\"retID\")));\n res.setData(loginData);\n AttrSession.setAttribute(session, \"name\", rs.getString(props.getValue(\"retName\")));\n AttrSession.setAttribute(session, \"id\", rs.getInt(props.getValue(\"retID\")));\n AttrSession.setAttribute(session, \"admin\", true);\n session.setMaxInactiveInterval((3600 * 24));\n }else{\n System.out.println(props.getValue(\"isnotAdmin\") + \": \" + userL.getUser());\n res.setMessage(\"Correct Username and Password!\");\n res.setStatus(200);\n loginData.setAdmin(false);\n loginData.setName(rs.getString(props.getValue(\"retName\")));\n loginData.setId(rs.getInt(props.getValue(\"retID\")));\n res.setData(loginData);\n AttrSession.setAttribute(session, \"name\", rs.getString(props.getValue(\"retName\")));\n AttrSession.setAttribute(session, \"id\", rs.getInt(props.getValue(\"retID\")));\n AttrSession.setAttribute(session, \"admin\", false);\n session.setMaxInactiveInterval((3600 * 24));\n }\n } else{\n System.out.println(\"This username or password entered isn't correct\");\n res.setMessage(\"This username or password entered isn't correct\");\n res.setStatus(404);\n loginData.setAdmin(false);\n loginData.setName(\"\");\n res.setData(loginData);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }finally {\n r = objM.writeValueAsString(res);\n System.out.println(r);\n out.print(r);\n }\n\n }", "@Override\n\tpublic void loginGPGS() {\n\t}", "protected void accionUsuario() {\n\t\t\r\n\t}", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public Login() {\n inicializarUsuarios();\n }", "@Override\n\tpublic void loginGPGS() {\n\t\ttry {\n\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tgameHelper.beginUserInitiatedSignIn();\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (final Exception ex) {\n\t\t}\n\n\t}", "private void refreshSession() {\n\t\ttry {\n\t\t\tAuthenticationUtils.endSession();\n\t\t\tAuthenticationUtils.startSession(endpointUser, endpointPassword);\n\t\t} catch(Throwable e) {\n\t\t\tLOG.error(\"Error refreshing session\", e);\n\t\t}\n\t}", "private void signIn() {\n }", "public void conectar() {\n\t\tif (isOnline()) {\n\t\t\tregister_user();\n\n\t\t} else {\n\t\t\tToast notification = Toast.makeText(this,\n\t\t\t\t\t\"Activa tu conexión a internet\", Toast.LENGTH_SHORT);\n\t\t\tnotification.setGravity(Gravity.CENTER, 0, 0);\n\t\t\tnotification.show();\n\t\t\t//progreso.setVisibility(View.GONE);\n\t\t\tsetProgressBarIndeterminateVisibility(false);\n\t\t}\n\t}", "public void actionPerformed(ActionEvent arg0) {\n\r\n try {\r\n // Aplicacion Comprador\r\n if (ac != null) {\r\n System.out.println(\"Obteniendo ServiciosCompradorModelo\");\r\n sm = (ServiciosCompradorModelo) ac.getSm();\r\n System.out.println(\"Realizando login\");\r\n sm = (ServiciosCompradorModelo) sm.login((pl.getTxtCUsuario())\r\n .getText(), (pl.getTxtPassword()).getText(), true);\r\n \r\n ac.setSm((ServiciosCompradorRegistradoModelo)sm);\r\n \r\n System.out.println(\"Mostrando menu de usuario registrado\");\r\n ac.setMenuRegistrado();\r\n\r\n } else {\r\n System.out.println(\"***\\nObteniendo serviciosAccesoModelo\");\r\n \r\n sm = (ServiciosAccesoModelo) ae.getSm();\r\n System.out.println(\"Realizando login\");\r\n sm = (ServiciosAccesoModelo) sm.login((pl.getTxtCUsuario()).getText(),\r\n (pl.getTxtPassword()).getText(), false);\r\n \r\n if (sm instanceof ServiciosAdAuxModelo) {\r\n\t\t\t\t\tae.setMenuAdAux();\r\n\t\t}else if(sm instanceof ServiciosCocinaModelo) {\r\n\t\t\tae.setMenuCocina();\t\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Que servicios tenemos?\");\r\n\t\t}\r\n \r\n ae.setSm(sm);\r\n }\r\n\r\n // Actualizamos los servicios de la aplicacion a cliente registrado\r\n pl.setVisible(false);\r\n\r\n } catch (MalformedURLException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (RemoteException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (errorConexionBD e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (errorSQL e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (NotBoundException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public boolean startSession() {\n boolean success = true;\n if (sc == null) {\n sc = new Scanner(System.in);\n }\n if (sqlMngr == null) {\n sqlMngr = SQLController.getInstance();\n }\n try {\n success = sqlMngr.connect(this.getCredentials());\n } catch (ClassNotFoundException e) {\n success = false;\n System.err.println(\"Establishing connection triggered an exception!\");\n e.printStackTrace();\n sc = null;\n sqlMngr = null;\n }\n return success;\n }", "public void ligar() {\n\t\t\n\t\ttry {\n\t\t\tthis.sistemaOperacional.iniciarSistema();\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Nao foi possivel iniciar o sistema:\");\n\t\t\tSystem.out.println(\"\\t\" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public OtrosUsuarios(int sesID) {\n initComponents();\n this.sesID = sesID;\n Conexion sql = new Conexion();\n sql.consulta(tabla, \"select Usuario, Inicio from seleccionarUsuarios\");\n }", "public Sessio getSessio() {\n return sessio;\n }", "@Override\n public void run() {\n User user = new UserSessionDataSource(MainActivity.this).SelectTableUser();\n Grua grua = new GruaSessionDataSource(MainActivity.this).SelectTableUser();\n if(user.getId() == -1)\n return;\n Toast.makeText(getApplicationContext(),\"Entrando en modo desconectado\", Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(MainActivity.this, InitActivity.class);\n intent.putExtra(Register.JSON_USER, user.toJSON());\n intent.putExtra(Register.JSON_GRUA, grua.toJSON());\n startActivity(intent);\n }", "public interface SessionManager {\n void getSession(String request);\n}", "private void iniciar() {\r\n\t\tprincipal = new Principal();\r\n\t\tgestionCientificos=new GestionCientificos();\r\n\t\tgestionProyectos=new GestionProyectos();\r\n\t\tgestionAsignado= new GestionAsignado();\r\n\t\tcontroller= new Controller();\r\n\t\tcientificoServ = new CientificoServ();\r\n\t\tproyectoServ = new ProyectoServ();\r\n\t\tasignadoA_Serv = new AsignadoA_Serv();\r\n\t\t\r\n\t\t/*Se establecen las relaciones entre clases*/\r\n\t\tprincipal.setControlador(controller);\r\n\t\tgestionCientificos.setControlador(controller);\r\n\t\tgestionProyectos.setControlador(controller);\r\n\t\tgestionAsignado.setControlador(controller);\r\n\t\tcientificoServ.setControlador(controller);\r\n\t\tproyectoServ.setControlador(controller);\r\n\t\t\r\n\t\t/*Se establecen relaciones con la clase coordinador*/\r\n\t\tcontroller.setPrincipal(principal);\r\n\t\tcontroller.setGestionCientificos(gestionCientificos);\r\n\t\tcontroller.setGestionProyectos(gestionProyectos);\r\n\t\tcontroller.setGestionAsignado(gestionAsignado);\r\n\t\tcontroller.setCientificoService(cientificoServ);\r\n\t\tcontroller.setProyectoService(proyectoServ);\r\n\t\tcontroller.setAsignadoService(asignadoA_Serv);\r\n\t\t\t\t\r\n\t\tprincipal.setVisible(true);\r\n\t}", "private ServicioLogin() {\n super();\n }", "private void regOnlineUser(LfwSessionBean sb, HttpServletRequest request)\n/* */ throws BusinessException\n/* */ {\n/* 522 */ String clientIP = HttpUtil.getIp();\n/* 523 */ String sessionid = request.getSession().getId();\n/* 524 */ getUserBill().regOnlineUser(sb, sessionid, clientIP);\n/* */ }", "public void selecao () {}", "public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic void execute() {\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\r\n\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\tLOG.debug(String.format(\"Entering AbstractAuthenticator, userid: %s\", ssoUser!=null?ssoUser.getUserName():\"null\"));\r\n\t\t}\r\n\t\tmapHeaderToUserProfileMap();\r\n\r\n\t\tif (AuthenticatorHelper.isVAPLoggedIn(request)) {\r\n\t\t\tString userIdentifier = (String)userProfile.get(AuthenticationConsts.KEY_USER_NAME);\r\n\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\tLOG.debug(String.format(\"User is Logged in, user: %s\", userIdentifier));\r\n\t\t\t}\r\n\t\t\tif (AuthenticatorHelper.isForceCleanupSession(request)) {\r\n\t\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\t\tLOG.debug(String.format(\"Force session clean up, userid: %s\", userIdentifier));\r\n\t\t\t\t}\r\n\t\t\t\tAuthenticatorHelper.cleanupSession(request);\r\n\t\t\t} else if (isDiffUser()) {\r\n\t\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\t\tLOG.debug(String.format(\"Different User, userid: %s\", userIdentifier));\r\n\t\t\t\t}\r\n\t\t\t\tuserProfile.put(AuthenticationConsts.KEY_LAST_LOGIN_DATE,\r\n\t\t\t\t\t\t\t\tnew Date());\r\n\t\t\t\tAuthenticatorHelper.cleanupSession(request);\r\n\t\t\t} else if (isUserRecentUpdated()) {\r\n\t\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\t\tLOG.debug(String.format(\"User is updated, userid: %s\", userIdentifier));\r\n\t\t\t\t}\r\n\t\t\t\t// not cleanup session per CR 86\r\n\t\t\t\t//AuthenticatorHelper.cleanupSession(request);\r\n\t\t\t} else if (AuthenticatorHelper.isForceInitSession(request)) {\r\n\t\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\t\tLOG.debug(String.format(\"Force initSession tag found, userid: %s\", userIdentifier));\r\n\t\t\t\t}\r\n\t\t\t\t// not cleanup session per CR 86\r\n\t\t\t\t//AuthenticatorHelper.cleanupSession(request);\r\n\t\t\t} else if (AuthenticatorHelper.isSiteChanged(request)) {\r\n\t\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\t\tLOG.debug(String.format(\"Site is changed, userid: %s\", userIdentifier));\r\n\t\t\t\t}\r\n\t\t\t\t// not cleanup session per CR 86\r\n\t\t\t\t//AuthenticatorHelper.cleanupSession(request);\r\n\t\t\t} else {\r\n\t\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\t\tLOG.debug(String.format(\"Other Cases, userid: %s\", userIdentifier));\r\n\t\t\t\t}\r\n\t\t\t\t// keep the current HTTP header user profile\r\n\t\t\t\tMap httpHeaderUserProfile = userProfile;\r\n\r\n\t\t\t\t// fetch userProfile from session, only need to refresh this user profile map\r\n\t\t\t\tuserProfile = (Map)request.getSession()\r\n\t\t\t\t\t\t\t\t\t\t .getAttribute(AuthenticationConsts.USER_PROFILE_KEY);\r\n\t\t\t\t// get groups from userProfile\r\n\t\t\t\tList<String> sessionGroups = (List<String>)userProfile.get(AuthenticationConsts.KEY_USER_GROUPS);\r\n\t\t\t\trefreshLocaleRelatedGroups(sessionGroups);\r\n\r\n\t\t\t\t// refresh user timezone\r\n\t\t\t\trefreshUserTimezone(userProfile, httpHeaderUserProfile);\r\n\r\n\t\t\t\tuserName = (String)userProfile.get(AuthenticationConsts.KEY_USER_NAME);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\tLOG.debug(String.format(\"User is logging in as: %s\", ssoUser!=null?ssoUser.getUserName():\"null\"));\r\n\t\t\t}\r\n\t\t\tuserProfile.put(AuthenticationConsts.KEY_LAST_LOGIN_DATE,\r\n\t\t\t\t\t\t\tnew Date());\r\n\t\t}\r\n\r\n\r\n\t\t// Set the SPFAuthType attribute before calling group service so the group definitions can\r\n\t\t// use its value.\r\n\t\tsetAuthTypeProfileAttribute();\r\n\r\n\t\ttry {\r\n\t\t\t// Retrieve user group from UGS to SSOUser\r\n\t\t\t// and synchronous to VAP user, and return the\r\n\t\t\t// updated vap user\r\n\t\t\tUser updatedVAPUser = syncVAPUser();\r\n\t\t\tsaveUserProfile2Session(updatedVAPUser);\r\n\t\t\tuserName = ssoUser.getUserName();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tuserName = null;\r\n\t\t\tLOG.error(\"Invoke Authenticator.execute error: \" + ex.getMessage(),\r\n\t\t\t\t\t ex);\r\n\t\t\trequest.getSession()\r\n\t\t\t\t .setAttribute(AuthenticationConsts.SESSION_ATTR_SSO_ERROR,\r\n \"1\");\r\n\t\t\tRequestContext.getThreadInstance()\r\n\t\t\t\t\t\t .getDiagnosticContext()\r\n\t\t\t\t\t\t .setError(ErrorCode.AUTH001, ex.toString());\r\n\t\t}\r\n\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\tLOG.debug(String.format(\"Time spent on AbstractAuthenticator.execute (sec): %s for user: %s\", (System.currentTimeMillis()-startTime)/1000, userName));\r\n\t\t}\r\n\t}", "public Login() {\n initComponents();\n KiemTraKN();\n }", "public Cliente iniciarSesion(Modelo mod, Ventana vis) {\n\t\tString dniUsuario = vis.panelLogin.textFieldDNILogin.getText();\n\t\tString contraUsuario = encriptarContra(vis.panelLogin.passFieldContraseniaLogin.getPassword());\n\t\tString sql = \"select * from cliente where DNI=\\\"\" + dniUsuario + \"\\\"\";\n\t\tResultSet rs = mod.db.hacerPeticion(sql);\n\t\ttry {\n\t\t\tif (rs.next()) {\n\t\t\t\tString contraBase = rs.getString(\"Contraseña\");\n\t\t\t\tif (contraBase.equals(contraUsuario)) {\n\t\t\t\t\tactualizarLabelUsuario(vis,rs.getString(\"Nombre\"));\n\t\t\t\t\treturn (new Cliente(rs.getString(\"DNI\"), rs.getString(\"Nombre\"), rs.getString(\"Apellidos\"), rs.getDate(\"Fecha_nac\"), rs.getString(\"Sexo\").toCharArray()[0], rs.getString(\"Contraseña\")));\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Contraseña incorrecta\", null, JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Este usuario no esta registrado, por favor introduzca sus datos a la izquierda\", null, JOptionPane.INFORMATION_MESSAGE);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\npublic void setSession(Map<String, Object> arg0) {\n\t\r\n}", "@Override\n\tpublic Sesion iniciarSesion(Aplicacion api) {\n\t\treturn new SesionUsuarios(this, api);\n\t}", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "private static void startNewSession(final long timestamp) {\n openSession();\n\n sessionId = timestamp;\n //Log.i(\"sessionId\",\"updated at startNewSession()\");\n SharedPreferences preferences = CommonUtils.getSharedPreferences(context);\n preferences.edit().putLong(Constants.Z_PREFKEY_LAST_END_SESSION_ID, sessionId).apply();\n\n logEvent(START_SESSION_EVENT, null, null, timestamp, false);\n logWorker.post(new Runnable() {\n @Override\n public void run() {\n sendEventToServer(START_SESSION_EVENT, timestamp, Constants.Z_START_SESSION_EVENT_LOG_URL, true);\n }\n });\n\n }", "SessionManager get();", "public void startSession() throws UnsupportedEncodingException\r\n {\n clientReader.setStopped(false);\r\n shellOutputWriter.setStopped(false);\r\n // shellErrorWriter.setStopped(false);\r\n shellExitListener.setStopped(false);\r\n tunnelsHandler.getConnection().setControlInputStream(connection.getTunnelControlInputStream());\r\n tunnelsHandler.getConnection().setControlOutputStream(connection.getTunnelControlOutputStream());\r\n tunnelsHandler.getConnection().setDataInputStream(connection.getMultiplexedConnectionInputStream());\r\n tunnelsHandler.getConnection().setDataOutputStream(connection.getMultiplexedConnectionOutputStream());\r\n // socksTunnelsHandler.getConnection().setControlOutputStream(connection.getSocksControlOutputStream());\r\n // socksTunnelsHandler.getConnection().setControlInputStream(connection.getSocksControlInputStream());\r\n // socksTunnelsHandler.getConnection().setDataInputStream(connection.getMultiplexedConnectionInputStream());\r\n // socksTunnelsHandler.getConnection().setDataOutputStream(connection.getMultiplexedConnectionOutputStream());\r\n pingService.setInputStream(connection.getPingInputStream());\r\n pingService.setOutputStream(connection.getPingOutputStream());\r\n // tunnelHandler.getConnection().start();\r\n }", "@Override\n protected void onStart() {\n super.onStart();\n sendToLogin();\n }", "public void sessionStarted(InetAddress inetAddr, boolean isTCP, boolean isText)\n {\n super.sessionStarted(inetAddr, isTCP, isText);\n super.clearTerminateSession();\n }", "private void entrar() {\n\n Connection con = Conexao.abrirConexao();\n UsuarioDAO ud = new UsuarioDAO(con);\n String login = txtLOGIN.getText();\n String senha = txtSENHA.getText();\n String nome;\n\n if (txtLOGIN.getText().equals(\"admin\")) {\n nome = \"Administrador\";\n } else {\n nome = ud.retornarUsuario(login);\n }\n\n if (/*ud.logar(login, senha) == 0 ||*/ login.equals(\"admin\") && senha.equals(\"admin\")) {\n lblERRO.setText(\"\");\n JFrame principal = new frm_PRINCIPAL(login, nome);\n this.dispose();\n principal.setVisible(true);\n\n } else {\n\n lblERRO.setText(\"Usuário e/ou Senha Inválidos!\");\n }\n Conexao.fecharConexao(con);\n }", "@Override\r\n\tpublic boolean doSSOLogin(HttpServletRequest request,HttpServletResponse response, String loginname) throws Exception {\n\t\tboolean isSuccess = true;\r\n//\t\tPerson p = (Person) WQL.getWO(WQLNames.QSYSRL0001)\r\n//\t\t\t\t\t\t\t\t.addParam(\"flag\", \"1\")\r\n//\t\t\t\t\t\t\t\t.addParam(\"loginname\", loginname)\r\n//\t\t\t\t\t\t\t\t.process()\r\n//\t\t\t\t\t\t\t\t.getObject(0, Person.class);\r\n//\t\tif(null!=p){\r\n//\t\t\t//登录成功\r\n//\t\t\tSessionUser su = new SessionUser(p);\r\n//\t\t\trequest.getSession().removeAttribute(WDKConstant.SESSION_USER);\r\n//\t\t\trequest.getSession().setAttribute(WDKConstant.SESSION_USER, su);\r\n//\t\t\tSessionListener.addSessionUser(request.getSession(), su);\r\n//\t\t\tisSuccess = true;\r\n//\t\t}else{\r\n//\t\t\tisSuccess = false;\r\n//\t\t}\r\n\t\t\r\n\t\treturn isSuccess;\r\n\t}", "public static Result register(){\n Skier loggedInSkier=Session.register();\n if(loggedInSkier!=null) {\n login(loggedInSkier);\n return renderHome(loggedInSkier);\n }else\n return badRequest(index.render(\"Something went wrong!\"));\n }", "public void enviaMensaje(Usuario usuario, Usuario acusado,\n Comentario c, Puesto pst) {\n /* La cuenta que se usa para autenticarse en el servidor de correo. */\n try {\n LinkedList<Usuario> us = new LinkedList<Usuario>(\n new FabricaControladorJpa().obtenerControladorJpaUsuario()\n .findUsuarioEntities());\n Usuario admin = null;\n for (Usuario u : us) {\n if (u.getEsAdministrador()) {\n admin = u;\n break;\n }\n }\n final String usuarioCorreo;\n final String contrasena;\n String direccion;\n Session sesionEmail;\n String nombre;\n String archivoPropiedadesAutenticacion =\n \"WEB-INF/autenticacion-correo.properties\";\n FacesContext facesContext = FacesContext.getCurrentInstance();\n ExternalContext externalContext = facesContext.getExternalContext();\n try (InputStream is = externalContext\n .getResourceAsStream(archivoPropiedadesAutenticacion)) {\n Properties prop = new Properties();\n prop.load(is);\n\n usuarioCorreo = prop.getProperty(\"usuario\");\n contrasena = prop.getProperty(\"contrasena\");\n nombre = prop.getProperty(\"nombre\");\n direccion = prop.getProperty(\"correo\");\n }\n\n String archivoPropiedadesCorreo = \"WEB-INF/correo.properties\";\n try (InputStream is = externalContext\n .getResourceAsStream(archivoPropiedadesCorreo)) {\n Properties prop = new Properties();\n prop.load(is);\n Authenticator autenticador =\n new Authenticator() {\n @Override\n protected PasswordAuthentication\n getPasswordAuthentication() {\n PasswordAuthentication pa\n = new PasswordAuthentication(usuarioCorreo,\n contrasena);\n return pa;\n }\n };\n sesionEmail = Session.getInstance(prop, autenticador);\n }\n\n MimeMessage mensaje = new MimeMessage(sesionEmail);\n\n String remitente = String.format(\"%s <%s>\",\n \"Administracion-auto\", direccion);\n String recipiente = String.format(\"%s <%s>\",\n \"Administracion-auto\",\n admin.getCorreoElectronico() + \"ciencias.unam.mx\");\n mensaje.setFrom(remitente);\n mensaje.addRecipients(Message.RecipientType.TO, recipiente);\n mensaje.setSubject(\"SCPFC - Comentario inapropiado u ofensivo\");\n\n String textoMensaje = \"El mensaje con id <\"\n + c.getId()\n + \"> de fecha <\"\n + c.getFecha()\n + \"> del usuario <\"\n + acusado.getNombre()\n + \"> ha sido considerado ofensivo por el usuario <\"\n + usuario.getNombre()\n + \">\\n\\nREVISA EL COMENTARIO\\n\";\n String uri = ((HttpServletRequest) externalContext.getRequest())\n .getRequestURI();\n mensaje.setText(textoMensaje\n + obtenerDireccionBase()\n + uri\n + \"?id=\"\n + pst.getId());\n Transport.send(mensaje);\n FacesMessage facesMessage\n = new FacesMessage(FacesMessage.SEVERITY_INFO,\n \"REPORTE ENVIADO\", \"\");\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\n } catch (MessagingException e) {\n FacesMessage facesMessage\n = new FacesMessage(FacesMessage.SEVERITY_ERROR,\n \"ERROR GRAVE\", e.getMessage());\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\n } catch (Exception k) {\n FacesMessage facesMessage\n = new FacesMessage(FacesMessage.SEVERITY_ERROR,\n \"ERROR GRAVE\", k.getMessage());\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\n }\n }", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "public static void loadSessions() {\n try (Connection con = getConnection()) {\n String query = \"SELECT `usermask`,`username` FROM \" + mysql_db + \".`sessions`\";\n try (PreparedStatement pst = con.prepareStatement(query)) {\n ResultSet r = pst.executeQuery();\n while (r.next()) {\n Bot.addUserSession(r.getString(\"usermask\"), r.getString(\"username\"));\n }\n pst.close();\n con.close();\n }\n con.close();\n } catch (SQLException e) {\n Logger.logMessage(LOGLEVEL_IMPORTANT, \"SQL Error in 'loadSessions()': \" + e.getMessage());\n }\n }", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tL.i(Constants.SERVICE + \" sign in \"\r\n\t\t\t\t\t\t\t\t+ Constants.SERVER_IP + \" \"\r\n\t\t\t\t\t\t\t\t+ Constants.SERVER_PORT);\r\n\t\t\t\t\t\tsmack.connect(Constants.SERVER_IP,\r\n\t\t\t\t\t\t\t\tConstants.SERVER_PORT, Constants.SERVICE);\r\n\r\n\t\t\t\t\t\tfinal String result = smack.regist(usernameStr, passwordStr);\r\n\t\t\t\t\t\tL.i(\"sign in \" + result);\r\n\t\t\t\t\t\trunOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\tloading.dismiss();\r\n\t\t\t\t\t\t\t\tif(result.equals(\"0\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this, \"Error\");\r\n\t\t\t\t\t\t\t\tif(result.equals(\"1\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this,\r\n\t\t\t\t\t\t\t\t\t\t\t\"Sign in successfully\");\r\n\t\t\t\t\t\t\t\tif(result.equals(\"2\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this, \"This user exists\");\r\n\t\t\t\t\t\t\t\tif(result.equals(\"3\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this, \"Error\");\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\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t}", "private static void iniciarAmbienteDeUsuario() {\r\n\r\n\t\tnew AmbienteParaUsuarioEscolherGerenciamento(user);\r\n\r\n\t}", "protected Map<String, String> startSession() throws IOException {\n return startSession(null);\n }", "private void _login() throws SessionException {\n\n \n String servergroup = (String) this._argTable.get(CMD.SERVERGROUP);\n String filetype = (String) this._argTable.get(CMD.FILETYPE);\n String user = (String) this._argTable.get(CMD.USER);\n String password = (String) this._argTable.get(CMD.PASSWORD);\n this._client = new Client(this._domainFile);\n \n //if (servergroup == null) {\n // servergroup = this._client.getDefaultGroup();\n // if (servergroup != null)\n // this._argTable.put(CMD.SERVERGROUP, servergroup);\n //}\n if (servergroup != null)\n {\n if (!this._client.isGroupDefined(servergroup))\n throw new SessionException(\"Group \" + servergroup\n + \" not found in domain!\", Constants.DOMAINLOOKUPERR); \n }\n \n //if (servergroup != null && !l.contains(servergroup))\n // throw new SessionException(\"Group \" + servergroup\n // + \" not found in domain!\", Constants.DOMAINLOOKUPERR);\n if (filetype != null)\n {\n \t this._client.login(user, password, servergroup, filetype);\n }\n else\n {\n \t this._client.login(user, password);\n \t if (servergroup != null)\n \t this._client.setDefaultGroup(servergroup);\n }\n \n if (this._argTable.get(CMD.SERVERGROUP) == null)\n \t this._argTable.put(CMD.SERVERGROUP, \n \t this._client.getDefaultGroup());\n \n }", "private void controladorLogin(Controlador controlador){\n this.contLogin = controlador.getLogin();\n login.setControlContinuar(contLogin);\n }", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n session = new SessionManagement(getApplicationContext());\n\n redirect();\n\n // close this activity\n finish();\n }", "public void login(){\n JSONObject clientInfo = new JSONObject();\n try{\n clientInfo.put(\"username\", mUsername);\n clientInfo.put(\"password\", mPassword);\n clientInfo.put(\"deviceID\", getDeviceID());\n clientInfo.put(\"ipAddress\", getClientIP());\n mSocket.emit(\"login\", clientInfo);\n }catch(JSONException ex){\n throw new RuntimeException(ex);\n }\n }", "public login() {\r\n\t\tsuper();\r\n\t}", "public void setupSession(UserMstEx userMstEx) {\n\n setUserSeq(userMstEx.getUserSeq());\n setUserAccount(userMstEx.getUserAccount());\n setUserName(userMstEx.getUserName());\n setUserLocale(userMstEx.getUserLocale());\n setUserTimezone(userMstEx.getUserTimezone());\n setUserCurrency(userMstEx.getUserCurrency());\n setUserSubMenuRole(userMstEx.getUserSubMenuRole());\n\n }", "static void beginNewSession() {\n SESSION_ID = null;\n Prefs.INSTANCE.setEventPlatformSessionId(null);\n\n // A session refresh implies a pageview refresh, so clear runtime value of PAGEVIEW_ID.\n PAGEVIEW_ID = null;\n }", "public boolean startSession() {\n while(true){\n try{\n if (currentUser != null){\n return true;\n }\n\n String id = ui.readCard();\n String pin = ui.readPin();\n if(BankUser.getUser(id, pin) != null) {\n currentUser = BankUser.getUser(id, pin);\n ui.displayMessage(\"Hello \" + currentUser.getName());\n return true;\n } else {\n ui.displayError(\"User id or pin not found. Try again\");\n }\n } catch (Exception e){\n ui.displayError(\"Somethinng went wrong. Please try again.\");\n }\n\n }\n\n }", "Session getSession();", "Session getSession();", "public void login() {\n String line = null;\n String ID = null;\n String Password = null;\n \n try {\n client_PW.println(\"--------------Welcom to chat-------------\");\n client_PW.println(\"Sign in or Sign up? : <i/u>\");\n client_PW.flush();\n\n line = client_BR.readLine();\n if(line.equals(\"i\")) {\n // sign in\n clearScreen(client_PW);\n client_PW.println(\"Enter ID : \");\n client_PW.flush();\n ID = client_BR.readLine();\n client_PW.println(\"Enter PassWord : \");\n client_PW.flush();\n Password = client_BR.readLine();\n\n if(!mem_id.containsKey(ID)) {\n clearScreen(client_PW);\n client_PW.println(\"Can't find such ID\");\n client_PW.flush();\n login();\n } else {\n if(!mem_id.get(ID).equals(Password)) {\n clearScreen(client_PW);\n client_PW.println(\"Incorrect password!\");\n client_PW.flush();\n login();\n } else {\n this.client_ID = ID;\n // 다른 member들에게 현재 client가 접속했다고 공지\n broadcast(client_ID + \"님이 접속했습니다.\",client_ID);\n // 서버의 콘솔창에 현재 client의 ID와 접속한 ip주소 표시\n System.out.println(client_ID+\" 회원이 접속했습니다.\");\n System.out.println(\"IP : \" + client_IP.getHostAddress());\n client_PW.flush();\n help_menu();\n }\n }\n\n \n } else if(line.equals(\"u\")) {\n // sign up\n clearScreen(client_PW);\n client_PW.println(\"Enter ID : \");\n client_PW.flush();\n ID = client_BR.readLine();\n client_PW.println(\"Enter PassWord : \");\n client_PW.flush();\n Password = client_BR.readLine();\n\n mem_id.put(ID, Password);\n\n this.client_ID = ID;\n // 다른 member들에게 현재 client가 접속했다고 공지\n broadcast(client_ID + \"님이 접속했습니다.\",client_ID);\n // 서버의 콘솔창에 현재 client의 ID와 접속한 ip주소 표시\n System.out.println(client_ID+\" 회원이 접속했습니다.\");\n System.out.println(\"IP : \" + client_IP.getHostAddress());\n client_PW.flush();\n help_menu();\n \n\n } else {\n clearScreen(client_PW);\n client_PW.println(\"invalid command\");\n login();\n }\n } catch (Exception e) {\n System.out.print(e);\n }\n }", "@Override\n\tpublic void registrarEntrada() {\n\n\t}", "public abstract void endUserSession();", "public telalogin() {\n initComponents();\n conexao = ModuloConexao.conector();\n // a linha abaixo serve de apoio ao status da conexao\n // System.out.println(conexao);\n\n }", "public void sessionToken(byte[] sesTok) {\n this.sesTok = sesTok;\n }", "private LogIn() {}", "public synchronized void agregarUsuario(int idUsuario, ISesion sesion) {\n SessionFactory sf = null;\n try {\n sf = HibernateUtil.getSESSIONFACTORY();\n sf.getCurrentSession().beginTransaction();\n Usuario u;\n if (usuariosConectados.containsKey(idUsuario)) {\n LOGGER.debug(\"El usuario ya posee una sesion. Creando otra.\");\n u = usuariosConectados.get(idUsuario);\n u.agregarSesion(sesion);\n } else {\n LOGGER.debug(\"Creando sesion.\");\n IControladorUsuario controladorUsuario = new ControladorUsuario();\n u = controladorUsuario.getUsuario(idUsuario);\n u.agregarSesion(sesion);\n usuariosConectados.put(idUsuario, u);\n }\n u.exitoAlLogear(sesion.getKey());\n } catch (Exception e) {\n sesion.notificarError(\"Se produjo un error al intentar logear el usuario con el websocket.\");\n LOGGER.error(\"Error al iniciar sesion WebSocket\", e);\n } finally {\n try {\n sf.getCurrentSession().getTransaction().commit();\n } catch (Exception e2) {\n LOGGER.error(\"Error al cerrar sesion sesion\", e2);\n }\n }\n }", "public abstract void setIdSession(String id_session);", "@PostConstruct\r\n public void init() {\n HttpSession session = SessionUtil.getSession();\r\n String email = (String) session.getAttribute(\"email\");\r\n user = userFacade.users(email);\r\n }", "@Override\n public void run() {\n if (accion) {\n InsertarAsignacionServidorKRADAC();\n } else {\n InsertarLibreServidorKRADAC();\n }\n }", "@Override\n protected void onStart() {\n super.onStart();\n BugSenseHandler.startSession(this);\n }", "public void startSession(){\n sessionID = client.startSession();\n \n //Get system temporary files path\n String temporaryPath = System.getProperty(\"java.io.tmpdir\").replaceAll(\"\\\\\\\\\",\"/\");\n \n //If temporary file path does not end with /, add it\n if(!temporaryPath.endsWith(\"/\"))\n temporaryPath = temporaryPath + \"/\";\n \n //Create session directory\n sessionDirectory = new File(temporaryPath+sessionID);\n sessionDirectory.mkdir();\n \n }", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "public void sendLogin() {\n WsMessage.LoginMsg_Req loginMsg_req = new WsMessage.LoginMsg_Req();\n loginMsg_req.token = Util.getMConfig(NTVDefine.KEY_MCONF_GAME_TICKET);\n loginMsg_req.userid = Util.getMConfig(NTVDefine.KEY_MCONF_GAME_OPENID);\n loginMsg_req.username = Util.getMConfig(NTVDefine.KEY_MCONF_GAME_USERNAME);\n loginMsg_req.usericon = \"\";\n loginMsg_req.biz = getBizByGameid(Util.getMConfig(NTVDefine.KEY_MCONF_GAME_GAMEID));\n loginMsg_req.env = Util.getString(NTVDefine.KCONF_STRING_CHAT_ENV);\n loginMsg_req.chatid = this.chatid;\n this.wsManager.sendMessage(loginMsg_req.type, loginMsg_req.toString());\n }", "public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}", "public void login() {\n\t\tloggedIn = true;\n\t}", "public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "public void config(Session ses,String sender,String addr, String subject, String text) {\n\t\tthis.ses=ses;\n\t\tthis.sender=sender;\n\t\tthis.addr=addr;\n\t\tthis.subject=subject;\n\t\tthis.text=text;\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 }", "private void masuk(){\n Preferences.setLoggedInUser(getBaseContext(),Preferences.getRegisteredUser(getBaseContext()));\n Preferences.setLoggedInStatus(getBaseContext(), true);\n startActivity(new Intent(getBaseContext(),MainActivity.class));\n finish();\n }", "public JanelaLogin() {\n \t\n \tConexao c = new Conexao();\n \t\n \t\n initComponents();\n }", "public static void sair() throws AcessoException {\r\n //Impede de mais de um administrador\r\n if(usuario == null) {\r\n throw new AcessoException(\"O administrador não está logado.\");\r\n }\r\n //Saída\r\n usuario = null;\r\n //Define data e hora de saída\r\n dataHoraSai = new java.util.Date();\r\n }" ]
[ "0.68254215", "0.63250846", "0.631813", "0.6190182", "0.61388546", "0.61384714", "0.61048543", "0.60761863", "0.5894619", "0.581511", "0.5800748", "0.5779324", "0.5752959", "0.5752608", "0.5711177", "0.56961906", "0.5684952", "0.5675943", "0.56530195", "0.56292087", "0.5613676", "0.5592182", "0.55882084", "0.55821055", "0.5569076", "0.5568572", "0.5564923", "0.5552848", "0.55384946", "0.5532338", "0.5530074", "0.55250967", "0.5519833", "0.55039936", "0.54997766", "0.54966676", "0.5495594", "0.5494903", "0.5490531", "0.5488289", "0.5485336", "0.54817265", "0.5469656", "0.54623485", "0.54583865", "0.5456343", "0.54545707", "0.5444276", "0.5431614", "0.5429288", "0.54246795", "0.5424079", "0.54211736", "0.5411641", "0.54110193", "0.5409807", "0.5406649", "0.5402558", "0.5386312", "0.5382016", "0.5369316", "0.5367894", "0.53645664", "0.53640753", "0.53616774", "0.5354971", "0.5353892", "0.53529805", "0.5352228", "0.5346798", "0.5334868", "0.5333923", "0.5332243", "0.53306144", "0.5330244", "0.5329497", "0.53269535", "0.5323055", "0.5323055", "0.5323005", "0.531801", "0.53106874", "0.5308626", "0.53074867", "0.530114", "0.52955836", "0.5294145", "0.52859616", "0.5282664", "0.5279428", "0.52783215", "0.52725655", "0.52667826", "0.5263356", "0.5263071", "0.5261819", "0.52594167", "0.52503914", "0.52500844", "0.52482235", "0.5246426" ]
0.0
-1
si hay un error se dehace la transaccion y nos muestra el error
private void manejaExcepcion(HibernateException he) throws HibernateException { tx.rollback(); throw new HibernateException("Ocurrió un error en la capa de acceso a datos", he); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void checkError() throws IOException{\n if (transactionFailure == null) {\n FacesContext.getCurrentInstance().getExternalContext().\n redirect(\"converter.xhtml\");\n }\n }", "public void errorWhenCommitting();", "private void verificarCodigoErro() {\n\t\ttry {\n\t\t\tif (resultado.getStatus().isCodigoErro() && emailReplicacaoServico != null) {\n\t\t\t\tExecucaoReplicacaoUtil.log(\"Enviando e-mail de erro.\");\n\t\t\t\tenviarEmailErro();\n\t\t\t}\n\t\t} catch (BancoobException e) {\n\t\t\tExecucaoReplicacaoUtil.log(e.getMessage());\n\t\t}\n\t}", "@Override\n protected void adicionarLetrasErradas() {\n }", "public void guardarTransferenteAlcabala(RaTransferenteAlcabala raTransferenteAlcabala)throws Exception;", "@Override\r\n\tprotected void processError() {\n\t\tsuper.processError();\r\n\t\tshowToast(error_generico_process);\r\n\t}", "private void sendOldError(Exception e) {\n }", "private void obtieneError(int error) throws Excepciones{\n String[] err = {\n \"ERROR DE SYNTAXIS\",\n \"PARENTESIS NO BALANCEADOS\",\n \"NO EXISTE EXPRESION\",\n \"DIVISION POR CERO\"\n };\n throw new Excepciones(err[error]);\n}", "private void error() {\n this.error = true;\n this.clients[0].error();\n this.clients[1].error();\n }", "@Override\n public IData transferException(Throwable e, IData input) throws Exception\n {\n try\n {\n\n input.put(\"UMCP_OPR_NUMB\", input.getString(\"OPR_NUMB\", input.getString(\"TRANS_ID\")));\n\n IData users = UcaInfoQry.qryUserMainProdInfoBySn(input.getString(\"SERIAL_NUMBER\"));\n\n String brandCode = users.getString(\"BRAND_CODE\", \"\");\n if (\"G001\".equals(brandCode))\n {\n brandCode = \"01\";\n }\n else if (\"G010\".indexOf(brandCode) > -1)\n {\n brandCode = \"03\";\n }\n else if (\"G002_G003_G004_G006_G015_G021_G022_G023\".indexOf(brandCode) > -1)\n {\n brandCode = \"02\";\n }\n else\n {\n brandCode = \"09\";\n }\n input.put(\"UMCP_BRAND\", brandCode);\n\n if (!\"\".equals(input.getString(\"UMCP_E_SP_CODE\", \"\")))\n {\n\n input.put(\"SP_CODE\", input.getString(\"UMCP_S_SP_CODE\", \"\"));\n input.put(\"BIZ_CODE\", input.getString(\"UMCP_S_BIZ_CODE\", \"\"));\n input.put(\"SERV_TYPE\", input.getString(\"UMCP_S_SERV_TYPE\", \"\"));\n input.put(\"OPER_CODE\", input.getString(\"UMCP_OPER_CODE\", \"\"));\n input.put(\"BIZ_TYPE_CODE\", input.getString(\"UMCP_BIZ_TYPE_CODE\", \"\"));\n input.put(\"START_DATE\", input.getString(\"UMCP_START_DATE\", \"\"));\n input.put(\"END_DATE\", input.getString(\"UMCP_END_DATE\", \"\"));\n input.put(\"BILL_TYPE\", input.getString(\"UMCP_BILL_TYPE\", \"\"));\n }\n\n String[] errorMessage = e.getMessage().split(\"●\");\n input.put(\"X_RSPTYPE\", \"2\");// add by ouyk\n input.put(\"X_RSPCODE\", \"2998\");// add by ouyk\n input.put(\"X_RESULTCODE\", errorMessage[0]);\n input.put(\"X_RSPCODE\", errorMessage[0]);\n input.put(\"X_RESULTINFO\", errorMessage[1]);\n input.put(\"X_RSPDESC\", errorMessage[1]);\n }\n catch (Exception ex)\n {\n try\n {\n String[] errorMessage = e.getMessage().split(\"`\");\n input.put(\"X_RESULTCODE\", errorMessage[0]);\n input.put(\"X_RSPCODE\", errorMessage[0]);\n input.put(\"X_RESULTINFO\", errorMessage[1]);\n input.put(\"X_RSPDESC\", errorMessage[1]);\n }\n catch (Exception ex2)\n {\n input.put(\"X_RESULTCODE\", \"0\");\n input.put(\"X_RSPCODE\", \"0000\");\n input.put(\"X_RESULTINFO\", \"其它错误\");\n input.put(\"X_RSPDESC\", \"其它错误\");\n }\n\n }\n\n return input;\n }", "@Override\n\tpublic void transformarse() throws ErrorNoCumpleReqTrans, ErrorNoHayMasTrans {\n\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public boolean reducir_log(){\n\t\t//se carga la consulta a una varible tipo string\n\t\tString query = \"exec sp_reducir_log_de_transacciones\";\n\t\t//variable distancia a la clase connection\n\t\tConnection con = new Connexion().conexion();\n //se declara la variable que prepara el query primero nula\n\t\tPreparedStatement pstmt = null;\n\t //intenta o carga el error \t\n\t\t\n\t\t\n\t\t\t\n\t\ttry {\n\t \t//se inicializa ala transaccion en falto hasta el commit\n\t\t\tcon.setAutoCommit(false);\n\t\t\t//prepara la coneccion con el query\n\t\t\tpstmt = con.prepareStatement(query);\n\t\t\t//ejecuta el query \n\t\t\tpstmt.execute();\n //si se ejecuta la transaccion la marcara como verdadero \t\t\n \t\t\tcon.commit();\n\t\t\t//cacha el error\n \t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"SQLException: \" + e.getMessage());\n\t\t\tif (con != null){\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"La transacción ha sido abortada\");\n\t\t\t\t\tcon.rollback();\n\t\t\t\t} catch(SQLException ex) {\n\t\t\t\t\tSystem.out.println(ex.getMessage());\n\t\t\t\t}\n\t\t\t} \n\t\t\treturn false;\n\t\t\t\n\t\t}finally{\n\t\t\ttry {\n\t\t\t\tpstmt.close();\n\t\t\t\tcon.close();\n\t\t\t} catch(SQLException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\t\t\n\t\treturn true;\n\t}", "@Override\n public void accept(String error) {\n Toast.makeText(EtudiantSemestreActivity.this, error, Toast.LENGTH_SHORT).show();\n }", "public void resetFail() {\n borraArchivos();\n addMessage(\"Carga Cancelada\", null);\n }", "@Then(\"^Mostrara mensaje de error$\")\n\tpublic void Mostrara_mensaje_de_error() throws Throwable {\n\t System.out.println(\"El email o la contrase�a es erronea\");\n\t assert(true);\n\t}", "public void inquiryError() {\n\t\t\n\t}", "public boolean proceedOnErrors() {\n return false;\n }", "public void actualizarImagenConError() {\n\t\tentidadGrafica.actualizarImagenConError(this.valor);\n\t}", "@Override\n public void onError(Throwable error, Transaction transaction) {\n transaction = transaction;\n if (error instanceof ExpiredAccessCodeException) {\n try {\n startAFreshCharge(false);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n chargeCard();\n return;\n }\n\n dismissDialog();\n\n if (transaction.getReference() != null) {\n Toast.makeText(getActivity(), transaction.getReference() + \" concluded with error: \" + error.getMessage(), Toast.LENGTH_LONG).show();\n //mTextError.setText(String.format(\"%s concluded with error: %s %s\", transaction.getReference(), error.getClass().getSimpleName(), error.getMessage()));\n\n } else {\n Toast.makeText(getActivity(), error.getMessage(), Toast.LENGTH_LONG).show();\n // mTextError.setText(String.format(\"Error: %s %s\", error.getClass().getSimpleName(), error.getMessage()));\n }\n\n }", "public static void error()\r\n {\r\n valid=false;\r\n\r\n }", "private void errorProcess(CallbackContext callbackContext, Exception ex) {\n // Convierte el payLoad a JSON.\n Gson gson = new Gson();\n Map<String, String> exc_map = new HashMap<String, String>();\n exc_map.put(\"message\", ex.toString());\n exc_map.put(\"stacktrace\", getStackTrace(ex));\n // Convierte el payLoad a JSON.\n String jsonError = new Gson().toJson(exc_map);\n\n sendResultError(callbackContext, jsonError);\n ex.printStackTrace();\n if (callbackContext != null) {\n callbackContext.error(jsonError);\n }\n }", "public void error();", "@Override\r\n\tpublic void validarSaldo() {\n\t\tSystem.out.println(\"Transaccion exitosa\");\r\n\t}", "@Override\n\t\t\t\t\tpublic void onAddFail() {\n\t\t\t\t\t\tMZLog.e(\"J\", \"同步到购物车失败\");\n\t\t\t\t\t}", "protected void handleFailure(ACLMessage fallo){\n\t\t\tif(fallo.getSender().equals(myAgent.getAMS())){\n\t\t\t\tabrirFrame(subasta.getTituloLibro());\n\t\t\t\tguiSubasta.addMensaje(\"AMS: Este cliente (\"+fallo.getSender()+\") no es accesible o no existe\");\n\t\t\t\tSystem.out.println(\"AMS: Este cliente (\"+fallo.getSender()+\") no es accesible o no existe\");\n\t\t\t\tsubasta.eliminarParticipante(fallo.getSender());\n\t\t\t\tSystem.out.println(fallo.getSender()+\" ha sido expulsado de la sala de subastas\");\n\t\t\t\tguiSubasta.addMensaje(fallo.getSender()+\" ha sido expulsado de la sala de subastas\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"Se ha producido un error en: \"+fallo.getSender().getLocalName());\n\t\t\t\tabrirFrame(subasta.getTituloLibro());\n\t\t\t\tguiSubasta.addMensaje(\"Se ha producido un error en: \"+fallo.getSender().getLocalName());\n\t\t\t}\n\t\t}", "private static void FINtotalRondasAlcanzadas(Exception e) {\r\n\t\t// System.out.println(\"¡FIN DE JUEGO!\\n\" + e.getMessage());\r\n\t\tSystem.out.println(\"Fin de juego por \" + e.getMessage());\r\n\t}", "public boolean applyErrors() {\n\t\t/*\n\t\tdouble erreur = Math.random(); // on genere un nombre entre 0 et 1\n\t\tSystem.out.print(this.error*erreur + \"\\n\");\n\t\tif (erreur * this.error < 0.07) { // on multiplie l'erreur aleatoire par l'error de la sonde (qui sera aussi compris entre 0 et 1)\n\t\t\treturn true;\t\t\t\t// si l'erreur finle (produit des deux erreur) est inferieur a 20%\n\t\t}\n\t\treturn false;\n\t\t*/\n\t\treturn true;\n\t}", "private void mostraErrore(SQLException e) {\n String msg;\n \n msg = \"Codice Errore: \" + e.getErrorCode() + \"\\n\";\n msg += \"Messaggio: \" + e.getMessage() + \"\\n\";\n msg += \"SQLState: \" + e.getSQLState() + \"\\n\";\n\n JOptionPane.showMessageDialog(this, msg, \"Errore\", JOptionPane.ERROR_MESSAGE);\n }", "public void sendeFehlerHelo();", "@Override\n public void onFailure(Call<PontoApiRepostaServidor> call, Throwable t) {\n msgErroServidor();\n retrofitPegarEndComp(ender);\n }", "public void sendError()\n {\n \tString resultText = Integer.toString(stdID);\n \tresultText += \": \";\n\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t{\n\t\t\tresultText += registeredCourses.get(i);\n\t\t\tresultText += \" \";\n\t\t}\n\t\tresultText += \"--\";\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(semesterNum);\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(0); \n\t\tresultText += \" \";\n\t\tprintResults.writeResult(resultText);\n \tSystem.exit(1);\n }", "@Override\n boolean isFailed() {\n return false;\n }", "public void sendErr() {\n Datagram errDatagram = makeFIN(datagram);\n PayLoad payLoad = (PayLoad) (errDatagram.getData());\n payLoad.setERR(true);\n payLoad.setActualData(\"File not found on server.\".getBytes());\n errDatagram.setChecksum(CheckSumService.generateCheckSum(errDatagram));\n\n try {\n ttpService.sendDatagram(errDatagram);\n } catch (IOException i) {\n i.printStackTrace();\n }\n System.out.println(\"TTPServer: ERR datagram sent to client.\");\n if (connections.containsKey(curKey)) {\n ttpService.closeConnection(connections, curKey);\n }\n System.out.println(\"TTPServer: Connection with client closed\");\n }", "private void inizia() throws Exception {\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public void correctErrors();", "@Override\n public void onError(int code, String msg) {\n ToastUtils.toast(getActivity(), msg);\n Log.i(\"订单错误信息\",msg);\n }", "@Override\n\tpublic void setWrongError() {\n\t\t\n\t}", "@Override\n public void onErrorResponse(VolleyError error) {\n displayToast(\"Problemer med å søke i tilsynsdatabasen\");\n finish();\n }", "@Override\n\tpublic void producidoErrorAlCargarListaInfos(String error) {\n\t\t\n\t}", "public void mensagemErroCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro!\\nVerifique se todos os campos estão preenchidos.\"\n\t\t\t\t+ \"\\nVerifique se os dados em formato numérico são números.\"\n\t\t\t\t+ \"\\nVerifique se as datas foram inseridas corretamente.\" + \"\\nNão use vírgulas ','. Use pontos!\", null,\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t}", "@Override\n public void onError() {\n\n }", "@Override\n public boolean continuePastError() {\n return false;\n }", "public void makeError(){\n\t\tisError = true;\n\t}", "public void onError() {\n Toast.makeText(StoneSDK.this.cordova.getActivity(), \"Erro na ativacao do aplicativo, verifique a lista de erros do provider\", Toast.LENGTH_SHORT).show();\n\n /* Chame o metodo abaixo para verificar a lista de erros. Para mais detalhes, leia a documentacao: */\n callbackContext.error(provider.getListOfErrors().toString());\n\n }", "@Override\n public void msrpTransferAborted() {\n }", "private void gestioneDisconnessione(Exception e) {\n\t\tLOG.info(\"Client disconnesso\");\n\t\tthis.completeWithError(e);\n\t\tthis.running=false;\n\t}", "public void onError(String cadena) {\r\n\t\tJOptionPane.showMessageDialog(null, cadena, \"Movimiento invalido\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\r\n\t}", "public void scemess() {\n\t\tUserExcep ue = new UserExcep();\n\t\t\n\t\ttry {\n\t\t\t\tthrow new UserExcep(\"Try different ID\");\n\t\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "private void throwsError() throws OBException {\n }", "void setError();", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "@Override\n public void errorOnUpdate(String buxError) {\n }", "private static void checkError(String result) {\n String err = Neo4jUtils.extractErrorData(result);\n if (err == null) {\n return;\n }\n throw new RuntimeException(err);\n }", "@Override\n\t\tprotected boolean onError(final Exception e) {\n\t\t\treturn false;\n\t\t}", "@Override\n\tpublic String doError() {\n\t\treturn null;\n\t}", "@Override\n\tpublic void error(Message msg) {\n\n\t}", "public void mo1534c() {\n C2201w.m8373a(\"Photo TransferData failed!\", 1);\n }", "private void writeErrorData(ComponentError error)\n throws TechnicalException\n {\n Sequence sequence = error.getSequence();\n XdmValue userdata = SaxonHelper.toXdmValue(sequence);\n if ( userdata != null ) {\n CalabashHelper.writeTo(myPipe, ERROR, userdata, myProcs);\n }\n }", "private void sqlException(SQLException e) {\n System.err.println(\"SQLException: \" + e.getMessage());\n System.err.println(\"SQLState: \" + e.getSQLState());\n System.err.println(\"VendorError: \" + e.getErrorCode());\n e.printStackTrace();\n// System.exit(-1);\n }", "@Override\n\tpublic void adjustToError() {\n\t\t\n\t}", "@Override\n public void onError() {\n Toast.makeText(getApplicationContext(), \"아이디랑 비밀번호를 확인해 주세요.\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onFotoObtenidaError( PeticionQuedada pQuedada) {\n\n //se crea una peticion de quedada recibida con la peticion obteneda sin la foto y se añade a la lista\n // lista_peticionesRecibidas.add(peticionQuedadaRecibida);\n peticionQuedadaRecibida = new PeticionQuedadaRecibida(pQuedada.getId(), pQuedada.getAutor_peticion_nombre(), pQuedada.getAutor(), pQuedada.getAutor_uid(), pQuedada.getLugar(), pQuedada.getFecha(), pQuedada.getHora(), pQuedada.getDeporte(), pQuedada.getInfo(), pQuedada.getPlazas(), pQuedada.getLongitud(),\n pQuedada.getLatitud(), pQuedada.getNum_plazas_solicitadas(), pQuedada.getEstado(), pQuedada.getAutor_peticion());\n peticionQuedadaRecibida.setId_peticion(pQuedada.getId_peticion());\n\n boolean añadir=true;\n for (PeticionQuedadaRecibida mmpeticionQuedadaRecibida:lista_peticionesRecibidas\n ) {\n if(mmpeticionQuedadaRecibida.getId_peticion().toString().equals(peticionQuedadaRecibida.getId_peticion().toString())){\n añadir=false;\n }\n\n }\n\n if(añadir) {\n lista_peticionesRecibidas.add(peticionQuedadaRecibida);\n }\n\n //cuando se añaden todas las peticionesse setea el adaptador\n if (lista_peticionesRecibidas.size() == lista_peticiones.size()) {\n //se activan los controladores del item correspondiente\n Log.i(\"ADAPTADOR\", \"+++++++++ SETEANDO ADAPTADOR ++++++++\\n\" + lista_peticionesRecibidas.toString());\n adaptador = new PeticionesRecibidasAdapter(lista_peticionesRecibidas);\n adaptador.setCustomButtonListner(this);\n adaptador.setCustomImageButtonListener(this);\n listView.setAdapter(adaptador);\n\n LinearLayoutManager llm = new LinearLayoutManager(getContext());\n llm.setOrientation(LinearLayoutManager.HORIZONTAL);\n listView.setLayoutManager(llm);\n\n progressDialog.dismiss();\n }\n }", "private void cerrarEntTransaccion(){\n try{\n if(entTransaccion != null){\n entTransaccion.close();\n }\n }\n catch(IOException iOException){\n System.err.println(\"Error al cerrar el archivo. Terminado.\");\n System.exit(1);\n }\n }", "public final boolean isNeedParseeErrorMsg() {\r\n return getCommand() == 10;\r\n }", "public void exibeDataNascimentoInvalida() {\n JOptionPane.showMessageDialog(\n null,\n Constantes.GERENCIAR_FUNCIONARIO_DATA_NASCIMENTO_INVALIDA,\n Constantes.GERENCIAR_FUNCIONARIO_TITULO,\n JOptionPane.PLAIN_MESSAGE\n );\n }", "private void sendError() throws IOException {\n System.out.println(\"Error Message\");\n DataOutputStream dos = new DataOutputStream(os);\n dos.writeInt(1);\n dos.writeByte(Message.MSG_ERROR_STATUS);\n }", "protected void onConnectionError() {\n\t}", "protected void initError(String message, COMMAND command) {\t\n\t String id = (command != null ? command.getId() : \"no-command\");\t \n\t \n\t COMMAND_DONE done = new COMMAND_DONE(id);\n\t done.setSuccessful(false);\n\t done.setErrorNum(SERVER_INITIALIZATION_ERROR);\n\t done.setErrorString(\"Command: [\"+id+\"]: CAMP::\"+message);\n\t \n\t try { \t\n\t\tif (connection != null)\n\t\t connection.send(done); \n\t } catch (IOException e) {\n\t\tlogger.log(1,CLASS, \"-\", \"impl\",\n\t\t\t \"Failed to send error: \"+e);\n\t }\n\t \n\t if (handler != null)\n\t\thandler.dispose();\n\t if (connection != null)\n\t\tconnection.close();\n\t connection = null;\n\t command = null;\n\t \n\t}", "public boolean isError(){\r\n\t\tif(error!=0)\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}", "public int EjecutarOperacion(String sql){\n int respuesta = 0;\n try { \n respuesta = this.s.executeUpdate(sql);\n if(respuesta >= 1){\n respuesta = 1;\n System.out.println(\"Registro Guardado\");\n return respuesta;\n }\n else{\n System.out.println(\"Ocurrio un problema al agregar el registro\"); \n return 0;\n }\n } catch(SQLException ex){\n // Mostramos toda la informacion sobre el error disponible\n System.out.println( \"Error: SQLException\" );\n while (ex != null) {\n System.out.println (\"SQLState: \" + ex.getSQLState ());\n System.out.println (\"Mensaje: \" + ex.getMessage ());\n System.out.println (\"ErrorCode: \" + ex.getErrorCode ());\n ex = ex.getNextException();\n }\n } catch(Exception e) {\n System.out.println(\"Se produjo un error inesperado: \"+e.getMessage());\n return 3;\n }\n return respuesta;\n }", "public void ingresarproducto() {\r\n String Error;//C.P.M Creamos una variable para obtener algun error \r\n /*Preguntamos si todos los campos estan llenos sino lo notificamos*/\r\n if (vistaaltaproducto.jTnombre.getText().equals(\"\") || vistaaltaproducto.jTyyyy.getText().equals(\"\") || vistaaltaproducto.jTprecio.getText().equals(\"\")\r\n || vistaaltaproducto.jTexistencia.getText().equals(\"\") || vistaaltaproducto.jTdescripcion.getText().equals(\"\") || vistaaltaproducto.jTespecificaciones.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan datos: No puede dejar cuadros en blanco\");\r\n } else {\r\n modelo.setCodigobarras(vistaaltaproducto.jTcodigobarras.getText());//C.P.M enviamos todos los datos a el modelo\r\n modelo.setNombre(vistaaltaproducto.jTnombre.getText());\r\n modelo.setCaducidad(vistaaltaproducto.jTyyyy.getText() + \"-\" + vistaaltaproducto.jTmm.getText() + \"-\" + vistaaltaproducto.jTdd.getText());\r\n modelo.setExistencia(vistaaltaproducto.jTexistencia.getText());\r\n modelo.setPrecio(vistaaltaproducto.jTprecio.getText());\r\n modelo.setDescripcion(vistaaltaproducto.jTdescripcion.getText());\r\n modelo.setEspecifica(vistaaltaproducto.jTespecificaciones.getText());\r\n Error = modelo.insertar();//C.P.M ejecutamos el metodo del modelo para insertar y esperamos algn error\r\n if (Error.equals(\"\")) {//C.P.M si error llega vacio es que todo salio bien\r\n JOptionPane.showMessageDialog(null, \"Producto: \" + vistaaltaproducto.jTnombre.getText() + \" agregado.\");//C.P.M lo notificamos\r\n vistaaltaproducto.jTnombre.setText(\"\");//C.P.M limpiamos los campos \r\n vistaaltaproducto.jTcodigobarras.setText(\"\");\r\n vistaaltaproducto.jTprecio.setText(\"\");\r\n vistaaltaproducto.jTyyyy.setText(\"\");\r\n vistaaltaproducto.jTmm.setText(\"\");\r\n vistaaltaproducto.jTdd.setText(\"\");\r\n vistaaltaproducto.jTexistencia.setText(\"\");\r\n vistaaltaproducto.jTdescripcion.setText(\"\");\r\n vistaaltaproducto.jTespecificaciones.setText(\"\");\r\n vistaaltaproducto.jTnombre.requestFocus();//C.P.M y ponemos el foco en el primer componente\r\n } else {\r\n JOptionPane.showMessageDialog(null, Error);//C.P.M de lo contrario notificamos el error\r\n }\r\n }\r\n }", "public final void adError(java.lang.String r11) {\n /*\n r10 = this;\n int r0 = r11.hashCode()\n switch(r0) {\n case -2026653947: goto L_0x0044;\n case -1958363695: goto L_0x003a;\n case -1477010874: goto L_0x0030;\n case -507110949: goto L_0x0026;\n case 297538105: goto L_0x001c;\n case 350741825: goto L_0x0012;\n case 844170097: goto L_0x0008;\n default: goto L_0x0007;\n }\n L_0x0007:\n goto L_0x004e\n L_0x0008:\n java.lang.String r0 = \"Too Slow Connection\"\n boolean r0 = r11.equals(r0)\n if (r0 == 0) goto L_0x004e\n r0 = 4\n goto L_0x004f\n L_0x0012:\n java.lang.String r0 = \"Timeout\"\n boolean r0 = r11.equals(r0)\n if (r0 == 0) goto L_0x004e\n r0 = 5\n goto L_0x004f\n L_0x001c:\n java.lang.String r0 = \"Ad Not Ready\"\n boolean r0 = r11.equals(r0)\n if (r0 == 0) goto L_0x004e\n r0 = 6\n goto L_0x004f\n L_0x0026:\n java.lang.String r0 = \"No market installed on the device\"\n boolean r0 = r11.equals(r0)\n if (r0 == 0) goto L_0x004e\n r0 = 3\n goto L_0x004f\n L_0x0030:\n java.lang.String r0 = \"Connection Error\"\n boolean r0 = r11.equals(r0)\n if (r0 == 0) goto L_0x004e\n r0 = 0\n goto L_0x004f\n L_0x003a:\n java.lang.String r0 = \"No Ads\"\n boolean r0 = r11.equals(r0)\n if (r0 == 0) goto L_0x004e\n r0 = 2\n goto L_0x004f\n L_0x0044:\n java.lang.String r0 = \"Internal error\"\n boolean r0 = r11.equals(r0)\n if (r0 == 0) goto L_0x004e\n r0 = 1\n goto L_0x004f\n L_0x004e:\n r0 = -1\n L_0x004f:\n switch(r0) {\n case 0: goto L_0x0068;\n case 1: goto L_0x0065;\n case 2: goto L_0x0062;\n case 3: goto L_0x005f;\n case 4: goto L_0x005c;\n case 5: goto L_0x0059;\n case 6: goto L_0x0056;\n default: goto L_0x0052;\n }\n L_0x0052:\n java.lang.String r0 = \"\"\n L_0x0054:\n r6 = r0\n goto L_0x006b\n L_0x0056:\n java.lang.String r0 = \"error_ad_not_ready\"\n goto L_0x0054\n L_0x0059:\n java.lang.String r0 = \"error_timeout\"\n goto L_0x0054\n L_0x005c:\n java.lang.String r0 = \"error_slow_connection\"\n goto L_0x0054\n L_0x005f:\n java.lang.String r0 = \"error_no_market\"\n goto L_0x0054\n L_0x0062:\n java.lang.String r0 = \"error_no_ads\"\n goto L_0x0054\n L_0x0065:\n java.lang.String r0 = \"error_internal_error\"\n goto L_0x0054\n L_0x0068:\n java.lang.String r0 = \"error_connection_error\"\n goto L_0x0054\n L_0x006b:\n com.appnext.ads.interstitial.Interstitial r0 = com.appnext.ads.interstitial.Interstitial.this\n java.lang.String r1 = r0.getTID()\n com.appnext.ads.interstitial.Interstitial r0 = com.appnext.ads.interstitial.Interstitial.this\n java.lang.String r2 = r0.getVID()\n com.appnext.ads.interstitial.Interstitial r0 = com.appnext.ads.interstitial.Interstitial.this\n java.lang.String r3 = r0.getAUID()\n com.appnext.ads.interstitial.Interstitial r0 = com.appnext.ads.interstitial.Interstitial.this\n java.lang.String r4 = r0.getPlacementID()\n com.appnext.ads.interstitial.Interstitial r0 = com.appnext.ads.interstitial.Interstitial.this\n java.lang.String r5 = r0.getSessionId()\n java.lang.String r7 = \"current_interstitial\"\n java.lang.String r8 = \"\"\n java.lang.String r9 = \"\"\n com.appnext.core.f.a((java.lang.String) r1, (java.lang.String) r2, (java.lang.String) r3, (java.lang.String) r4, (java.lang.String) r5, (java.lang.String) r6, (java.lang.String) r7, (java.lang.String) r8, (java.lang.String) r9)\n com.appnext.ads.interstitial.Interstitial r0 = com.appnext.ads.interstitial.Interstitial.this\n com.appnext.core.callbacks.OnAdError r0 = r0.userOnAdError\n if (r0 == 0) goto L_0x00a3\n com.appnext.ads.interstitial.Interstitial r0 = com.appnext.ads.interstitial.Interstitial.this\n com.appnext.core.callbacks.OnAdError r0 = r0.userOnAdError\n r0.adError(r11)\n L_0x00a3:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.appnext.ads.interstitial.Interstitial.AnonymousClass1.adError(java.lang.String):void\");\n }", "@Override\r\n\tpublic void onError(String err) {\n\t\t\r\n\t}", "public void mo3251a(VolleyError volleyError) {\n }", "private void onLoadingError() {\n AppSession.showDataLoadError(\"conexus\");\n finish();\n }", "public boolean deposito(int idConta, double quantia) {\n try {\n Conta conta = new Conta(idConta); //deveria poder fazer isto\n boolean executado = conta.depositoConta(quantia);\n System.out.println(executado ? \"Deposito efetuado com sucesso.\" : \"Erro ao Efeuar o Deposito\" );\n return executado;\n } catch (Exception e) {\n System.out.println(\"Erro no serviço deposito: \" + e.getMessage());\n return false;\n } \n}", "@Override\n\tpublic void setFailedError() {\n\t\tnew Customdialog_Base(this, \"정보가 올바르지 않습니다.\").show();\n\t}", "abstract void error(String error);", "@Override\n public void onQuedadaCreadaError() {\n btn_publicar.setEnabled(true);\n Snackbar.make(myView,\"Error al crear la quedada\", Snackbar.LENGTH_SHORT).show();\n\n }", "@Override\n\t\t\t\t\tpublic void onFailure(Throwable t, int errorNo,\n\t\t\t\t\t\t\tString strMsg) {\n\t\t\t\t\t\tToast.makeText(SaveReceipptActivity.this,\n\t\t\t\t\t\t\t\tR.string.error_net, Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tsuper.onFailure(t, errorNo, strMsg);\n\t\t\t\t\t}", "public boolean parseResult( Exception e, T result) {\n\n if (e != null) {\n e.printStackTrace();\n ErrorModel em = new ErrorModel();\n if (e.getClass().equals(SocketTimeoutException.class)) {\n em.setMsg(\"Network Error. Waited for so long. :-(\");\n em.setType(ApiErrors.TIME_OUT.toString());\n// Toast.makeText(context, em.getMsg(),\n// Toast.LENGTH_SHORT).show();\n } else if (e.getClass().equals(SocketException.class)) {\n em.setMsg(\"oops... Connectivity issue :-(\");\n em.setType(ApiErrors.CONNECTION.toString());\n// Toast.makeText(context, em.getMsg(),\n// Toast.LENGTH_SHORT).show();\n } else if (e.getClass().equals(ConnectException.class)) {\n em.setMsg(\"oops... Connectivity issue :-(\");\n em.setType(ApiErrors.CONNECTION.toString());\n// Toast.makeText(context, em.getMsg(),\n// Toast.LENGTH_SHORT).show();\n } else {\n em.setMsg(\"Something unexpected has happened, please try again later: -(\");\n //Toast.makeText(context, em.getMsg(),\n // Toast.LENGTH_SHORT).show();\n }\n em.setField(\"nw\");\n List<ErrorModel> list = new ArrayList();\n list.add(em);\n onError(list);\n return false;\n }\n if (result != null) {\n onSuccess(result);\n return true;\n }\n ErrorModel em = new ErrorModel();\n em.setMsg(\"Some thing has Happened!\");\n em.setType(ApiErrors.UNKNOWN.toString());\n// Toast.makeText(context, em.getMsg(),\n// Toast.LENGTH_SHORT).show();\n List<ErrorModel> list = new ArrayList();\n list.add(em);\n onError(list);\n return false;\n\n }", "@Override\r\n\t\t\tpublic void onError(int error) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void error(TransformerException exception)\n\t\t\tthrows TransformerException {\n\t\t\n\t}", "public void onError(Exception error) {\n Toast.makeText(PaymentActivity.this, error.getLocalizedMessage(), Toast.LENGTH_LONG)\n .show();\n }", "protected String handleMsgError(String codigoError, Exception sos) {\n\t\tString msgError = \"\"\r\n\t\t\t\t+ ((sos == null || sos instanceof NullPointerException) ? \"Null Pointer Exception\"\r\n\t\t\t\t\t\t: sos.getMessage());\r\n\t\tif (sos != null && sos.getCause() != null) {\r\n\t\t\tmsgError = msgError + \", CAUSA: \" + sos.getCause().getMessage();\r\n\t\t}\r\n\r\n\t\treturn msgError;\r\n\t}", "private void limpiar() {\n // Si se llega a usar este método es porque ha habido una excepción (ya sea por un verdadero\n // error o porque el cliente ha terminado la conexión o porque han pasado\n // TIEMPO_DESCONEXION_AUTOMATICA milisegundos sin comunicación del cliente).\n // Nótese que el código de cierre es riguroso: una versión más abreviada podría limitarse\n // a intentar cerrar el socket (los flujos de E/S se cierran al cerrarse éste); el único problema\n // que podría aparecer en esa versión del código es que podrían quedarse abiertos los flujos si\n // no se pudiera cerrar el socket (esta posibilidad es inhabitual: normalmente, si el socket no\n // se puede cerrar es porque ya se había cerrado antes).\n // El igualar entrada, salida y socket a null es una buena práctica cuando se puede llamar\n // varias veces a limpiar(); así se evita intentar cerrar dos veces un objeto.\n if ( entrada != null ) {\n try {\n entrada.close();\n }\n catch (IOException e1) {}\n entrada = null;\n }\n if ( salida != null ) {\n salida.close();\n salida = null;\n }\n if ( socket != null ) {\n try {\n socket.close();\n } \n catch (IOException e2) {}\n socket = null;\n }\n }", "@Override\n public void onCancelled(@NonNull DatabaseError error) {\n Toast.makeText(StudyNotesStudent.this,(CharSequence) error.toException(),Toast.LENGTH_SHORT).show();\n }", "@Override\n public String getPesan()\n {\n return super.getMessage() + hotel_error + \" tidak ditemukan\";\n }", "public static void mensagemErroCadastrar() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro ao cadastrar. Revise os dados inseridos.\", \"Erro\", JOptionPane.ERROR_MESSAGE, new ImageIcon(Toolkit.getDefaultToolkit().getImage(CadastroQuartos.class.getResource(\"/Imagens/Erro32.png\"))));\n\t}", "boolean hasErrormessage();", "@Override\n\tpublic void calculateError() {\n\t\t\n\t}", "@Override\n\t\tpublic void loadError() {\n\t\t}", "@Override\r\n\tpublic void onFail() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONFAIL);\r\n\t}", "@Override\n\t\t\tpublic void onError(int httpcode) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onError(Throwable error) {\n Log.d(\"msgName\", \"存储customer数据失败!\");\n }", "public boolean errors() {\n \treturn semantErrors != 0;\n }", "public void onConnectionError()\n\t\t{\n\t\t}" ]
[ "0.7069572", "0.67022306", "0.656462", "0.65247804", "0.6482962", "0.6448423", "0.64457685", "0.6400671", "0.63814884", "0.63321847", "0.6255886", "0.6160138", "0.6149121", "0.6144023", "0.61001325", "0.60922736", "0.607464", "0.6032399", "0.6029299", "0.60278714", "0.6010004", "0.5992893", "0.5964909", "0.5950055", "0.5901959", "0.58989537", "0.588227", "0.58712393", "0.5862436", "0.585616", "0.5852818", "0.58441234", "0.5832469", "0.5828257", "0.582331", "0.5823091", "0.58114594", "0.58098054", "0.5788039", "0.5788001", "0.5774811", "0.5751044", "0.5748862", "0.57484317", "0.57440317", "0.57326144", "0.57160836", "0.571401", "0.57122177", "0.57110065", "0.5705142", "0.5702954", "0.569073", "0.568446", "0.5674846", "0.56740594", "0.56719923", "0.5669571", "0.56646234", "0.56599677", "0.56597066", "0.56571233", "0.5633789", "0.56220406", "0.56205314", "0.5606434", "0.5601206", "0.5598055", "0.5594024", "0.55846953", "0.5583561", "0.5582752", "0.55819124", "0.5580602", "0.5565047", "0.5563609", "0.5562312", "0.5562181", "0.5558279", "0.5555041", "0.5551534", "0.5550005", "0.55498886", "0.55440265", "0.55336964", "0.5531998", "0.5528687", "0.5528279", "0.55260617", "0.5525969", "0.55237085", "0.5519499", "0.5514232", "0.55141526", "0.5505893", "0.5499786", "0.5497052", "0.5496278", "0.54902625", "0.5489794" ]
0.5933248
24
CRUD USER Inserta nuevo usuario devolviendo el id de la tabla
public long create_user(User user) { long id = 0; //id de la tabla user (único) try { iniciaOperacion(); id = (Long)sesion.save(user); //metodo para guardar cliente (del objeto hibernate.sesion) tx.commit(); }catch(HibernateException he) { manejaExcepcion(he); throw he; }finally { sesion.close(); } return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertUser() {}", "private void insert() {//将数据录入数据库\n\t\tUser eb = new User();\n\t\tUserDao ed = new UserDao();\n\t\teb.setUsername(username.getText().toString().trim());\n\t\tString pass = new String(this.pass.getPassword());\n\t\teb.setPassword(pass);\n\t\teb.setName(name.getText().toString().trim());\n\t\teb.setSex(sex1.isSelected() ? sex1.getText().toString().trim(): sex2.getText().toString().trim());\t\n\t\teb.setAddress(addr.getText().toString().trim());\n\t\teb.setTel(tel.getText().toString().trim());\n\t\teb.setType(role.getSelectedIndex()+\"\");\n\t\teb.setState(\"1\");\n\t\t\n\t\tif (ed.addUser(eb) == 1) {\n\t\t\teb=ed.queryUserone(eb);\n\t\t\tJOptionPane.showMessageDialog(null, \"帐号为\" + eb.getUsername()\n\t\t\t\t\t+ \"的客户信息,录入成功\");\n\t\t\tclear();\n\t\t}\n\n\t}", "public void createUser() {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"INSERT INTO t_user (nom,prenom,userName,pass,tel,type,status) values(?,?,?,?,?,?,?)\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setBoolean(7, true);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().error(\"Fin d'ajout d'utilisateur\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec d'ajout d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closePrepareStatement(ps);\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public int insertUser(final User user);", "public void insert(User user);", "@Override\r\n\tpublic boolean insertUsuario(Usuario user) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void insert(User objetc) {\n\t\tuserDao.insert(objetc);\n\t\t\n\t}", "public void createUser() {\n try {\n conn = dao.getConnection();\n\n ps = conn.prepareStatement(\"INSERT INTO Users(username, password) VALUES(?, ?)\");\n ps.setString(1, this.username);\n ps.setString(2, this.password);\n\n ps.execute();\n\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "void createUser() throws SQLException {\n String name = regName.getText();\n String birthdate = regAge.getText();\n String username = regUserName.getText();\n String password = regPassword.getText();\n String query = \" insert into users (name, birthdate, username, password)\"\n + \" values (?, ?, ?, ?)\";\n\n DB.registerUser(name, birthdate, username, password, query);\n }", "@Override\n\tpublic void insertUser(User user) {\n\t\t\n\t}", "public void insertUser(User user) {\n mUserDAO.insertUser(user);\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 }", "public int insertUser(UserData user) {\n try {\n jdbcTemplate.execute(\"SELECT 1 from userData\");\n } catch (Exception ex) {\n creatTable();\n }\n\n\n PreparedStatementSetter preps = new PreparedStatementSetter() {\n @Override\n public void setValues(PreparedStatement ps) throws SQLException {\n ps.setString(1, user.getUserName());\n ps.setString(2, user.getFirstName());\n ps.setString(3, user.getLastName());\n ps.setString(4, user.getEmail());\n ps.setString(5, user.getPassword());\n ps.setString(6, user.getPhoneNo());\n\n ps.setString(7, user.getImage());\n\n }\n };\n\n return jdbcTemplate.update(CREATEUSER, preps);\n\n\n }", "public void ajouterUser(Utilisateur user) {\n SQLiteDatabase db = this.getWritableDatabase(); // On veut écrire dans la BD\n ContentValues values = new ContentValues();\n values.put(USER_NOM, user.getNom());\n values.put(USER_AGE, user.getAge());\n values.put(USER_SEX, user.getSex());\n// Insérer le nouvel enregistrement\n long id = db.insert(TABLE_USER, null, values);\n db.close(); // Fermer la connexion\n }", "void addUser(User user) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_utilizador, user.getUser()); // Contact Name\n values.put(KEY_pass, user.getPass()); // Contact Phone\n values.put(KEY_Escola, user.getEscola());\n db.insert(tabela, null, values);\n db.close(); // Closing database connection\n }", "public Long insert(User object) throws DaoException {\n long id = 0;\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n try {\n connection = dataSourceUtils.getConnection(dataSource);\n preparedStatement = connection.prepareStatement(INSERT_USER);\n\n preparedStatement.setString(1, object.getUserName());\n preparedStatement.setString(2, object.getLogin());\n preparedStatement.setString(3, object.getPassword());\n preparedStatement.executeUpdate();\n\n ResultSet resultSet = preparedStatement.getGeneratedKeys();\n if (resultSet.next()) {\n id = resultSet.getLong(1);\n object.setUserId(id);\n }\n } catch (SQLException e) {\n throw new DaoException(e);\n } finally {\n DataSourceUtils.releaseConnection(connection, dataSource);\n try {\n preparedStatement.close();\n } catch (SQLException e) {\n LOGGER.error(e);\n }\n }\n return id;\n }", "@Test\r\n\t\tpublic void insertUserTestCase() {\r\n\t\t\t\r\n\t\t\tUser user = new User();\r\n\t\t\t\t\t\r\n\t\t//\tuser.setBirthDate(LocalDate.parse(\"1994-04-09\"));\r\n\t\t\tuser.setUsername(\"renu\");\r\n\t\t//\tuser.setUserId(1003);\r\n\t\t\t\r\n\t\t\tuser.setEmail(\"[email protected]\");\r\n\t\t\t\t\t\r\n\t\t\tuser.setFirstname(\"Renu\");\r\n\t\t\tuser.setSurname(\"Rawat\");\r\n\t\t//\tuser.setGender('F');\r\n\t\t\tuser.setPassword(\"renu\");\r\n\t\t\tuser.setPhone(\"9876543210\");\r\n\t\t//\tuser.setStatus(\"A\");\r\n\t\t\tuser.setIsOnline(false);\r\n\t\t\t\r\n\t\t\tuser.setRole(\"ADMIN\");\r\n\t\t//\tuser.setConfmemail(\"[email protected]\");\r\n\t\t//\tuser.setConfpassword(\"renu\");\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"user printed\");\r\n\t\t\tassertEquals(\"successfully!\", Boolean.valueOf(true), userDao.registerUser(user));\r\n\t\t\tSystem.out.println(\"After User Table\");\r\n\t\t\t\r\n\t}", "public int insertar()\n {\n try {\n Conexion conn = Conexion.getInstance();\n return conn.insertarUsuario(this);\n } catch (SQLException |Config.ReadException|Config.EmptyProperty throwables) {\n return -1;\n }\n }", "@Override\r\n\tpublic Usuario insert(Usuario t) {\n\t\treturn null;\r\n\t}", "@Override\n public void insertUser(User user, String userType) {\n\n int userRoleId = insertUserRole(userType);\n\n try(Connection conn = DriverManager.getConnection(URL, USERNAME, PASSWORD)){\n\n String sql = \"INSERT INTO ers_users(ers_username, ers_password, user_first_name, user_last_time, user_email, user_role_id) \" +\n \"VALUES (?, ?, ?, ?, ?, ?);\";\n\n PreparedStatement ps = conn.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, user.getUsername());//the 1st \"?\"\n ps.setString(2, user.getPassword());\n ps.setString(3, user.getFirstName());\n ps.setString(4, user.getLastName());\n ps.setString(5, user.getEmail());\n ps.setInt(6, userRoleId);\n\n ps.executeUpdate();\n\n //PRINTING THE PRIMARY KEY\n ResultSet rs = ps.getGeneratedKeys();\n if (rs.next()) {\n System.out.println(\"The returned PK: \"+ rs.getInt(\"ers_user_id\"));\n }\n\n }catch(SQLException e){\n e.printStackTrace();\n }\n }", "public String insertUser() throws IOException {\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(db.DB.connectionString, db.DB.user, db.DB.password);\n String query = \"insert into users (first_name, last_name, phone_number, email, address, id_city) values (?, ?, ?, ?, ?, ?)\";\n PreparedStatement ps = conn.prepareStatement(query);\n ps.setString(1, firstName);\n ps.setString(2, lastName);\n ps.setString(3, phoneNumber);\n ps.setString(4, email);\n ps.setString(5, address);\n ps.setInt(6, idCity);\n ps.executeUpdate();\n FacesContext context = FacesContext.getCurrentInstance();\n context.getExternalContext().getFlash().setKeepMessages(true);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"User created\", null);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n } catch (SQLException ex) {\n Logger.getLogger(UserController.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n lastCreatedUserTable();\n clear();\n try {\n conn.close();\n } catch (Exception e) {\n /* ignored */ }\n }\n HttpSession sesija = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(true);\n Integer type = (Integer) sesija.getAttribute(\"type\");\n if (type == 1) {\n return \"admin?faces-redirect=true\";\n } else {\n return \"operator?faces-redirect=true\";\n }\n\n }", "public static int save(User u){ \n int status=0; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection();\n //melakukan query database\n PreparedStatement ps=con.prepareStatement( \n \"insert into t_user(user_name,nama_lengkap,password,hak_akses) values(?,?,?,?)\"); \n ps.setString(1,u.getUserName()); \n ps.setString(2,u.getNamaLengkap()); \n ps.setString(3,u.getPassword()); \n ps.setString(4,u.getHakAkses()); \n status=ps.executeUpdate(); \n }catch(Exception e){\n System.out.println(e);\n } \n return status; \n }", "public void save() {\r\n\t\tString checkQuery = \"SELECT * FROM users WHERE id = \" + this.id;\r\n\t\tStatement stm;\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\tconnection = DBConnection.getConnection();\r\n\t\t\tstm = connection.createStatement();\r\n\t\t\trs = stm.executeQuery(checkQuery);\r\n\t\t\t// istnieje już ten obiekt - update\r\n\t\t\tif (rs.first()) {\r\n\t\t\t\tString query = \"UPDATE users SET name = \" + toStringOrNULL(name)\r\n\t\t\t\t\t\t+ \", password = \" + toStringOrNULL(password)\r\n\t\t\t\t\t\t+ \", is_admin = \" + isAdmin \r\n\t\t\t\t\t\t+ \", removed_at = \" + toStringOrNULL(removedAt) \r\n\t\t\t\t\t\t+ \" WHERE id = \" + getId();\r\n\t\t\t\texecuteNonReturningQuery(query);\r\n\t\t\t}\r\n\t\t\t// jeszcze go nie ma - zapis nowego\r\n\t\t\telse {\r\n\t\t\t\tString query = \"INSERT INTO users (name, password, removed_at, is_admin) VALUES (\"\r\n\t\t\t\t\t\t+ toStringOrNULL(name) + \", \"\r\n\t\t\t\t\t\t+ toStringOrNULL(password) + \", \"\r\n\t\t\t\t\t\t+ toStringOrNULL(removedAt) + \", \"\r\n\t\t\t\t\t\t+ isAdmin + \")\";\r\n\t\t\t\texecuteNonReturningQuery(query);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tconnection.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public long addUser(String userId, String uName, String uDOB, String uGen, String uContact, String uPassword, String privs, int donar ) throws SQLException {\n open();\n ContentValues values = new ContentValues();\n values.put(Database.userId, userId);\n values.put(Database.uName, uName);\n values.put(Database.uDOB, uDOB);\n values.put(Database.uGender, uGen);\n values.put(Database.uContact, uContact);\n values.put(Database.uPassword, uPassword);\n values.put(Database.uPriviledge, privs);\n values.put(Database.uDonar, donar);\n long insertId = database.insert(Database.userTable, null,values);\n close();\n return insertId;\n }", "public void insertUser(Long userId) {\n\r\n\t\tTUserDetail detail = new TUserDetail();\r\n\t\tdetail.setUserId(userId);\r\n\t\tdetail.setSex(\"M\");\r\n\t\tdetail.setTel(10000);\r\n\t\tdetail.setLinkman(\"ZS\");\r\n\t\ttUserDetailMapper.insert(detail);\r\n\r\n\t\tTUser user = new TUser(userId);\r\n\t\tuser.setStatus(\"UNOK\");\r\n\t\tuser.setUserName(\"killer\");\r\n\t\ttUserMapper.insert(user);\r\n\t}", "@Override\n\tpublic Integer insert(User user) {\n\t\tuserMapper.insert(user);\n\t\t// MyBatisUtil.closeSqlSession();\n\t\treturn user.getId();\n\t}", "private void createNewUser() {\n ContentValues contentValues = new ContentValues();\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.GENDER, getSelectedGender());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.PIN, edtConfirmPin.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.LAST_NAME, edtLastName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.FIRST_NAME, edtFirstName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.STATUS, spnStatus.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.DATE_OF_BIRTH, edtDateOfBirth.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.BLOOD_GROUP, spnBloodGroup.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.IS_DELETED, \"N\");\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.MOBILE_NUMBER, edtMobileNumber.getText().toString());\n contentValues.put(DataBaseConstants.Constants_TBL_CATEGORIES.CREATE_DATE, Utils.getCurrentDateTime(Utils.DD_MM_YYYY));\n\n dataBaseHelper.saveToLocalTable(DataBaseConstants.TableNames.TBL_PATIENTS, contentValues);\n context.startActivity(new Intent(CreatePinActivity.this, LoginActivity.class));\n }", "@Override\r\n\tpublic int insert(User record) {\n\t\treturn userDao.insert(record);\r\n\t}", "Long insert(User record);", "@Override\n public boolean userRegister(User user) \n { \n Connection conn = null;\n Statement stmt = null;\n try \n {\n db_controller.setClass();\n conn = db_controller.getConnection();\n stmt = conn.createStatement();\n String sql;\n \n sql = \"INSERT INTO users (firstname,lastname,username,password,city,number) \"\n + \"values ('\"+ user.getFirstname()+\"',\" \n + \"'\" + user.getLastname() + \"',\" \n + \"'\" + user.getUsername() + \"',\" \n + \"'\" + user.getPassword() + \"',\" \n + \"'\" + user.getCity() + \"',\"\n + \"'\" + user.getNumber() + \"')\";\n int result = stmt.executeUpdate(sql);\n \n stmt.close();\n conn.close();\n if(result == 1) return true;\n else return false;\n } \n catch (SQLException ex) { ex.printStackTrace(); return false;} \n catch (ClassNotFoundException ex) { ex.printStackTrace(); return false;} \n }", "public static boolean addUser(UserDetailspojo user) throws SQLException {\n Connection conn=DBConnection.getConnection();\n String qry=\"insert into users1 values(?,?,?,?,?)\";\n System.out.println(user);\n PreparedStatement ps=conn.prepareStatement(qry);\n ps.setString(1,user.getUserid());\n ps.setString(4,user.getPassword());\n ps.setString(5,user.getUserType());\n ps.setString(3,user.getEmpid());\n ps.setString(2,user.getUserName());\n //ResultSet rs=ps.executeQuery();\n int rs=ps.executeUpdate();\n return rs==1;\n //String username=null;\n }", "void add(User user) throws SQLException;", "public static int insertUser(String n, String c, String u, String e, String p) throws SQLException{\n\t\t\tString query = \"INSERT INTO utente (nome, cognome, email, username, password)\"\n\t\t\t\t\t+ \" VALUES (?, ?, ?, ?,?) ;\";\n\t\t\t\n\t\t\tConnection con = connectToDB();\n\t\t\tPreparedStatement cmd = con.prepareStatement(query, PreparedStatement.RETURN_GENERATED_KEYS);\n\t\t\tcmd.setString(1, n);\n\t\t\tcmd.setString(2, c);\n\t\t\tcmd.setString(3, e);\n\t\t\tcmd.setString(4, u);\n\t\t\tcmd.setString(5, p);\n\t\t\t\n\t\t\tSystem.out.println(cmd);\n\n\t\t\tcmd.executeUpdate();\n\t\t\t\n\t\t\tint idInserito = -1;\n\t\t\t// Get the id of the just inserted user.\n\t\t\tResultSet res = cmd.getGeneratedKeys();\n\t\t\t\n\t\t\twhile(res.next()){\n\t\t\t\tidInserito = res.getInt(1);\n\t\t\t}\n\t\t\t//System.out.println(idInserito);\n\t\t\tres.close();\n\t\t\tcmd.close();\n\t\t\treturn idInserito;\n\t\t}", "@Override\r\n\tpublic void insertUser(VIPUser user) {\n\t\ttry{\r\n\t\t\tString sql = \"insert into vipuser(id,name) values (?,?)\";\r\n\t\t\tObject[] args = new Object[]{user.getId(), user.getName()};\r\n\t\t\tdaoTemplate.update(sql, args, false);\r\n\t\t}catch (Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@RequestMapping(value=\"/insertuser\",method =RequestMethod.GET)\n public boolean insertUser(@RequestBody User user){\n user.setPassword(user.getPassword());\n user.setUsername(user.getUsername());\n return iUserService.save(user);\n }", "@Override\n\tpublic void insert(User entity) {\n\t\tuserlist.put(String.valueOf(entity.getDni()), entity);\n\t}", "public void SaveUsuario(UsuarioDTO u) {\n Conexion c = new Conexion();\n PreparedStatement ps = null;\n String sql = \"INSERT INTO Usuario(nombre,apellido,usuario,email,password,fecha_nacimiento,fecha_creacion)\"\n + \"VALUES (?,?,?,?,?,?,?)\";\n try {\n ps = c.getConexion().prepareStatement(sql);\n ps.setString(1, u.getNombre());\n ps.setString(2, u.getApellido());\n ps.setString(3, u.getUsuario());\n ps.setString(4, u.getEmail());\n ps.setString(5, u.getPassword());\n ps.setDate(6, Date.valueOf(u.getFecha_Nacimiento()));\n ps.setDate(7, Date.valueOf(u.getFecha_Creacion()));\n ps.executeUpdate();\n } catch (SQLException ex) {\n System.out.println(\"A \" + ex.getMessage());\n } catch (Exception ex) {\n System.out.println(\"B \" + ex.getMessage());\n } finally {\n try {\n ps.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n }", "public static int inserUser(User user) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n \n int count;\n \n String rowNum = \"SELECT COUNT(*) FROM auttc_users.users \";\n String query = \"INSERT INTO auttc_users.users (user_id, username, email, password, admin) \"\n + \"VALUES (?, ?, ?, ?, ?)\";\n \n try{\n //get row count\n ps = connection.prepareStatement(rowNum);\n rs = ps.executeQuery();\n if (rs.next()) {\n count = rs.getInt(1);\n System.out.println(count);\n } else {\n count = 0;\n }\n \n //insert new user\n ps = connection.prepareStatement(query);\n ps.setInt(1, count + 1);\n ps.setString(2, user.getUsername());\n ps.setString(3, user.getEmail());\n ps.setString(4, user.getPassword());\n ps.setInt(5, 0);\n \n return ps.executeUpdate();\n } catch (SQLException e) {\n System.out.println(e);\n return 0;\n } finally {\n DBUtil.closeResultSet(rs);\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }", "@Override\r\n\tpublic void insert(User user) {\n\t\tint iRet = dao.insert(user);\r\n\t\tif(iRet != 1){\r\n\t\t\tlogger.error(\"新增失败\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlogger.info(\"新增成功\");\r\n\t}", "public void insererUtilisateur (Utilisateur u) {\r\n\t\ttry {\r\n\t\t\tString requete = \"INSERT INTO UTILISATEUR (idU, nomU, prenomU, login, motDePasse, idR) values (?,?,?,?,?,?);\";\r\n\t\t\tPreparedStatement ps = this.connexion.mysql.prepareStatement(requete);\r\n\t\t\tps.setInt(1, u.getIdentifiantUtilisateur());\r\n\t\t\tps.setString(2, u.getNomUtilisateur());\r\n\t\t\tps.setString(3, u.getPrenomUtilisateur());\r\n\t\t\tps.setString(4, u.getLoginUtilisateur());\r\n\t\t\tps.setString(5, u.getMotdepasseUtilisateur());\r\n\t\t\tps.setString(6, String.valueOf(u.getIdentifiantRole()));\r\n\t\t\tps.executeUpdate();\r\n\t\t\tSystem.out.println(\"UTILISATEUR AJOUTE\");\r\n\t\t}\r\n\t\t\r\n\t\tcatch (SQLException e) {\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "void insertUser(String pseudo, String password, String email) throws SQLException;", "private void newUser() {\n // TODO: Initial layout\n LayoutInflater layoutInflater = LayoutInflater.from(getActivity());\n View form = layoutInflater.inflate(R.layout.form_user, null);\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getActivity());\n alertDialogBuilder.setTitle(\"Thêm tài khoản\");\n alertDialogBuilder.setView(form);\n\n // TODO: Add controls\n editTextPhone = form.findViewById(R.id.editTextPhoneOnUserForm);\n editTextUsername = form.findViewById(R.id.editTextUsernameOnUserForm);\n editTextPassword = form.findViewById(R.id.editTextPasswordOnUserForm);\n editTextPassword2 = form.findViewById(R.id.editTextPassword2OnUserForm);\n\n // TODO: Add events\n alertDialogBuilder.setPositiveButton(\"Lưu\", null);\n alertDialogBuilder.setNegativeButton(\"Hủy\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n final AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.setOnShowListener(new DialogInterface.OnShowListener() {\n @Override\n public void onShow(final DialogInterface dialog) {\n Button buttonSave = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE);\n buttonSave.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final User user = getUser();\n if (user != null) {\n tableUser.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.child((user.getId())).exists()) {\n Toast.makeText(getActivity(), \"Số điện thoại đã tồn tại, xin nhập số khác\", Toast.LENGTH_LONG).show();\n } else {\n tableUser.child(user.getId()).setValue(user);\n dialog.dismiss();\n Toast.makeText(getActivity(), \"Thêm thành công\", Toast.LENGTH_LONG).show();\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }\n }\n });\n }\n });\n alertDialog.show();\n }", "int insert(AdminUser record);", "int insert(AdminUser record);", "int insert(UUser record);", "int insert(BaseUser record);", "public void registro(View v) {\n\t\tsubeUsuario();\n\t\tif (userId == -1) { // si es nuevo\n\t\t\tfinish(); // hay que dejar que el server devuelva el id y leerlo\n\t\t}\n\t}", "private void salvarMysql(User user){\n try{\n Connection conn = usersDataSource.getConnection();\n Statement stmt = conn.createStatement();\n\n stmt.executeUpdate(\"INSERT INTO usuario (name) \" + \"VALUES ( \"+ user.getName() +\")\");\n stmt.close();\n conn.close();\n } catch (Exception e){\n e.printStackTrace();\n }\n }", "@Insert(\"insert into shoppinguser(id,nickname,password,salt,register_date,last_login_date,login_count) \"\n\t\t\t+ \"values(#{id},#{nickname},#{password},#{salt},#{register_date},#{last_login_date},#{login_count})\")\n\tBoolean tx(ShoppingUser user);", "Long insert(User user);", "@Override\n\tpublic void insert(User user) throws DAOException {\n\t\t\n\t}", "public int createUser(Users user) {\n\t\t int result = getTemplate().update(INSERT_users_RECORD,user.getUsername(),user.getPassword(),user.getFirstname(),user.getLastname(),user.getMobilenumber());\n\t\t\treturn result;\n\t\t\n\t\n\t}", "public int insertUser(User newUser) {\r\n\r\n try {\r\n BusTrackerDB = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(\"username\", newUser.getUsername());\r\n values.put(\"password\", newUser.getPassword());\r\n\r\n BusTrackerDB.insert(\"user\", null, values);\r\n } catch (SQLiteException e) { return 0; }\r\n\r\n BusTrackerDB.close();\r\n\r\n return 1;\r\n }", "int insert(User record);", "int insert(User record);", "int insert(User record);", "int insert(User record);", "int insert(User record);", "int insert(User record);", "int insert(User record);", "int insert(User record);", "@RequestMapping(value = \"themtaikhoan\", method = {RequestMethod.GET})\n public String insertAccount(ModelMap model) {\n if (conUser == null) {\n return \"dangnhap\";\n } else {\n model.addAttribute(\"user\", new User());\n model.addAttribute(\"tenUser\", conUser.getUsername());\n return \"insertAccount\";\n }\n }", "public void addUsuario(Usuario user){\r\n \r\n try{\r\n PreparedStatement ps = bd.prepareStatement(SQLC);\r\n ps.setString(1, user.getUsuario());\r\n ps.setString(2, user.getNome());\r\n ps.setString(3, user.getEmail());\r\n ps.setString(4, user.getSenha());\r\n ps.setString(5, user.getPin());\r\n ps.setString(6, user.getUrlfoto());\r\n ps.setInt(7, user.getAdmin());\r\n ps.executeUpdate();\r\n \r\n ps.close();\r\n ConexaoBD.fechar(bd);\r\n } catch(SQLException sqle){\r\n System.out.println(\"Erro no addUsuario no DAO: \" + sqle.getMessage());\r\n }\r\n }", "@Override\n\tpublic void insertOne(User u) {\n\t\tdao.insertOne(u);\n\t}", "public void AgregarUsuario(Usuario usuario)\n {\n //encerramos todo en un try para manejar los errores\n try{\n //si no hay ninguna conexion entonces generamos una\n if(con == null)\n con = Conexion_Sql.getConexion();\n \n String sql = \"INSERT INTO puntajes(nombre,puntaje) values(?,?)\";\n \n PreparedStatement statement = con.prepareStatement(sql);\n statement.setString(1, usuario.RetornarNombre());\n statement.setInt(2, usuario.RetornarPremio());\n int RowsInserted = statement.executeUpdate();\n \n if(RowsInserted > 0)\n {\n System.out.println(\"La insercion fue exitosa\");\n System.out.println(\"--------------------------------------\");\n }\n else\n {\n System.out.println(\"Hubo un error con la insercion\");\n System.out.println(\"--------------------------------------\");\n }\n }\n catch(SQLException ex)\n {\n ex.printStackTrace();\n }\n }", "public void addUser(String id, String display_name, String phone, String national_number, String country_prefix, String created_at) {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(User.KEY_UID, id); // FirstName //values.put(User.KEY_FIRSTNAME, id); // FirstName\r\n values.put(\"display_name\", display_name); // LastName\r\n values.put(\"phone\", phone); // Email\r\n values.put(\"national_number\", national_number); // UserName\r\n values.put(\"country_prefix\", country_prefix); // Email\r\n values.put(User.KEY_CREATED_AT, created_at); // Created At\r\n\r\n // Inserting Row\r\n db.insert(User.TABLE_USER_NAME, null, values);\r\n db.close(); // Closing database connection\r\n }", "@Insert({\n \"insert into user_t (id, user_name, \",\n \"password, age, ver)\",\n \"values (#{id,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR}, \",\n \"#{password,jdbcType=VARCHAR}, #{age,jdbcType=INTEGER}, #{ver,jdbcType=INTEGER})\"\n })\n int insert(User record);", "public long wsadd_user( UserWS user)\r\n\t\t{ \r\n\t\t\t\r\n\t\t\tlong id = 0; //id de la tabla user (único) \r\n\t\t\t\r\n\t\t \r\n\t\t User userH = new User(user.getLogin(),user.getPassword(),user.getRole(),user.getName(),user.getPhone(),user.getDepartment());\r\n\t\t \r\n\t\t //User cliente1 = new User(\"[email protected]\", \"gutie33\", 1, \"Luis\",\"677899876\", \"Informatica\"); \r\n\t\t \r\n\t\t try \r\n\t\t { \r\n\t\t iniciaOperacion(); \r\n\t\t \r\n\t\t id= (Long) sesion.createQuery(\"SELECT u.id_company FROM Company u WHERE u.company_name ='\"+user.getName_company()+\"'\").uniqueResult();\r\n\t\t Company x = (Company) sesion.load(Company.class, id);\r\n\t\t x.addUsuario(userH);\r\n\t\t \r\n\t\t\t userH.setCompany(x);\r\n\t\t \r\n\t\t //sesion.update(compx);\r\n\t\t \r\n\t\t \r\n\t\t //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t\t tx.commit(); \r\n\t\t }catch(HibernateException he) \r\n\t\t { \r\n\t\t manejaExcepcion(he);\r\n\t\t throw he; \r\n\t\t }finally \r\n\t\t { \r\n\t\t \t//Busqueda del id con qu elo ha introducido a la BBDD\r\n\t\t \tid= (Long) sesion.createQuery(\"SELECT u.id_user FROM User u WHERE u.mail ='\"+user.getLogin()+\"'\").uniqueResult();\r\n\t\t sesion.close(); \r\n\t\t } \r\n\t\t return id; \r\n\t\t}", "@Override\r\n\tpublic int saveUser(User user) {\n\t\tString sql = \"insert into user values(?,?,?,?)\";\r\n\t\treturn this.update(sql,user.getId(), user.getUsername(),user.getPassword(),user.getEmail());\r\n\t}", "public boolean registrar(usuario usr) {\n\n PreparedStatement ps = null;\n Conectar ct = new Conectar();\n Connection con = ct.conexion();\n //INSEERTAR DENTRO DE LA TABLA TRABAJO LOS DATOS DE REGISTRO\n String sql = \"INSERT INTO trabajo (usuario, password, Email, id_tipo, Nombre) VALUES(?,?,?,?,?)\";\n\n try {\n ps = con.prepareStatement(sql);\n\n ps.setString(1, usr.getUsuario());\n\n ps.setString(2, usr.getPassword());\n\n ps.setString(3, usr.getEmail());\n\n ps.setInt(4, usr.getId_tipo());\n\n ps.setString(5, usr.getNombre());\n\n ps.execute();\n return true;\n\n } catch (SQLException ex) {\n Logger.getLogger(sqlUsuario.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }", "@Override\n\tpublic int insertUser(User user) {\n\t\treturn uDao.insertUser(user);\n\t}", "public User insert(User user) throws DataAccessException;", "public int insertUser(UUID userId,User user) {\n\t\treturn 1;\n\t\t\n\t}", "int insert(ParUsuarios record);", "public void onClick(View v) {\n String cod = txtCodigo.getText().toString();\n String nom = txtNombre.getText().toString();\n\n //Alternativa 1: método sqlExec()\n //String sql = \"INSERT INTO Usuarios (codigo,nombre) VALUES ('\" + cod + \"','\" + nom + \"') \";\n //db.execSQL(sql);\n\n //Alternativa 2: método insert()\n ContentValues nuevoRegistro = new ContentValues();\n nuevoRegistro.put(\"codigo\", cod);\n nuevoRegistro.put(\"nombre\", nom);\n db.insert(\"Usuarios\", null, nuevoRegistro);\n }", "public int insertId(user user1)\n\t\t{\n\t\t\t\n\t\t\ttry {\n\t\t\t//\tString sql = \"INSERT INTO `employee`(`Eid`,`EmployeeName`, `Salary`, `email`) VALUES (102,'Zoeya Afreen',19000,'[email protected]')\";\n\t\t//\t String X = \"VALUES (\"+ user1.name +\",'\"+user1.password+\"','\"+user1.email+\"')\";\n\t\t\t\tString sql = \"INSERT INTO `access`(`userid`,`password`, `email`) VALUES (?,?,?)\" ;\n\t\t\t\tpStmt = con.prepareStatement(sql);\n\t\t\t\tpStmt.setString(1, user1.name);\n\t\t\t\tpStmt.setString(2, user1.password);\n\t\t\t\tpStmt.setString(3, user1.email);\n\t\t\t\tSystem.out.println(\"Inside inset Method\");\n\t\t\t//\tstmt = con.createStatement(); \t\t\n\t\t\t\tint i = pStmt.executeUpdate();\t\t\n\t\t\t\tif (i>=0) {\n\t\t\t\tSystem.out.println(\"<<succesfully Registered\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"<<Some issues during Registration \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(\"Some error \"+e);\n\t\t\t}\n\t\t\tSystem.out.println(\"Value of return code i :\" +i);\n\t\t\treturn i;\n\t\t}", "public int addUser(HttpServletRequest request) {\n\t\tHashMap<String, Object> parameters = buildUserInsertCondition(request);\n\n\t\tSimpleJdbcInsert insert = new SimpleJdbcInsert(jt).withTableName(\"sys_user\").usingGeneratedKeyColumns(\"userId\");\n\n\t\tNumber id = insert.executeAndReturnKey(parameters);\n\n\t\tint pk = id.intValue();\n\n\t\treturn pk;\n\t}", "@Override\n\tpublic int insert(User record) {\n\t\treturn userMapper.insert(record);\n\t}", "int insert(UserDO record);", "int insert(UserEntity record);", "@Override\n\tpublic void insertUser(UserPojo user) {\n\t\tuserDao.insertUser(user);\n\t}", "public void addUserUI() throws IOException {\n System.out.println(\"Add user: id;surname;first name;username;password\");\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n User user = new User(a[1], a[2], a[3], a[4], \" \");\n user.setId(Long.parseLong(a[0]));\n try\n {\n User newUser = service.addUser(user);\n if(newUser != null)\n System.out.println(\"ID already exists for \" + user.toString());\n else\n System.out.println(\"User added successfully!\");\n }\n catch (ValidationException ex)\n {\n System.out.println(ex.getMessage());\n }\n catch (IllegalArgumentException ex)\n {\n System.out.println(ex.getMessage());\n }\n }", "public boolean insertAcceso(String username, int id){\n boolean retorno = false;\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"USERNAME\",username);\n contentValues.put(\"ID\",id);\n long resul = db.insert(\"ACCESO\",null,contentValues);\n db.close();\n if (resul ==-1){\n retorno=false;\n }else{\n retorno=true;\n }\n return retorno;\n }", "public void save(User use) {\n jdbcTemplate.update(\"insert into user (id,name) values(?,?)\", use.getName());\n }", "public void addUser(String name, String email, String uid, String created_at) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_NAME, name); // Nombre\n values.put(KEY_EMAIL, email); // Email\n values.put(KEY_UID, uid); // Email\n values.put(KEY_CREATED_AT, created_at); // Fecha de creación\n\n // Insertar tabla\n long id = db.insert(TABLE_USER, null, values);\n db.close(); // Cerra la conexion con la base de datos\n\n Log.d(TAG, \"Nuevo usuario insertado en sqlite: \" + id);\n }", "public void insertUser(String firstname, String lastname, String email) {\n/* 53 */ Connection conn = null;\n/* 54 */ PreparedStatement pstmt = null;\n/* 55 */ String sql = null;\n/* */ \n/* */ try {\n/* 58 */ conn = getConn();\n/* 59 */ System.out.println(\"db접속 성공\");\n/* 60 */ sql = \"insert into members(firstname,lastname,email) values(?,?,?)\";\n/* 61 */ pstmt = conn.prepareStatement(sql);\n/* 62 */ pstmt.setString(1, firstname);\n/* 63 */ pstmt.setString(2, lastname);\n/* 64 */ pstmt.setString(3, email);\n/* 65 */ int i = pstmt.executeUpdate();\n/* */ }\n/* 67 */ catch (Exception e) {\n/* 68 */ e.printStackTrace();\n/* */ } finally {\n/* 70 */ closeDB();\n/* */ } \n/* */ }", "@Override\r\n\tpublic int insert(AdminUser record) {\n\t\treturn adminUserMapper.insert(record);\r\n\t}", "void addNewUser(User user, int roleId) throws DAOException;", "@Override\n\tpublic User insertNewUser(User User) {\n\t\treturn null;\n\t}", "@Override\r\n\t@Transactional(rollbackFor=Exception.class)\r\n\tpublic int insertUser(TUsers users) {\n\t\tdao.insertUser(users);\r\n\t\tint i=10/0;\r\n\t\tdao.insertUser(users);\r\n\t\treturn users.getId();\r\n\t}", "@Override\n public void onClick(View v) {\n trasferisci_utente();\n\n // controlla se tutti i dati sono inseriti\n if (checkInput())\n {\n creaUser();\n NOME = username.getText().toString();\n CHIAVE = password.getText().toString();\n\n // controlla se l'utente USER con i dati inseriti negli edit_text è gia presente\n if (checkUser(persone, NOME, CHIAVE)) {\n\n errore_utente.setVisibility(View.GONE);\n\n // impedisce a due utenti di avere lo stesso username\n if(checkUsername(persone, NOME)) {\n\n errore_duplicato_username.setVisibility(View.GONE);\n\n persone.add(user);\n\n Intent showResult = new Intent(Registration.this, MainActivity.class);\n showResult.putExtra(PERSONA_PATH, persone);\n //showResult.putExtra(UTENTE_PATH, user);\n startActivity(showResult);\n } else {\n errore_duplicato_username.setVisibility(View.VISIBLE);\n }\n } else {\n errore_utente.setVisibility(View.VISIBLE);\n }\n }\n }", "@Override\n public int insert(User record) {\n return 0;\n }", "@PostMapping(\"/users\")\n public Transportador createUser(@Valid @RequestBody Transportador user) {\n return transportadorRepository.save(user);\n }", "public User InsertUser(User user){\n\t\t\t//step to call the jpa class and insert user into the db\n\t\t\treturn user;\n\t\t}", "@Override\r\n\tpublic int insertRequest(UserDto user) {\n\t\treturn 0;\r\n\t}", "public void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);", "@Override\n\tpublic void insert(UsersDto dto) {\n\t\tsession.insert(\"users.insert\", dto);\n\t}", "public void createTableUser(){\r\n Statement stmt;\r\n try {\r\n stmt = this.getConn().createStatement();\r\n ///////////////*********remember to retrieve*************/////////////\r\n //stmt.executeUpdate(\"create table user(username VARCHAR(40),email VARCHAR(40), password int);\");\r\n //stmt.executeUpdate(\"INSERT INTO user VALUES('A','[email protected]',12344);\");\r\n //stmt.executeUpdate(\"INSERT INTO user VALUES('CC','[email protected]',3231);\");\r\n } catch (SQLException e) { e.printStackTrace();}\r\n }", "public long registerClasificadoTable(Clasificacion clasifi, Usuario usuario) {\n\n AdmSQLiteOpenHelper admin;\n ContentValues registro;\n long clasificado_id = 0;\n\n try {\n admin = new AdmSQLiteOpenHelper(this.context);\n admin.createDataBase();\n\n SQLiteDatabase bd = admin.getWritableDatabase();\n registro = new ContentValues();\n registro.put(\"clasificacion_id\", clasifi.getId());\n registro.put(\"usuario_id\", usuario.getId());\n clasificado_id = bd.insert(\"clasificado\", null, registro);\n/*\n Toast.makeText(this.context, \"Se cargaron los datos de Sincronizacion\",\n Toast.LENGTH_SHORT).show();\n*/\n //admin.openDataBase();\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n Toast.makeText(this.context, \"ERR-REGSYNC datos de Sincronizacion\",\n Toast.LENGTH_SHORT).show();\n System.out.println(\"ERR-REGSYNC\" + e.getMessage());\n }\n return clasificado_id;\n\n }", "private void addUser(){\r\n\t\ttry{\r\n\t\t\tSystem.out.println(\"Adding a new user\");\r\n\r\n\t\t\tfor(int i = 0; i < commandList.size(); i++){//go through command list\r\n\t\t\t\tSystem.out.print(commandList.get(i) + \"\\t\");//print out the command and params\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\r\n\t\t\t//build SQL statement\r\n\t\t\tString sqlCmd = \"INSERT INTO users VALUES ('\" + commandList.get(1) + \"', '\"\r\n\t\t\t\t\t+ commandList.get(2) + \"', '\" + commandList.get(3) + \"', '\"\r\n\t\t\t\t\t+ commandList.get(4) + \"', '\" + commandList.get(5) + \"', '\"\r\n\t\t\t\t\t+ commandList.get(6) + \"');\";\r\n\t\t\tSystem.out.println(\"sending command:\" + sqlCmd);//print SQL command to console\r\n\t\t\tstmt.executeUpdate(sqlCmd);//send command\r\n\r\n\t\t} catch(SQLException se){\r\n\t\t\t//Handle errors for JDBC\r\n\t\t\terror = true;\r\n\t\t\tse.printStackTrace();\r\n\t\t\tout.println(se.getMessage());//return error message\r\n\t\t} catch(Exception e){\r\n\t\t\t//general error case, Class.forName\r\n\t\t\terror = true;\r\n\t\t\te.printStackTrace();\r\n\t\t\tout.println(e.getMessage());\r\n\t\t} \r\n\t\tif(error == false)\r\n\t\t\tout.println(\"true\");//end try\r\n\t}" ]
[ "0.7797639", "0.74514127", "0.73965037", "0.71543676", "0.7055477", "0.7054998", "0.70042104", "0.69430184", "0.6896611", "0.6879862", "0.6831309", "0.6823221", "0.6814477", "0.6814209", "0.68076396", "0.67785543", "0.67683613", "0.6746031", "0.67455137", "0.67365754", "0.6734781", "0.67134637", "0.67133605", "0.67045057", "0.6704327", "0.6695296", "0.6683815", "0.6671878", "0.66651213", "0.6662867", "0.6662126", "0.66539466", "0.6653549", "0.6642877", "0.66246265", "0.6612391", "0.6587439", "0.6571525", "0.6562322", "0.65534514", "0.65440196", "0.6541594", "0.6538699", "0.6538699", "0.6526787", "0.65246403", "0.6524618", "0.65197426", "0.65166366", "0.6513025", "0.6509311", "0.65052927", "0.64973533", "0.6478214", "0.6478214", "0.6478214", "0.6478214", "0.6478214", "0.6478214", "0.6478214", "0.6478214", "0.64775246", "0.64738196", "0.6473622", "0.6464213", "0.64636767", "0.64595264", "0.64504385", "0.64436734", "0.64417905", "0.6441661", "0.6436589", "0.6422748", "0.6413222", "0.6410924", "0.64102244", "0.64083546", "0.64039856", "0.639837", "0.6377459", "0.63687", "0.63668454", "0.63635087", "0.63461405", "0.6341932", "0.633839", "0.6337473", "0.6335934", "0.6328679", "0.6322901", "0.63221896", "0.6317954", "0.6315637", "0.63111407", "0.63109034", "0.6309726", "0.6309402", "0.6299162", "0.62953883", "0.62944466" ]
0.701859
6
retorna toda la lista de usuarios
public List<User> user_list() throws HibernateException { List <User> Lista_usuarios = null; try { iniciaOperacion(); //IMPORTANTE la query: se pide la clase realmnete Cliente! no la tabla que se ha creado Lista_usuarios= sesion.createQuery("FROM User").list(); //creamos consulta de la tabla clientes (en plural)! }finally { sesion.close(); } return Lista_usuarios; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getUsuarios();", "public ArrayList <Usuario>listaUsuario(){\r\n\t\treturn loja.getUsuarios();\r\n\t}", "@Override\r\n\tpublic List<Usuario> listarUsuario() {\n\t\treturn iUsuario.listarUsuarios();\r\n\t}", "public List<Usuario> getUsuarios(){\n\t\tList<Usuario> lista = new LinkedList<Usuario>();\n\t\tfor (Usuario c: usuarios.values()) \n\t\t\tlista.add(c);\n\t\treturn lista;\n\t}", "public String ListUsers(){\r\n StringBuilder listUsers = new StringBuilder();\r\n for (Utente u: utenti) { // crea la lista degli utenti registrati al servizio\r\n listUsers.append(u.getUsername()).append(\" \");\r\n \tlistUsers.append(u.getStatus()).append(\"\\n\");\r\n }\r\n return listUsers.toString(); \r\n }", "public List<Usuario> obtenerListaUsuariosActivos(){\n return usuarioBean.obtenerListaUsuariosActivos();\n }", "public List<User> ObtenerTodosUsuarios() throws BLException;", "List<Usuario> obtenerUsuarios() throws Exception;", "public List<Utilizator> listUsers();", "public String[] listUsers();", "public List<Usuario> getListaDeUsuarios() {\n\t\tList<Usuario> listaDeUsuarios = usuarioService.getUsuarios();\n\t\treturn listaDeUsuarios;\n\t}", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "public List<Usuario> getUsuarios() {\n\t\treturn getUsuarioDAO().listarTodos();\n\t}", "public List<UsuarioDTO> listarUsuarios() {\n\t\treturn null;\n\n\t}", "private void listarUsuarios() {\r\n \t\r\n \tfor(String usuario : ConfigureSetup.getUsers()) {\r\n \t\tif(!usuario.equals(ConfigureSetup.getUserName()))\r\n \t\t\tlista_usuarios.getItems().add(usuario);\r\n \t}\r\n \t\r\n \t//lista_usuarios.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\t\r\n }", "public List getAllUsers();", "public List<UsuarioDTO> obterListaUsuarios() throws RemoteException;", "public List<Usuario> getUsuario() {\r\n return usuarios;\r\n }", "@Override\n\t@Transactional\n\tpublic List<Usuario> ListaUsuarios() {\n\t\ttry {\n\t\t\tQuery query = manager.createQuery(\"from Usuario\");\n\t\t\tList<Usuario> usuarios = query.getResultList();\n\t\t\treturn usuarios;\n\t\t}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tthrow new RuntimeException(e);\t\t\t\n\t\t} finally {\n\t\t\t// TODO: handle finally clause\n\t\t\tmanager.close();\n\t\t}\n\t}", "@Override\n\tpublic List<Usuario> getAllUsuarios() {\n\t\treturn new ArrayList<Usuario>();\n\t}", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "@Override\n\tpublic List<Usuario> listUsuario() {\n\t\treturn null;\n\t}", "public List<String> listUsers() \n\t{\n\t\treturn this.userList.keys();\n\t\t\n\t}", "List<User> getUsers();", "List<User> getUsers();", "public List<User> getUserList();", "public List<Usuario> listarUsuarios(boolean Vigente){\r\n return cVista.listarUsuarios(Vigente);\r\n }", "public List<User> getUsers();", "public List<User> getAllUsers(){\n myUsers = loginDAO.getAllUsers();\n return myUsers;\n }", "public List<User> getUserList()\r\n\t{\r\n\t//\tGet the user list\r\n\t//\r\n\t\treturn identificationService.loadUserList();\r\n\t}", "public List listUsers() {\n Session session = HibernateSessionFactory.getSessionFactory().openSession();\n Transaction tx = null;\n List users = null;\n try {\n tx = session.beginTransaction();\n users = session.createQuery(\"FROM User\").list();\n for (Iterator iterator = users.iterator(); iterator.hasNext(); ) {\n User user = (User) iterator.next();\n System.out.print(\"id: \" + user.getId());\n System.out.print(\" Username: \" + user.getUsername());\n System.out.print(\" Password: \" + user.getPassword());\n System.out.println(\" Email: \" + user.getEmail());\n }\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null) tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n return users;\n }", "public List<Users> getUserList(){\n\t\tList<Users> users = (List<Users>) this.userDao.findAll();\n\t\treturn users;\n\t}", "public List<Usuario> getAllUsuarios(){\r\n List<Usuario> users = new ArrayList<Usuario>();\r\n try{\r\n PreparedStatement ps = bd.prepareStatement(SQLALL);\r\n ResultSet rs = ps.executeQuery();\r\n while(rs.next()){\r\n Usuario u = new Usuario();\r\n u.setId(rs.getInt(\"id\"));\r\n u.setUsuario(rs.getString(\"usuario\"));\r\n u.setNome(rs.getString(\"nome\"));\r\n u.setEmail(rs.getString(\"email\"));\r\n u.setSenha(rs.getString(\"senha\"));\r\n u.setPin(rs.getString(\"pin\"));\r\n u.setUrlfoto(rs.getString(\"urlfoto\"));\r\n u.setAcesso(rs.getTimestamp(\"acesso\"));\r\n u.setAdmin(rs.getInt(\"admin\"));\r\n users.add(u);\r\n }\r\n rs.close();\r\n ps.close();\r\n ConexaoBD.fechar(bd);\r\n } catch(SQLException sqle){\r\n System.out.println(\"Erro no getAllUsuarios no DAO: \" + sqle.getMessage());\r\n }\r\n return users;\r\n }", "public List<Usuario> ultimosUsuariosCadastrados(){\r\n List<Usuario> users = new ArrayList<Usuario>();\r\n try{\r\n PreparedStatement ps = bd.prepareStatement(\"SELECT * FROM usuarios ORDER BY id DESC\");\r\n ResultSet rs = ps.executeQuery();\r\n while(rs.next()){\r\n Usuario u = new Usuario();\r\n u.setId(rs.getInt(\"id\"));\r\n u.setUsuario(rs.getString(\"usuario\"));\r\n u.setNome(rs.getString(\"nome\"));\r\n u.setEmail(rs.getString(\"email\"));\r\n u.setSenha(rs.getString(\"senha\"));\r\n u.setPin(rs.getString(\"pin\"));\r\n u.setUrlfoto(rs.getString(\"urlfoto\"));\r\n u.setAcesso(rs.getTimestamp(\"acesso\"));\r\n u.setAdmin(rs.getInt(\"admin\"));\r\n users.add(u);\r\n }\r\n rs.close();\r\n ps.close();\r\n ConexaoBD.fechar(bd);\r\n } catch(SQLException sqle){\r\n System.out.println(\"Erro ao apresentar os ultimos usuarios cadastrados: \"+sqle.getMessage());\r\n }\r\n return users;\r\n }", "public List<Usuario> getTodosOsUsuarios() {\r\n\t\treturn listaDeUsuarios;\r\n\t}", "public List<User> getAllUsers();", "List<KingdomUser> getUsers();", "public String listUsers(){\n \tStringBuilder sb = new StringBuilder();\n \tif(users.isEmpty()){\n \t\tsb.append(\"No existing Users yet\\n\");\n \t}else{\n \t\tsb.append(\"Meeting Manager Users:\\n\");\n \t\tfor(User u : users){\n \t\t\tsb.append(\"*\"+u.getEmail()+\" \"+ u.getPassword()+\" \\n\"+u.listInterests()+\"\\n\");\n \t\t}\n \t}\n \treturn sb.toString();\n }", "public List<Usuario> findAllUsuarios(){\n\t\t\t List<Usuario> listado;\n\t\t\t Query q;\n\t\t\t em.getTransaction().begin();\n\t\t\t q=em.createQuery(\"SELECT u FROM Usuario u ORDER BY u.idUsr\");\n\t\t\t listado= q.getResultList();\n\t\t\t em.getTransaction().commit();\n\t\t\t return listado;\n\t\t\t \n\t\t\t}", "@Override\r\n\tpublic List<User> users() {\r\n\t\tList<User> ris = new ArrayList<>();\r\n\t\tList< Map <String,String>> maps = getAll(SELECT_USERS);\r\n\t\tfor (Map<String, String> map : maps) {\r\n\t\t\tris.add(IMappable.fromMap(User.class, map));\r\n\t\t}\r\n\t\treturn ris;\r\n\t}", "public ArrayList<String> getAllUsers() {\n\t\tSystem.out.println(\"Looking up all users...\");\n\t\treturn new ArrayList<String>(users.keySet());\t\n\t}", "protected void getUserList() {\n\t\tmyDatabaseHandler db = new myDatabaseHandler();\n\t\tStatement statement = db.getStatement();\n\t\t// db.createUserTable(statement);\n\t\tuserList = new ArrayList();\n\t\tsearchedUserList = new ArrayList();\n\t\tsearchedUserList = db.getUserList(statement);\n\t\tuserList = db.getUserList(statement);\n\t\tusers.removeAllElements();\n\t\tfor (User u : userList) {\n\t\t\tusers.addElement(u.getName());\n\t\t}\n\t}", "public List<UsrMain> getListUsers() {\n return mobileCtrl.getListUsers();\n }", "@Override\r\n\tpublic List<Usuario> listAll() {\n\t\treturn null;\r\n\t}", "public List<NguoiNhap> getAllUsers() throws SQLException {\r\n rs = connectionAdmin(\"SELECT * FROM USER\");\r\n List<NguoiNhap> listUsers;\r\n if (rs != null) {\r\n\r\n listUsers = new ArrayList<NguoiNhap>() {\r\n {\r\n while (rs.next()) {\r\n add(new NguoiNhap(rs.getString(\"username\"), rs.getString(\"password\"), rs.getString(\"ten\"), rs.getString(\"gioitinh\"), rs.getString(\"ngaysinh\")));\r\n }\r\n rs.close();\r\n stm.close();\r\n con.close();\r\n }\r\n };\r\n\r\n return listUsers;\r\n }\r\n\r\n return null;\r\n }", "public List<User> list();", "protected ArrayList<String> obtenerUsuarios() {\r\n\t\tArrayList<String> arregloUsuarios = new ArrayList<String>();\r\n\t\tarregloUsuarios.add(\"Adrian\");\r\n\t\tarregloUsuarios.add(\"Luis\");\r\n\t\tarregloUsuarios.add(\"Jesus\");\r\n\t\tarregloUsuarios.add(\"Angel\");\r\n\t\tarregloUsuarios.add(\"Eduardo\");\r\n\t\tarregloUsuarios.add(\"Ivan\");\r\n\t\tarregloUsuarios.add(\"Hilario\");\r\n\t\tarregloUsuarios.add(\"Fernando\");\r\n\t\tarregloUsuarios.add(\"Michel\");\r\n\t\tarregloUsuarios.add(\"Andres\");\r\n\t\tarregloUsuarios.add(\"Maria\");\r\n\t\tarregloUsuarios.add(\"Francisco\");\r\n\t\treturn arregloUsuarios;\r\n\t}", "public ArrayList<User> showUsers(){\n\t\treturn this.userList;\n\t}", "@Override\n\tpublic List<Usuario> findAllUsers() {\n\t\treturn usuarioRepository.findAll();\n\t}", "public List<Usuario> todosLosUsuarios() throws SQLException {\n PreparedStatement preSt = connection.prepareStatement(USUARIOS);\n ResultSet result = preSt.executeQuery();\n\n List<Usuario> usuario = new LinkedList<>();\n\n while (result.next()) {\n usuario.add(new Usuario(\n result.getInt(Usuario.USUARIO_ID_DB_NAME),\n result.getString(Usuario.NOMBRE_DB_NAME),\n result.getString(Usuario.PROFESION_DB_NAME),\n result.getString(Usuario.PASSWORD_DB_NAME)\n ));\n }\n System.out.println(\"Usuarios: \" + usuario.size());\n return usuario;\n }", "public List<User> listUsers(String userName);", "public static ArrayList<String> getUsuarios(Context context) {\n\t\tArrayList<String> lista = new ArrayList<String>();\n\t\t\t\n\t\t//La consulta a realizar\n\t\tString consulta = \t\"SELECT nombre \" +\n\t\t\t\t\t\t\t\"FROM Usuario \" +\n\t\t\t\t\t\t\t\"ORDER BY idUsuario\";\n\t\t\n\t\t//Tomar nombres de la base de datos\t\t\n\t\tCursor usuario = SQLFuncion.getConsulta(context, consulta, null);\n\t\t\n\t\t//Verificar que no sea nulo\n\t\tif (usuario != null) {\n\t\t\t\n\t\t\t//Verificar por al menos un resultado\n\t\t\tif (usuario.getCount() > 0) {\n\t\t\t\tusuario.moveToFirst();\n\t\t\t\t\n\t\t\t\tboolean mover = true;\n\t\t\t\twhile(mover==true) {\t\t\t\t\t\n\t\t\t\t\t//Agregar al ArrayList\n\t\t\t\t\tlista.add(usuario.getString(usuario.getColumnIndex(\"nombre\")));\n\t\t\t\t\tmover = usuario.moveToNext();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn lista;\t\t\t\t\n\t}", "public List<Login>listar();", "private void CargarUsuarios(){\n administradores.clear();\n usuariosList.clear();\n for (String i: BienvenidaActivity.UsuariosRegistrados.keySet()) {\n if(EsAdmin(i)){\n administradores.add(BienvenidaActivity.UsuariosRegistrados.get(i));\n }else{\n usuariosList.add(BienvenidaActivity.UsuariosRegistrados.get(i));\n }\n }\n String admins_string = \"\";\n for(Usuario admin : administradores){\n admins_string += admin.getUsername() + \" -> \" + admin.getNombre() + \" \" + admin.getApellido() + \"\\n\";\n }\n\n String users_string = \"\";\n for(Usuario userss : usuariosList){\n users_string += userss.getUsername() + \" -> \" + userss.getNombre() + \" \" + userss.getApellido() + \"\\n\";\n }\n\n // Finalmente se coloca en la actividad\n\n txtvw_contadmin.setText(String.valueOf(administradores.size()));\n txtvw_contusers.setText(String.valueOf(usuariosList.size()));\n txtvw_admins.setText(admins_string);\n txtvw_users.setText(users_string);\n }", "public List<String> getUsers() {\n return Collections.unmodifiableList(users);\n }", "@Override\n\tpublic List<User> get() {\n\t\tList<User> result = new ArrayList<>();\n\t\tfor (String key : userlist.keySet()) {\n\t\t\tUser user = userlist.get(key);\n\t\t\tint dni = user.getDni();\n\t\t\tString name = user.getName();\n\t\t\tString secondName = user.getSecondName();\n\t\t\tString username = user.getUser();\n\t\t\tString pass = user.getPass();\n\t\t\tresult.add(new User(dni, name, secondName, username, pass));\n\t\t}\n\t\treturn result;\n\t}", "@Nonnull\n List<User> getUsers();", "public ArrayList<String> Usuarios() {\r\n ArrayList<String> Lista_Usuarios = new ArrayList();\r\n try {\r\n String temp;\r\n BufferedReader bf = new BufferedReader(new FileReader(\"src/Archivos/cuentas.txt\"));\r\n String bfRead;\r\n while ((bfRead = bf.readLine()) != null) {\r\n temp = bfRead;\r\n String lista = temp;\r\n String[] lista1 = lista.split(\";\");\r\n if (lista1[4].equals(\"0\")) {\r\n Lista_Usuarios.add(lista1[0]);\r\n }\r\n }\r\n\r\n } catch (IOException e) {\r\n System.err.println(\"No se encontro el archivo\" + e);\r\n }\r\n return Lista_Usuarios;\r\n }", "public List<User> list() {\n\t\treturn userDao.list();\n\t}", "@Override\n\tpublic ArrayList<Utente> getUsers() {\n\t\tDB db = getDB();\n\t\tArrayList<Utente> usersList = new ArrayList<>();\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tfor(Map.Entry<Long, UtenteBase> user : users.entrySet())\n\t\t\tif(user.getValue() instanceof Utente)\n\t\t\t\tusersList.add((Utente) user.getValue());\n\t\treturn usersList;\n\t}", "@Override\r\n\tpublic List<User> getUsersList(String key) {\n\t\treturn loginDao.findByUsernameAndRole(key,\"USER\");\r\n\t}", "public List<Usuario> listarTodos() {\n List<Usuario> r = new ArrayList<>();\n try {\n try (Connection cnx = bd.obtenerConexion(Credenciales.BASE_DATOS, Credenciales.USUARIO, Credenciales.CLAVE);\n Statement stm = cnx.createStatement();\n ResultSet rs = stm.executeQuery(CMD_LISTAR2)) {\n while (rs.next()) {\n r.add(new Usuario(\n rs.getString(\"cedula\"),\n rs.getString(\"apellido1\"),\n rs.getString(\"apellido2\"),\n rs.getString(\"nombre\")\n ));\n }\n }\n } catch (SQLException ex) {\n System.err.printf(\"Excepción: '%s'%n\",\n ex.getMessage());\n }\n return r;\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public List<User> listUsers() {\n Session session = this.sessionFactory.getCurrentSession();\n List<User> UsersList = session.createQuery(\"from User\").list();\n for(User u : UsersList){\n logger.info(\"User List::\"+u);\n }\n return UsersList;\n }", "@Override\r\n\tpublic List<UserVO> userList() {\n\t\treturn adao.UserList();\r\n\t}", "@Override\r\n\tpublic List listAllUser() {\n\t\treturn userDAO.getUserinfoList();\r\n\t}", "public List<Usuario> listar() {\n List<Usuario> listaUsuarios = new ArrayList<>();\n String consulta = \"select tipoDocumento, documento, nombre, apellido, password, correo, tipoUsuario from Usuario\";\n Cursor temp = conex.ejecutarSearch(consulta);\n if (temp.moveToFirst()) {\n do {\n Usuario usuario = new Usuario(temp.getString(0), Integer.parseInt(temp.getString(1)), temp.getString(2), temp.getString(3), temp.getString(4), temp.getString(5), temp.getString(6));\n listaUsuarios.add(usuario);\n } while (temp.moveToNext());\n }\n return listaUsuarios;\n }", "List<User> getAllUsers();", "List<User> getAllUsers();", "public List<User> listAll() throws Exception;", "public List<User> displayUsers() {\n\t\t\r\n\t\ttry {\r\n\t\t\treturn sessionFactory.getCurrentSession().createQuery(\"from com.niit.model.User\").list();\r\n\t\t\t\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public List<Usuario> listarUsuario() {\n \n List<Usuario> lista = usuarioDAO.findAll();\n return lista;\n \n \n\n }", "@Override\n\tpublic List<User> list() \n\t{\n\t\treturn userDAO.list();\n\t}", "@Override\n\tpublic List<Usuario> obtenerTodas() {\n\t\treturn lista;\n\t}", "@Override\n public List<User> selectAllUsers() {\n\n List<User> userList = new ArrayList<>();\n\n try (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) {\n\n String sql = \"SELECT * FROM ers_users\";\n\n PreparedStatement ps = connection.prepareStatement(sql);\n\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n userList.add(\n new User(\n rs.getInt(1)\n , rs.getString(2)\n , rs.getString(3)\n , rs.getString(4)\n , rs.getString(5)\n , rs.getString(6)\n , rs.getInt(7)\n )\n );\n }\n }\n\n catch (SQLException e) {\n\n e.printStackTrace();\n }\n\n return userList;\n }", "public List selectAllFromUsuario() throws IOException {\n erro = false;\n List usuarios = null;\n try {\n usuarios = con.query(\"Select * from usuario\", new BeanPropertyRowMapper(Usuario.class));\n } catch (CannotGetJdbcConnectionException ex) {\n logger.gravarDadosLog(\"ERRO\", \"SELECT\" , \"Não foi possivel realizar a consulta dos usuário cadastrados.\" + Arrays.toString(ex.getStackTrace()));\n erro = true;\n }\n \n if(!erro){\n logger.gravarDadosLog(\"INFO\", \"SELECT\" , \"A busca de usuários cadastrados foi realizada com sucesso.\");\n }\n erro = false;\n return usuarios;\n }", "@Override\n\tpublic List<User> getList() {\n\t\treturn Lists.newArrayList(userRepository.findAll());\n\t}", "public List<User> list(String currentUsername);", "@Override\n\tpublic List<LoginVO> obtenerUsus() {\n\t\treturn null;\n\t}", "public List<User> userList() {\r\n\t\treturn DataDAO.getUserList();\r\n\r\n\t}", "public List<Usuario> listar() {\n return listaUse;\n }", "public String ListOnlineUsers(){\r\n StringBuilder listUsers = new StringBuilder();\r\n for (Utente u: utenti) { // crea la lista degli utenti registrati al servizio e online\r\n if(u.getStatus().equals(\"ONLINE\")) {\r\n \tlistUsers.append(u.getUsername()).append(\" \");\r\n \tlistUsers.append(u.getStatus()).append(\"\\n\");\r\n }\r\n }\r\n return listUsers.toString(); \r\n }", "public List<User> listUsers() throws IOException, ClassNotFoundException {\n\t\treturn list(User.class);\n\t}", "public List<String> getUserList() throws Exception {\n\t\tString result = null;\n\t\tArrayList<String> userList = new ArrayList<String>();\n\t\tString adminToken = this.loginAAA(this.adminUsername,\n\t\t\t\tthis.adminPassword);\n\t\tHttpURLConnection httpConn;\n\t\thttpConn = this.setHttpConnection(openAMLocation\n\t\t\t\t+ \"/json/users?_queryID=*\");\n\t\tthis.setHttpTokenInCookie(httpConn, adminToken);\n\t\tthis.setGetHttpConnection(httpConn);\n\n\t\tBufferedReader br = this.getHttpInputReader(httpConn);\n\t\tString str;\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\twhile ((str = br.readLine()) != null) {\n\t\t\tsb.append(str);\n\t\t}\n\n\t\tif (httpConn.getResponseCode() == 200) {\n\t\t\tresult = sb.toString();\n\t\t\tJSONObject JsonObj = new JSONObject(result);\n\t\t\tJSONArray userArray;\n\t\t\tif (JsonObj.has(\"result\")) {\n\t\t\t\tuserArray = JsonObj.getJSONArray(\"result\");\n\t\t\t\tif (userArray != null) {\n\n\t\t\t\t\tfor (int i = 0; i < userArray.length(); i++) {\n\t\t\t\t\t\tString userAccount = userArray.getString(i);\n\t\t\t\t\t\t// System.out.println(userAccount);\n\t\t\t\t\t\tif (!userAccount.equalsIgnoreCase(\"quanta\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"mcumanager\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"rtpproxy1\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"rtpproxy2\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"amAdmin\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"thcadmin\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"cmpadmin\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"anonymous\"))\n\t\t\t\t\t\t\tuserList.add(userAccount);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tlogger.error(\"read User List fail, response: {}\", sb.toString());\n\t\t}\n\t\tbr.close();\n\t\t\n\t\tif (adminToken != null) {\n\t\t\tthis.logoutAAA(adminToken);\n\t\t}\n\t\treturn userList;\n\n\t}", "@Override\n\tpublic List<User> getUserList() {\n\t\treturn userDao.getList();\n\t}", "@Override\r\n\tpublic List<User> getUsers() {\n\t\tList<User> userlist=dao.getUsers();\r\n\t\treturn userlist;\r\n\t}", "public void getAllUsers() {\n\t\t\n\t}", "public static List<User> getUsersList(){\n\t\tWSResponse response = null;\n\t\tList<User> resultList = new ArrayList<User>();\n\t\ttry{\n\t\tPromise<WSResponse> result = WS.url(Utils.getApiUrl()+Urls.GET_USERS_URL)\n\t\t\t\t\t\t\t\t\t\t.setContentType(Urls.CONTENT_TYPE_JSON)\n\t\t\t\t\t\t\t\t\t\t.get();\n\t\tresponse = result.get(10000);\n\t\tGson gson = new Gson();\n\t\tUser[] users = gson.fromJson(response.getBody(), User[].class);\n\t\tfor(int i=0; i<users.length; i++){\n\t\t\tresultList.add(users[i]);\n\t\t}\n\t\t} catch(Exception exception){\n\t\t\tController.flash(Messages.ERROR, Messages.CANT_LOAD_USERS + exception);\n\t\t}\n\t\treturn resultList;\n\t}", "public ArrayList<DataUsuario> listarUsaurios();", "List<String> loadAllUserNames();", "public ArrayList<Usuario> getUsuarios(Usuario creador){\r\n ArrayList<Usuario> al= new ArrayList<>();\r\n if (creador.isAdmin()){\r\n try {\r\n String sql= \"Select * from sistemasEM.usuarios\";\r\n Statement s= connection.createStatement();\r\n ResultSet rs = s.executeQuery(sql);\r\n Usuario u;\r\n while(rs.next()){\r\n TipoDescuento td = this.getTipoDescuento(rs.getInt(\"permisosDescuento\"));\r\n TipoPersonal tp = this.getTipoPersonal(rs.getInt(\"permisosPersonal\"));\r\n al.add( new Usuario(rs.getInt(\"id\"), rs.getString(\"nombre\"), rs.getString(\"mostrar\"),rs.getBoolean(\"admin\"),tp,td,rs.getBoolean(\"notas\"),rs.getBoolean(\"habilitacion\"),rs.getBoolean(\"profesor\"),rs.getInt(\"ciProfesor\"),rs.getBoolean(\"cambiarContra\")));\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return al;\r\n }", "@Override\n\tpublic List<User> getUserList() {\n\t\treturn userDao.queryUser();\n\t}", "private void getUserList() {\n // GET ENTRIES FROM DB AND TURN THEM INTO LIST \n DefaultListModel listModel = new DefaultListModel();\n Iterator itr = DBHandler.getListOfObjects(\"FROM DBUser ORDER BY xname\");\n while (itr.hasNext()) {\n DBUser user = (DBUser) itr.next();\n listModel.addElement(user.getUserLogin());\n }\n // SET THIS LIST FOR INDEX OF ENTRIES\n userList.setModel(listModel);\n }", "public static ArrayList<User> getUsers() {\n users = new ArrayList<User>();\n /*users.add(new User(\"Парковый Гагарина 5а/1\", \"срочный\", \"общий\"));\n users.add(new User(\"Алексеевские планы Ореховая 15 возле шлагбаума\", \"срочный\", \"общий\"));\n users.add(new User(\"Фастовецкая Азина 26\", \"срочный\", \"индивидуальный\"));*/\n //users.add(new User(MainActivity.adres.get(0), \"срочный\", \"общий\"));\n users.add(new User(\"Нет заказов\",\"срочный\",\"общий\"));\n return users;\n }", "@Override\n public void mostrarUsuarios(List<UserModel> usuarios) {\n }", "public List<User> getAllUsers() {\n return users;\n }", "public List<Users> getAllUsers() {\r\n\t\t// return usDao.findAll();\r\n\t\treturn usDao.getAllUsers();\r\n\t}", "public List<Account> getListOfLoggedUsers() {\n\t\tList<Account> loggedUsers = new ArrayList<>();\n\t\tloggedUsers = adminDao.getLoggedUsers();\n\n\t\tif (loggedUsers == null) {\n\t\t\tSystem.out.println(\"There is no logged users currently!\\n\");\n\t\t\tAdminMenu.getAdminMenu();\n\t\t}\n\t\treturn loggedUsers;\n\t}", "@Override\n\tpublic ArrayList<UsuarioComum> getAll() {\n\t\treturn null;\n\t}", "public List<User> getUserList() {\n\t\treturn null;\n\t}" ]
[ "0.8154098", "0.81018853", "0.804383", "0.8018853", "0.7980805", "0.78420967", "0.783511", "0.7821345", "0.77653146", "0.7681803", "0.7680702", "0.7653614", "0.76531434", "0.76433074", "0.7628982", "0.76120585", "0.76072323", "0.7553162", "0.75367206", "0.7527213", "0.7524432", "0.7490792", "0.7490503", "0.7488648", "0.74474484", "0.74474484", "0.7402921", "0.7394939", "0.7375062", "0.73748595", "0.73608106", "0.73588943", "0.73511994", "0.7342516", "0.7327882", "0.73216134", "0.7300464", "0.7296713", "0.7293136", "0.7287721", "0.7277184", "0.7275422", "0.7264184", "0.7260611", "0.7259972", "0.72588426", "0.72588325", "0.7233485", "0.722734", "0.7220579", "0.72172624", "0.7210556", "0.72018605", "0.71984166", "0.7191359", "0.718522", "0.7183978", "0.7181458", "0.716536", "0.7163332", "0.7160521", "0.7151993", "0.714205", "0.71357226", "0.7134853", "0.713409", "0.7129119", "0.71228325", "0.71228325", "0.7112955", "0.71080655", "0.71008724", "0.70979583", "0.70975447", "0.7097356", "0.7095636", "0.70900637", "0.7088051", "0.7078644", "0.70743084", "0.70742273", "0.7067695", "0.70646906", "0.7062239", "0.70614415", "0.7060828", "0.70603955", "0.70564735", "0.7050836", "0.7046333", "0.7042012", "0.70392036", "0.7037306", "0.7035476", "0.7031029", "0.70108926", "0.70099515", "0.7007608", "0.7007087", "0.7001111" ]
0.74754286
24
METODOS CRUD NODOS Inserta nuevo usuario devolviendo el id de la tabla
public long create_node(Node node) { long id = 0; //id de la tabla user (único) try { iniciaOperacion(); id = (Long)sesion.save(node); //metodo para guardar cliente (del objeto hibernate.sesion) tx.commit(); }catch(HibernateException he) { manejaExcepcion(he); throw he; }finally { sesion.close(); } return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertUser() {}", "@Override\r\n\tpublic Usuario insert(Usuario t) {\n\t\treturn null;\r\n\t}", "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 }", "private void insert() {//将数据录入数据库\n\t\tUser eb = new User();\n\t\tUserDao ed = new UserDao();\n\t\teb.setUsername(username.getText().toString().trim());\n\t\tString pass = new String(this.pass.getPassword());\n\t\teb.setPassword(pass);\n\t\teb.setName(name.getText().toString().trim());\n\t\teb.setSex(sex1.isSelected() ? sex1.getText().toString().trim(): sex2.getText().toString().trim());\t\n\t\teb.setAddress(addr.getText().toString().trim());\n\t\teb.setTel(tel.getText().toString().trim());\n\t\teb.setType(role.getSelectedIndex()+\"\");\n\t\teb.setState(\"1\");\n\t\t\n\t\tif (ed.addUser(eb) == 1) {\n\t\t\teb=ed.queryUserone(eb);\n\t\t\tJOptionPane.showMessageDialog(null, \"帐号为\" + eb.getUsername()\n\t\t\t\t\t+ \"的客户信息,录入成功\");\n\t\t\tclear();\n\t\t}\n\n\t}", "public int insertar()\n {\n try {\n Conexion conn = Conexion.getInstance();\n return conn.insertarUsuario(this);\n } catch (SQLException |Config.ReadException|Config.EmptyProperty throwables) {\n return -1;\n }\n }", "@Override\r\n\tpublic boolean insertUsuario(Usuario user) {\n\t\treturn false;\r\n\t}", "int insert(ParUsuarios record);", "private void insertar() {\n try {\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.insertar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Ingresado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para guardar registro!\");\n }\n }", "public void SaveUsuario(UsuarioDTO u) {\n Conexion c = new Conexion();\n PreparedStatement ps = null;\n String sql = \"INSERT INTO Usuario(nombre,apellido,usuario,email,password,fecha_nacimiento,fecha_creacion)\"\n + \"VALUES (?,?,?,?,?,?,?)\";\n try {\n ps = c.getConexion().prepareStatement(sql);\n ps.setString(1, u.getNombre());\n ps.setString(2, u.getApellido());\n ps.setString(3, u.getUsuario());\n ps.setString(4, u.getEmail());\n ps.setString(5, u.getPassword());\n ps.setDate(6, Date.valueOf(u.getFecha_Nacimiento()));\n ps.setDate(7, Date.valueOf(u.getFecha_Creacion()));\n ps.executeUpdate();\n } catch (SQLException ex) {\n System.out.println(\"A \" + ex.getMessage());\n } catch (Exception ex) {\n System.out.println(\"B \" + ex.getMessage());\n } finally {\n try {\n ps.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n }", "public void save() {\r\n\t\tString checkQuery = \"SELECT * FROM users WHERE id = \" + this.id;\r\n\t\tStatement stm;\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\tconnection = DBConnection.getConnection();\r\n\t\t\tstm = connection.createStatement();\r\n\t\t\trs = stm.executeQuery(checkQuery);\r\n\t\t\t// istnieje już ten obiekt - update\r\n\t\t\tif (rs.first()) {\r\n\t\t\t\tString query = \"UPDATE users SET name = \" + toStringOrNULL(name)\r\n\t\t\t\t\t\t+ \", password = \" + toStringOrNULL(password)\r\n\t\t\t\t\t\t+ \", is_admin = \" + isAdmin \r\n\t\t\t\t\t\t+ \", removed_at = \" + toStringOrNULL(removedAt) \r\n\t\t\t\t\t\t+ \" WHERE id = \" + getId();\r\n\t\t\t\texecuteNonReturningQuery(query);\r\n\t\t\t}\r\n\t\t\t// jeszcze go nie ma - zapis nowego\r\n\t\t\telse {\r\n\t\t\t\tString query = \"INSERT INTO users (name, password, removed_at, is_admin) VALUES (\"\r\n\t\t\t\t\t\t+ toStringOrNULL(name) + \", \"\r\n\t\t\t\t\t\t+ toStringOrNULL(password) + \", \"\r\n\t\t\t\t\t\t+ toStringOrNULL(removedAt) + \", \"\r\n\t\t\t\t\t\t+ isAdmin + \")\";\r\n\t\t\t\texecuteNonReturningQuery(query);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tconnection.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void insert(User objetc) {\n\t\tuserDao.insert(objetc);\n\t\t\n\t}", "public void createUser() {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"INSERT INTO t_user (nom,prenom,userName,pass,tel,type,status) values(?,?,?,?,?,?,?)\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setBoolean(7, true);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().error(\"Fin d'ajout d'utilisateur\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec d'ajout d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closePrepareStatement(ps);\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);", "public void almacenoDatos(){\n BaseDatosSecundaria administrador= new BaseDatosSecundaria(this);\n SQLiteDatabase bdsecunadaria= administrador.getWritableDatabase();\n _valuesPedido.put(\"Producto\", this._productoNombre);\n _valuesPedido.put(\"Precio\",this._productoPrecio);\n _valuesPedido.put(\"Cantidad\",this._etAdquirir.getText().toString());\n _valuesPedido.put(\"Vendedor\",this.username);\n _valuesPedido.put(\"Id_Producto\",this._productoId);\n bdsecunadaria.insert(\"DATOS\",null,this._valuesPedido);\n bdsecunadaria.close();\n }", "private void registrar() {\n String nombre = txtNombre.getText();\n if (!nombre.trim().isEmpty()) {\n Alumno a = new Alumno();\n \n // cont++ , ++cont\n// contIds++;\n a.setNombre(nombre);\n a.setId(++contIds);\n \n listaAlumnos.add(a);\n\n lblCantidad.setText(\"Cantidad de nombres: \" + listaAlumnos.size());\n\n txtNombre.setText(null);\n txtNombre.requestFocus();\n // Actualiza la interfaz gráfica de la tabla\n tblNombres.updateUI();\n \n// int cont = 1;\n// System.out.println(\"------------------\");\n// System.out.println(\"Listado de alumnos\");\n// System.out.println(\"------------------\");\n// for (String nom : listaNombres) {\n// System.out.println(cont+\") \"+nom);\n// cont++;\n// }\n// System.out.println(\"------------------\");\n }\n }", "public crud_empleados() {\n initComponents();\n txt_usuario1.setEditable(false);\n Mostrar();\n \n\n\n }", "public void AgregarUsuario(Usuario usuario)\n {\n //encerramos todo en un try para manejar los errores\n try{\n //si no hay ninguna conexion entonces generamos una\n if(con == null)\n con = Conexion_Sql.getConexion();\n \n String sql = \"INSERT INTO puntajes(nombre,puntaje) values(?,?)\";\n \n PreparedStatement statement = con.prepareStatement(sql);\n statement.setString(1, usuario.RetornarNombre());\n statement.setInt(2, usuario.RetornarPremio());\n int RowsInserted = statement.executeUpdate();\n \n if(RowsInserted > 0)\n {\n System.out.println(\"La insercion fue exitosa\");\n System.out.println(\"--------------------------------------\");\n }\n else\n {\n System.out.println(\"Hubo un error con la insercion\");\n System.out.println(\"--------------------------------------\");\n }\n }\n catch(SQLException ex)\n {\n ex.printStackTrace();\n }\n }", "public static void inserir(String nome, int id){\n System.out.println(\"Dados inseridos!\");\n }", "public void registro(View v) {\n\t\tsubeUsuario();\n\t\tif (userId == -1) { // si es nuevo\n\t\t\tfinish(); // hay que dejar que el server devuelva el id y leerlo\n\t\t}\n\t}", "public void insert(User user);", "public void setId_usuario(String usuario) {\n this.id_usuario = usuario;\n }", "@Override\n\tpublic MensajeBean inserta(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.inserta(nuevo);\n\t}", "int insertSelective(ParUsuarios record);", "public long registerClasificadoTable(Clasificacion clasifi, Usuario usuario) {\n\n AdmSQLiteOpenHelper admin;\n ContentValues registro;\n long clasificado_id = 0;\n\n try {\n admin = new AdmSQLiteOpenHelper(this.context);\n admin.createDataBase();\n\n SQLiteDatabase bd = admin.getWritableDatabase();\n registro = new ContentValues();\n registro.put(\"clasificacion_id\", clasifi.getId());\n registro.put(\"usuario_id\", usuario.getId());\n clasificado_id = bd.insert(\"clasificado\", null, registro);\n/*\n Toast.makeText(this.context, \"Se cargaron los datos de Sincronizacion\",\n Toast.LENGTH_SHORT).show();\n*/\n //admin.openDataBase();\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n Toast.makeText(this.context, \"ERR-REGSYNC datos de Sincronizacion\",\n Toast.LENGTH_SHORT).show();\n System.out.println(\"ERR-REGSYNC\" + e.getMessage());\n }\n return clasificado_id;\n\n }", "public void onClick(View v) {\n String cod = txtCodigo.getText().toString();\n String nom = txtNombre.getText().toString();\n\n //Alternativa 1: método sqlExec()\n //String sql = \"INSERT INTO Usuarios (codigo,nombre) VALUES ('\" + cod + \"','\" + nom + \"') \";\n //db.execSQL(sql);\n\n //Alternativa 2: método insert()\n ContentValues nuevoRegistro = new ContentValues();\n nuevoRegistro.put(\"codigo\", cod);\n nuevoRegistro.put(\"nombre\", nom);\n db.insert(\"Usuarios\", null, nuevoRegistro);\n }", "@Test\r\n\t\tpublic void insertUserTestCase() {\r\n\t\t\t\r\n\t\t\tUser user = new User();\r\n\t\t\t\t\t\r\n\t\t//\tuser.setBirthDate(LocalDate.parse(\"1994-04-09\"));\r\n\t\t\tuser.setUsername(\"renu\");\r\n\t\t//\tuser.setUserId(1003);\r\n\t\t\t\r\n\t\t\tuser.setEmail(\"[email protected]\");\r\n\t\t\t\t\t\r\n\t\t\tuser.setFirstname(\"Renu\");\r\n\t\t\tuser.setSurname(\"Rawat\");\r\n\t\t//\tuser.setGender('F');\r\n\t\t\tuser.setPassword(\"renu\");\r\n\t\t\tuser.setPhone(\"9876543210\");\r\n\t\t//\tuser.setStatus(\"A\");\r\n\t\t\tuser.setIsOnline(false);\r\n\t\t\t\r\n\t\t\tuser.setRole(\"ADMIN\");\r\n\t\t//\tuser.setConfmemail(\"[email protected]\");\r\n\t\t//\tuser.setConfpassword(\"renu\");\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"user printed\");\r\n\t\t\tassertEquals(\"successfully!\", Boolean.valueOf(true), userDao.registerUser(user));\r\n\t\t\tSystem.out.println(\"After User Table\");\r\n\t\t\t\r\n\t}", "public boolean insertAcceso(String username, int id){\n boolean retorno = false;\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"USERNAME\",username);\n contentValues.put(\"ID\",id);\n long resul = db.insert(\"ACCESO\",null,contentValues);\n db.close();\n if (resul ==-1){\n retorno=false;\n }else{\n retorno=true;\n }\n return retorno;\n }", "private void insertar() {\n String nombre = edtNombre.getText().toString();\n String telefono = edtTelefono.getText().toString();\n String correo = edtCorreo.getText().toString();\n // Validaciones\n if (!esNombreValido(nombre)) {\n TextInputLayout mascaraCampoNombre = (TextInputLayout) findViewById(R.id.mcr_edt_nombre_empresa);\n mascaraCampoNombre.setError(\"Este campo no puede quedar vacío\");\n } else {\n mostrarProgreso(true);\n String[] columnasFiltro = {Configuracion.COLUMNA_EMPRESA_NOMBRE, Configuracion.COLUMNA_EMPRESA_TELEFONO\n , Configuracion.COLUMNA_EMPRESA_CORREO, Configuracion.COLUMNA_EMPRESA_STATUS};\n String[] valorFiltro = {nombre, telefono, correo, estado};\n Log.v(\"AGET-ESTADO\", \"ENVIADO: \" + estado);\n resultado = new ObtencionDeResultadoBcst(this, Configuracion.INTENT_EMPRESA_CLIENTE, columnasFiltro, valorFiltro, tabla, null, false);\n if (ID.isEmpty()) {\n resultado.execute(Configuracion.PETICION_EMPRESA_REGISTRO, tipoPeticion);\n } else {\n resultado.execute(Configuracion.PETICION_EMPRESA_MODIFICAR_ELIMINAR + ID, tipoPeticion);\n }\n }\n }", "@Override\n\tpublic void crearUsuario(UsuarioEntity Usuario) {\n\t\treposUsuarios.save(Usuario);\n\t}", "@Override\r\n\tpublic void insertar() {\n\t\ttab_cuenta.eliminar();\r\n\t\t\r\n\t\t\r\n\t}", "public void createUser() {\n try {\n conn = dao.getConnection();\n\n ps = conn.prepareStatement(\"INSERT INTO Users(username, password) VALUES(?, ?)\");\n ps.setString(1, this.username);\n ps.setString(2, this.password);\n\n ps.execute();\n\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "void addUser(User user) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_utilizador, user.getUser()); // Contact Name\n values.put(KEY_pass, user.getPass()); // Contact Phone\n values.put(KEY_Escola, user.getEscola());\n db.insert(tabela, null, values);\n db.close(); // Closing database connection\n }", "public static int insertUser(String n, String c, String u, String e, String p) throws SQLException{\n\t\t\tString query = \"INSERT INTO utente (nome, cognome, email, username, password)\"\n\t\t\t\t\t+ \" VALUES (?, ?, ?, ?,?) ;\";\n\t\t\t\n\t\t\tConnection con = connectToDB();\n\t\t\tPreparedStatement cmd = con.prepareStatement(query, PreparedStatement.RETURN_GENERATED_KEYS);\n\t\t\tcmd.setString(1, n);\n\t\t\tcmd.setString(2, c);\n\t\t\tcmd.setString(3, e);\n\t\t\tcmd.setString(4, u);\n\t\t\tcmd.setString(5, p);\n\t\t\t\n\t\t\tSystem.out.println(cmd);\n\n\t\t\tcmd.executeUpdate();\n\t\t\t\n\t\t\tint idInserito = -1;\n\t\t\t// Get the id of the just inserted user.\n\t\t\tResultSet res = cmd.getGeneratedKeys();\n\t\t\t\n\t\t\twhile(res.next()){\n\t\t\t\tidInserito = res.getInt(1);\n\t\t\t}\n\t\t\t//System.out.println(idInserito);\n\t\t\tres.close();\n\t\t\tcmd.close();\n\t\t\treturn idInserito;\n\t\t}", "public void insertar() {\r\n if (vista.jTNombreempresa.getText().equals(\"\") || vista.jTTelefono.getText().equals(\"\") || vista.jTRFC.getText().equals(\"\") || vista.jTDireccion.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan Datos: No puedes dejar cuadros en blanco\");//C.P.M Verificamos si las casillas esta vacia si es asi lo notificamos\r\n } else {//C.P.M de lo contrario prosegimos\r\n modelo.setNombre(vista.jTNombreempresa.getText());//C.P.M mandamos las variabes al modelo \r\n modelo.setDireccion(vista.jTDireccion.getText());\r\n modelo.setRfc(vista.jTRFC.getText());\r\n modelo.setTelefono(vista.jTTelefono.getText());\r\n \r\n Error = modelo.insertar();//C.P.M Ejecutamos el metodo del modelo \r\n if (Error.equals(\"\")) {//C.P.M Si el modelo no regresa un error es que todo salio bien\r\n JOptionPane.showMessageDialog(null, \"Se guardo exitosamente la configuracion\");//C.P.M notificamos a el usuario\r\n vista.dispose();//C.P.M y cerramos la vista\r\n } else {//C.P.M de lo contrario \r\n JOptionPane.showMessageDialog(null, Error);//C.P.M notificamos a el usuario el error\r\n }\r\n }\r\n }", "public static int insertarUsuario(String nombre,String email){\n String sql = \"insert into usuarios(nombre, email) values ('\"+nombre+\"','\"+email+\"')\";\n Conexion conexion = new Conexion();\n \n PreparedStatement prest;\n\n try { \n // Preparamos la inserción de datos mediante un PreparedStatement\n prest = conexion.getConexion().prepareStatement(sql);\n\n // Procedemos a indicar los valores que queremos insertar\n // Usamos los métodos setXXX(indice, valor)\n // indice indica la posicion del argumento ?, empieza en 1\n // valor es el dato que queremos insertar\n //prest.setString(1, nombre);\n //prest.setString(2, email);\n\n // Ejecutamos la sentencia de inserción preparada anteriormente\n int nfilas = prest.executeUpdate();\n \n // Cerramos el recurso PreparedStatement \n prest.close();\n \n // Cerramos la conexión \n conexion.cerrarConexion();\n // La inserción se realizó con éxito, devolvemos filas afectadas\n return nfilas;\n } catch (SQLException e) {\n System.out.println(\"Problemas durante la inserción de datos en la tabla Jugadores\");\n System.out.println(e);\n return -1;\n }\n }", "public long create_user(User user)\r\n\t{ \r\n\t long id = 0; //id de la tabla user (único) \r\n\r\n\t try \r\n\t { \r\n\t iniciaOperacion(); \r\n\t id = (Long)sesion.save(user); //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t tx.commit(); \r\n\t }catch(HibernateException he) \r\n\t { \r\n\t manejaExcepcion(he);\r\n\t throw he; \r\n\t }finally \r\n\t { \r\n\t sesion.close(); \r\n\t } \r\n\t return id; \r\n\t}", "public int insertUser(final User user);", "@Override\n public void add(Curso entity) {\n Connection c = null;\n PreparedStatement pstmt = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"INSERT INTO curso (nombrecurso, idprofesor, claveprofesor, clavealumno) values (?, ?, ?, ?)\");\n\n pstmt.setString(1, entity.getNombre());\n pstmt.setInt(2, (entity.getIdProfesor() == 0)?4:entity.getIdProfesor() ); //creo que es sin profesor confirmado o algo por el estilo\n pstmt.setString(3, entity.getClaveProfesor());\n pstmt.setString(4, entity.getClaveAlumno());\n \n pstmt.execute();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public static int save(User u){ \n int status=0; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection();\n //melakukan query database\n PreparedStatement ps=con.prepareStatement( \n \"insert into t_user(user_name,nama_lengkap,password,hak_akses) values(?,?,?,?)\"); \n ps.setString(1,u.getUserName()); \n ps.setString(2,u.getNamaLengkap()); \n ps.setString(3,u.getPassword()); \n ps.setString(4,u.getHakAkses()); \n status=ps.executeUpdate(); \n }catch(Exception e){\n System.out.println(e);\n } \n return status; \n }", "public void setIdUsuario(Integer idUsuario) {\n this.idUsuario = idUsuario;\n }", "@RequestMapping(value = \"themtaikhoan\", method = {RequestMethod.GET})\n public String insertAccount(ModelMap model) {\n if (conUser == null) {\n return \"dangnhap\";\n } else {\n model.addAttribute(\"user\", new User());\n model.addAttribute(\"tenUser\", conUser.getUsername());\n return \"insertAccount\";\n }\n }", "private void inserirUsuario(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tString nome = request.getParameter(\"nome\");\n\t\tString email = request.getParameter(\"email\");\n\t\tint telefone = Integer.parseInt (request.getParameter(\"telefone\"));\n\t\tString nacionalidade = request.getParameter(\"nacionalidade\");\n\t\tUsuario novoUsuario = new Usuario(nome, email, telefone, nacionalidade);\n\t\tdao.inserirUsuario(novoUsuario);\n\t\tresponse.sendRedirect(\"lista\");\n\t}", "public void insere(Pessoa pessoa){\n\t\tdb.save(pessoa);\n\t}", "public void insertarUsuario(Pacient paciente)\n {\n ContentValues valores = new ContentValues();\n valores.put(\"nombre\",paciente.getNombre());\n valores.put(\"apellido\",paciente.getApellido());\n valores.put(\"cedula\",paciente.getCedula());\n valores.put(\"sexo\",paciente.getSexo());\n valores.put(\"fechaNacimiento\",formatter.format(paciente.getFechaNacimiento()));\n valores.put(\"lugarNacimiento\",paciente.getLugarNacimiento());\n valores.put(\"email\",paciente.getEmail());\n valores.put(\"contrasena\",paciente.getContrasena());\n valores.put(\"numeroHistoriaMedica\",paciente.getNroHistoria());\n valores.put(\"telefonoContacto1\",paciente.getTlfContacto1());\n valores.put(\"telefonoContacto2\",paciente.getTlfContacto2());\n db.insert(\"usuario\",null,valores);\n\n }", "@Override\n public boolean insertar(ModelCliente cliente) {\n strSql = \"INSERT INTO CLIENTE (ID_CLIENTE, NOMBRE, APELLIDO, NIT, TELEFONO, DIRECCION,ID_EMPRESA) \"\n + \"VALUES ( (SELECT ISNULL(MAX(ID_CLIENTE),0) + 1 FROM CLIENTE), \" + \n \"'\" + cliente.getNombre() + \"', \" + \n \"'\" + cliente.getApellido()+ \"', \" + \n \"'\" + cliente.getNit() + \"', \" +\n \"'\" + cliente.getTelefono()+ \"', \" +\n \"'\" + cliente.getDireccion()+ \"',\" +\n \"\" + cliente.getIdEmpresa()+ \"\" + \n \")\";\n \n try {\n //se abre una conexión hacia la BD\n conexion.open();\n //Se ejecuta la instrucción y retorna si la ejecución fue satisfactoria\n respuesta = conexion.executeSql(strSql);\n //Se cierra la conexión hacia la BD\n conexion.close();\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DaoCliente.class.getName()).log(Level.SEVERE, null, ex); \n return false;\n } catch(Exception ex){\n Logger.getLogger(DaoCliente.class.getName()).log(Level.SEVERE, null, ex); \n }\n return respuesta;\n }", "public TipoPk insert(Tipo dto) throws TipoDaoException;", "public void ponerUsuarioInactivo(String idUsuario);", "@RequestMapping(method=RequestMethod.POST)\n\tpublic ResponseEntity<Void> insert(@Valid @RequestBody ClienteNewDTO objDTO){\n\t\t\n\t\tCliente obj = service.fromDTO(objDTO);\n\t\tobj = service.insert(obj);\n\t\t\n\t\t//abaixo uma boa pratica para retornar a url do novo objeto quandro cria-lo\n\t\tURI uri = ServletUriComponentsBuilder.fromCurrentRequest()\n\t\t\t\t\t.path(\"/{id}\").buildAndExpand(obj.getId()).toUri(); //o from currente request vai pegar a requisicao atual, e logo depois a gente add o /id\n\t\t\n\t\treturn ResponseEntity.created(uri).build();\n\t}", "public User insert(User user) throws DataAccessException;", "public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }", "public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }", "public String insertUser() throws IOException {\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(db.DB.connectionString, db.DB.user, db.DB.password);\n String query = \"insert into users (first_name, last_name, phone_number, email, address, id_city) values (?, ?, ?, ?, ?, ?)\";\n PreparedStatement ps = conn.prepareStatement(query);\n ps.setString(1, firstName);\n ps.setString(2, lastName);\n ps.setString(3, phoneNumber);\n ps.setString(4, email);\n ps.setString(5, address);\n ps.setInt(6, idCity);\n ps.executeUpdate();\n FacesContext context = FacesContext.getCurrentInstance();\n context.getExternalContext().getFlash().setKeepMessages(true);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"User created\", null);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n } catch (SQLException ex) {\n Logger.getLogger(UserController.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n lastCreatedUserTable();\n clear();\n try {\n conn.close();\n } catch (Exception e) {\n /* ignored */ }\n }\n HttpSession sesija = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(true);\n Integer type = (Integer) sesija.getAttribute(\"type\");\n if (type == 1) {\n return \"admin?faces-redirect=true\";\n } else {\n return \"operator?faces-redirect=true\";\n }\n\n }", "private void createNewUser() {\n ContentValues contentValues = new ContentValues();\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.GENDER, getSelectedGender());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.PIN, edtConfirmPin.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.LAST_NAME, edtLastName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.FIRST_NAME, edtFirstName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.STATUS, spnStatus.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.DATE_OF_BIRTH, edtDateOfBirth.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.BLOOD_GROUP, spnBloodGroup.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.IS_DELETED, \"N\");\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.MOBILE_NUMBER, edtMobileNumber.getText().toString());\n contentValues.put(DataBaseConstants.Constants_TBL_CATEGORIES.CREATE_DATE, Utils.getCurrentDateTime(Utils.DD_MM_YYYY));\n\n dataBaseHelper.saveToLocalTable(DataBaseConstants.TableNames.TBL_PATIENTS, contentValues);\n context.startActivity(new Intent(CreatePinActivity.this, LoginActivity.class));\n }", "@Override\n\tpublic void insert(User entity) {\n\t\tuserlist.put(String.valueOf(entity.getDni()), entity);\n\t}", "public void inserir(Comentario c);", "int insert(UserDO record);", "public void setIdUsuario(int value) {\n this.idUsuario = value;\n }", "@RequestMapping(method = RequestMethod.POST)\n\t\tpublic ResponseEntity<Void> inserir(@RequestBody Pedido obj) {\n\t\t\tobj = service.insere(obj);\n\t\t\tURI uri = ServletUriComponentsBuilder.fromCurrentRequest().path(\"/{id}\").buildAndExpand(obj.getId()).toUri();\n\t\t\treturn ResponseEntity.created(uri).build();\n\t\t}", "int insert(Tipologia record);", "public void addUsuario(Usuario usuario) {\n\t\t\n\t}", "void add(User user) throws SQLException;", "public boolean insertAdministrador(int id,int idEscuela,String nombre){\n boolean retorno = false;\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"IDADMIN\",id);\n contentValues.put(\"IDESCUELA\",idEscuela);\n contentValues.put(\"NOMADMIN\",nombre);\n long resul = db.insert(\"ADMINISTRADOR\",null,contentValues);\n db.close();\n if (resul ==-1){\n retorno=false;\n }else{\n retorno=true;\n }\n return retorno;\n }", "public boolean registrar(usuario usr) {\n\n PreparedStatement ps = null;\n Conectar ct = new Conectar();\n Connection con = ct.conexion();\n //INSEERTAR DENTRO DE LA TABLA TRABAJO LOS DATOS DE REGISTRO\n String sql = \"INSERT INTO trabajo (usuario, password, Email, id_tipo, Nombre) VALUES(?,?,?,?,?)\";\n\n try {\n ps = con.prepareStatement(sql);\n\n ps.setString(1, usr.getUsuario());\n\n ps.setString(2, usr.getPassword());\n\n ps.setString(3, usr.getEmail());\n\n ps.setInt(4, usr.getId_tipo());\n\n ps.setString(5, usr.getNombre());\n\n ps.execute();\n return true;\n\n } catch (SQLException ex) {\n Logger.getLogger(sqlUsuario.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }", "public long wsadd_user( UserWS user)\r\n\t\t{ \r\n\t\t\t\r\n\t\t\tlong id = 0; //id de la tabla user (único) \r\n\t\t\t\r\n\t\t \r\n\t\t User userH = new User(user.getLogin(),user.getPassword(),user.getRole(),user.getName(),user.getPhone(),user.getDepartment());\r\n\t\t \r\n\t\t //User cliente1 = new User(\"[email protected]\", \"gutie33\", 1, \"Luis\",\"677899876\", \"Informatica\"); \r\n\t\t \r\n\t\t try \r\n\t\t { \r\n\t\t iniciaOperacion(); \r\n\t\t \r\n\t\t id= (Long) sesion.createQuery(\"SELECT u.id_company FROM Company u WHERE u.company_name ='\"+user.getName_company()+\"'\").uniqueResult();\r\n\t\t Company x = (Company) sesion.load(Company.class, id);\r\n\t\t x.addUsuario(userH);\r\n\t\t \r\n\t\t\t userH.setCompany(x);\r\n\t\t \r\n\t\t //sesion.update(compx);\r\n\t\t \r\n\t\t \r\n\t\t //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t\t tx.commit(); \r\n\t\t }catch(HibernateException he) \r\n\t\t { \r\n\t\t manejaExcepcion(he);\r\n\t\t throw he; \r\n\t\t }finally \r\n\t\t { \r\n\t\t \t//Busqueda del id con qu elo ha introducido a la BBDD\r\n\t\t \tid= (Long) sesion.createQuery(\"SELECT u.id_user FROM User u WHERE u.mail ='\"+user.getLogin()+\"'\").uniqueResult();\r\n\t\t sesion.close(); \r\n\t\t } \r\n\t\t return id; \r\n\t\t}", "@RequestMapping(value = \"/registro\", method = RequestMethod.POST)\r\n public @ResponseBody InfoEntity añadirUsuario(@RequestBody Usuario usuario) {\r\n\r\n if (this.usuarioRepository.findById(usuario.getUsername()).isPresent()) { return new InfoEntity(HttpStatus.NOT_FOUND,\"Usuario duplicado\"); }\r\n\r\n this.usuarioRepository.save(usuario);\r\n\r\n return new InfoEntity(HttpStatus.OK,\"Usuario creado\", usuario);\r\n\r\n }", "public static Efectivo insertEfectivo(int id_efectivo, int numero_pago){\n \n Efectivo miEfectivo = new Efectivo(id_efectivo,numero_pago);\n miEfectivo.registrarEfectivo();\n return miEfectivo;\n }", "void createUser() throws SQLException {\n String name = regName.getText();\n String birthdate = regAge.getText();\n String username = regUserName.getText();\n String password = regPassword.getText();\n String query = \" insert into users (name, birthdate, username, password)\"\n + \" values (?, ?, ?, ?)\";\n\n DB.registerUser(name, birthdate, username, password, query);\n }", "public UtentePk insert(Utente dto) throws UtenteDaoException\n\t{\n\t\tlong t1 = System.currentTimeMillis();\n\t\t// declare variables\n\t\tfinal boolean isConnSupplied = (userConn != null);\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\t\n\t\ttry {\n\t\t\t// get the user-specified connection or get a connection from the ResourceManager\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\n\t\t\n\t\t\tstmt = conn.prepareStatement( \"SELECT nextval('seq_utenti')\" );\n\t\t\trs = stmt.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tdto.setUteId( rs.getLong( 1 ) );\n\t\t\t\trs.close();\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t\n\t\t\tstmt = conn.prepareStatement( SQL_INSERT );\n\t\t\tint index = 1;\n\t\t\tstmt.setLong( index++, dto.getUteId() );\n\t\t\tstmt.setString( index++, dto.getUteCognome() );\n\t\t\tstmt.setString( index++, dto.getUteNome() );\n\t\t\tstmt.setString( index++, dto.getUteEmail() );\n\t\t\tstmt.setString( index++, dto.getUtePassword() );\n\t\t\tstmt.setDate(index++, dto.getUteLastLogin()==null ? null : new java.sql.Date( dto.getUteLastLogin().getTime() ) );\n\t\t\tstmt.setString( index++, dto.getUteCellulare() );\n\t\t\tstmt.setString( index++, dto.getUteSesso() );\n\t\t\tstmt.setDate(index++, dto.getUteDataNascita()==null ? null : new java.sql.Date( dto.getUteDataNascita().getTime() ) );\n\t\t\tstmt.setLong( index++, dto.getUteTitolo() );\n\t\t\tstmt.setLong( index++, dto.getFkPaesi() );\n\t\t\tstmt.setString( index++, dto.getUteCartaNumero() );\n\t\t\tstmt.setString( index++, dto.getUteCartaTitolare() );\n\t\t\tstmt.setString( index++, dto.getUteCartaScadMese() );\n\t\t\tstmt.setString( index++, dto.getUteCartaScadAnno() );\n\t\t\tstmt.setString( index++, dto.getUteCartaUsaPerLav() );\n\t\t\tstmt.setString( index++, dto.getUteCartaUsaPerPremio() );\n\t\t\tif (dto.isUteTipologiaNull()) {\n\t\t\t\tstmt.setNull( index++, java.sql.Types.INTEGER );\n\t\t\t} else {\n\t\t\t\tstmt.setLong( index++, dto.getUteTipologia() );\n\t\t\t}\n\t\t\n\t\t\tstmt.setString( index++, dto.getUteIndirizzo() );\n\t\t\tif (dto.isFkComuneNull()) {\n\t\t\t\tstmt.setNull( index++, java.sql.Types.INTEGER );\n\t\t\t} else {\n\t\t\t\tstmt.setLong( index++, dto.getFkComune() );\n\t\t\t}\n\t\t\n\t\t\tstmt.setString( index++, dto.getUteAzienda() );\n\t\t\tif (dto.isFkComuneAziendaNull()) {\n\t\t\t\tstmt.setNull( index++, java.sql.Types.INTEGER );\n\t\t\t} else {\n\t\t\t\tstmt.setLong( index++, dto.getFkComuneAzienda() );\n\t\t\t}\n\t\t\n\t\t\tstmt.setString( index++, dto.getUteTelefonoAzienda() );\n\t\t\tstmt.setString( index++, dto.getUtePivaAzienda() );\n\t\t\tstmt.setString( index++, dto.getUteFotoProfiloPath() );\n\t\t\tstmt.setString( index++, dto.getUtePagamentiOnline() );\n\t\t\tstmt.setString( index++, dto.getUteQuandoPagare() );\n\t\t\tstmt.setString( index++, dto.getUteFumatore() );\n\t\t\tstmt.setString( index++, dto.getUtenteStelle() );\n\t\t\tstmt.setString( index++, dto.getUteCamereOspitiDisabili() );\n\t\t\tstmt.setString( index++, dto.getUteRistorante() );\n\t\t\tstmt.setString( index++, dto.getUteConnessioneInternet() );\n\t\t\tstmt.setString( index++, dto.getUteCameraNonfumatori() );\n\t\t\tstmt.setString( index++, dto.getUtePalestra() );\n\t\t\tstmt.setString( index++, dto.getUteCamereFamiliari() );\n\t\t\tstmt.setString( index++, dto.getUteAnimali() );\n\t\t\tstmt.setString( index++, dto.getUteParcheggio() );\n\t\t\tstmt.setString( index++, dto.getUteSpaBenessere() );\n\t\t\tstmt.setString( index++, dto.getUteWifi() );\n\t\t\tstmt.setString( index++, dto.getUtePiscinaCoperta() );\n\t\t\tstmt.setString( index++, dto.getUteNavettaAeroportuale() );\n\t\t\tstmt.setString( index++, dto.getUteConnessioneWifiGratuita() );\n\t\t\tstmt.setString( index++, dto.getUteBar() );\n\t\t\tstmt.setString( index++, dto.getUteDepositoBagagli() );\n\t\t\tstmt.setString( index++, dto.getUteReception24ore() );\n\t\t\tstmt.setString( index++, dto.getUtePerChiPrenoti() );\n\t\t\tif (dto.isFkPreferenzaValutaNull()) {\n\t\t\t\tstmt.setNull( index++, java.sql.Types.INTEGER );\n\t\t\t} else {\n\t\t\t\tstmt.setLong( index++, dto.getFkPreferenzaValuta() );\n\t\t\t}\n\t\t\n\t\t\tif (dto.isUteCartaTipoNull()) {\n\t\t\t\tstmt.setNull( index++, java.sql.Types.INTEGER );\n\t\t\t} else {\n\t\t\t\tstmt.setInt( index++, dto.getUteCartaTipo() );\n\t\t\t}\n\t\t\n\t\t\tstmt.setString( index++, dto.getUteCap() );\n\t\t\tstmt.setString( index++, dto.getUteCapAzienda() );\n\t\t\tSystem.out.println( \"Executing \" + SQL_INSERT + \" with DTO: \" + dto );\n\t\t\tint rows = stmt.executeUpdate();\n\t\t\tlong t2 = System.currentTimeMillis();\n\t\t\tSystem.out.println( rows + \" rows affected (\" + (t2-t1) + \" ms)\" );\n\t\t\treset(dto);\n\t\t\treturn dto.createPk();\n\t\t}\n\t\tcatch (Exception _e) {\n\t\t\t_e.printStackTrace();\n\t\t\tthrow new UtenteDaoException( \"Exception: \" + _e.getMessage(), _e );\n\t\t}\n\t\tfinally {\n\t\t\tResourceManager.close(stmt);\n\t\t\tif (!isConnSupplied) {\n\t\t\t\tResourceManager.close(conn);\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void insertUser(User user) {\n\t\t\n\t}", "@Override\n\tpublic void insertarServicio(Servicio nuevoServicio) {\n\t\tservicioDao= new ServicioDaoImpl();\n\t\tservicioDao.insertarServicio(nuevoServicio);\n\t\t\n\t\t\n\t}", "public static Result insertarfoto(String id_u) \n\t {\n\t\t int id_usuario;\n\t\t if (isNumeric(id_u) == true)\n\t\t {\n\t\t\t id_usuario = Integer.parseInt(id_u);\n\t\t }\n\t\t else\n\t\t {\n\t\t\t return ok(\"<mensaje>Error: El id del usuario debe se un numero sin letras</mensaje>\");\n\t\t }\t\t \n\t\t System.out.println(\"Insertando Usuario foto \"); \n\t\t if(id_u == null) \n\t\t {\n\t\t\t return badRequest(\"Missing parameter [nombre]\");\n\t\t } \n\t\t else \n\t\t {\n\t\t\t UsuarioOD usuario = new UsuarioOD();\n\t\t\t usuario.setId_u(id_usuario);\n\t \t\t GestorUsuario nuevo = new GestorUsuario();\n\t \t\t usuario = nuevo.Buscar(usuario);\n\t \t\t XStream xstream = new XStream(new DomDriver());\n\t\t\t String xml = xstream.toXML(usuario);\n\t\t\t Logger.info(\"ControladorUsuario: Foto asignada al usuario: \"+usuario.getNick());\n\t\t\t return ok(xml);\n\t\t }\n\t }", "@Override\n public void onClick(View v) {\n trasferisci_utente();\n\n // controlla se tutti i dati sono inseriti\n if (checkInput())\n {\n creaUser();\n NOME = username.getText().toString();\n CHIAVE = password.getText().toString();\n\n // controlla se l'utente USER con i dati inseriti negli edit_text è gia presente\n if (checkUser(persone, NOME, CHIAVE)) {\n\n errore_utente.setVisibility(View.GONE);\n\n // impedisce a due utenti di avere lo stesso username\n if(checkUsername(persone, NOME)) {\n\n errore_duplicato_username.setVisibility(View.GONE);\n\n persone.add(user);\n\n Intent showResult = new Intent(Registration.this, MainActivity.class);\n showResult.putExtra(PERSONA_PATH, persone);\n //showResult.putExtra(UTENTE_PATH, user);\n startActivity(showResult);\n } else {\n errore_duplicato_username.setVisibility(View.VISIBLE);\n }\n } else {\n errore_utente.setVisibility(View.VISIBLE);\n }\n }\n }", "int insert(AdminUser record);", "int insert(AdminUser record);", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n UsuarioEntity entity = factory.manufacturePojo(UsuarioEntity.class);\r\n em.persist(entity);\r\n dataUsuario.add(entity);\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n CarritoDeComprasEntity entity = factory.manufacturePojo(CarritoDeComprasEntity.class);\r\n if (i == 0 ){\r\n entity.setUsuario(dataUsuario.get(0));\r\n }\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "public void addUsuario(Usuario user){\r\n \r\n try{\r\n PreparedStatement ps = bd.prepareStatement(SQLC);\r\n ps.setString(1, user.getUsuario());\r\n ps.setString(2, user.getNome());\r\n ps.setString(3, user.getEmail());\r\n ps.setString(4, user.getSenha());\r\n ps.setString(5, user.getPin());\r\n ps.setString(6, user.getUrlfoto());\r\n ps.setInt(7, user.getAdmin());\r\n ps.executeUpdate();\r\n \r\n ps.close();\r\n ConexaoBD.fechar(bd);\r\n } catch(SQLException sqle){\r\n System.out.println(\"Erro no addUsuario no DAO: \" + sqle.getMessage());\r\n }\r\n }", "public ClientePk insert(Cliente dto) throws ClienteDaoException;", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tUsuarioPojo user = null;\r\n\t\t\t\tUsuarioPersistencia up = new UsuarioPersistencia();\r\n\r\n\t\t\t\t//int id = up.obtenerIdEmple();\r\n\t\t\t\tString usuarioMail = txtUsuario.getText();\r\n\t\t\t\tString password = new String(pwdPass.getPassword()); // DNI de momento\r\n\t\t\t\tString passwordC = new String(pwdConfPass.getPassword());\r\n\t\t\t\tString apenom = txtApenom.getText();\r\n\t\t\t\tString dni = txtDni.getText();\r\n\t\t\t\tint numSS = Integer.parseInt(txtSegSoc.getText());\r\n\t\t\t\tString cuenta = txtCuenta.getText();\r\n\r\n\t\t\t\tif (password.equals(passwordC)) {\r\n\t\t\t\t\t// creamos un objeto usuario si coinciden las contraseñas\r\n\t\t\t\t\tuser = new UsuarioPojo(apenom, numSS, cuenta, dni, usuarioMail, password);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (user != null) {\r\n\t\t\t\t\t// insertaremos el usuario si coinciden las contraseñas\r\n\t\t\t\t\tup = new UsuarioPersistencia();\r\n\t\t\t\t\tint res = up.insertarUser(user);\r\n\r\n\t\t\t\t\tif (res == 1) { // se habrá registrado al usuario\r\n\t\t\t\t\t\tSystem.out.println(\"Insertado correctamente\");\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Registro insertado correctamente\",\r\n\t\t\t\t\t\t\t\t\"Resultado del Registro\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\tdispose(); // dispose cierra ventana actual, System.exit(0) sale del programa\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// mostramos msg si no coinciden las contraseñas, manteniendo el control en dreg\r\n\t\t\t\t\tSystem.out.println(\"No insertado\");\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Contraseñas introducidas no coinciden\", \"Error de contraseña\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\t// limpiamos campos de contraseña\r\n\t\t\t\t}\r\n\t\t\t}", "private void newUser() {\n // TODO: Initial layout\n LayoutInflater layoutInflater = LayoutInflater.from(getActivity());\n View form = layoutInflater.inflate(R.layout.form_user, null);\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getActivity());\n alertDialogBuilder.setTitle(\"Thêm tài khoản\");\n alertDialogBuilder.setView(form);\n\n // TODO: Add controls\n editTextPhone = form.findViewById(R.id.editTextPhoneOnUserForm);\n editTextUsername = form.findViewById(R.id.editTextUsernameOnUserForm);\n editTextPassword = form.findViewById(R.id.editTextPasswordOnUserForm);\n editTextPassword2 = form.findViewById(R.id.editTextPassword2OnUserForm);\n\n // TODO: Add events\n alertDialogBuilder.setPositiveButton(\"Lưu\", null);\n alertDialogBuilder.setNegativeButton(\"Hủy\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n final AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.setOnShowListener(new DialogInterface.OnShowListener() {\n @Override\n public void onShow(final DialogInterface dialog) {\n Button buttonSave = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE);\n buttonSave.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final User user = getUser();\n if (user != null) {\n tableUser.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.child((user.getId())).exists()) {\n Toast.makeText(getActivity(), \"Số điện thoại đã tồn tại, xin nhập số khác\", Toast.LENGTH_LONG).show();\n } else {\n tableUser.child(user.getId()).setValue(user);\n dialog.dismiss();\n Toast.makeText(getActivity(), \"Thêm thành công\", Toast.LENGTH_LONG).show();\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }\n }\n });\n }\n });\n alertDialog.show();\n }", "public static boolean addUser(UserDetailspojo user) throws SQLException {\n Connection conn=DBConnection.getConnection();\n String qry=\"insert into users1 values(?,?,?,?,?)\";\n System.out.println(user);\n PreparedStatement ps=conn.prepareStatement(qry);\n ps.setString(1,user.getUserid());\n ps.setString(4,user.getPassword());\n ps.setString(5,user.getUserType());\n ps.setString(3,user.getEmpid());\n ps.setString(2,user.getUserName());\n //ResultSet rs=ps.executeQuery();\n int rs=ps.executeUpdate();\n return rs==1;\n //String username=null;\n }", "public void insertar2(String nombre, String apellido, String mail, String celular, String comuna,String profesor,String alumno,String clave) {\n db.execSQL(\"insert into \" + TABLE_NAME + \" values (null,'\" + nombre + \"','\" + apellido + \"','\" + mail + \"','\" + celular + \"','\" + comuna + \"',\" + profesor + \",0,0,0,0,\" + alumno + \",'\" + clave + \"')\");\n }", "public void adicionar() {\n String sql = \"insert into empresa(empresa, cnpj, endereco, telefone, email) values (?,?,?,?,?)\";\n try {\n pst = conexao.prepareStatement(sql);\n pst.setString(1, txtEmpNome.getText());\n pst.setString(2, txtEmpCNPJ.getText());\n pst.setString(3, txtEmpEnd.getText());\n pst.setString(4, txtEmpTel.getText());\n pst.setString(5, txtEmpEmail.getText());\n // validacao dos campos obrigatorios\n if ((txtEmpNome.getText().isEmpty()) || (txtEmpCNPJ.getText().isEmpty())) {\n JOptionPane.showMessageDialog(null, \"Preencha todos os campos obrigatórios\");\n } else {\n //a linha abaixo atualiza a tabela usuarios com os dados do formulario\n // a esttrutura abaixo confirma a inserção na tabela\n int adicionado = pst.executeUpdate();\n if (adicionado > 0) {\n JOptionPane.showMessageDialog(null, \"Empresa adicionada com sucesso\");\n txtEmpNome.setText(null);\n txtEmpEnd.setText(null);\n txtEmpTel.setText(null);\n txtEmpEmail.setText(null);\n txtEmpCNPJ.setText(null);\n }\n }\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }", "public int insertUser(UserData user) {\n try {\n jdbcTemplate.execute(\"SELECT 1 from userData\");\n } catch (Exception ex) {\n creatTable();\n }\n\n\n PreparedStatementSetter preps = new PreparedStatementSetter() {\n @Override\n public void setValues(PreparedStatement ps) throws SQLException {\n ps.setString(1, user.getUserName());\n ps.setString(2, user.getFirstName());\n ps.setString(3, user.getLastName());\n ps.setString(4, user.getEmail());\n ps.setString(5, user.getPassword());\n ps.setString(6, user.getPhoneNo());\n\n ps.setString(7, user.getImage());\n\n }\n };\n\n return jdbcTemplate.update(CREATEUSER, preps);\n\n\n }", "public Usuario(String idUsuario, String contrasena) {\n\t\tsuper();\n\t\tthis.idUsuario = idUsuario;\n\t\tthis.contrasena = contrasena;\n\t}", "public long addUser(String userId, String uName, String uDOB, String uGen, String uContact, String uPassword, String privs, int donar ) throws SQLException {\n open();\n ContentValues values = new ContentValues();\n values.put(Database.userId, userId);\n values.put(Database.uName, uName);\n values.put(Database.uDOB, uDOB);\n values.put(Database.uGender, uGen);\n values.put(Database.uContact, uContact);\n values.put(Database.uPassword, uPassword);\n values.put(Database.uPriviledge, privs);\n values.put(Database.uDonar, donar);\n long insertId = database.insert(Database.userTable, null,values);\n close();\n return insertId;\n }", "@Override\r\n\tpublic MensajeBean inserta(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.inserta(nuevo);\r\n\t}", "@Override\n public int insertar(ClienteBean cliente) {\n clienteDAO = new ClienteDAOImpl();\n return clienteDAO.insertar (cliente);\n }", "int insert(BaseUser record);", "@Override\n\t\tpublic void insertar() {\n\t\t\tutilitario.getTablaisFocus().insertar();\n\n\t\t}", "@SuppressWarnings(\"null\")\n private void btn_CrearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_CrearActionPerformed\n // TODO add your handling code here:\n if (tf_ID.getText().equals(\"\") || tf_Descuento.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"No se puede insertar una clave vacia\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n } else {\n Statement s = null;\n try {\n s = conexion.createStatement();\n } catch (SQLException se) {\n System.out.println(\"probando conexion de consulta\");\n }\n\n try {\n s.executeUpdate(\"INSERT INTO public.cupon (id_cupon, descuento) VALUES ('\" + tf_ID.getText() + \"', '\" + tf_Descuento.getText() + \"')\");\n JOptionPane.showMessageDialog(null, \"Se ha insertado correctamente\", \"Exito\", JOptionPane.INFORMATION_MESSAGE);\n //INCLUIR MODIFICAR LOS CUPONES ASOCIADOS AL SOCIO\n confirmacion(\"¿Deseas añadir mas cupones?\", \"Insertar Socio\");\n } catch (SQLException se) {\n JOptionPane.showMessageDialog(null, se.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n tf_Descuento.setText(\"\");\n tf_ID.setText(\"\");\n }\n }\n }", "@Override\n\tpublic Usuario create(Usuario obj) {\n\t\treturn null;\n\t}", "Long insert(User record);", "@Test\n void insertSuccess() {\n Date today = new Date();\n User newUser = new User(\"Artemis\", \"Jimmers\", \"[email protected]\", \"ajimmers\", \"supersecret2\", today);\n int id = dao.insert(newUser);\n assertNotEquals(0, id);\n User insertedUser = (User) dao.getById(id);\n assertNotNull(insertedUser);\n assertEquals(\"Jimmers\", insertedUser.getLastName());\n //Could continue comparing all values, but\n //it may make sense to use .equals()\n }", "public Usuario(int idUsuario, String nome, String email, String telefone, int motorista){\n\t\tthis.idUsuario = idUsuario;\n\t\tthis.nome = nome;\n\t\tthis.email = email;\n\t\tthis.telefone = telefone;\n\t\tthis.motorista = motorista;\n\t}", "int insert(User record);", "int insert(User record);", "int insert(User record);", "int insert(User record);", "int insert(User record);", "int insert(User record);", "int insert(User record);" ]
[ "0.7322424", "0.7177728", "0.7123678", "0.7027477", "0.6935835", "0.6886017", "0.68576", "0.6833388", "0.6822854", "0.6759635", "0.67413205", "0.67231506", "0.6722394", "0.67043036", "0.6688929", "0.6683813", "0.66490406", "0.66447383", "0.6626455", "0.66122633", "0.6609629", "0.65890926", "0.6577923", "0.6556726", "0.6546208", "0.6510015", "0.6508917", "0.6499758", "0.64823097", "0.64715147", "0.6471509", "0.64567757", "0.643153", "0.6427083", "0.6416311", "0.64042956", "0.6399069", "0.63825834", "0.6374806", "0.63623095", "0.6361803", "0.63580906", "0.6351245", "0.63499266", "0.634324", "0.63420427", "0.63321024", "0.6314841", "0.63099915", "0.6303776", "0.6303776", "0.6298254", "0.62844557", "0.6283017", "0.62668604", "0.62614346", "0.6260787", "0.62512445", "0.624506", "0.6241106", "0.62369025", "0.6235992", "0.62309813", "0.622743", "0.6225478", "0.62178266", "0.62166363", "0.62143147", "0.6212492", "0.6209908", "0.6199398", "0.61980206", "0.6197096", "0.6197096", "0.6196047", "0.6193617", "0.6189517", "0.61828494", "0.61828333", "0.6182419", "0.6180569", "0.617606", "0.6166512", "0.6157778", "0.615671", "0.61476827", "0.6146476", "0.6146464", "0.614297", "0.61312425", "0.6129059", "0.61252123", "0.61216646", "0.61197704", "0.6117845", "0.6117845", "0.6117845", "0.6117845", "0.6117845", "0.6117845", "0.6117845" ]
0.0
-1
buscar nombre del nodo por mac y puerto
public String read_node(NodeWS node) throws HibernateException { String i=null; try { iniciaOperacion(); //unique result me devuelve el objeto encontrado con dicho correo electronico i= (String) sesion.createQuery("SELECT u.node_name FROM Node u WHERE u.MAC_address ='"+node.getMAC_address()+"' and u.port_number ='"+node.getPort_number()+"'").uniqueResult(); //una vez encontrado el id del user puedo buscarlo //id_user= Integer.parseInt(i); //user = (User) sesion.get(User.class, id_user); } finally { sesion.close(); } return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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}", "private static String digitarNombre() {\n\t\tString nombre;\n\t\tSystem.out.println(\"Digite el nombre del socio: \");\n\t\tnombre = teclado.next();\n\t\treturn nombre;\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 getNombreFicheroAlumno(){\n\t\treturn \"Ev-Intermedia-Arboles-BST-Apellido1Apellido2Nombre-UOxxxx\";\n\t}", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn \"Macchina a stati finiti di nome \"+nome+\", nello stato \"+corrente.getNome()+\".\";\r\n\t}", "public java.lang.String getUser_mac();", "private String getUniqueNodeName() {\n return String.format(\"N%d\", uniqueNode++);\n }", "@Override\n\tpublic String damePatente() {\n\t\treturn \"TJH 123\";\n\t}", "public String getMacNo() {\r\n return macNo;\r\n }", "java.lang.String getNume();", "java.lang.String getNume();", "String getMacAddress() {\n return String.format(\"%s:%s:%s:%s:%s:%s\", macAddress.substring(0, 2), macAddress.substring(2, 4),\n macAddress.substring(4, 6), macAddress.substring(6, 8), macAddress.substring(8, 10), macAddress.substring(10, 12));\n }", "java.lang.String getAgentMac();", "@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 }", "private static String getMacAddress(){\n\t\ttry {\n\t\t\t//getting hardware address from inside a virtual machine from NetworkInterface object returns null, so need a gambiarra.\n\t\t\t//if this issue is ever solved please replace for the appropriate code\n\t\t\tString command = \"ifconfig\";\n\t\t\tProcess p = Runtime.getRuntime().exec(command);\n\t\t\tBufferedReader inn = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\n\t\t\tString line = inn.readLine();\n\n\t\t\twhile( line != null ){\n\t\t\t\t\n\t\t\t\tif(line.indexOf(\"eth0\") >= 0){\n\t\t\t\t\tString[] split = line.split(\" \");\n\t\t\t\t\treturn split[split.length-1];\n\t\t\t\t}\n\n\t\t\t\tline = inn.readLine();\n\t\t\t}\n\n\t\t\tinn.close();\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\treturn \"error\";\n\t}", "String getSerial();", "public String getMACCHN()\n {\n return this.MACCHN;\n }", "java.lang.String getNick();", "java.lang.String getNick();", "java.lang.String getSerial();", "public static String getNetMac() {\n\t\tif (!mInitialized) Log.v(\"OpenIp\", \"Initialisation isn't done\");\n\t\treturn netMac;\n\t}", "public char getName(){\n\t\treturn tipo;\n\t}", "public static String getMac(InetAddress add) throws SocketException,NullPointerException{\n\t\t\n\t\tNetworkInterface network = NetworkInterface.getByInetAddress(add);\n\t\tbyte[] mac = network.getHardwareAddress();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < mac.length; i++) {\n\t\t\tsb.append(String.format(\"%02X%s\", mac[i], (i < mac.length - 1) ? \"-\" : \"\"));\t\t\n\t\t}\n\t\tData.MAC_ADDRESS=sb.toString();\n\t\treturn sb.toString();\n\t\t\n\t}", "public String determinarNombrePosicion(int num){\r\n String atributo = \"\";\r\n switch(num){\r\n case 0:\r\n atributo = \"cantidad\";\r\n break;\r\n case 1:\r\n atributo = \"fuerza\";\r\n break;\r\n case 2:\r\n atributo = \"infanteria\";\r\n break;\r\n case 3:\r\n atributo = \"lado oscuro\";\r\n break;\r\n case 4:\r\n atributo = \"riqueza\";\r\n break;\r\n case 5:\r\n atributo = \"sigilo\";\r\n break;\r\n case 6:\r\n atributo = \"tecnologia\";\r\n break;\r\n case 7:\r\n atributo = \"velocidad\";\r\n break;\r\n }\r\n return atributo;\r\n }", "String getCognome();", "public String getNotchianName();", "public void delNomFromMac(Verbum w){\r\n\t\tw.macForm = w.macrons.substring(0, w.macrons.length()-w.nomFormLengh);\r\n\t\tif(w.macForm.length()>0){ //avoid index out of bounds\r\n\t\t\tif(w.macForm.charAt(w.macForm.length()-1)=='*'){\r\n\t\t\t\tw.macForm = w.macForm.substring(0, w.macForm.length()-2);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn;\r\n\t}", "private static Nodo construir(String fx){\n Stack<Nodo> pila=new Stack<>();//aqui se guardaran los Nodos;\n for(int i=0;i<fx.length();i++) {\n char caracter = fx.charAt(i);\n if (caracter == '+' || caracter == '*' || caracter == '/' || caracter == '-') { /*cuando es una operacion,\n se crea un Nodo cuya raiz es la operacion, su Nodo derecho es el elemento que le sigue en la pila y su Nodo\n izq es el siguiente*/\n Nodo aux = new Nodo();\n aux.info = \"\" + caracter;\n aux.der = pila.pop();\n aux.izq = pila.pop();\n pila.push(aux);\n } else if (isDigit(caracter) || isLetter(caracter)) { /*cuando es un número o variable, se crea un nodo con\n su valor y se apila*/\n Nodo aux = new Nodo(\"\" + caracter, null, null);\n pila.push(aux);\n }\n }\n return pila.pop();\n }", "public String generaNumPatente() {\n String numeroPatente = \"\";\r\n try {\r\n int valorRetornado = patenteActual.getPatCodigo();\r\n StringBuffer numSecuencial = new StringBuffer(valorRetornado + \"\");\r\n int valRequerido = 6;\r\n int valRetorno = numSecuencial.length();\r\n int valNecesita = valRequerido - valRetorno;\r\n StringBuffer sb = new StringBuffer(valNecesita);\r\n for (int i = 0; i < valNecesita; i++) {\r\n sb.append(\"0\");\r\n }\r\n numeroPatente = \"AE-MPM-\" + sb.toString() + valorRetornado;\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n return numeroPatente;\r\n }", "public static String getMacAddress() {\n try {\n List<NetworkInterface> all = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface nif : all) {\n if (!nif.getName().equalsIgnoreCase(\"wlan0\")) continue;\n\n byte[] macBytes = nif.getHardwareAddress();\n if (macBytes == null) {\n return \"\";\n }\n\n StringBuilder res1 = new StringBuilder();\n for (byte b : macBytes) {\n res1.append(String.format(\"%02X:\",b));\n }\n\n if (res1.length() > 0) {\n res1.deleteCharAt(res1.length() - 1);\n }\n return res1.toString();\n }\n } catch (Exception ex) {\n }\n return \"02:00:00:00:00:00\";\n }", "private static String branchname(Memory m, int isn, int nextpc) {\r\n\t\tshort simm = (short) isn;\r\n\t\treturn m.getname(nextpc + (simm * 4));\r\n\t}", "public static synchronized String getUID() throws UnknownHostException, SocketException {\r\n \r\n // Initialized MAC address if necessary.\r\n if (!initialized) {\r\n initialized = true;\r\n macAddress = UMROMACAddress.getMACAddress();\r\n macAddress = Math.abs(macAddress);\r\n }\r\n \r\n // Use standard class to get unique values.\r\n String guidText = new UID().toString();\r\n \r\n StringTokenizer st = new StringTokenizer(guidText, \":\");\r\n \r\n int unique = Math.abs(Integer.valueOf(st.nextToken(), 16).intValue());\r\n long time = Math.abs(Long.valueOf(st.nextToken(), 16).longValue());\r\n // why add 0x8000 ? because usually starts at -8000, which wastes 4 digits\r\n int count = Math\r\n .abs(Short.valueOf(st.nextToken(), 16).shortValue() + 0x8000);\r\n \r\n // concatenate values to make it into a DICOM GUID.\r\n String guid = UMRO_ROOT_GUID + macAddress + \".\" + unique + \".\" + time\r\n + \".\" + count;\r\n \r\n return guid;\r\n }", "char[] getName();", "private static String generarIdUsuario(String correo2) {\n\t\tString idUsuariogen=\"\";\n\t\tString[] divCorreo=null;\n\t\tString[] divCorreo2=null;\n\t\t\n\t\tif(correo2.contains(\"@ucentral.edu.co\"))\n\t\t{\n\t\t\tdivCorreo=correo2.split(\"@\");\n\t\t\tidUsuariogen = divCorreo[0];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdivCorreo=correo2.split(\"@\");\n\t\t\tdivCorreo2=divCorreo[1].split(\"\\\\.\");\n\t\t\tidUsuariogen = divCorreo[0]+divCorreo2[0];\n\t\t\tSystem.out.print(idUsuariogen);\n\t\t}\n\t\treturn idUsuariogen;\n\t}", "String getFromNick();", "public Node read_node2(String MAC, String port_number) throws HibernateException\r\n\t\t\t\t{ \r\n\t\t\t\t\tNode node = null; \r\n\t\t\t\t\tString i=null;\r\n\t\t\t\t\tlong id_node=0;\r\n\t\t\t\t try \r\n\t\t\t\t { \r\n\t\t\t\t iniciaOperacion(); //unique result me devuelve el objeto encontrado con dicho correo electronico\r\n\t\t\t\t \r\n\t\t\t\t i= sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.MAC_address ='\"+MAC+\"' and u.port_number ='\"+port_number+\"'\").uniqueResult().toString();\r\n\t\t\t\t //una vez encontrado el id del user puedo buscarlo\r\n\t\t\t\t id_node= Integer.parseInt(i);\r\n\t\t\t\t node = (Node) sesion.get(Node.class, id_node); \r\n\t\t\t\t \r\n\t\t\t\t } finally \r\n\t\t\t\t { \r\n\t\t\t\t sesion.close(); \r\n\t\t\t\t } \r\n\t\t\t\t return node; \r\n\t\t\t\t}", "java.lang.String getTelefon();", "public abstract String getOsID();", "private void calcNames() {\n final AddressBook addressBook = platform.getAddressBook();\n numColumns = addressBook.getSize();\n if (numColumns != numMembers) {\n numMembers = numColumns;\n names = new String[numColumns];\n for (int i = 0; i < numColumns; i++) {\n final NodeId nodeId = addressBook.getNodeId(i);\n names[i] = addressBook.getAddress(nodeId).getNickname();\n }\n }\n }", "public String getMac() {\n return this.Mac;\n }", "public java.lang.String getMac() {\n return mac;\n }", "private String getMyNodeId() {\n TelephonyManager tel = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);\n String nodeId = tel.getLine1Number().substring(tel.getLine1Number().length() - 4);\n return nodeId;\n }", "java.lang.String getNickname();", "public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}", "public Mac getMac() {\r\n return mac;\r\n }", "private static String pseudoUniqueId() {\n\t\t// decimal\n\t\tfinal Integer DECIMAL = 10;\n\n\t\t// return the android device some common info(board, brand, CPU type +\n\t\t// ABI convention, device, display, host, id, manufacturer, model,\n\t\t// product, tags, type and user) combined string\n\t\treturn new StringBuilder().append(Build.BOARD.length() % DECIMAL)\n\t\t\t\t.append(Build.BRAND.length() % DECIMAL)\n\t\t\t\t.append(Build.CPU_ABI.length() % DECIMAL)\n\t\t\t\t.append(Build.DEVICE.length() % DECIMAL)\n\t\t\t\t.append(Build.DISPLAY.length() % DECIMAL)\n\t\t\t\t.append(Build.HOST.length() % DECIMAL)\n\t\t\t\t.append(Build.ID.length() % DECIMAL)\n\t\t\t\t.append(Build.MANUFACTURER.length() % DECIMAL)\n\t\t\t\t.append(Build.MODEL.length() % DECIMAL)\n\t\t\t\t.append(Build.PRODUCT.length() % DECIMAL)\n\t\t\t\t.append(Build.TAGS.length() % DECIMAL)\n\t\t\t\t.append(Build.TYPE.length() % DECIMAL)\n\t\t\t\t.append(Build.USER.length() % DECIMAL).toString();\n\t}", "String getUltimoNome();", "public String listarSensores(){\r\n String str = \"\";\r\n for(PacienteNuvem x:pacientes){//Para cada paciente do sistema ele armazena uma string com os padroes do protocolo de comunicação\r\n str += x.getNick()+\"-\"+x.getNome()+\"#\";\r\n }\r\n return str;\r\n }", "java.lang.String getPhy();", "private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}", "public String nombreCanciones() {\r\n\t\t\r\n\t\tString titulo=\"\";\r\n\t\tfor(int i=0; i<misCanciones.size();i++) {\r\n\t\t\ttitulo=misCanciones.get(i).getTitulo();\r\n\t\t}\r\n\t\t\r\n\t\treturn titulo;\r\n\t\t\r\n\t}", "public StringTokenizer getNIC() {\n\n String targetFile = \"/etc/path_to_inst\";\n StringTokenizer nicTokStrg = null;\n\n try {\n\n FileReader fr = new FileReader(targetFile);\n BufferedReader br = new BufferedReader(fr);\n\n String line = null;\n String nicStrg = \" \";\n\n while((line = br.readLine()) != null) {\n StringTokenizer tokStrg = new StringTokenizer(line, \"\\\"\");\n\n if(tokStrg.countTokens() == 3) {\n\n String notUsed = tokStrg.nextToken();\n String indexStrg = tokStrg.nextToken().trim();\n String nameStrg = tokStrg.nextToken().trim();\n\n if(nameStrg.equals(\"le\") || nameStrg.equals(\"hme\")) {\n nicStrg = nicStrg + \" \" + nameStrg + indexStrg;\n }\n }\n }\n\n if(nicStrg.trim().length() > 0) {\n nicTokStrg = new StringTokenizer(nicStrg);\n }\n fr.close();\n\n } catch(FileNotFoundException f) {\n //ignore\n //setLabel(targetFile + \" not found.\");\n }\n catch(IOException g) {\n //setLabel(\"Error reading \" + targetFile );\n }\n\n return nicTokStrg;\n }", "int getNombreColonnesPlateau();", "String getNodeName();", "public void actualizarNombrePoder(){\n\t\tString name = ( game.getCurrentSorpresa() == null )?\"No hay sorpresa\":game.getCurrentSorpresa().getClass().getName();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t}", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public void tocarTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" está tocando!\");\n notificarTodos();\n }", "public String getMac(){\n WifiManager manager = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n WifiInfo info = manager.getConnectionInfo();\n return info.getMacAddress();\n }", "private String showAddr(byte[] addr) {\n\t\tif (addr == null)\n\t\t\treturn (\"unknown\");\n\t\treturn ((int) addr[0] & 0xff) + \".\" + ((int) addr[1] & 0xff) + \".\"\n\t\t\t\t+ ((int) addr[2] & 0xff) + \".\" + ((int) addr[3] & 0xff);\n\t}", "public String getName()\r\n/* 23: */ {\r\n/* 24:20 */ return \"Wire demo receiver\";\r\n/* 25: */ }", "public static\n String getMACAddress()\n {\n String sResult = null;\n try {\n Process pid = Runtime.getRuntime().exec(\"ipconfig /all\");\n BufferedReader in = new BufferedReader(new InputStreamReader(pid.getInputStream()));\n String sLine = null;\n while((sLine = in.readLine()) != null) {\n if(getOccurrences(sLine, '-') == 5) {\n int i = sLine.lastIndexOf('-');\n sResult = sLine.substring(i - 14, i + 3);\n break;\n }\n }\n in.close();\n }\n catch(Exception ex) {\n ex.printStackTrace();\n }\n System.out.println(ResourcesMgr.sLOG_PREFIX + \" MAC Address = \" + sResult);\n return sResult;\n }", "public String getPatronAutorizacion()\r\n/* 204: */ {\r\n/* 205:349 */ this.patronAutorizacion = \"\";\r\n/* 206:350 */ if (this.indicadorFacturaElectronica) {\r\n/* 207:351 */ for (int i = 0; i < 37; i++) {\r\n/* 208:352 */ this.patronAutorizacion += \"9\";\r\n/* 209: */ }\r\n/* 210: */ } else {\r\n/* 211:355 */ for (int i = 0; i < 10; i++) {\r\n/* 212:356 */ this.patronAutorizacion += \"9\";\r\n/* 213: */ }\r\n/* 214: */ }\r\n/* 215:359 */ return this.patronAutorizacion;\r\n/* 216: */ }", "private void registroNumeroOrden(int _carnet, String _tipo) {\n if (modeloRegistroServicio.guardar(_carnet, _tipo)) {\n if (_tipo.equals(\"portatil\")) {\n Portatiles();\n }\n if (_tipo.equals(\"impresora\")) {\n Impresoras();\n }\n if (_tipo.equals(\"pc\")) {\n Pcs();\n }\n if (_tipo.equals(\"otros\")) {\n Others();\n }\n } else {\n System.out.println(\"Error al registrar\");\n }\n }", "public String readEthMAC() {\r\n\t\treturn mFactoryBurnUtil.readEthMAC();\r\n\t}", "public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}", "private static String nombreMayorNota(int[] notas ,String[] nombres) {\n\t\tint notaInicial = 0;\n\t\tint posicionMayor = 0;\n\n\t\tfor (int i = 0; i < notas.length; i++) {\n\n\t\t\tif (notaInicial < notas[i]) {\n\n\t\t\t\tposicionMayor = i;\n\t\t\t\tnotaInicial = notas[i];\n\t\t\t}\n\t\t}\n\t\treturn nombres[posicionMayor];\n\t}", "String getPdpName();", "public String format(MacAddress mac) {\n byte[] b = mac.getInternalBytes();\n Oui oui = _byHashCode.get(Oui.hashCode(mac.getInternalBytes()));\n StringBuilder buf = new StringBuilder();\n\n if (oui == null) {\n buf.append(String.format(\"Unknown-%02x-%02x-%02x\", b[0], b[1], b[2]));\n } else {\n buf.append(oui.getShortName());\n }\n buf.append('-');\n\n for (int i = 3; i < MacAddress.ETH_ALEN; ++i) {\n if (i > 3) buf.append(':');\n buf.append(String.format(\"%02x\", b[i]));\n }\n\n return buf.toString();\n }", "public void setUser_mac(java.lang.String newUser_mac);", "private TIPO_REPORTE(String nombre)\r\n/* 55: */ {\r\n/* 56: 58 */ this.nombre = nombre;\r\n/* 57: */ }", "public byte[] getName();", "protected abstract String getPortPropertyName();", "private String getNomeArquivoItem(File ordem, long numItem)\n\t{\n\t\tDecimalFormat \tdf \t\t\t= new DecimalFormat(\"000\");\n\t\tString\t\t\tnomeArquivo\t= null;\n\t\tPattern \t\tpattern \t= null;\n\t\tPatternMatcher \tmatcher \t= new AwkMatcher();\n\t\tPatternCompiler compiler \t= new AwkCompiler();\n\t\tSubstitution \tsub\t\t\t= new StringSubstitution(\"_\"+df.format(numItem)+\".dat\");\n\t\ttry\n\t\t{\n\t\t\tpattern = compiler.compile(\"[.]dat\");\n\t\t\tnomeArquivo = Util.substitute(matcher,pattern,sub,ordem.getAbsolutePath());\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t/* Caso algum erro ocorra na troca da extensao do arquivo, entao\n\t\t\t * o arquivo fica com o nome original acrescido da extensao .zip\n\t\t\t */\n\t\t\tSystem.out.println(\"Erro ao criar o nome do arquivo do item para concatenacao. \"+e);\n\t\t\tnomeArquivo = ordem.getAbsolutePath()+\".\"+df.format(numItem);\n\t\t}\n\t\treturn nomeArquivo;\n\t\t//return nomeArquivo.replaceAll(\"[.]dat\",\"_\"+df.format(numItem)+\".dat\");\n\t}", "private String getAdress(NodoAvl tmp){\n StringBuilder sb = new StringBuilder();\n sb.append(tmp.direcciones.graphBigList(tmp.nom+\"Add\"));\n sb.append(tmp.nom).append(\"->\").append(tmp.nom).append(\"Add0\")\n .append(\";\\n\");\n return sb.toString();\n }", "@Override\n public void write(DataOutput out) throws IOException {\n out.writeInt(namenodes.size());\n for(long nn : namenodes.keySet()) {\n out.writeLong(nn);\n String hostname = namenodes.get(nn).getAddress().getHostAddress()+\":\"+namenodes.get(nn).getPort();\n Text.writeString(out,hostname);\n }\n }", "private String obtenerNid(int posicion) {\n if (propuestas != null) {\n return propuestas[posicion].getNid();\n }\n return null;\n }", "public static void main(String[] args) {\r\n int puerto= 10762; //Predeterminados\r\n String nodo = \"localhost\";\r\n String dirD = \"\";\r\n System.out.println(args.length);\r\n switch(args.length){\r\n \r\n case 4:\r\n puerto = Integer.parseInt(args[1]);\r\n nodo = args[3];\r\n System.out.println(nodo);\r\n break;\r\n case 6:\r\n puerto = Integer.parseInt(args[1]);\r\n nodo = args[3];\r\n dirD = args[5];\r\n break;\r\n default:\r\n System.out.println(\"Par�metros inv�lidos.\");\r\n System.exit(0);\r\n }\r\n \r\n try{ \r\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); \r\n String text = in.readLine();\r\n cliente cliente = new cliente(nodo,puerto,dirD);\r\n text.trim();\r\n while(!text.equalsIgnoreCase(\"q\")){\r\n \r\n if (text.equalsIgnoreCase(\"a\")){\r\n String saludo = cliente.clientIn.readLine();\r\n cliente.clientOut.println(text+\"\\t\"+cliente.IP+\"\\t\"+\"N\");\r\n String nodosRecibidos = cliente.clientIn.readLine();\r\n System.out.println(\"Nodos alcanzables: \\n\");\r\n String[] linea = nodosRecibidos.split(\" \");\r\n for(int i=0; i<linea.length; i++){\r\n cliente.nodosAlc.add(linea[i]);\r\n System.out.println(\"\\t\"+linea[i]);\r\n }\r\n \r\n }\r\n \r\n else if (text.startsWith(\"c\") || text.startsWith(\"C\")){\r\n if (!cliente.cancionesEncontradas.isEmpty()){\r\n cliente.cancionesEncontradas.clear();\r\n }\r\n String saludo = cliente.clientIn.readLine();\r\n cliente.clientOut.println(text+\"\\t\"+cliente.IP+\"\\t\"+\"N\");\r\n String canciones=\" \";\r\n System.out.println(\"Resultado de las canciones \\n\");\r\n while ((canciones = (cliente.clientIn.readLine()).trim()).\r\n compareTo(\"corte\")!= 0){\r\n canciones.trim();\r\n System.out.println(canciones);\r\n String[] porlinea = canciones.split(\"\\t\");\r\n Cancion c = new Cancion(Integer.parseInt(porlinea[0].trim()),\r\n porlinea[2].trim(),porlinea[1].trim(),porlinea[5].trim(),porlinea[3].trim(),\r\n porlinea[4].trim());\r\n cliente.cancionesEncontradas.add(c); \r\n }\r\n }\r\n else if (text.startsWith(\"d\") || text.startsWith(\"D\")){\r\n // Conectarse al nodo dado y Descargar\r\n String linea[] = text.split(\" \");\r\n if (linea.length <= 1 || linea.length>2){\r\n System.err.print(\"Comando invalido\");\r\n break;\r\n }\r\n Cancion cancion = cliente.buscarCancionPorNumero(Integer.parseInt(linea[1]));\r\n System.out.println(\"Cancion por numero 0 :\"+cancion.toString());\r\n if (cancion.getNodoIP().compareTo(cliente.IP)==0){\r\n //Procedo a descargarme la cancion pues ya estoy conectada a el nodo\r\n cliente.clientOut.println(linea[0]+\"\\t\"+cancion.toString());\r\n System.out.println(\"\\tEnviada solicitud de descarga\");\r\n \r\n }\r\n else{\r\n //DEBO CONECTARME CON EL NODO QUE TIENE LA CANCION\r\n }\r\n /* **************************** */\r\n //Procedo a recibir la cancion\r\n cliente.recibirCancionMP3();\r\n\r\n \r\n }\r\n else{\r\n System.out.println(\"Consulta invalida. Intente de nuevo\");\r\n }\r\n System.out.println(\"Fin loopp cliente\\n\"); \r\n text = in.readLine();\r\n text.trim();\r\n }\r\n cliente.clientOut.println(\"q\");\r\n System.out.println(\"Bye\");\r\n if (cliente !=null){\r\n cliente.socket.close();\r\n }\r\n } catch (IOException ex) {\r\n Logger.getLogger(cliente.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "String getDeviceName();", "@Deprecated\r\n\tpublic String readMACID(){\r\n\t\treturn \"\";\r\n\t}", "@AutoEscape\n\tpublic String getNomDistrito();", "public MacAddress(){\n super(MAC_DIGIT_COUNT);\n }", "@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn nome;\n\t\t\t}", "java.lang.String getOs();", "private String concatLabel(NodoAvl tmp){\n StringBuilder sb = new StringBuilder();\n sb.append(tmp.nom).append(\"[label = \\\"\").append(\"<izq>|\")\n .append(tmp.username).append(\"\\\\n\").append(tmp.password)\n .append(\"|<der>\")\n .append(\"\\\"];\");\n if(tmp.carrito != null){sb.append(getCarrito(tmp));}\n if(tmp.whish != null){ sb.append(getWish(tmp));}\n if(tmp.direcciones != null){ sb.append(getAdress(tmp));}\n \n if(tmp.izq != null){\n sb.append(tmp.nom).append(\":izq->\").append(tmp.izq.nom).append(\";\\n\");\n sb.append(concatLabel(tmp.izq));\n }\n if(tmp.der != null){\n sb.append(tmp.nom).append(\":der->\").append(tmp.der.nom).append(\";\\n\");\n sb.append(concatLabel(tmp.der));\n }\n return sb.toString();\n }", "public static String getPseudoDeviceID() {\n final String ID = \"42\";\n return ID +\n Build.BOARD.length() % 10 + Build.BRAND.length() % 10 +\n Build.CPU_ABI.length() % 10 + Build.DEVICE.length() % 10 +\n Build.DISPLAY.length() % 10 + Build.HOST.length() % 10 +\n Build.ID.length() % 10 + Build.MANUFACTURER.length() % 10 +\n Build.MODEL.length() % 10 + Build.PRODUCT.length() % 10 +\n Build.TAGS.length() % 10 + Build.TYPE.length() % 10 +\n Build.USER.length() % 10;\n }", "private String ricavaNome(String itemSelected){\n int i = 0;\n String schema;\n \n while(itemSelected.charAt(i) != '.'){\n i++;\n }\n \n schema = itemSelected.substring(i+1);\n \n return schema;\n }", "public String getNickname();", "private String getUnidades(String numero) {// 1 - 9\r\n //si tuviera algun 0 antes se lo quita -> 09 = 9 o 009=9\r\n String num = numero.substring(numero.length() - 1);\r\n return UNIDADES[Integer.parseInt(num)];\r\n }", "public String getMac() {\n\t\treturn InfraUtil.getMacAddress();\n\t}", "public static String getNimbus() {\r\n return nimbus.getValue();\r\n }", "public String lerNome() {\n\t\treturn JOptionPane.showInputDialog(\"Digite seu Nome:\");\n\t\t// janela de entrada\n\t}", "private static String m21383C(Context context) {\n WifiInfo wifiInfo;\n String str = \"02:00:00:00:00:00\";\n if (context == null) {\n return str;\n }\n WifiManager wifiManager = (WifiManager) context.getApplicationContext().getSystemService(\"wifi\");\n if (wifiManager == null) {\n return str;\n }\n try {\n wifiInfo = wifiManager.getConnectionInfo();\n } catch (Exception e) {\n C5205o.m21464a((Throwable) e);\n wifiInfo = null;\n }\n if (wifiInfo == null) {\n return null;\n }\n String macAddress = wifiInfo.getMacAddress();\n if (!TextUtils.isEmpty(macAddress)) {\n macAddress = macAddress.toUpperCase(Locale.ENGLISH);\n }\n return macAddress;\n }", "public static String genDpidFromName(String name) {\n if (name != null) {\n String hexString = Integer.toHexString(name.hashCode());\n return OF_PREFIX + Strings.padStart(hexString, 16, '0');\n }\n\n return null;\n }", "public static int getPuertoServidor() throws IOException {\r\n getInstancia();\r\n return propiedades.puerto;\r\n }", "public abstract java.lang.String getIdpc();", "public abstract String toName(Object inNode);", "public String getEthernetMacAddress(){\n\t try {\n\t return loadFileAsString(\"/sys/class/net/eth0/address\")\n\t .toUpperCase().substring(0, 17);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t}", "@Override\r\n\tpublic long getNombreOperation(String numCpte) {\n\t\treturn dao.getNombreOperation(numCpte);\r\n\t}", "private int contar(String nombre) {\n int c = 0;\n for (Nodo<Integer, Reservacion> th1 : this.th) {\n if (th1 != null && th1.value.Cliente().equals(nombre)) {\n c++;\n }\n }\n return c;\n }", "public static String getLocalMac() {\n\t\tif (!mInitialized) Log.v(\"OpenIp\", \"Initialisation isn't done\");\n\t\treturn localMac;\n\t}", "private String generateUID()\n {\n String uid;\n int nbAccounts = this.getNumberOfAccounts();\n String host = this.registration.getHost();\n int nbAccountsForHost = this.getNbAccountForHost(host);\n \n if (nbAccounts == 0 || (this.isModification() && nbAccounts == 1) ||\n nbAccountsForHost == 0 || (this.isModification() && nbAccountsForHost == 1))\n {\n // We create the first account or we edit the onlyone\n // Or we create the first account for this server or edit the onlyone\n uid = host;\n }\n else\n {\n uid = host + \":\" + this.registration.getPort();\n }\n \n return uid;\n }" ]
[ "0.6488037", "0.6021868", "0.59251565", "0.5878774", "0.58510137", "0.5840766", "0.5661373", "0.5637246", "0.56161773", "0.56051534", "0.56051534", "0.55345255", "0.5513924", "0.5475721", "0.54689366", "0.5414646", "0.5409808", "0.5395096", "0.5395096", "0.5387244", "0.5360172", "0.53450745", "0.5322707", "0.5317692", "0.5299987", "0.52933687", "0.5290656", "0.5284852", "0.5278885", "0.5277168", "0.52622676", "0.52620715", "0.5251777", "0.52510744", "0.52488923", "0.5248591", "0.52436906", "0.52309746", "0.52245134", "0.52122194", "0.5206452", "0.5188933", "0.51853293", "0.51843065", "0.5170726", "0.5165742", "0.51492167", "0.51480937", "0.5137081", "0.5131422", "0.5128071", "0.51148325", "0.5113209", "0.51076144", "0.5094342", "0.50922966", "0.50892293", "0.50772315", "0.5074954", "0.5071615", "0.5066049", "0.5057164", "0.50552607", "0.5054604", "0.5047568", "0.504691", "0.5041527", "0.5038847", "0.50364035", "0.50363183", "0.5032615", "0.50308895", "0.5030011", "0.5028148", "0.50204986", "0.50144184", "0.5011609", "0.4997399", "0.49955446", "0.49895462", "0.49887925", "0.49868843", "0.49858522", "0.49845576", "0.49819294", "0.49772528", "0.49741408", "0.4972651", "0.49701196", "0.4965593", "0.49654123", "0.49650744", "0.496447", "0.49643934", "0.49642965", "0.49639398", "0.49636945", "0.49630535", "0.495717", "0.49543858", "0.49520093" ]
0.0
-1
buscar nombre del nodo por mac y puerto y retorna el nodo
public Node read_node2(String MAC, String port_number) throws HibernateException { Node node = null; String i=null; long id_node=0; try { iniciaOperacion(); //unique result me devuelve el objeto encontrado con dicho correo electronico i= sesion.createQuery("SELECT u.id_node FROM Node u WHERE u.MAC_address ='"+MAC+"' and u.port_number ='"+port_number+"'").uniqueResult().toString(); //una vez encontrado el id del user puedo buscarlo id_node= Integer.parseInt(i); node = (Node) sesion.get(Node.class, id_node); } finally { sesion.close(); } return node; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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}", "private static String digitarNombre() {\n\t\tString nombre;\n\t\tSystem.out.println(\"Digite el nombre del socio: \");\n\t\tnombre = teclado.next();\n\t\treturn nombre;\n\t}", "public java.lang.String getUser_mac();", "java.lang.String getNume();", "java.lang.String getNume();", "private String getUniqueNodeName() {\n return String.format(\"N%d\", uniqueNode++);\n }", "public String getNombreFicheroAlumno(){\n\t\treturn \"Ev-Intermedia-Arboles-BST-Apellido1Apellido2Nombre-UOxxxx\";\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 getMacNo() {\r\n return macNo;\r\n }", "@Override\n\tpublic String damePatente() {\n\t\treturn \"TJH 123\";\n\t}", "private static Nodo construir(String fx){\n Stack<Nodo> pila=new Stack<>();//aqui se guardaran los Nodos;\n for(int i=0;i<fx.length();i++) {\n char caracter = fx.charAt(i);\n if (caracter == '+' || caracter == '*' || caracter == '/' || caracter == '-') { /*cuando es una operacion,\n se crea un Nodo cuya raiz es la operacion, su Nodo derecho es el elemento que le sigue en la pila y su Nodo\n izq es el siguiente*/\n Nodo aux = new Nodo();\n aux.info = \"\" + caracter;\n aux.der = pila.pop();\n aux.izq = pila.pop();\n pila.push(aux);\n } else if (isDigit(caracter) || isLetter(caracter)) { /*cuando es un número o variable, se crea un nodo con\n su valor y se apila*/\n Nodo aux = new Nodo(\"\" + caracter, null, null);\n pila.push(aux);\n }\n }\n return pila.pop();\n }", "private static String getMacAddress(){\n\t\ttry {\n\t\t\t//getting hardware address from inside a virtual machine from NetworkInterface object returns null, so need a gambiarra.\n\t\t\t//if this issue is ever solved please replace for the appropriate code\n\t\t\tString command = \"ifconfig\";\n\t\t\tProcess p = Runtime.getRuntime().exec(command);\n\t\t\tBufferedReader inn = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\n\t\t\tString line = inn.readLine();\n\n\t\t\twhile( line != null ){\n\t\t\t\t\n\t\t\t\tif(line.indexOf(\"eth0\") >= 0){\n\t\t\t\t\tString[] split = line.split(\" \");\n\t\t\t\t\treturn split[split.length-1];\n\t\t\t\t}\n\n\t\t\t\tline = inn.readLine();\n\t\t\t}\n\n\t\t\tinn.close();\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\treturn \"error\";\n\t}", "java.lang.String getSerial();", "String getSerial();", "public String generaNumPatente() {\n String numeroPatente = \"\";\r\n try {\r\n int valorRetornado = patenteActual.getPatCodigo();\r\n StringBuffer numSecuencial = new StringBuffer(valorRetornado + \"\");\r\n int valRequerido = 6;\r\n int valRetorno = numSecuencial.length();\r\n int valNecesita = valRequerido - valRetorno;\r\n StringBuffer sb = new StringBuffer(valNecesita);\r\n for (int i = 0; i < valNecesita; i++) {\r\n sb.append(\"0\");\r\n }\r\n numeroPatente = \"AE-MPM-\" + sb.toString() + valorRetornado;\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n return numeroPatente;\r\n }", "String getUltimoNome();", "java.lang.String getNick();", "java.lang.String getNick();", "public static synchronized String getUID() throws UnknownHostException, SocketException {\r\n \r\n // Initialized MAC address if necessary.\r\n if (!initialized) {\r\n initialized = true;\r\n macAddress = UMROMACAddress.getMACAddress();\r\n macAddress = Math.abs(macAddress);\r\n }\r\n \r\n // Use standard class to get unique values.\r\n String guidText = new UID().toString();\r\n \r\n StringTokenizer st = new StringTokenizer(guidText, \":\");\r\n \r\n int unique = Math.abs(Integer.valueOf(st.nextToken(), 16).intValue());\r\n long time = Math.abs(Long.valueOf(st.nextToken(), 16).longValue());\r\n // why add 0x8000 ? because usually starts at -8000, which wastes 4 digits\r\n int count = Math\r\n .abs(Short.valueOf(st.nextToken(), 16).shortValue() + 0x8000);\r\n \r\n // concatenate values to make it into a DICOM GUID.\r\n String guid = UMRO_ROOT_GUID + macAddress + \".\" + unique + \".\" + time\r\n + \".\" + count;\r\n \r\n return guid;\r\n }", "public static String getNetMac() {\n\t\tif (!mInitialized) Log.v(\"OpenIp\", \"Initialisation isn't done\");\n\t\treturn netMac;\n\t}", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn \"Macchina a stati finiti di nome \"+nome+\", nello stato \"+corrente.getNome()+\".\";\r\n\t}", "String getFromNick();", "String getMacAddress() {\n return String.format(\"%s:%s:%s:%s:%s:%s\", macAddress.substring(0, 2), macAddress.substring(2, 4),\n macAddress.substring(4, 6), macAddress.substring(6, 8), macAddress.substring(8, 10), macAddress.substring(10, 12));\n }", "public StringTokenizer getNIC() {\n\n String targetFile = \"/etc/path_to_inst\";\n StringTokenizer nicTokStrg = null;\n\n try {\n\n FileReader fr = new FileReader(targetFile);\n BufferedReader br = new BufferedReader(fr);\n\n String line = null;\n String nicStrg = \" \";\n\n while((line = br.readLine()) != null) {\n StringTokenizer tokStrg = new StringTokenizer(line, \"\\\"\");\n\n if(tokStrg.countTokens() == 3) {\n\n String notUsed = tokStrg.nextToken();\n String indexStrg = tokStrg.nextToken().trim();\n String nameStrg = tokStrg.nextToken().trim();\n\n if(nameStrg.equals(\"le\") || nameStrg.equals(\"hme\")) {\n nicStrg = nicStrg + \" \" + nameStrg + indexStrg;\n }\n }\n }\n\n if(nicStrg.trim().length() > 0) {\n nicTokStrg = new StringTokenizer(nicStrg);\n }\n fr.close();\n\n } catch(FileNotFoundException f) {\n //ignore\n //setLabel(targetFile + \" not found.\");\n }\n catch(IOException g) {\n //setLabel(\"Error reading \" + targetFile );\n }\n\n return nicTokStrg;\n }", "private String getNomeArquivoItem(File ordem, long numItem)\n\t{\n\t\tDecimalFormat \tdf \t\t\t= new DecimalFormat(\"000\");\n\t\tString\t\t\tnomeArquivo\t= null;\n\t\tPattern \t\tpattern \t= null;\n\t\tPatternMatcher \tmatcher \t= new AwkMatcher();\n\t\tPatternCompiler compiler \t= new AwkCompiler();\n\t\tSubstitution \tsub\t\t\t= new StringSubstitution(\"_\"+df.format(numItem)+\".dat\");\n\t\ttry\n\t\t{\n\t\t\tpattern = compiler.compile(\"[.]dat\");\n\t\t\tnomeArquivo = Util.substitute(matcher,pattern,sub,ordem.getAbsolutePath());\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t/* Caso algum erro ocorra na troca da extensao do arquivo, entao\n\t\t\t * o arquivo fica com o nome original acrescido da extensao .zip\n\t\t\t */\n\t\t\tSystem.out.println(\"Erro ao criar o nome do arquivo do item para concatenacao. \"+e);\n\t\t\tnomeArquivo = ordem.getAbsolutePath()+\".\"+df.format(numItem);\n\t\t}\n\t\treturn nomeArquivo;\n\t\t//return nomeArquivo.replaceAll(\"[.]dat\",\"_\"+df.format(numItem)+\".dat\");\n\t}", "java.lang.String getAgentMac();", "private String getMyNodeId() {\n TelephonyManager tel = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);\n String nodeId = tel.getLine1Number().substring(tel.getLine1Number().length() - 4);\n return nodeId;\n }", "public abstract String getOsID();", "@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 }", "private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}", "public abstract UPnPDeviceNode GetDeviceNode(String name);", "public static String getMac(InetAddress add) throws SocketException,NullPointerException{\n\t\t\n\t\tNetworkInterface network = NetworkInterface.getByInetAddress(add);\n\t\tbyte[] mac = network.getHardwareAddress();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < mac.length; i++) {\n\t\t\tsb.append(String.format(\"%02X%s\", mac[i], (i < mac.length - 1) ? \"-\" : \"\"));\t\t\n\t\t}\n\t\tData.MAC_ADDRESS=sb.toString();\n\t\treturn sb.toString();\n\t\t\n\t}", "public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}", "public static\n String getMACAddress()\n {\n String sResult = null;\n try {\n Process pid = Runtime.getRuntime().exec(\"ipconfig /all\");\n BufferedReader in = new BufferedReader(new InputStreamReader(pid.getInputStream()));\n String sLine = null;\n while((sLine = in.readLine()) != null) {\n if(getOccurrences(sLine, '-') == 5) {\n int i = sLine.lastIndexOf('-');\n sResult = sLine.substring(i - 14, i + 3);\n break;\n }\n }\n in.close();\n }\n catch(Exception ex) {\n ex.printStackTrace();\n }\n System.out.println(ResourcesMgr.sLOG_PREFIX + \" MAC Address = \" + sResult);\n return sResult;\n }", "public static String getMacAddress() {\n try {\n List<NetworkInterface> all = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface nif : all) {\n if (!nif.getName().equalsIgnoreCase(\"wlan0\")) continue;\n\n byte[] macBytes = nif.getHardwareAddress();\n if (macBytes == null) {\n return \"\";\n }\n\n StringBuilder res1 = new StringBuilder();\n for (byte b : macBytes) {\n res1.append(String.format(\"%02X:\",b));\n }\n\n if (res1.length() > 0) {\n res1.deleteCharAt(res1.length() - 1);\n }\n return res1.toString();\n }\n } catch (Exception ex) {\n }\n return \"02:00:00:00:00:00\";\n }", "String getCognome();", "java.lang.String getTelefon();", "public String getPatronAutorizacion()\r\n/* 204: */ {\r\n/* 205:349 */ this.patronAutorizacion = \"\";\r\n/* 206:350 */ if (this.indicadorFacturaElectronica) {\r\n/* 207:351 */ for (int i = 0; i < 37; i++) {\r\n/* 208:352 */ this.patronAutorizacion += \"9\";\r\n/* 209: */ }\r\n/* 210: */ } else {\r\n/* 211:355 */ for (int i = 0; i < 10; i++) {\r\n/* 212:356 */ this.patronAutorizacion += \"9\";\r\n/* 213: */ }\r\n/* 214: */ }\r\n/* 215:359 */ return this.patronAutorizacion;\r\n/* 216: */ }", "public String getNotchianName();", "@Override\r\n\tpublic long getNombreOperation(String numCpte) {\n\t\treturn dao.getNombreOperation(numCpte);\r\n\t}", "public Mac getMac() {\r\n return mac;\r\n }", "String mo7390hn() throws RemoteException;", "java.lang.String getNickname();", "public Nodo getPadre() {\n return this.padre;\n }", "public String determinarNombrePosicion(int num){\r\n String atributo = \"\";\r\n switch(num){\r\n case 0:\r\n atributo = \"cantidad\";\r\n break;\r\n case 1:\r\n atributo = \"fuerza\";\r\n break;\r\n case 2:\r\n atributo = \"infanteria\";\r\n break;\r\n case 3:\r\n atributo = \"lado oscuro\";\r\n break;\r\n case 4:\r\n atributo = \"riqueza\";\r\n break;\r\n case 5:\r\n atributo = \"sigilo\";\r\n break;\r\n case 6:\r\n atributo = \"tecnologia\";\r\n break;\r\n case 7:\r\n atributo = \"velocidad\";\r\n break;\r\n }\r\n return atributo;\r\n }", "public String getMACCHN()\n {\n return this.MACCHN;\n }", "private static final long getHostId(){\n long macAddressAsLong = 0;\n try {\n Random random = new Random();\n InetAddress address = InetAddress.getLocalHost();\n NetworkInterface ni = NetworkInterface.getByInetAddress(address);\n if (ni != null) {\n byte[] mac = ni.getHardwareAddress();\n random.nextBytes(mac); // we don't really want to reveal the actual MAC address\n\n //Converts array of unsigned bytes to an long\n if (mac != null) {\n for (int i = 0; i < mac.length; i++) {\n macAddressAsLong <<= 8;\n macAddressAsLong ^= (long)mac[i] & 0xFF;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return macAddressAsLong;\n }", "public java.lang.String getMac() {\n return mac;\n }", "private static String generarIdUsuario(String correo2) {\n\t\tString idUsuariogen=\"\";\n\t\tString[] divCorreo=null;\n\t\tString[] divCorreo2=null;\n\t\t\n\t\tif(correo2.contains(\"@ucentral.edu.co\"))\n\t\t{\n\t\t\tdivCorreo=correo2.split(\"@\");\n\t\t\tidUsuariogen = divCorreo[0];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdivCorreo=correo2.split(\"@\");\n\t\t\tdivCorreo2=divCorreo[1].split(\"\\\\.\");\n\t\t\tidUsuariogen = divCorreo[0]+divCorreo2[0];\n\t\t\tSystem.out.print(idUsuariogen);\n\t\t}\n\t\treturn idUsuariogen;\n\t}", "public String read_node(NodeWS node) throws HibernateException\r\n\t\t{ \r\n\t\t\t\r\n\t\t\tString i=null;\r\n\t\t\t\r\n\t\t try \r\n\t\t { \r\n\t\t iniciaOperacion(); //unique result me devuelve el objeto encontrado con dicho correo electronico\r\n\t\t \r\n\t\t i= (String) sesion.createQuery(\"SELECT u.node_name FROM Node u WHERE u.MAC_address ='\"+node.getMAC_address()+\"' and u.port_number ='\"+node.getPort_number()+\"'\").uniqueResult();\r\n\t\t //una vez encontrado el id del user puedo buscarlo\r\n\t\t //id_user= Integer.parseInt(i);\r\n\t\t //user = (User) sesion.get(User.class, id_user); \r\n\t\t \r\n\t\t } finally \r\n\t\t { \r\n\t\t sesion.close(); \r\n\t\t } \r\n\t\t return i; \r\n\t\t}", "public String readEthMAC() {\r\n\t\treturn mFactoryBurnUtil.readEthMAC();\r\n\t}", "String getNodeName();", "public String readDeviceSN(){\r\n return mFactoryBurnUtil.readDeviceSN();\r\n }", "private static String pseudoUniqueId() {\n\t\t// decimal\n\t\tfinal Integer DECIMAL = 10;\n\n\t\t// return the android device some common info(board, brand, CPU type +\n\t\t// ABI convention, device, display, host, id, manufacturer, model,\n\t\t// product, tags, type and user) combined string\n\t\treturn new StringBuilder().append(Build.BOARD.length() % DECIMAL)\n\t\t\t\t.append(Build.BRAND.length() % DECIMAL)\n\t\t\t\t.append(Build.CPU_ABI.length() % DECIMAL)\n\t\t\t\t.append(Build.DEVICE.length() % DECIMAL)\n\t\t\t\t.append(Build.DISPLAY.length() % DECIMAL)\n\t\t\t\t.append(Build.HOST.length() % DECIMAL)\n\t\t\t\t.append(Build.ID.length() % DECIMAL)\n\t\t\t\t.append(Build.MANUFACTURER.length() % DECIMAL)\n\t\t\t\t.append(Build.MODEL.length() % DECIMAL)\n\t\t\t\t.append(Build.PRODUCT.length() % DECIMAL)\n\t\t\t\t.append(Build.TAGS.length() % DECIMAL)\n\t\t\t\t.append(Build.TYPE.length() % DECIMAL)\n\t\t\t\t.append(Build.USER.length() % DECIMAL).toString();\n\t}", "public char getName(){\n\t\treturn tipo;\n\t}", "java.lang.String getPhy();", "public void delNomFromMac(Verbum w){\r\n\t\tw.macForm = w.macrons.substring(0, w.macrons.length()-w.nomFormLengh);\r\n\t\tif(w.macForm.length()>0){ //avoid index out of bounds\r\n\t\t\tif(w.macForm.charAt(w.macForm.length()-1)=='*'){\r\n\t\t\t\tw.macForm = w.macForm.substring(0, w.macForm.length()-2);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn;\r\n\t}", "public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}", "private int contar(String nombre) {\n int c = 0;\n for (Nodo<Integer, Reservacion> th1 : this.th) {\n if (th1 != null && th1.value.Cliente().equals(nombre)) {\n c++;\n }\n }\n return c;\n }", "@Deprecated\r\n\tpublic String readMACID(){\r\n\t\treturn \"\";\r\n\t}", "@Override\n\t@Field(offset=41, length=9, paddingChar='0', align=Align.RIGHT)\n\tpublic String getNossoNumero() {\n\t\treturn super.getNossoNumero();\n\t}", "public String getMac(){\n WifiManager manager = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n WifiInfo info = manager.getConnectionInfo();\n return info.getMacAddress();\n }", "public String getMac() {\n return this.Mac;\n }", "public abstract String getDnForPerson(String inum);", "public char[] getWord(int endereco){\n char[] resposta = new char[16];\n \n System.arraycopy(memory[endereco], 0, resposta, 0, 16);\n \n return resposta;\n }", "String getDeviceName();", "private String obtenerNid(int posicion) {\n if (propuestas != null) {\n return propuestas[posicion].getNid();\n }\n return null;\n }", "public static String getPseudoDeviceID() {\n final String ID = \"42\";\n return ID +\n Build.BOARD.length() % 10 + Build.BRAND.length() % 10 +\n Build.CPU_ABI.length() % 10 + Build.DEVICE.length() % 10 +\n Build.DISPLAY.length() % 10 + Build.HOST.length() % 10 +\n Build.ID.length() % 10 + Build.MANUFACTURER.length() % 10 +\n Build.MODEL.length() % 10 + Build.PRODUCT.length() % 10 +\n Build.TAGS.length() % 10 + Build.TYPE.length() % 10 +\n Build.USER.length() % 10;\n }", "public int getNickel () {\n return NNickel;\n }", "public static String getNimbus() {\r\n return nimbus.getValue();\r\n }", "String getNetzanbieter();", "private static int getNodeTime(String node) {\n int offSet = 4;\n return (int) node.toCharArray()[0] - offSet;\n }", "public static int getPuertoServidor() throws IOException {\r\n getInstancia();\r\n return propiedades.puerto;\r\n }", "public String getMac() {\n\t\treturn InfraUtil.getMacAddress();\n\t}", "public String getEthernetMacAddress(){\n\t try {\n\t return loadFileAsString(\"/sys/class/net/eth0/address\")\n\t .toUpperCase().substring(0, 17);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t}", "@Override\n\tpublic String getNaam(){\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\tString w=p.getName();\n\t\treturn w;\n\t}", "Long crear(Espacio espacio);", "public static String makeUniqueName( String root )\n {\n if ( null == root || root.trim().length() == 0 )\n root = \"rxname\";\n int count;\n synchronized ( getInstance().getClass())\n {\n count = ms_counter++;\n }\n return root + count;\n }", "public int getNumero() {\n return dado1;\n }", "private static String nombreMayorNota(int[] notas ,String[] nombres) {\n\t\tint notaInicial = 0;\n\t\tint posicionMayor = 0;\n\n\t\tfor (int i = 0; i < notas.length; i++) {\n\n\t\t\tif (notaInicial < notas[i]) {\n\n\t\t\t\tposicionMayor = i;\n\t\t\t\tnotaInicial = notas[i];\n\t\t\t}\n\t\t}\n\t\treturn nombres[posicionMayor];\n\t}", "java.lang.String getSerialNumber();", "java.lang.String getSerialNumber();", "private static String branchname(Memory m, int isn, int nextpc) {\r\n\t\tshort simm = (short) isn;\r\n\t\treturn m.getname(nextpc + (simm * 4));\r\n\t}", "public static String getLocalMac() {\n\t\tif (!mInitialized) Log.v(\"OpenIp\", \"Initialisation isn't done\");\n\t\treturn localMac;\n\t}", "private static String m21383C(Context context) {\n WifiInfo wifiInfo;\n String str = \"02:00:00:00:00:00\";\n if (context == null) {\n return str;\n }\n WifiManager wifiManager = (WifiManager) context.getApplicationContext().getSystemService(\"wifi\");\n if (wifiManager == null) {\n return str;\n }\n try {\n wifiInfo = wifiManager.getConnectionInfo();\n } catch (Exception e) {\n C5205o.m21464a((Throwable) e);\n wifiInfo = null;\n }\n if (wifiInfo == null) {\n return null;\n }\n String macAddress = wifiInfo.getMacAddress();\n if (!TextUtils.isEmpty(macAddress)) {\n macAddress = macAddress.toUpperCase(Locale.ENGLISH);\n }\n return macAddress;\n }", "private String parseDescrName(String line) {\n\t\t// d1f74a_ 201-209;3-11 DGAIGSTFN LKGIFSALL #7\n\t\t// d1nvra_ 226-253;184-204 IDSAPLALL GIVLTAMLA 0_0:-5_-8 0.477587\n\t\t// GroupName is created as name of domain (remove proceeding 'd') + pdb\n\t\t// number of the first residue\n\t\t// in the second segment (3-11 in the example) increased by 10000 + '_'\n\t\t// + number of cluster (7 in the case)\n\t\t// the residue with fasta number 3 is translated into address A4_ - so\n\t\t// the pdb number is 4\n\t\t// finally the group name will be 1f74a_#10004_7\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tString dom = tokens[0].substring(1);\n\t\tString noClust = \"\";\n\t\t@SuppressWarnings(\"unused\")\n\t\tint shift1 = 0; // segment1 shift\n\t\tint shift2 = 0; // segment2 shift\n\t\ttry {\n\t\t\tif (tokens[4].startsWith(\"#\")) {\n\t\t\t\tnoClust = \"_\" + tokens[4].substring(1);\n\t\t\t} else {\n\t\t\t\tnoClust = \"\";\n\t\t\t}\n\t\t\tif (tokens[4].startsWith(\"0_0\")) {\n\t\t\t\ttokens[4] = tokens[4].replaceFirst(\"0_0:\", \"\");\n\t\t\t\tString[] shifts = tokens[4].split(\"_\");\n\t\t\t\tshift1 = Integer.valueOf(shifts[0]);\n\t\t\t\tshift2 = Integer.valueOf(shifts[1]);\n\t\t\t}\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\t// do nothing keep default values\n\t\t}\n\t\t// get the first number of second segment : e.g. 3 from 201-209;3-11\n\t\tString[] tokensA = tokens[1].split(\";\");\n\t\tString[] tokensB = tokensA[1].split(\"-\");\n\t\tInteger fastaNo = (Integer.valueOf(tokensB[0]) - shift2 >= 0 ? Integer\n\t\t\t\t.valueOf(tokensB[0]) - shift2 : Integer.valueOf(tokensB[0]));\n\n\t\t// get pdb address\n\t\tString pdbResAddr = hashResMapInt2Str.get(dom).get(fastaNo);\n\t\tpdbResAddr = pdbResAddr.substring(1, pdbResAddr.length() - 1);\n\t\tint pdbResNo = Integer.valueOf(pdbResAddr);\n\n\t\treturn (dom + \"#\" + (10000 + pdbResNo) + noClust);\n\t}", "public int getNumero()\r\n/* 190: */ {\r\n/* 191:202 */ return this.numero;\r\n/* 192: */ }", "String getCidr();", "String getPdpName();", "public String getNickname() throws RemoteException {\n \n\treturn this.nickname;\n\t\t\t }", "public static String getNTName(NonTerminal nonTerminal) {\n\t\t\n\t\treturn ((NonTerminalIdentifier)nonTerminal).getValue(); \n\t}", "public org.apache.xmlbeans.XmlString xgetNombreCompleto()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NOMBRECOMPLETO$0, 0);\n return target;\n }\n }", "private int aleatorizarNumero() {\n\t\tint aux;\n\t\taux = r.getIntRand(13) + 1;\n\t\treturn aux;\n\t}", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public String adicionaFornecedor(String nome, String email, String telefone) {\n\t\tUtil.testaNull(nome, \"Erro no cadastro do fornecedor: nome nao pode ser vazio ou nulo.\");\n\t\tUtil.testaVazio(nome, \"Erro no cadastro do fornecedor: nome nao pode ser vazio ou nulo.\");\n\n\t\tUtil.testaNull(email, \"Erro no cadastro do fornecedor: email nao pode ser vazio ou nulo.\");\n\t\tUtil.testaVazio(email, \"Erro no cadastro do fornecedor: email nao pode ser vazio ou nulo.\");\n\n\t\tUtil.testaNull(telefone, \"Erro no cadastro do fornecedor: telefone nao pode ser vazio ou nulo.\");\n\t\tUtil.testaVazio(telefone, \"Erro no cadastro do fornecedor: telefone nao pode ser vazio ou nulo.\");\n\n\t\tif (this.fornecedores.containsKey(nome)) {\n\t\t\tthrow new IllegalArgumentException(\"Erro no cadastro de fornecedor: fornecedor ja existe.\");\n\t\t}\n\n\t\tthis.fornecedores.put(nome, new Fornecedor(nome, email, telefone));\n\t\tthis.nomesCadastrados.add(nome);\n\n\t\tfor (int i = this.nomesCadastrados.size() - 1; i > 0; i--) {\n\t\t\tString nome1 = this.nomesCadastrados.get(i);\n\t\t\tString nome2 = this.nomesCadastrados.get(i - 1);\n\n\t\t\tint compare = nome1.compareTo(nome2);\n\n\t\t\tif (compare < 0) {\n\t\t\t\tCollections.swap(this.nomesCadastrados, i, i - 1);\n\t\t\t}\n\n\t\t}\n\n\t\treturn nome;\n\t}", "int obtenerNumeroMovimiento();", "String getHostName();", "String getHostName();", "public String makeLoginID(){\r\n int firstAlphabet = firstName.charAt(0);\r\n if ( firstAlphabet <= 'Z' && firstAlphabet >= 'A' ){//user entered first alphabet of the first name as capital letter \r\n \tfirstAlphabet = firstAlphabet - 'A' + 'a';\r\n }\r\n String temp = \"\"+ (char)( firstAlphabet ) ;//add first alphabet of the first name to the string \r\n temp += getLastNameForID();\r\n temp += digitalRoot();\r\n return temp;\r\n }", "char[] getName();" ]
[ "0.62593085", "0.59898114", "0.5691315", "0.56800836", "0.56800836", "0.5670203", "0.5630559", "0.5601913", "0.55828464", "0.55362797", "0.55139875", "0.550064", "0.5494135", "0.54888445", "0.5483481", "0.5429548", "0.53662956", "0.53662956", "0.53628796", "0.5348631", "0.53354937", "0.5323592", "0.5308117", "0.53005016", "0.52968657", "0.52781785", "0.5250347", "0.52275336", "0.5223042", "0.5213053", "0.5211349", "0.52084285", "0.5208161", "0.5207386", "0.5200264", "0.51947093", "0.5193682", "0.51887435", "0.51710033", "0.5164947", "0.5143733", "0.5138222", "0.5129002", "0.51265925", "0.51234573", "0.5121007", "0.51133674", "0.51103485", "0.5109944", "0.5104232", "0.5101173", "0.5090852", "0.50840354", "0.50834715", "0.5074075", "0.50589204", "0.5057719", "0.5041412", "0.5028", "0.50234926", "0.50179195", "0.50129855", "0.50105876", "0.5002629", "0.49890918", "0.4985509", "0.49795341", "0.49774843", "0.4975347", "0.49751133", "0.49714154", "0.49654013", "0.49637535", "0.49627286", "0.49624893", "0.49620727", "0.49548924", "0.49521348", "0.49493304", "0.4942854", "0.4939734", "0.4939734", "0.49392453", "0.49349463", "0.4932127", "0.49184868", "0.4910341", "0.4908631", "0.49041006", "0.49021924", "0.49012682", "0.4899355", "0.48967817", "0.48942193", "0.48866713", "0.4882428", "0.48818052", "0.48818052", "0.48790726", "0.487761" ]
0.5485677
14
retorna toda la lista de usuarios NO SE SI ES NECESARI
public List<Node> node_list() throws HibernateException { List <Node> Lista_nodos = null; try { iniciaOperacion(); //IMPORTANTE la query: se pide la clase realmnete Cliente! no la tabla que se ha creado Lista_nodos= sesion.createQuery("FROM Node").list(); //creamos consulta de la tabla clientes (en plural)! }finally { sesion.close(); } return Lista_nodos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String ListUsers(){\r\n StringBuilder listUsers = new StringBuilder();\r\n for (Utente u: utenti) { // crea la lista degli utenti registrati al servizio\r\n listUsers.append(u.getUsername()).append(\" \");\r\n \tlistUsers.append(u.getStatus()).append(\"\\n\");\r\n }\r\n return listUsers.toString(); \r\n }", "public List getUsuarios();", "public ArrayList <Usuario>listaUsuario(){\r\n\t\treturn loja.getUsuarios();\r\n\t}", "List<Usuario> obtenerUsuarios() throws Exception;", "public List<Usuario> getUsuarios(){\n\t\tList<Usuario> lista = new LinkedList<Usuario>();\n\t\tfor (Usuario c: usuarios.values()) \n\t\t\tlista.add(c);\n\t\treturn lista;\n\t}", "@Override\r\n\tpublic List<Usuario> listarUsuario() {\n\t\treturn iUsuario.listarUsuarios();\r\n\t}", "private void listarUsuarios() {\r\n \t\r\n \tfor(String usuario : ConfigureSetup.getUsers()) {\r\n \t\tif(!usuario.equals(ConfigureSetup.getUserName()))\r\n \t\t\tlista_usuarios.getItems().add(usuario);\r\n \t}\r\n \t\r\n \t//lista_usuarios.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\t\r\n }", "public String ListOnlineUsers(){\r\n StringBuilder listUsers = new StringBuilder();\r\n for (Utente u: utenti) { // crea la lista degli utenti registrati al servizio e online\r\n if(u.getStatus().equals(\"ONLINE\")) {\r\n \tlistUsers.append(u.getUsername()).append(\" \");\r\n \tlistUsers.append(u.getStatus()).append(\"\\n\");\r\n }\r\n }\r\n return listUsers.toString(); \r\n }", "public String getUsuariosConectados() throws RemoteException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(Object objeto : bbdd.getUsuariosConectados()){\n\t\t\tsb.append((String) objeto + \"\\n\");\n\t\t}\n\t\treturn sb.toString();\n\t\t\n\t}", "public List<Usuario> listarUsuarios(boolean Vigente){\r\n return cVista.listarUsuarios(Vigente);\r\n }", "public List<Usuario> obtenerListaUsuariosActivos(){\n return usuarioBean.obtenerListaUsuariosActivos();\n }", "public List<UsuarioDTO> listarUsuarios() {\n\t\treturn null;\n\n\t}", "public List<UsuarioDTO> obterListaUsuarios() throws RemoteException;", "public List<Usuario> getListaDeUsuarios() {\n\t\tList<Usuario> listaDeUsuarios = usuarioService.getUsuarios();\n\t\treturn listaDeUsuarios;\n\t}", "public List<Usuario> getTodosOsUsuarios() {\r\n\t\treturn listaDeUsuarios;\r\n\t}", "public List<User> ObtenerTodosUsuarios() throws BLException;", "public List<Usuario> ultimosUsuariosCadastrados(){\r\n List<Usuario> users = new ArrayList<Usuario>();\r\n try{\r\n PreparedStatement ps = bd.prepareStatement(\"SELECT * FROM usuarios ORDER BY id DESC\");\r\n ResultSet rs = ps.executeQuery();\r\n while(rs.next()){\r\n Usuario u = new Usuario();\r\n u.setId(rs.getInt(\"id\"));\r\n u.setUsuario(rs.getString(\"usuario\"));\r\n u.setNome(rs.getString(\"nome\"));\r\n u.setEmail(rs.getString(\"email\"));\r\n u.setSenha(rs.getString(\"senha\"));\r\n u.setPin(rs.getString(\"pin\"));\r\n u.setUrlfoto(rs.getString(\"urlfoto\"));\r\n u.setAcesso(rs.getTimestamp(\"acesso\"));\r\n u.setAdmin(rs.getInt(\"admin\"));\r\n users.add(u);\r\n }\r\n rs.close();\r\n ps.close();\r\n ConexaoBD.fechar(bd);\r\n } catch(SQLException sqle){\r\n System.out.println(\"Erro ao apresentar os ultimos usuarios cadastrados: \"+sqle.getMessage());\r\n }\r\n return users;\r\n }", "@Override\n\tpublic List<Usuario> listUsuario() {\n\t\treturn null;\n\t}", "public ArrayList<String> Usuarios() {\r\n ArrayList<String> Lista_Usuarios = new ArrayList();\r\n try {\r\n String temp;\r\n BufferedReader bf = new BufferedReader(new FileReader(\"src/Archivos/cuentas.txt\"));\r\n String bfRead;\r\n while ((bfRead = bf.readLine()) != null) {\r\n temp = bfRead;\r\n String lista = temp;\r\n String[] lista1 = lista.split(\";\");\r\n if (lista1[4].equals(\"0\")) {\r\n Lista_Usuarios.add(lista1[0]);\r\n }\r\n }\r\n\r\n } catch (IOException e) {\r\n System.err.println(\"No se encontro el archivo\" + e);\r\n }\r\n return Lista_Usuarios;\r\n }", "public List<Usuario> todosLosUsuarios() throws SQLException {\n PreparedStatement preSt = connection.prepareStatement(USUARIOS);\n ResultSet result = preSt.executeQuery();\n\n List<Usuario> usuario = new LinkedList<>();\n\n while (result.next()) {\n usuario.add(new Usuario(\n result.getInt(Usuario.USUARIO_ID_DB_NAME),\n result.getString(Usuario.NOMBRE_DB_NAME),\n result.getString(Usuario.PROFESION_DB_NAME),\n result.getString(Usuario.PASSWORD_DB_NAME)\n ));\n }\n System.out.println(\"Usuarios: \" + usuario.size());\n return usuario;\n }", "public List<NguoiNhap> getAllUsers() throws SQLException {\r\n rs = connectionAdmin(\"SELECT * FROM USER\");\r\n List<NguoiNhap> listUsers;\r\n if (rs != null) {\r\n\r\n listUsers = new ArrayList<NguoiNhap>() {\r\n {\r\n while (rs.next()) {\r\n add(new NguoiNhap(rs.getString(\"username\"), rs.getString(\"password\"), rs.getString(\"ten\"), rs.getString(\"gioitinh\"), rs.getString(\"ngaysinh\")));\r\n }\r\n rs.close();\r\n stm.close();\r\n con.close();\r\n }\r\n };\r\n\r\n return listUsers;\r\n }\r\n\r\n return null;\r\n }", "public String[] getUsuariosInmueble(){\n\t\tint registros=0;\n\t\ttry{\n\t\t\tPreparedStatement statemenet=getConnection().prepareStatement(\"select count(*) as total from usuarios where tipo='A' \");\n\t\t\tResultSet respuesta=statemenet.executeQuery();\n\t\t\trespuesta.next();\n\t\t\tregistros=respuesta.getInt(\"total\");\n\t\t\trespuesta.close();\n\t\t\t\n\t\t}catch(SQLException exception){\n\t\t\tSystem.err.println(exception.getMessage());\n\t\t}\n\t\tString[] usuarios=new String[registros+1];\n\t\ttry{\n\t\t\tPreparedStatement statement=getConnection().prepareStatement(\"select usuario from usuarios where tipo='R' \");\n\t\t\tResultSet respuesta=statement.executeQuery();\n\t\t\trespuesta.next();\n\t\t\tusuarios[0]=respuesta.getString(1);\n\t\t\tstatement=getConnection().prepareStatement(\"select usuario from usuarios where tipo='A' \");\n\t\t\trespuesta=statement.executeQuery();\n\t\t\tint i=1;\n\t\t\twhile(respuesta.next()){\n\t\t\t\tusuarios[i]=respuesta.getString(1);\n\t\t\t\ti++;\n\t\t\t\n\t\t\t}\n\t\t\tstatement.close();\n\t\t}catch(SQLException exception){\n\t\t\tSystem.err.println(exception.getMessage());\n\t\t}\n\t\treturn usuarios;\n\t}", "public static String[] leerUsuarios() {\n int cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM usuarios\");\n while (result.next()) {\n cont++;\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //matriz para guardar los registros\n String[] usuarios = new String[cont];\n cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM usuarios\");\n while (result.next()) {\n //leolos registros y los guardo cada uno en un renglon de la matriz\n System.out.println(\"ResultSet: \" + result.getString(1));\n usuarios[cont] = result.getString(1);\n cont++;\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //regreso reporte completo\n return usuarios;\n }", "public List selectAllFromUsuario() throws IOException {\n erro = false;\n List usuarios = null;\n try {\n usuarios = con.query(\"Select * from usuario\", new BeanPropertyRowMapper(Usuario.class));\n } catch (CannotGetJdbcConnectionException ex) {\n logger.gravarDadosLog(\"ERRO\", \"SELECT\" , \"Não foi possivel realizar a consulta dos usuário cadastrados.\" + Arrays.toString(ex.getStackTrace()));\n erro = true;\n }\n \n if(!erro){\n logger.gravarDadosLog(\"INFO\", \"SELECT\" , \"A busca de usuários cadastrados foi realizada com sucesso.\");\n }\n erro = false;\n return usuarios;\n }", "public List<Usuario> getUsuario() {\r\n return usuarios;\r\n }", "@Override\n\tpublic List<LoginVO> obtenerUsus() {\n\t\treturn null;\n\t}", "public SigalPeticion getUsuarios() throws Exception {\n SigalPeticion msgEnvio = SigalPeticion.getInstance( 2 );\n\n msgEnvio.addParametro( 0, new Parametro( \"FUNCION\", \"CL\" ) ); \n msgEnvio.addParametro( 1, \n /**\n * Somente usuarios ATIVOS\n * N = Ativos\n * S = Ativos e Inativos\n */\n new Parametro( \"USUBAJAC\", \"N\" ) \n );\n\n msgEnvio.setTipoOperacion( \"view\" );\n msgEnvio.setTransaccion( \"SGCLUSU\" );\n\n return msgEnvio;\n }", "protected ArrayList<String> obtenerUsuarios() {\r\n\t\tArrayList<String> arregloUsuarios = new ArrayList<String>();\r\n\t\tarregloUsuarios.add(\"Adrian\");\r\n\t\tarregloUsuarios.add(\"Luis\");\r\n\t\tarregloUsuarios.add(\"Jesus\");\r\n\t\tarregloUsuarios.add(\"Angel\");\r\n\t\tarregloUsuarios.add(\"Eduardo\");\r\n\t\tarregloUsuarios.add(\"Ivan\");\r\n\t\tarregloUsuarios.add(\"Hilario\");\r\n\t\tarregloUsuarios.add(\"Fernando\");\r\n\t\tarregloUsuarios.add(\"Michel\");\r\n\t\tarregloUsuarios.add(\"Andres\");\r\n\t\tarregloUsuarios.add(\"Maria\");\r\n\t\tarregloUsuarios.add(\"Francisco\");\r\n\t\treturn arregloUsuarios;\r\n\t}", "@Override\n\t@Transactional\n\tpublic List<Usuario> ListaUsuarios() {\n\t\ttry {\n\t\t\tQuery query = manager.createQuery(\"from Usuario\");\n\t\t\tList<Usuario> usuarios = query.getResultList();\n\t\t\treturn usuarios;\n\t\t}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tthrow new RuntimeException(e);\t\t\t\n\t\t} finally {\n\t\t\t// TODO: handle finally clause\n\t\t\tmanager.close();\n\t\t}\n\t}", "public List<User> user_list() throws HibernateException \r\n\t{ \r\n\t\tList <User> Lista_usuarios = null; \r\n\t \r\n\t try \r\n\t { \r\n\t iniciaOperacion(); //IMPORTANTE la query: se pide la clase realmnete Cliente! no la tabla que se ha creado\r\n\t Lista_usuarios= sesion.createQuery(\"FROM User\").list(); //creamos consulta de la tabla clientes (en plural)!\r\n\t }finally \r\n\t { \r\n\t sesion.close(); \r\n\t } \r\n\t return Lista_usuarios; \r\n\t}", "public List<Usuario> getUsuarios() {\n\t\treturn getUsuarioDAO().listarTodos();\n\t}", "private void mostrarUsuarios(ArrayList<Usuario> usuarios) {\n\t\tSystem.out.println(\"Id - Nombre Apellidos / Edad / DNI / Fecha_nac\\n\");\r\n\t\tIterator<Usuario> i=usuarios.iterator();\r\n\t\twhile(i.hasNext()){\r\n\t\t\tmostrarUsuario(i.next());\r\n\t\t}\r\n\t}", "@Override\n\tpublic List<Usuario> getAllUsuarios() {\n\t\treturn new ArrayList<Usuario>();\n\t}", "public ArrayList<Usuario> getUsuarios(Usuario creador){\r\n ArrayList<Usuario> al= new ArrayList<>();\r\n if (creador.isAdmin()){\r\n try {\r\n String sql= \"Select * from sistemasEM.usuarios\";\r\n Statement s= connection.createStatement();\r\n ResultSet rs = s.executeQuery(sql);\r\n Usuario u;\r\n while(rs.next()){\r\n TipoDescuento td = this.getTipoDescuento(rs.getInt(\"permisosDescuento\"));\r\n TipoPersonal tp = this.getTipoPersonal(rs.getInt(\"permisosPersonal\"));\r\n al.add( new Usuario(rs.getInt(\"id\"), rs.getString(\"nombre\"), rs.getString(\"mostrar\"),rs.getBoolean(\"admin\"),tp,td,rs.getBoolean(\"notas\"),rs.getBoolean(\"habilitacion\"),rs.getBoolean(\"profesor\"),rs.getInt(\"ciProfesor\"),rs.getBoolean(\"cambiarContra\")));\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return al;\r\n }", "private void CargarUsuarios(){\n administradores.clear();\n usuariosList.clear();\n for (String i: BienvenidaActivity.UsuariosRegistrados.keySet()) {\n if(EsAdmin(i)){\n administradores.add(BienvenidaActivity.UsuariosRegistrados.get(i));\n }else{\n usuariosList.add(BienvenidaActivity.UsuariosRegistrados.get(i));\n }\n }\n String admins_string = \"\";\n for(Usuario admin : administradores){\n admins_string += admin.getUsername() + \" -> \" + admin.getNombre() + \" \" + admin.getApellido() + \"\\n\";\n }\n\n String users_string = \"\";\n for(Usuario userss : usuariosList){\n users_string += userss.getUsername() + \" -> \" + userss.getNombre() + \" \" + userss.getApellido() + \"\\n\";\n }\n\n // Finalmente se coloca en la actividad\n\n txtvw_contadmin.setText(String.valueOf(administradores.size()));\n txtvw_contusers.setText(String.valueOf(usuariosList.size()));\n txtvw_admins.setText(admins_string);\n txtvw_users.setText(users_string);\n }", "public String[] listUsers();", "public List<Usuario> listarTodos() {\n List<Usuario> r = new ArrayList<>();\n try {\n try (Connection cnx = bd.obtenerConexion(Credenciales.BASE_DATOS, Credenciales.USUARIO, Credenciales.CLAVE);\n Statement stm = cnx.createStatement();\n ResultSet rs = stm.executeQuery(CMD_LISTAR2)) {\n while (rs.next()) {\n r.add(new Usuario(\n rs.getString(\"cedula\"),\n rs.getString(\"apellido1\"),\n rs.getString(\"apellido2\"),\n rs.getString(\"nombre\")\n ));\n }\n }\n } catch (SQLException ex) {\n System.err.printf(\"Excepción: '%s'%n\",\n ex.getMessage());\n }\n return r;\n }", "private void cargaUsuarios() {\n //Abre la conexion\n Connection con = Star.conAbrBas(true, false);\n \n //Declara variables de la base de datos \n java.sql.Statement st;\n java.sql.ResultSet rs; \n String sQ;\n /*Obtiene todos los datos del usuario*/\n try\n {\n sQ = \"SELECT estac FROM estacs WHERE estac <> '\" + Login.sUsrG + \"' AND admcaj <= (SELECT admcaj FROM estacs WHERE estac = '\" + Login.sUsrG + \"')\";\n st = con.createStatement();\n rs = st.executeQuery(sQ);\n /*Si hay datos*/\n while(rs.next())\n {\n /*Obtiene los datos y cargalos en sus campos*/\n jcmbUsuarios.addItem(rs.getString(\"estac\"));\n }\n //si ingreso usuarios al combo, jalo los permisos del primer usuario\n// if(jcmbUsuarios.getItemCount() > 0){\n// cargaPermisos(jcmbUsuarios.getSelectedItem().toString());\n// }\n \n }catch(SQLException expnSQL)\n {\n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnSQL.getMessage(), Star.sErrSQL, expnSQL.getStackTrace(), con); \n }\n }", "public static ArrayList<String> getUsuarios(Context context) {\n\t\tArrayList<String> lista = new ArrayList<String>();\n\t\t\t\n\t\t//La consulta a realizar\n\t\tString consulta = \t\"SELECT nombre \" +\n\t\t\t\t\t\t\t\"FROM Usuario \" +\n\t\t\t\t\t\t\t\"ORDER BY idUsuario\";\n\t\t\n\t\t//Tomar nombres de la base de datos\t\t\n\t\tCursor usuario = SQLFuncion.getConsulta(context, consulta, null);\n\t\t\n\t\t//Verificar que no sea nulo\n\t\tif (usuario != null) {\n\t\t\t\n\t\t\t//Verificar por al menos un resultado\n\t\t\tif (usuario.getCount() > 0) {\n\t\t\t\tusuario.moveToFirst();\n\t\t\t\t\n\t\t\t\tboolean mover = true;\n\t\t\t\twhile(mover==true) {\t\t\t\t\t\n\t\t\t\t\t//Agregar al ArrayList\n\t\t\t\t\tlista.add(usuario.getString(usuario.getColumnIndex(\"nombre\")));\n\t\t\t\t\tmover = usuario.moveToNext();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn lista;\t\t\t\t\n\t}", "public List<Usuario> listar() {\n List<Usuario> listaUsuarios = new ArrayList<>();\n String consulta = \"select tipoDocumento, documento, nombre, apellido, password, correo, tipoUsuario from Usuario\";\n Cursor temp = conex.ejecutarSearch(consulta);\n if (temp.moveToFirst()) {\n do {\n Usuario usuario = new Usuario(temp.getString(0), Integer.parseInt(temp.getString(1)), temp.getString(2), temp.getString(3), temp.getString(4), temp.getString(5), temp.getString(6));\n listaUsuarios.add(usuario);\n } while (temp.moveToNext());\n }\n return listaUsuarios;\n }", "@Override\n\tpublic ArrayList<UsuarioComum> getAll() {\n\t\treturn null;\n\t}", "public String listUsers(){\n \tStringBuilder sb = new StringBuilder();\n \tif(users.isEmpty()){\n \t\tsb.append(\"No existing Users yet\\n\");\n \t}else{\n \t\tsb.append(\"Meeting Manager Users:\\n\");\n \t\tfor(User u : users){\n \t\t\tsb.append(\"*\"+u.getEmail()+\" \"+ u.getPassword()+\" \\n\"+u.listInterests()+\"\\n\");\n \t\t}\n \t}\n \treturn sb.toString();\n }", "public List<Usuario> findAllUsuarios(){\n\t\t\t List<Usuario> listado;\n\t\t\t Query q;\n\t\t\t em.getTransaction().begin();\n\t\t\t q=em.createQuery(\"SELECT u FROM Usuario u ORDER BY u.idUsr\");\n\t\t\t listado= q.getResultList();\n\t\t\t em.getTransaction().commit();\n\t\t\t return listado;\n\t\t\t \n\t\t\t}", "public ArrayList<DataUsuario> listarUsaurios();", "public List<Utilizator> listUsers();", "public List<Usuario> getAllUsuarios(){\r\n List<Usuario> users = new ArrayList<Usuario>();\r\n try{\r\n PreparedStatement ps = bd.prepareStatement(SQLALL);\r\n ResultSet rs = ps.executeQuery();\r\n while(rs.next()){\r\n Usuario u = new Usuario();\r\n u.setId(rs.getInt(\"id\"));\r\n u.setUsuario(rs.getString(\"usuario\"));\r\n u.setNome(rs.getString(\"nome\"));\r\n u.setEmail(rs.getString(\"email\"));\r\n u.setSenha(rs.getString(\"senha\"));\r\n u.setPin(rs.getString(\"pin\"));\r\n u.setUrlfoto(rs.getString(\"urlfoto\"));\r\n u.setAcesso(rs.getTimestamp(\"acesso\"));\r\n u.setAdmin(rs.getInt(\"admin\"));\r\n users.add(u);\r\n }\r\n rs.close();\r\n ps.close();\r\n ConexaoBD.fechar(bd);\r\n } catch(SQLException sqle){\r\n System.out.println(\"Erro no getAllUsuarios no DAO: \" + sqle.getMessage());\r\n }\r\n return users;\r\n }", "public List<Usuario> obtenerTodosLosClientes() {\n return this.usuarioFacade.obtenerTodosLosClientes();\n }", "@Override\r\n\tpublic List<Usuario> listAll() {\n\t\treturn null;\r\n\t}", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "public List<Usuario> obtenerTodosLosIngenieros() {\n return this.usuarioFacade.obtenerTodosLosIngenieros();\n }", "@Override\r\n\tpublic void analizarUsuario() {\n\t\tfor(IAsesoria ia : usuarios) {\r\n\t\t\tia.analizarUsuario();\r\n\t\t}\t\r\n\t}", "public TabelaHash getUsuarios() {\n return usuarios;\n }", "public ArrayList<String> getConnectedUsers() {\r\n\t\tArrayList<String> connectedUsers = new ArrayList<>();\r\n\t\tString message=\"107\";\r\n\t\tsendDatagramPacket(message);\r\n\t\t\r\n\t\t//connectedUsers.add(\"Default\");\r\n\t\t\r\n\t\treturn connectedUsers;\r\n\t}", "@Override\n\tpublic List<String> buscarUsuario(String nickName) throws RemoteException{\n\t\ttry {\n\t\t\treturn bbdd.buscarUsuario(nickName.trim());\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\t\t\n\t}", "public List<String> listUsers() \n\t{\n\t\treturn this.userList.keys();\n\t\t\n\t}", "public List<Usuario> listar() {\n return listaUse;\n }", "public List<Login>listar();", "public List<Usuarios> getUsuarios(){ //retorna una lista con todos los Usuarios en la database\n List<Usuarios> listaUsuarios = new ArrayList<Usuarios>();\n conexion = base.GetConnection();\n try{\n String consulta = \"select Cedula from usuarios\";\n PreparedStatement select = conexion.prepareStatement(consulta);\n boolean r = select.execute();\n if(r){\n ResultSet result = select.getResultSet();\n while(result.next()){\n Usuarios usuario = new Usuarios(result.getString(1));\n System.out.println(usuario);\n listaUsuarios.add(usuario);\n }\n result.close();\n }\n conexion.close();\n }catch(SQLException ex){\n System.out.println(ex.toString());\n }\n return listaUsuarios;\n}", "public static List<Utente> lista_utenti(){\r\n\t\tArrayList<Utente> lista=null;\r\n\t\ttry {\r\n\t\t\tDatabase.connect();\r\n\t\t\tResultSet rs = Database.selectRecord(\"utente\", \"utente.username\");\r\n \t\tlista = new ArrayList<Utente>();\r\n \t\twhile(rs.next()) {\r\n \t\t\tint id = rs.getInt(\"id\");\r\n \t\t\tint ruolo = rs.getInt(\"ruolo\");\r\n \t\t\tString username = rs.getString(\"username\");\r\n \t\t\tString email = rs.getString(\"email\");\r\n \t\t\tDate dataSignup = rs.getDate(\"dataSignup\");\r\n \t\t\t\r\n \t\t\tUtente elemento = new Utente(id,ruolo,username,email,dataSignup);\r\n \t\t\tlista.add(elemento);\t\r\n \t\t}\r\n\t\t\tDatabase.close();\t\t\t\r\n\t\t}catch(NamingException e) {\r\n\t\t\tSystem.out.println(\"NamingException\"+e);\r\n\t }catch (SQLException e) {\r\n\t \tSystem.out.println(\"SQLException\"+e);\r\n\t }catch (Exception e) {\r\n\t \tSystem.out.println(\"Exception\"+e); \r\n\t }\r\n\t\treturn lista;\r\n\t}", "public List<Usuario> getAllUsuarios() throws Exception {\n\t\tDAOUsuario daoUsuario = new DAOUsuario();\n\t\tList<Usuario> usuarios;\n\t\ttry \n\t\t{\n\t\t\tthis.conn = darConexion();\n\t\t\tdaoUsuario.setConn(conn);\n\t\t\t\n\t\t\t//Por simplicidad, solamente se obtienen los primeros 50 resultados de la consulta\n\t\t\tusuarios = daoUsuario.getUsuario();\n\t\t}\n\t\tcatch (SQLException sqlException) {\n\t\t\tSystem.err.println(\"[EXCEPTION] SQLException:\" + sqlException.getMessage());\n\t\t\tsqlException.printStackTrace();\n\t\t\tthrow sqlException;\n\t\t} \n\t\tcatch (Exception exception) {\n\t\t\tSystem.err.println(\"[EXCEPTION] General Exception:\" + exception.getMessage());\n\t\t\texception.printStackTrace();\n\t\t\tthrow exception;\n\t\t} \n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tdaoUsuario.cerrarRecursos();\n\t\t\t\tif(this.conn!=null){\n\t\t\t\t\tthis.conn.close();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (SQLException exception) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException While Closing Resources:\" + exception.getMessage());\n\t\t\t\texception.printStackTrace();\n\t\t\t\tthrow exception;\n\t\t\t}\n\t\t}\n\t\treturn usuarios;\n\t}", "@Override\r\n\tpublic List<Usuario> listDesp() {\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<Usuario> findAllUsuarios() {\n\t\treturn em.createNamedQuery(\"Usuario.findAll\").getResultList();\n\t}", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "@Override\n\tpublic List<ControlAcceso> registroUsers(String fecha, int codigo) {\n\t\treturn controlA.registroUsers(fecha, codigo);\n\t}", "@Override\n public void mostrarUsuarios(List<UserModel> usuarios) {\n }", "public List getAllUsers();", "@Override\n public List<User> selectAllUsers() {\n\n List<User> userList = new ArrayList<>();\n\n try (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) {\n\n String sql = \"SELECT * FROM ers_users\";\n\n PreparedStatement ps = connection.prepareStatement(sql);\n\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n userList.add(\n new User(\n rs.getInt(1)\n , rs.getString(2)\n , rs.getString(3)\n , rs.getString(4)\n , rs.getString(5)\n , rs.getString(6)\n , rs.getInt(7)\n )\n );\n }\n }\n\n catch (SQLException e) {\n\n e.printStackTrace();\n }\n\n return userList;\n }", "public List<Usuario> buscarTodos(){\n\t\tList<Usuario> listarUsuarios = new ArrayList<>();\n\t\t\n\t\tString sql = \"Select * from usuario\";\n\t\tUsuario usuario = null ;\n\t\t\n\t\ttry(PreparedStatement preparedStatement = con.prepareStatement(sql)) {\n\t\t\t\n\t\t\tResultSet result = preparedStatement.executeQuery();\n\t\t\t\n\t\t\t/*\n\t\t\t * Dentro do while estou verificando se tem registro no banco de dados, enquanto tiver registro vai \n\t\t\t * adcionando um a um na lista e no final fora do while retorna todos os registro encontrados. \n\t\t\t */\n\t\t\twhile(result.next()){\n\t\t\t\tusuario = new Usuario();\n\t\t\t\tusuario.setIdUsuario(result.getInt(\"idUsuario\"));\n\t\t\t\tusuario.setNome(result.getString(\"Nome\"));\n\t\t\t\tusuario.setLogin(result.getString(\"Login\"));\n\t\t\t\tusuario.setSenha(result.getString(\"senha\"));\n\t\t\t\t\n\t\t\t\t// Adcionando cada registro encontro, na lista .\n\t\t\t\tlistarUsuarios.add(usuario);\n\t\t\t}\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\treturn listarUsuarios;\n\t}", "public ListaUsuario() {\n initComponents();\n\n exibir();\n }", "public List<Usuario> buscaUsuarioNome(String nome) {\r\n\t\tList<Usuario> retorno = new LinkedList<Usuario>();\r\n\r\n\t\tfor (Usuario usuario : listaDeUsuarios) {\r\n\t\t\tif (usuario.getNome().equals(nome)) {\r\n\t\t\t\tretorno.add(usuario);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "public ArrayList<String> getAllUsers() {\n\t\tSystem.out.println(\"Looking up all users...\");\n\t\treturn new ArrayList<String>(users.keySet());\t\n\t}", "public List<UsuarioCantNotas> cantNotasUsuarios() throws SQLException {\n PreparedStatement preSt = connection.prepareStatement(NOTAS_USUARIO);\n ResultSet result = preSt.executeQuery();\n\n List<UsuarioCantNotas> usuario = new LinkedList<>();\n\n while (result.next()) {\n usuario.add(new UsuarioCantNotas(\n result.getInt(Usuario.USUARIO_ID_DB_NAME),\n result.getString(Usuario.NOMBRE_DB_NAME),\n result.getString(Usuario.PROFESION_DB_NAME),\n result.getInt(\"notas\")\n ));\n }\n System.out.println(\"Usuarios: \" + usuario.size());\n return usuario;\n }", "public List<Usuario> listarUsuario() {\n \n List<Usuario> lista = usuarioDAO.findAll();\n return lista;\n \n \n\n }", "@SuppressWarnings(\"serial\")\n\tpublic ArrayList<String> getUsers() throws Exception{\n\t\treturn new ArrayList<String>(){{\n\t\t\tUserRegistry ur = UserRegistry.findOrCreate(doc);\n\t\t\tUsers users = Users.findOrCreate(ur);\n\t\t\tfor(User u:User.list(users))\n\t\t\t\tadd(u.getAttribute(\"name\"));\n\t\t}};\n\t}", "List<KingdomUser> getUsers();", "public String[] getUsers(){\n try {\n names = credentials.keys();\n }catch (java.util.prefs.BackingStoreException e1){\n System.out.println(e1);\n }\n return names;\n }", "public ArrayList< UsuarioVO> listaDePersonas() {\r\n\t ArrayList< UsuarioVO> miUsuario = new ArrayList< UsuarioVO>();\r\n\t Conexion conex= new Conexion();\r\n\t \r\n\t try {\r\n\t PreparedStatement consulta = conex.getConnection().prepareStatement(\"SELECT * FROM usuarios\");\r\n\t ResultSet res = consulta.executeQuery();\r\n\t while(res.next()){\r\n\t\t UsuarioVO persona= new UsuarioVO();\r\n\t persona.setCedula_usuario(Integer.parseInt(res.getString(\"cedula_usuario\")));\r\n\t persona.setEmail_usuario(res.getString(\"email_usuario\"));\r\n\t persona.setNombre_usuario(res.getString(\"nombre_usuario\"));\r\n\t persona.setPassword(res.getString(\"password\"));\r\n\t persona.setUsuario(res.getString(\"usuario\"));\r\n\t \r\n\t \r\n\t miUsuario.add(persona);\r\n\t }\r\n\t res.close();\r\n\t consulta.close();\r\n\t conex.desconectar();\r\n\t \r\n\t } catch (Exception e) {\r\n\t JOptionPane.showMessageDialog(null, \"no se pudo consultar la Persona\\n\"+e);\r\n\t }\r\n\t return miUsuario;\r\n\t }", "@Override\n\tpublic ArrayList<Utente> getUsers() {\n\t\tDB db = getDB();\n\t\tArrayList<Utente> usersList = new ArrayList<>();\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tfor(Map.Entry<Long, UtenteBase> user : users.entrySet())\n\t\t\tif(user.getValue() instanceof Utente)\n\t\t\t\tusersList.add((Utente) user.getValue());\n\t\treturn usersList;\n\t}", "public List<Usuarios> findAll() throws javax.persistence.NoResultException {\r\n return EM.createNamedQuery(Usuarios.FIND_ALL_USUARIOS).getResultList();\r\n }", "public usuarios Cargar_Usuario(int cedula) {\r\n base_datos_Usuarios ae_db = new base_datos_Usuarios();\r\n usuarios informacion_usuario = ae_db.Buscar_Usuario_DB(cedula);\r\n return informacion_usuario;\r\n }", "public List<SubOferta> getListaOfertaXUsuario() {\n\t\tsession = SessionBean.verificarSession();\n\t\tList<SubOferta> a = managergest.findAllofertasOrdenadasXUsuario(session\n\t\t\t\t.getIdUsr());\n\t\tList<SubOferta> l1 = new ArrayList<SubOferta>();\n\t\tfor (SubOferta t : a) {\n\t\t\tl1.add(t);\n\t\t}\n\t\treturn l1;\n\t}", "@Override\n\tpublic List<Usuario> obtenerTodas() {\n\t\treturn lista;\n\t}", "public String getAllLoggedInUsers(Request req, Response res) {\n List<User> users = model.getAvailableUser();\n List<User> onlineUser = new ArrayList<>();\n for (User user : users) {\n if (user.getStatus()) {\n onlineUser.add(user);\n }\n }\n\n JsonArray bodyResult = JsonUtil.usersToJson(onlineUser);\n res.status(200);\n return JsonUtil.stringify(new ServerResponse(SUCCESS, bodyResult));\n }", "public List<User> displayUsers() {\n\t\t\r\n\t\ttry {\r\n\t\t\treturn sessionFactory.getCurrentSession().createQuery(\"from com.niit.model.User\").list();\r\n\t\t\t\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public List<String> getUserList() throws Exception {\n\t\tString result = null;\n\t\tArrayList<String> userList = new ArrayList<String>();\n\t\tString adminToken = this.loginAAA(this.adminUsername,\n\t\t\t\tthis.adminPassword);\n\t\tHttpURLConnection httpConn;\n\t\thttpConn = this.setHttpConnection(openAMLocation\n\t\t\t\t+ \"/json/users?_queryID=*\");\n\t\tthis.setHttpTokenInCookie(httpConn, adminToken);\n\t\tthis.setGetHttpConnection(httpConn);\n\n\t\tBufferedReader br = this.getHttpInputReader(httpConn);\n\t\tString str;\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\twhile ((str = br.readLine()) != null) {\n\t\t\tsb.append(str);\n\t\t}\n\n\t\tif (httpConn.getResponseCode() == 200) {\n\t\t\tresult = sb.toString();\n\t\t\tJSONObject JsonObj = new JSONObject(result);\n\t\t\tJSONArray userArray;\n\t\t\tif (JsonObj.has(\"result\")) {\n\t\t\t\tuserArray = JsonObj.getJSONArray(\"result\");\n\t\t\t\tif (userArray != null) {\n\n\t\t\t\t\tfor (int i = 0; i < userArray.length(); i++) {\n\t\t\t\t\t\tString userAccount = userArray.getString(i);\n\t\t\t\t\t\t// System.out.println(userAccount);\n\t\t\t\t\t\tif (!userAccount.equalsIgnoreCase(\"quanta\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"mcumanager\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"rtpproxy1\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"rtpproxy2\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"amAdmin\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"thcadmin\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"cmpadmin\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"anonymous\"))\n\t\t\t\t\t\t\tuserList.add(userAccount);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tlogger.error(\"read User List fail, response: {}\", sb.toString());\n\t\t}\n\t\tbr.close();\n\t\t\n\t\tif (adminToken != null) {\n\t\t\tthis.logoutAAA(adminToken);\n\t\t}\n\t\treturn userList;\n\n\t}", "public List<User> listAll() throws Exception;", "@Override\n\tpublic List<Usuario> findAllUsers() {\n\t\treturn usuarioRepository.findAll();\n\t}", "@Override\n\tpublic List<Usuario> usuariosLikeList(String cedula) {\n\t\tList<Usuario> usuarios = (List<Usuario>) getSession().createQuery(\"from Usuario u where u.idCedula like :idCedula \")\n\t\t\t\t.setParameter(\"idCedula\", \"%\"+cedula+\"%\").list();\n\t\treturn usuarios;\n\t}", "public ResultSet listaNoloUtente(String username) {\n\t\tPreparedStatement prst;\n\t\ttry {\n\t\t\tprst = connection.prepareStatement(DbManagerUtils.LISTA_NOLEGGI);\n\t\t\tprst.setString(1, username);\n\n\t\t\treturn prst.executeQuery();\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\treturn null;\n\t}", "public static ArrayList<User> getUsers() {\n users = new ArrayList<User>();\n /*users.add(new User(\"Парковый Гагарина 5а/1\", \"срочный\", \"общий\"));\n users.add(new User(\"Алексеевские планы Ореховая 15 возле шлагбаума\", \"срочный\", \"общий\"));\n users.add(new User(\"Фастовецкая Азина 26\", \"срочный\", \"индивидуальный\"));*/\n //users.add(new User(MainActivity.adres.get(0), \"срочный\", \"общий\"));\n users.add(new User(\"Нет заказов\",\"срочный\",\"общий\"));\n return users;\n }", "private void getUserList() {\n // GET ENTRIES FROM DB AND TURN THEM INTO LIST \n DefaultListModel listModel = new DefaultListModel();\n Iterator itr = DBHandler.getListOfObjects(\"FROM DBUser ORDER BY xname\");\n while (itr.hasNext()) {\n DBUser user = (DBUser) itr.next();\n listModel.addElement(user.getUserLogin());\n }\n // SET THIS LIST FOR INDEX OF ENTRIES\n userList.setModel(listModel);\n }", "public String[] busquedaUsuarioXusuario(String usu){\n\t\tconectar();\n\t\t\n\t\tString[] salida=new String[]{usu};\n\t\ttry {\n\n\t\t\tStatement consulta;\n\t\t\tconsulta = con.createStatement();\n\n\t\t\tResultSet tabla = consulta.executeQuery(\"select usuario from \"+dtbs+\".usuarios where Usuario like '%\"+usu+\"%' and usuarios.admin=0\");\n\t\t\t\n\t\t\tint size=0;\n\t\t\twhile (tabla.next()) {\n\t\t\t\t\n\t\t\t\tsize++;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\ttabla.beforeFirst();\n\t\t\tsalida=new String[size];\n\t\t\tint index=1;\n\t\t\twhile (tabla.next()) {\n\t\t\t\tString usuario= tabla.getString(1);\n\n\t\t\t\tsalida[index-1]=usuario;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\treturn salida;\n\t\t} catch (SQLException e) {\n\t\t\tPrincipal.getInstancePrincipal().registrarErrorDB(\"< ERROR CONBUS 53> En la conexion con la base de datos\"+e);\n\t\t\tcloseConnection();\n\t\t\treturn salida;\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\r\n public List<User> darUsers() {\r\n Query q = em.createQuery(\"SELECT u FROM UserEntity u\");\r\n List<UserEntity> l = q.getResultList();\r\n List<User> ltr = new ArrayList();\r\n for(UserEntity te: l)\r\n {\r\n ltr.add(TransformadorEntityDto.getInstance().entityADtoUser(te));\r\n }\r\n return ltr;\r\n }", "public List<Usuario> getAdmins() {\n List<Usuario> lUsers = new ArrayList<>();\n try {\n\n if (em.isOpen()) {\n// lUsers = this.em.createNamedQuery(\"Usuario.findByTipoUsuario\")\n// .setParameter(\"tipoUsuario\", 1)\n// .setHint(QueryHints.CACHE_USAGE, CacheUsage.DoNotCheckCache)\n// .getResultList();\n\n Query query = this.em.createNamedQuery(\"Usuario.findByTipoUsuario\")\n .setParameter(\"tipoUsuario\", 1)\n .setHint(QueryHints.CACHE_USAGE, CacheUsage.DoNotCheckCache);\n\n lUsers = (List<Usuario>) query.getResultList();\n for (Usuario u : lUsers) {\n this.em.refresh(u);\n }\n }\n\n } catch (Exception e) {\n //e.printStackTrace();\n }\n\n return lUsers;\n }", "@Override\n\tpublic List<ERS_USERS> getAll() {\n\t\treturn null;\n\t}", "public List<UsuarioDTO> consultarUsuarios();", "public List<UsuarioDTO> consultarUsuarios();", "public List<Usuario> findAllUsuarios ();", "public SimpleList<User> getUsersList() throws Exception {\r\n\t\treturn usersPersistence.getAllUsers();\r\n\t}", "public List<UsrMain> getListUsers() {\n return mobileCtrl.getListUsers();\n }" ]
[ "0.76205796", "0.7542041", "0.75042933", "0.7500536", "0.74601895", "0.7412262", "0.7366605", "0.7300392", "0.729904", "0.7276834", "0.7226326", "0.7213971", "0.7147264", "0.7147068", "0.71303296", "0.7122305", "0.71096766", "0.709791", "0.7083644", "0.70631206", "0.7063093", "0.7059833", "0.7050791", "0.7049721", "0.7037928", "0.7028504", "0.70084745", "0.6981036", "0.69606483", "0.69519824", "0.6945299", "0.6938136", "0.69247633", "0.68962884", "0.6885673", "0.6883857", "0.6866725", "0.6834016", "0.68291634", "0.68194306", "0.68165946", "0.68125826", "0.68054795", "0.6794705", "0.679125", "0.6777262", "0.6769532", "0.67539346", "0.67280054", "0.67272085", "0.6710433", "0.6704832", "0.6679398", "0.66736245", "0.6647779", "0.66475964", "0.6641451", "0.66264784", "0.66235405", "0.6619294", "0.66136634", "0.6604628", "0.6590736", "0.6580448", "0.65777415", "0.6561985", "0.65549207", "0.65411824", "0.6535314", "0.6532518", "0.6521081", "0.6511504", "0.6510481", "0.64922947", "0.64902484", "0.6467044", "0.64571023", "0.6455707", "0.64520305", "0.6449975", "0.6444627", "0.6438746", "0.6423985", "0.6422907", "0.6412231", "0.6408411", "0.64081526", "0.6387843", "0.63818055", "0.6378227", "0.6373644", "0.6365945", "0.63370496", "0.6333996", "0.63335985", "0.6326079", "0.6324962", "0.6324962", "0.6323166", "0.6320539", "0.6314527" ]
0.0
-1
CRUD WS Add a client of a company
public long wsadd_user( UserWS user) { long id = 0; //id de la tabla user (único) User userH = new User(user.getLogin(),user.getPassword(),user.getRole(),user.getName(),user.getPhone(),user.getDepartment()); //User cliente1 = new User("[email protected]", "gutie33", 1, "Luis","677899876", "Informatica"); try { iniciaOperacion(); id= (Long) sesion.createQuery("SELECT u.id_company FROM Company u WHERE u.company_name ='"+user.getName_company()+"'").uniqueResult(); Company x = (Company) sesion.load(Company.class, id); x.addUsuario(userH); userH.setCompany(x); //sesion.update(compx); //metodo para guardar cliente (del objeto hibernate.sesion) tx.commit(); }catch(HibernateException he) { manejaExcepcion(he); throw he; }finally { //Busqueda del id con qu elo ha introducido a la BBDD id= (Long) sesion.createQuery("SELECT u.id_user FROM User u WHERE u.mail ='"+user.getLogin()+"'").uniqueResult(); sesion.close(); } return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addClient() {\n String name = getToken(\"Enter client company: \");\n String address = getToken(\"Enter address: \");\n String phone = getToken(\"Enter phone: \");\n Client result;\n result = warehouse.addClient(name, address, phone);\n if (result == null) {\n System.out.println(\"Client could not be added.\");\n }\n System.out.println(result);\n }", "@GET\n @Path(\"/add\")\n @Produces(\"application/json\")\n public Response add() {\n Session session = DBConnectionManager.getSession();\n session.beginTransaction();\n\n Client client = new Client();\n client.setFirstname(\"asdasdasdas d asd asd asd\");\n\n //Save the client in database\n session.save(client);\n\n //Commit the transaction\n session.getTransaction().commit();\n DBConnectionManager.closeConnection();\n\n return Response.ok(client, MediaType.APPLICATION_JSON).build();\n }", "public void addClient(ClientBean client){\r\n\t\tlog.info(\"Endpoint call: operation.addClient\" );\r\n\t\t// 3 Creiamo un'istanza di ClientDao e su questa chiamiamo il servizio creato al passo 2\r\n\t}", "com.spirit.crm.entity.ClienteContactoIf addClienteContacto(com.spirit.crm.entity.ClienteContactoIf model) throws GenericBusinessException;", "public void insertClient(ClientVO clientVO);", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData addNewAuditingCompany();", "public void createClient(int id, String nume, String prenume, int idPetShop) {\n\t\tif (petShopOperations.checkPetShop(idPetShop) == false)\n\t\t\tSystem.out.println(\"PetShop not found.\");\n\n\t\tClient clientToAdd = new Client(id, nume, prenume, idPetShop);\n\t\tSystem.out.println(\"Before adding...\");\n\t\tList<Client> list = clientOperations.getAllClienti();\n\t\tclientOperations.addClient(clientToAdd);\n\t\tSystem.out.println(\"After adding...\");\n\t\tclientOperations.printListOfClienti(list);\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData addNewCompanyBaseData();", "public String ajouterClient(){\n\t\tClient cAjout=cliService.ajouterClient(client);\r\n\t\t\r\n\t\tif(cAjout.getIdClient()!=0){\r\n\t\r\n\t\r\n\t\t\t\r\n\t\t\treturn \"accueilClient\";\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\tnew FacesMessage(\"L'ajout a échoué\"));\r\n\t\t\treturn \"creationClient\";\r\n\t\t}\r\n\t}", "Client addClient(Client client) throws BaseException;", "public void onClick$editClientButton() {\n\n\t\tClient client = buildClient();\n\t\tclient.setId(clientToEdit.getId());\n\n\t\tClientService clientService = ServiceLocator.getClientService();\n\n\t\ttry {\n\t\t\tclientService.saveOrUpdate(client);\n\t\t} catch (Exception e) {\n\t\t\tmessageLabel.setValue(\"Error al crear el cliente\");\n\t\t\tLOGGER.error(e);\n\t\t}\n\t\tExecutions.sendRedirect(\"queryClients.zul\");\n\t\tmessageLabel.setValue(\"Cliente creado exitosamente.\");\n\t}", "@Override\r\n\tpublic Client addClient(Client c) {\n\t\treturn dao.addClient(c);\r\n\t}", "@Override\n\tpublic void add(cp_company cp) {\n\t\t\n\t}", "public void addOrUpdateClient(Client client) {\r\n // Add table values mapped to their associated column name\r\n ContentValues value = new ContentValues();\r\n value.put(\"email\", client.getEmail());\r\n value.put(\"personalAddress\", client.getPersonalAddress());\r\n value.put(\"creditCardNumber\", client.getCreditCardNumber());\r\n value.put(\"expiry\", new SimpleDateFormat(\"yyyy-MM-dd\").format(client.getExpiry()));\r\n value.put(\"firstName\", client.getFirstName());\r\n value.put(\"lastName\", client.getLastName());\r\n // Add or update database with table values\r\n sqlExecutor.updateOrAddRecords(\"clients\", value);\r\n }", "public void addClient(UserModel userModel) {\n\t\tuserDao.addClient(userModel);\n\t}", "@Override\r\n\tpublic void addclient(Client client) {\n\t\t\r\n\t}", "private boolean addClient() throws Exception {\n\n // Handle clicks for Add\n ContentValues content = new ContentValues();\n content.put(TakeAndGoConsts.ClientConst.FIRST_NAME, FirstName.getText().toString());\n content.put(TakeAndGoConsts.ClientConst.LAST_NAME, LastName.getText().toString());\n content.put(TakeAndGoConsts.ClientConst.ID, ID.getText().toString());\n content.put(TakeAndGoConsts.ClientConst.PHONE_NUMBER, PhoneNumber.getText().toString());\n content.put(TakeAndGoConsts.ClientConst.EMAIL, EmailAddress.getText().toString());\n content.put(TakeAndGoConsts.ClientConst.CREDIT_CARD, CreditCard.getText().toString());\n content.put(TakeAndGoConsts.ClientConst.PASSWORD, Password.getText().toString());\n\n\n DBFactory.getIdbManager().addClient(content);\n\n return true;\n }", "public void saveDataSignIn(Client client) {\r\n\t\tSQLPeople sqlPeople = new SQLPeople();\r\n\r\n\t\tJTextField[] requiredFields = { jPanelFormClient.jtfDoc, jPanelFormClient.jtfName, jPanelFormClient.jtfLastName,\r\n\t\t\t\tjPanelFormClient.jtfPhone };\r\n\t\tif (UtilityClass.fieldsAreEmpty(requiredFields)) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Se debe ingresar información en los campos que son obligatorios (*)\",\r\n\t\t\t\t\t\"EXISTENCIA DE CAMPOS VACIOS\", JOptionPane.ERROR_MESSAGE);\r\n\t\t} else {\r\n\t\t\tif (sqlPeople.existDocumentId(Integer.parseInt(jPanelFormClient.jtfDoc.getText()))) {\r\n\r\n\t\t\t\tif (sqlPeople.existPhone(jPanelFormClient.jtfPhone.getText()) == 0) {\r\n\r\n\t\t\t\t\tif (UtilityClass.validateEmail(jPanelFormClient.jtfEmail.getText())\r\n\t\t\t\t\t\t\t|| jPanelFormClient.jtfEmail.getText().length() == 0) {\r\n\r\n\t\t\t\t\t\tclient.setPersonalIdentification(jPanelFormClient.jtfDoc.getText());\r\n\t\t\t\t\t\tclient.setName(jPanelFormClient.jtfName.getText());\r\n\t\t\t\t\t\tclient.setLastName(jPanelFormClient.jtfLastName.getText());\r\n\t\t\t\t\t\tclient.setBirthDate(jPanelFormClient.birthdayDateChooser.getDate());\r\n\t\t\t\t\t\tclient.setTelephone(jPanelFormClient.jtfPhone.getText());\r\n\t\t\t\t\t\tclient.setEmail(jPanelFormClient.jtfEmail.getText());\r\n\t\t\t\t\t\tclient.setAddress(jPanelFormClient.jtfAdress.getText());\r\n\t\t\t\t\t\tclient.setActivationState(\r\n\t\t\t\t\t\t\t\tActivationState.getState(jPanelFormClient.activRadioButton.isSelected()));\r\n\t\t\t\t\t\tif (sqlPeople.registerDataClient(client)) {\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"REGISTRO GUARDADO CON EXITO\");\r\n\t\t\t\t\t\t\tjPanelFormClient.newForm();\r\n\t\t\t\t\t\t\tthis.jPanelFormClient.createAutomaticID();\r\n\t\t\t\t\t\t\tthis.addPet((Integer.parseInt(jPanelFormClient.lblIdSet.getText())-1) + \"\");\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERROR AL GUARDAR\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Correo no valido\", \"CORREO SIN FORMATO\",\r\n\t\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"El telefono ingresado ya existe en el sistema\",\r\n\t\t\t\t\t\t\t\"TELEFONO REPETIDO\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"El documento de identidad ya existe en el sistema\",\r\n\t\t\t\t\t\t\"DOCUMENTO REPETIDO\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void addClient(ModelElement client1)\n // -end- 33FFE57B03B3 add_head327A646F00E6 \"Dependency::addClient\"\n ;", "@RequestMapping(value=\"/client\", method = RequestMethod.POST) \n\tpublic void saveClient(@RequestBody OauthClientDetails client) {\n\t\tlogger.debug(\"Add a new client: {}\", client.getClientId());\n\t\tauthService.saveClient(client);\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.WhoOwnsWhom addNewWhoOwnsWhom();", "public static void addClient(Client clientObj) {\r\n clientMap.put(clientObj.getEmail(), clientObj);\r\n }", "public void addClient(String name, String l_name, int ID) throws SQLException\n\t{\n\t\tString order = \"INSERT INTO Clients (FirstName,LastName,ID) VALUES(\" + name + \",\" + l_name + \",\" + ID + \");\";\n\t\tStatement stmt = con.createStatement();\n\t\ttry\n\t\t{\n\t\t\tstmt.executeQuery(order);\n\t\t} finally\n\t\t{\n\t\t\tif (stmt != null)\n\t\t\t{\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t}\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 }", "@Override\r\n\tpublic void addCompany(Company company) throws CouponSystemException {\r\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tcon = ConnectionPool.getInstance().getConnection();\r\n\t\t\tString sql = \"insert into companies values(0, ?, ?, ?)\";\r\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\r\n\t\t\tif (company != null) {\r\n\t\t\t\tpstmt.setString(1, company.getCompName());\r\n\t\t\t\tpstmt.setString(2, company.getCompEmail());\r\n\t\t\t\tpstmt.setString(3, company.getCompPass());\r\n\t\t\t\tpstmt.executeUpdate();\r\n\r\n\t\t\t\tSystem.out.println(\"New company was added\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new CouponSystemException(\"addCompany Failed\", e);\r\n\t\t} finally {\r\n\t\t\tif (con != null) {\r\n\t\t\t\tConnectionPool.getInstance().restoreConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.BusinessIndustryLicense addNewBusinessIndustryLicenses();", "Client createNewClient(Client client);", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "public void ajouterClient(Client client) throws DaoException {\n\t\ttry {\n\t\t\tdaoClient.save(client);\n\n\t\t\t// Strategy local de generer reference client automatique\n\t\t\tif (client.getRefClient().isEmpty())\n\t\t\t\tclient.setRefClient(ConstantsConfig.PREFIX_CLI_REF + client.getId());\n\n\t\t\tdaoClient.save(client);\n\t\t} catch (Exception e) {\n\t\t\tthrow new DaoException(\"ConseillerService.ajouterClient \" + e);\n\t\t}\n\t}", "@RequestMapping(value = \"/createClient\", method = RequestMethod.GET)\n public @ResponseBody CreatorClient createClient(){\n return creatorService.createClient(null);\n }", "private void listaClient() {\n\t\t\r\n\t\tthis.listaClient.add(cliente);\r\n\t}", "private void addCustomer() {\n try {\n FixCustomerController fixCustomerController = ServerConnector.getServerConnector().getFixCustomerController();\n\n FixCustomer fixCustomer = new FixCustomer(txtCustomerName.getText(), txtCustomerNIC.getText(), String.valueOf(comJobrole.getSelectedItem()), String.valueOf(comSection.getSelectedItem()), txtCustomerTele.getText());\n\n boolean addFixCustomer = fixCustomerController.addFixCustomer(fixCustomer);\n\n if (addFixCustomer) {\n JOptionPane.showMessageDialog(null, \"Customer Added Success !!\");\n } else {\n JOptionPane.showMessageDialog(null, \"Customer Added Fail !!\");\n }\n\n } catch (NotBoundException | MalformedURLException | RemoteException ex) {\n new ServerNull().setVisible(true);\n } catch (ClassNotFoundException | IOException ex) {\n Logger.getLogger(InputCustomers.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n public Long addClient(ContentValues values, Location a, Location locationA, Utils.Action<Long> action) {\n\n Client client = ContentValuesToCourse(values);\n clients.add(client);\n return client.getClientId();\n\n\n }", "@Override\n\tpublic void createClient(Client clt) {\n\t\t\n\t}", "@Override\n public void addClient(Client client) throws ValidatorException {\n log.trace(\"addClient: client={}\", client);\n clientValidator.validate(client);\n clientRepository.save(client);\n log.trace(\"addClient --- method finished\");\n }", "public boolean addClient(Project p) {\n try {\n String insert = \"INSERT INTO CLIENTS\" + \"(NAME,ADDRESS,CLIENT_ID) \"\n + \"VALUES(?,?,PROJECTS_SEQ.NEXTVAL)\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(insert);\n ps.setString(1, p.getName());\n ps.setString(2, p.getAddress());\n\n ps.executeUpdate();\n ps.close();\n return true;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return false;\n }\n }", "@Override\n\tpublic void addCompany(BeanCompany Company) {\n\t\tSession session = HibernateUtil.getSessionFactory().getCurrentSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\ttry {\n\t\t\tsession.save(Company);\n\t\t\ttx.commit();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}\n\t}", "private void executeAccion(Client client, Model model) {\n\n if (Constants.ADD.equals(client.getAction())) {\n final String uri = \"https://backend.bgarcial.me/clients\";\n RestTemplate restTemplate = new RestTemplate();\n Client result = restTemplate.postForObject(uri, client, Client.class);\n System.out.println(\"Run Name:\" + result.getName());\n System.out.println(\"Run Id:\" + result.getId());\n\n model.addAttribute(\"message\", \"Calling the Backend - User was Added\");\n\n } else if (Constants.Delete.equals(client.getAction())) {\n final String uri = \"https://backend.bgarcial.me/clients/delete\";\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.postForObject(uri, client, ArrayList.class);\n model.addAttribute(\"message\", \"Calling the Backend - User was Removed!\");\n }\n }", "@FXML\n\tpublic void createClient(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString names = txtClientNames.getText();\n\t\tString surnames = txtClientSurnames.getText();\n\t\tString id = txtClientId.getText();\n\t\tString adress = txtClientAdress.getText();\n\t\tString phone = txtClientPhone.getText();\n\t\tString observations = txtClientObservations.getText();\n\n\t\tif (!names.equals(empty) && !surnames.equals(empty) && !id.equals(empty) && !adress.equals(empty)\n\t\t\t\t&& !phone.equals(empty) && !observations.equals(empty)) {\n\t\t\tcreateClient(names, surnames, id, adress, phone, observations, 1);\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.setContentText(\"Todos los campos de texto deben ser llenados\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "@Override\n void create(Cliente cliente);", "public void create(Client client) {\n\n try {\n try {\n Subject.doAs(LoginController.getLoginContext().getSubject(), new MyPrivilegedAction(\"CLIENT\", Permission.CREATE));\n super.saveOrUpdate(client);\n updateObservers(StringRessources.MSG_CLIENT_SUCCES);\n updateObservers(client);\n } catch (AccessControlException e) {\n e.printStackTrace();\n updateObservers(StringRessources.MSG_PRIVILEGES);\n }\n } catch (DataAccessLayerException e) {\n updateObservers(StringRessources.MSG_CLIENT_ERREUR);\n } catch (Exception e) {\n updateObservers(StringRessources.MSG_CLIENT_ERREUR);\n }\n }", "public void salvaCliente() {\n \n \n \n \n String nome = view.getjTextNome().getText(); //Tive que criar getter e setter pra poder acessar os campos da view\n String telefone = view.getjTextTelefone().getText();\n String cpf = view.getjTextCpf().getText();\n String endereco = view.getjTextEndereco().getText();\n\n \n Cliente client = new Cliente( nome, telefone, cpf, endereco);\n \n \n \n try {\n Connection conexao = new Conexao().getConnection();\n ClienteDAO clientedao = new ClienteDAO(conexao);\n clientedao.insert(client);\n \n JOptionPane.showMessageDialog(null, \"Cliente Cadastrado!\");\n \n } catch (SQLException ex) {\n //Logger.getLogger(CadCliente.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Erro ao cadastrar!\"+ex);\n }\n }", "Boolean insertClient(Client client){\n return true;\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 ajoutCompte(Class<? extends Compte> type, Client client);", "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}", "@Test\n\tpublic void insertAndDeleteClientTest() {\n\t\tservice.insertClient(\"devuser3\", \"test\", \"[email protected]\", \"devpass\");\n\n\t\tClientDTO clientDTO = service.getClient(\"[email protected]\");\n\n\t\tassertEquals(\"devuser3\", clientDTO.getFirstname());\n\t\tassertEquals(\"test\", clientDTO.getLastname());\n\t\tassertEquals(\"[email protected]\", clientDTO.getEmail());\n\n\t\tservice.deleteClient(\"[email protected]\");\n\t\tassertFalse(service.emailExists(\"[email protected]\"));\n\t}", "public ClientEditPage createNewClient() throws Exception {\n if (isNotAt()) {\n goTo();\n }\n newClientButton.click();\n Thread.sleep(Browser.getDelayAfterNewItemClick());\n return Pages.getClientEditPage();\n }", "String addclient(ContentValues client);", "public void createClient(String nam, String surnam, String id, String direction, String phone, String obs, int number) {\n\t\ttry {\n\t\t\trestaurant.addClient(nam, surnam, id, direction, phone, obs, number);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void addClients() {\n while (true) {\n Client client = readClient();\n if (client == null || client.getId() < 0) {\n break;\n }\n try {\n ctrl.addClient(client);\n } catch (ValidatorException e) {\n e.printStackTrace();\n }\n }\n }", "@FXML\n private void handleNewClient() {\n \n boolean okClicked = mainApp.showNewClient();\n if (okClicked) {\n //refresh the list / select all in DB\n informationsClients.setItems(clientManager.getClientData());\n }\n }", "public void insertClient(Client client) {\n\t\t\n\t\tConnection dbConnection = ConnectionFactory.getConnection();\n\t\tPreparedStatement insertStatement = null;\n\t\t\n\t\ttry {\n\t\t\tinsertStatement = dbConnection.prepareStatement(insertStatementString);\n\t\t\tinsertStatement.setInt(1, client.getId());\n\t\t\tinsertStatement.setString(2, client.getName());\n\t\t\tinsertStatement.setString(3, client.getAddress());\n\t\t\tinsertStatement.setString(4, client.getEmail());\n\t\t\t\n\t\t\tinsertStatement.execute();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.log(Level.WARNING, \"ClientDAO : insert \" + e.getMessage());\n\t\t} finally {\n\t\t\tConnectionFactory.close(insertStatement);\n\t\t\tConnectionFactory.close(dbConnection);\n\t\t}\n\t}", "public void setCompany(String company) {\n this.company = company;\n }", "public ClientOfCompanyTrips() {\n companyController = new CompanyController();\n selected = new Company();\n tripBusiness = new TripBusiness();\n trip = new Trip();\n placeBusiness = new PlaceBusiness();\n place= new Place();\n clientBusiness = new ClientBusiness();\n client = new Client();\n }", "public static void inregistrareClient(Medic m, Client c){\r\n List<Client> clienti = m.getClienti();\r\n clienti.add(c);\r\n m.setClienti(clienti);\r\n audit(\"Inregitrare client\");\r\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson addNewControlPersonsExt();", "private Client createClient() {\n\t\tClient client = null;\n\t\tvar clientsList = clientDAO.getClients();\n\t\tvar name = txtName.getText();\n\t\tvar surnames = txtSurnames.getText();\n\t\tvar dni = txtDni.getText();\n\t\tvar telephone = txtTelephone.getText();\n\n\t\tif (txtDni.getText().isBlank() || txtName.getText().isBlank() || txtSurnames.getText().isBlank()\n\t\t\t\t|| txtTelephone.getText().isBlank()) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"Error, los campos no pueden estar vacios, ni contener solo espacios\",\n\t\t\t\t\t\"Warning!\", JOptionPane.ERROR_MESSAGE);\n\t\t} else {\n\t\t\t// Comprobar si el cliente ya existe\n\t\t\tvar exist = false;\n\t\t\tfor (int i = 0; i < clientsList.size(); ++i) {\n\t\t\t\tif (dni.equalsIgnoreCase(clientsList.get(i).getDni())) {\n\t\t\t\t\texist = true;\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Error, ya existe el DNI introducido\", \"Warning!\",\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!exist) {\n\t\t\t\tclient = new Client(dni, name, surnames, telephone);\n\t\t\t}\n\t\t}\n\n\t\treturn client;\n\t}", "@Override\n\tpublic int agregarCliente(ClienteBean cliente) throws Exception {\n\t\treturn 0;\n\t}", "public boolean addClientData (ClientData clientData) //ADD\n\t{\n\t\tContentValues contentValues = new ContentValues();\n\t\tcontentValues.put(COLUMN_CLIENT_NAME, clientData.getClientName());\n\n\n\t\tlong result = db.insert(TABLE_CLIENT, null, contentValues);\n\t\tdb.close();\n\n\t\t//Notifying if transaction was successful \n\t\tif(result == -1)return false;\n\t\telse return true;\n\n\t}", "@Test\n @Order(1)\n void create_client() {\n client = new Client();\n client.setName(\"Test Client\");\n Client c = service.createClient(client);\n Assertions.assertEquals(client.getName(), c.getName());\n Assertions.assertNotEquals(0, c.getId());\n client = c;\n }", "@RequestMapping(method=RequestMethod.POST)\n\tpublic ResponseEntity<Void> insert(@Valid @RequestBody ClienteNewDTO objDTO){\n\t\t\n\t\tCliente obj = service.fromDTO(objDTO);\n\t\tobj = service.insert(obj);\n\t\t\n\t\t//abaixo uma boa pratica para retornar a url do novo objeto quandro cria-lo\n\t\tURI uri = ServletUriComponentsBuilder.fromCurrentRequest()\n\t\t\t\t\t.path(\"/{id}\").buildAndExpand(obj.getId()).toUri(); //o from currente request vai pegar a requisicao atual, e logo depois a gente add o /id\n\t\t\n\t\treturn ResponseEntity.created(uri).build();\n\t}", "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}", "String insertClientAccount(ClientAccount account) throws ServiceException;", "public Company addCompany(int companyId, String companyName, String companyPassword) {\n\t\t \n\t\t ContentValues values = new ContentValues();\n\t\t values.put(MySQLiteHelper.COLUMN_COMPANY_ID, companyId);\n\t\t values.put(MySQLiteHelper.COLUMN_COMPANY_NAME, companyName);\n\t\t values.put(MySQLiteHelper.COLUMN_COMPANY_PASSWORD, companyPassword);\n\n\t\t long insertId = mDatabase.insert(MySQLiteHelper.TABLE_COMPANIES, null, values);\n\t\t Cursor cursor = mDatabase.query(MySQLiteHelper.TABLE_COMPANIES,\n\t\t mAllColumns, null, null,\n\t\t null, null, null);\n\t\t cursor.moveToFirst();\n\t\t Company newCompany = cursorToCompany(cursor);\n\t\t cursor.close();\n\t\t return newCompany;\n\t\t }", "public void registerCustomerToEvent(Client client) {\n\n\t}", "public void addClient(Client newClient) {\r\n\t\tthis.allClients.add(newClient);\r\n\t}", "public Client save(Client client){\r\n return clientRepository.save(client);\r\n }", "com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();", "@GetMapping(\"/admin/addCompany\")\n public String addCompanyForm(Model model){\n model.addAttribute(\"company\", new Company());\n model.addAttribute(\"Countries\", adminRepository.getCountries());\n return \"addCompany\";\n }", "private void handleOptionOne() {\n\n ClientData clientData = view.askForClientPersonalDataAndCreateClientData(); // zwracamy stworzonego w widoku clienta z wrpowadoznych scanerem danych\n clientModel.save(clientData); // zapisujemy clienta do bazy danych\n view.showClientInformation(clientData); // wyswietlamy info o jego pinie itp.\n\n }", "ClientDTO save(final ClientDTO client);", "public void actionPerformed(ActionEvent e)\n\t{\n\t\tClientBLL clientBll = new ClientBLL();\n\t\tif (e.getSource() == jbnAdd) \n\t\t{\n\t\t\tClient client = new Client(jtfName.getText());\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tint id1 = clientBll.insertClient(client);\n\t\t}\n\t\telse if (e.getSource() == jbnEdit)\n\t\t{\n\t\t\tClient client = new Client(Integer.parseInt(jtfID.getText()), jtfName.getText());\n\t\t\tclientBll.editClient(client);\n\t\t}\n\t\telse if (e.getSource() == jbnDelete)\n\t\t{\n\t\t\tclientBll.deleteClient(Integer.parseInt(jtfID.getText()));\n\t\t}\n\t\telse if (e.getSource() == jbnView)\n\t\t{\n\t\t\t//update table\n\t\t\tjtbTableContent.setModel(clientBll.findAllClient());\n\t\t}\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 void addCustomer(){\n Customer customer = new Customer();\n customer.setId(data.numberOfCustomer());\n customer.setFirstName(GetChoiceFromUser.getStringFromUser(\"Enter First Name: \"));\n customer.setLastName(GetChoiceFromUser.getStringFromUser(\"Enter Last Name: \"));\n data.addCustomer(customer,data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has added Successfully!\");\n }", "@O2Client\n @POST\n @Path(\"/client\")\n public Response clientAuthorizedPOST(@Context final SecurityContext c) {\n return Response.ok().build();\n }", "@Test\n public void addClient_addsClientToList_true() {\n Stylist testStylist = new Stylist(\"Xena\");\n Client testClient = new Client(\"Jane\");\n testStylist.addStylist(testClient);\n assertTrue(testStylist.getClients().contains(testClient));\n }", "public AddBudget(java.awt.Frame parent, boolean modal, Client client) {\n super(parent, modal);\n this.client = client;\n initComponents();\n }", "Client updateClientById(Long id, Client newClient) throws ClientNotFoundException;", "@POST\n\t@Path(\"/register\")\n\t@Consumes(\"application/json\")\n\tpublic Response registerClient(Client client) {\n\t\tClientsDAO sdao = new ClientsDAO();\n\t\t// Search client by email\n\t\tClient c = sdao.search(client.getEmail());\n\t\t// Check if the client email exists\n\t\tif (c.getEmail() != null){\n\t\t\t// Client email exists\n\t\t\treturn Response.status(404).build();\n\t\t}\n\t\t// Save client\n\t\tsdao.save(client);\n \n return Response.ok().status(201).entity(client)\n .header(\"Access-Control-Allow-Origin\", \"*\")\n .header(\"Access-Control-Allow-Methods\", \"POST, GET, PUT, UPDATE, OPTIONS\")\n .header(\"Access-Control-Allow-Headers\", \"Content-Type, Accept, X-Requested-With\").build();\n }", "private void save(ActionEvent e){\r\n // Make sure all required fields are filled out before saving\r\n if (formIsValid()){\r\n // Check if client currently exists. If so, modify. Otherwise create new entry.\r\n if (existingClient){\r\n // Modify the existing currentClient holder -- Change the variable to global currentClient cache holder\r\n currClient.setName(NAME_FIELD.getText());\r\n currClient.setAddress1(ADDRESS_1_FIELD.getText());\r\n currClient.setAddress2(ADDRESS_2_FIELD.getText());\r\n currClient.setCity(CITY_FIELD.getText());\r\n currClient.setZip(ZIP_FIELD.getText());\r\n currClient.setCountry(COUNTRY_FIELD.getText());\r\n currClient.setPhone(PHONE_FIELD.getText());\r\n // Update client in database\r\n Client.modifyClient(currClient, currClient.getClientID());\r\n }\r\n // Create new client entry\r\n else { \r\n Client c = new Client (NAME_FIELD.getText(),ADDRESS_1_FIELD.getText(),\r\n ADDRESS_2_FIELD.getText(),CITY_FIELD.getText(),\r\n ZIP_FIELD.getText(),COUNTRY_FIELD.getText(),PHONE_FIELD.getText());\r\n Client.addNewClient(c);\r\n }\r\n\r\n existingClient = false; // reset existing client flag\r\n clearFields(); // remove data from fields\r\n // Return to Appt Mgmt Screen if we came from there\r\n if (fromAppt){\r\n goToManageApptScreen();\r\n }\r\n }\r\n // If forms are not complete throw an alert\r\n else {\r\n AlertBox.display(\"Invalid Submission\", \"Form is missing required information or has invalid input.\"\r\n + \" The following information is required:\\n\"\r\n + \"Name\\nAddress 1\\nCity, State, Country, Zipcode\\nPhoneNumber\"\r\n + \"\\nPlease complete form with valid input and submit again.\");\r\n }\r\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 int ajouteClient(Client client) throws SQLException{\n\t\treturn iDaoClient.ajoutClient(client);\n\t}", "public abstract void adaugaClient(NodAbstractStructura client);", "public void addtorepository() {\n ClientModel widget = new ClientModel();\n widget.setAddress(\"123 Fake Street\");\n widget.setCurrentInvoice(10000);\n widget.setName(\"Widget Inc\");\n clientrepository.save(widget);\n //next client\n ClientModel foo = new ClientModel();\n foo.setAddress(\"456 Attorney Drive\");\n foo.setCurrentInvoice(20000);\n foo.setName(\"Foo LLP\");\n clientrepository.save(foo);\n //next client\n ClientModel bar = new ClientModel();\n bar.setAddress(\"111 Bar Street\");\n bar.setCurrentInvoice(30000);\n bar.setName(\"Bar and Food\");\n clientrepository.save(bar);\n //next client\n ClientModel dog = new ClientModel();\n dog.setAddress(\"222 Dog Drive\");\n dog.setCurrentInvoice(40000);\n dog.setName(\"Dog Food and Accessories\");\n clientrepository.save(dog);\n //next client\n ClientModel cat = new ClientModel();\n cat.setAddress(\"333 Cat Court\");\n cat.setCurrentInvoice(50000);\n cat.setName(\"Cat Food\");\n clientrepository.save(cat);\n //next client\n ClientModel hat = new ClientModel();\n hat.setAddress(\"444 Hat Drive\");\n hat.setCurrentInvoice(60000);\n hat.setName(\"The Hat Shop\");\n clientrepository.save(hat);\n //next client\n ClientModel hatB = new ClientModel();\n hatB.setAddress(\"445 Hat Drive\");\n hatB.setCurrentInvoice(60000);\n hatB.setName(\"The Hat Shop B\");\n clientrepository.save(hatB);\n //next client\n ClientModel hatC = new ClientModel();\n hatC.setAddress(\"446 Hat Drive\");\n hatC.setCurrentInvoice(60000);\n hatC.setName(\"The Hat Shop C\");\n clientrepository.save(hatC);\n //next client\n ClientModel hatD = new ClientModel();\n hatD.setAddress(\"446 Hat Drive\");\n hatD.setCurrentInvoice(60000);\n hatD.setName(\"The Hat Shop D\");\n clientrepository.save(hatD);\n //next client\n ClientModel hatE = new ClientModel();\n hatE.setAddress(\"447 Hat Drive\");\n hatE.setCurrentInvoice(60000);\n hatE.setName(\"The Hat Shop E\");\n clientrepository.save(hatE);\n //next client\n ClientModel hatF = new ClientModel();\n hatF.setAddress(\"448 Hat Drive\");\n hatF.setCurrentInvoice(60000);\n hatF.setName(\"The Hat Shop F\");\n clientrepository.save(hatF);\n }", "@O2Client\n @PUT\n @Path(\"/client\")\n public Response clientAuthorizedPUT(@Context final SecurityContext c) {\n return Response.ok().build();\n }", "static void addNewCompany(SQLiteDatabase db, Company company) {\n ContentValues values = new ContentValues();\n values.put(COMPANY_ID, company.companyId);\n values.put(COMPANY_NAME, company.name);\n values.put(COMPANY_LOGO, company.companyLogo);\n values.put(COMPANY_DESCRIPTION, company.companyDescription);\n values.put(COMPANY_LAST_UPDATED, company.lastUpdatedDate);\n if (company.wasDeleted)\n values.put(COMPANY_WAS_DELETED, 1);\n else\n values.put(COMPANY_WAS_DELETED, 0);\n\n db.insert(COMPANY_TABLE, COMPANY_ID, values);\n }", "Client updateClient(Client client) throws ClientNotFoundException;", "public String createCoopAdmin(int compId, int branchId, String username, String regdate,\r\n String memberno, String phone, String name, String email,String address, String coopprf){\r\n \r\n JSONObject obj = new JSONObject(); \r\n\r\n obj.put(\"gcid\", compId);\r\n obj.put(\"gbid\", branchId);\r\n obj.put(\"username\", username);\r\n obj.put(\"regdate\", regdate); \r\n obj.put(\"memberno\", memberno);\r\n obj.put(\"phone\", phone);\r\n obj.put(\"name\", name);\r\n obj.put(\"email\", email);\r\n obj.put(\"address\", address);\r\n obj.put(\"coopprf\", coopprf);\r\n \r\n return obj.toJSONString();\r\n }", "public interface ClientService {\n\n void add(String name, String country);\n\n List<Client> findAll();\n\n Client findById(int i);\n}", "@Override\n\tpublic void addClient(Client c, String msg) throws RemoteException {\n\t\tif(!users.contains(c)){\n\t\t\tusers.add(c);\n\t\t\tfor(int i=0;i<users.size();i++) {\t \n\t //sendMessage((Client)users.get(i),msg);\n\t\t\t\tSystem.out.println(users.get(i).getName());\n\t }\n\t //users.add(c);\n\t }\n\t}", "private void criaContaCliente (String cpf) {\n this.contasClientes.put(cpf, new Conta(cpf));\n }", "public Company saveCompany(Company company);", "boolean add(Client client, Subscription subscription);", "@PostMapping(\"/agregarCliente\")\r\n public @ResponseBody\r\n Map<String, Object> agregarCliente(\r\n @RequestParam(\"tipoDocumento\") String tipoDocumento,\r\n @RequestParam(\"documento\") String documento,\r\n @RequestParam(\"nombre\") String nombre,\r\n @RequestParam(\"pais\") String pais,\r\n @RequestParam(\"ciudad\") String ciudad,\r\n @RequestParam(\"direccion\") String direccion,\r\n @RequestParam(\"telefono\") String telefono,\r\n @RequestParam(\"correo\") String correo) {\r\n try {\r\n\r\n Cliente CL = new Cliente();\r\n\r\n CL.setTipoDocumento(tipoDocumento);\r\n CL.setDocumento(documento);\r\n CL.setNombre(nombre);\r\n CL.setPais(pais);\r\n CL.setCiudad(ciudad);\r\n CL.setDireccion(direccion);\r\n CL.setTelefono(telefono);\r\n CL.setCorreo(correo.toLowerCase());\r\n CL.setUser(usuario());\r\n\r\n clienteRepository.save(CL);\r\n\r\n return ResponseUtil.mapOK(CL);\r\n } catch (Exception e) {\r\n return ResponseUtil.mapError(\"Error en el proceso \" + e);\r\n }\r\n }", "@RequestMapping(value = \"/createClient/{moduleId}\", method = RequestMethod.GET)\n public @ResponseBody CreatorClient createClient(@PathVariable String moduleId){\n return creatorService.createClient(moduleId, null);\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription addNewControlPersons();", "public ClientePk insert(Cliente dto) throws ClienteDaoException;", "public void addCustomerCompany(CustomerCompany... entity) {\n if (toCustomerCompany == null) {\n toCustomerCompany = Lists.newArrayList();\n }\n toCustomerCompany.addAll(Lists.newArrayList(entity));\n }", "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 }", "@Override\n\tpublic void createClient() {\n\t\t\n\t}" ]
[ "0.7805826", "0.67704135", "0.6686482", "0.65993804", "0.6504968", "0.648783", "0.64206094", "0.6367019", "0.63349396", "0.6318214", "0.6241987", "0.6196201", "0.6184255", "0.61722654", "0.6143577", "0.6109391", "0.60938257", "0.6056761", "0.603104", "0.60230654", "0.5990887", "0.59866244", "0.5981681", "0.5939555", "0.5930989", "0.5927119", "0.5916252", "0.5903399", "0.5896787", "0.5885203", "0.5873678", "0.5870761", "0.58379704", "0.5817277", "0.5811705", "0.5805265", "0.58027524", "0.58015895", "0.5779139", "0.57759553", "0.5756431", "0.5749085", "0.5747265", "0.57415205", "0.5734926", "0.5728908", "0.57256836", "0.57229877", "0.57149917", "0.5713225", "0.5709992", "0.57044566", "0.5690554", "0.5686513", "0.5685511", "0.5683699", "0.5670692", "0.5666884", "0.56609404", "0.5659918", "0.56507", "0.5643368", "0.563976", "0.56311846", "0.56273335", "0.5621073", "0.5613318", "0.5611633", "0.56041783", "0.5565306", "0.5550967", "0.5541893", "0.5539197", "0.5530412", "0.5527229", "0.55071336", "0.54897547", "0.5488066", "0.5470612", "0.5464103", "0.5463495", "0.54617643", "0.54457015", "0.54326487", "0.5431117", "0.5407622", "0.5405519", "0.5398927", "0.53971624", "0.5391228", "0.5383266", "0.53706276", "0.53689843", "0.53633016", "0.53632855", "0.5362703", "0.5355542", "0.5348745", "0.53411514", "0.53400064", "0.53397435" ]
0.0
-1
busqueda de si el usuario existe para creacion de user
public Boolean user_exists (UserWS user) { Query i = null; iniciaOperacion(); i = sesion.createQuery("SELECT u.id_user FROM User u WHERE u.mail = :login"); i.setString("login", user.getLogin()); return (i.uniqueResult() != null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean IsUserExist(){\n SignupUser user =roomDB.dao().GetUserData(et_user.getText().toString());\n if(user!=null){\n if(!user.getEmail().isEmpty()){\n Toast.makeText(this, \"User is already registered!\", Toast.LENGTH_SHORT).show();\n return true;\n }\n\n }\n return false;\n }", "public boolean existUser(String campo1, String campo2);", "public boolean existUser(String id);", "public boolean findUserIsExist(String name) {\n\t\treturn false;\r\n\t}", "public boolean existeUser(String usuario) {\n Conexion c = new Conexion();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String sql = \"SELECT email FROM usuario WHERE usuario.usuario = ?\";\n try {\n ps = c.getConexion().prepareStatement(sql);\n ps.setString(1, usuario);\n rs = ps.executeQuery();\n if (rs.next()) {\n return true;\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n } finally {\n try {\n ps.close();\n rs.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n return false;\n }", "@Override\n\tpublic boolean existe(Usuario usuarioLogado) {\n\t\treturn false;\n\t}", "boolean isUserExists(RegisterData data) throws DuplicateUserException;", "@Override\r\n\tpublic Boolean userExist(String username) {\n\t\treturn null;\r\n\t}", "public User userExist(User user);", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "private boolean userExists(Utente checkUser) {\n\t\tDB db = getDB();\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tfor(Map.Entry<Long, UtenteBase> user : users.entrySet())\n\t\t\tif(user.getValue() instanceof Utente && (((Utente)user.getValue()).getUsername().equals(checkUser.getUsername())))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "boolean isUserExist(String username, String password);", "public boolean existsUser(String username);", "private boolean isUserExists() {\n\t\treturn KliqDataStore.isUserExists(this.mobileNumber, null);\r\n\t}", "public boolean doesTheUserExist(String user)\r\n\t {\r\n\t\t if (!users.get(user).equals(null))\r\n\t\t return true;\r\n\t\t return false;\r\n\t }", "public boolean usuarioExistente(String apelido) {\r\n\t\tConexao con = (Conexao) conexoes.get(apelido);\r\n\t\t\r\n\t\treturn (con != null);\r\n\t}", "private static boolean doesUserExist () {\n String sqlRetrieveAisId = \"SELECT ais_id FROM users WHERE user_id=?\";\n \n boolean valid = false;\n try (Connection conn = Database.getConnection();\n PreparedStatement pstmt = conn.prepareStatement(sqlRetrieveAisId)) {\n \n pstmt.setInt(1, userId);\n \n ResultSet rs = pstmt.executeQuery();\n \n valid = rs.next() != false;\n } catch (SQLException se) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(1), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (IOException ioe) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n }\n \n return valid;\n }", "public boolean existeUsuario(String usuario) {\n Conexion c = new Conexion();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String sql = \"SELECT email FROM usuario WHERE usuario.usuario = ?\";\n try {\n ps = c.getConexion().prepareStatement(sql);\n ps.setString(1, usuario);\n rs = ps.executeQuery();\n if (rs.next()) {\n return true;\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n } finally {\n try {\n ps.close();\n rs.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n return false;\n }", "public boolean isUserExist(String email, String Password);", "public boolean existeUsuario(String nickname, String mail);", "public ResponseEntity<User> createUser(User user) {\n List<User> users=getAllUsers();\n boolean usernameIsUsed=false;\n\n\n for(User myUser : users){\n\n\n String username= myUser.getUsername();\n\n if(username.equals(user.getUsername())){\n usernameIsUsed=true;\n return ResponseEntity.badRequest().build();\n }\n\n\n }\n if(!usernameIsUsed){\n myUserDetailsService.addUser(user);\n return ResponseEntity.ok(user);\n }\n\n return null;\n }", "@Override\n public boolean isUserAlreadyExist(String email) throws UserException {\n User user;\n\n if (email == null || email.equals(\"\")) {\n logger.error(\"invalid user id: \" + email);\n return false;\n }\n try {\n user = userDAO.getUserById(email);\n return user != null;\n } catch (UserException e) {\n e.printStackTrace();\n logger.error(\"failed to delete a user with id: \" + email);\n return false;\n }\n }", "private boolean checkNameExistAdd(String userName) {\n\n\t\tUser user = this.userDAO.getUserByName(userName);\n\t\tif (null != user) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "boolean isUserExists(Username username);", "@Override\n\tpublic boolean isUserExist(StudentForm student) {\n\t\treturn false;\n\t}", "private boolean existsUser(Connection con) throws SQLException {\n\t\tlog.entry();\n\t\tboolean userExists = false;\n\t\tPreparedStatement ps = con.prepareStatement(\"SELECT COUNT(*) FROM Users \"\n\t\t + \"WHERE `id`=?;\");\n\t\ttry {\n\t\t\tps.setInt(1, id);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.first() && rs.getInt(1) > 0) {\n\t\t\t\tuserExists = true;\n\t\t\t}\n\t\t} finally {\n\t\t\tcloseStatement(ps);\n\t\t}\n\t\tthrowSqlException();\n\t\tlog.exit();\n\t\treturn userExists;\n\t}", "private static boolean verificaUser(String username) {\n String user = null;\r\n try {\r\n PreparedStatement stmt = c.prepareStatement(\"SELECT * FROM utilizador where nome=?;\");\r\n stmt.setString(1, username);\r\n ResultSet rs = stmt.executeQuery();\r\n rs.next();\r\n user = rs.getString(\"nome\");\r\n if (user.equals(username)) {\r\n return true;\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(e);\r\n }\r\n return false;\r\n }", "public boolean isThereSuchAUser(String username, String email) ;", "public boolean register(String u_Name, String u_pw, String f_name){\n List<User> userList = userDao.getUserFromUsername(u_Name);\n //1.check if userName is used\n if (userList.size() != 0){ \n return false;\n }\n //2.create user and add to the DB\n User user = new User(u_Name, u_pw, f_name);\n userDao.addUser(user);\n //3.return true\n return true;\n }", "boolean userExists(HttpServletRequest request, String userId);", "boolean hasUserName();", "boolean exists(User user);", "public boolean existeUsuario(String usuario){\r\n try {\r\n Statement s= connection.createStatement();\r\n String sql=\"Select * from sistemasEM.usuarios where nombre='\"+usuario+\"'\";\r\n ResultSet rs= s.executeQuery(sql);\r\n if (rs.next()){\r\n return true;\r\n }\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return false;\r\n }", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "public boolean isExistingUsername(String username) {\n boolean isExistingUser = false; \n \n List<User> retrievedUsersList = new LinkedList<User>(); \n retrievedUsersList = repo.returnAllUsers(); \n \n User aUser = null; \n for(var user : retrievedUsersList) {\n aUser = (User)user; \n \n if(aUser.username.equals(username)) {\n isExistingUser = true; \n }\n }\n \n return isExistingUser; \n }", "public boolean isExistingUser() {\r\n return isExistingUser;\r\n }", "public boolean existeUsuario(String telefono) {\n\t\treturn this.usuarios.get(telefono) != null;\n\t}", "@Override\n\tpublic boolean register(User user) {\n\t\tboolean flag = false;\n\t\tList<User> list = this.userDao.findAll(\"and userName = ?\", user.getUserName());\n\t\t//System.out.println(list.size());\n\t\tif(list.size() <= 0){\n\t\t\tthis.userDao.register(user);\n\t\t\tflag = true;\n\t\t}\n\t\treturn flag;\n\t}", "public boolean usuarioExistente(String usuario){\n\t\tboolean salida = false;\n\t\ttry{\n\t\t\t\n\t\t\t//Conexión a la base de datos y preparación del comando SQL:\n\t\t\tClass.forName(DRIVER);\n\t\t\tconexion = DriverManager.getConnection(URL);\n\t\t\tString sql = \"SELECT * FROM jugadores WHERE nombreUsuario = ?\";\n\t\t\tpsSql = conexion.prepareStatement(sql);\n\t\t\tpsSql.setString(1, usuario);\n\t\t\t\n\t\t\t//Ejecución de la búsqueda en la base de datos:\n\t\t\tresultado = psSql.executeQuery();\n\t\t\t\n\t\t\t//Validación del resultado de la búsqueda:\n\t\t\twhile(resultado.next()){\n\t\t\t\tif(resultado.getString(\"nombreUsuario\").equals(usuario)){\n\t\t\t\t\tsalida = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception E){\n\t\t\tE.printStackTrace();\n\t\t}finally{\n\t\t\ttry{\n\t\t\t\t\n\t\t\t\t//Cierre de la conexión:\n\t\t\t\tresultado.close();\n\t\t\t\tpsSql.close();\n\t\t\t\tconexion.close();\n\t\t\t\t\n\t\t\t}catch(SQLException E){\n\t\t\t\tE.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn salida;\n\t}", "public boolean createUser() {\r\n\t\tboolean signupSuccess = false;\r\n\t\t/**\r\n\t\t*\tSince connecting to database (DbConnection()) and retrieving data (fetchSelectAllUsers())\r\n\t\t* throw SQLException and throwing an exception from multiple levels again and again is not\r\n\t\t*\ta good way, so its is needed to catch the exception here.\r\n\t\t*/\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection to the database\r\n\t\t\t*/\r\n\t\t\tDbConnection signupConn = new DbConnection();\r\n\t\t\t/**\r\n\t\t\t*\tinsert data into table\r\n\t\t\t*/\r\n\t\t\tsignupSuccess = signupConn.executeInsertIntoUsers(uName, password, fullName, phone, email);\r\n\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"**************Error Connecting to the Database**************\");\r\n\t\t\tSqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\t//validateConn.closeDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn signupSuccess;\r\n\t}", "private boolean checkExistingUsername(String username) {\n boolean existingUsername = false;\n User user = userFacade.getUserByUsername(username);\n if (user != null) {\n existingUsername = true;\n }\n return existingUsername;\n }", "public Boolean isUsernameExist(String username);", "@Override\r\n\tpublic int checkUserExistsWithNamePassword(User user) {\n\t\tSession s = sessionFactory.openSession(); \r\n\t\t s.beginTransaction();\r\n\t\t \r\n\t\t System.out.println(\"Into checkUserExistsWithNamePassword...\");\r\n\t \r\n\t\t Query query = s.createQuery(\"select username,password from User u where u.username = ?\")\r\n\t\t \t\t.setParameter(0, user.getUsername());\r\n\t\t List<Object[]> list = query.list(); \r\n\t\t s.getTransaction().commit();\r\n\t\t System.out.println(\" checkUserExistsWithNamePassword rz=\"+list.size());\r\n\t\t if(list.size() > 0) {\r\n\t\t \tfor(Object[] object : list){ \r\n\t\t \t\tString passwd = (String)object[1]; \r\n\t\t \t\tString name = (String)object[0];\r\n\t\t System.out.println(name + \" : \" + passwd);\r\n\t\t if(passwd!=null && passwd.length()>0 \r\n\t\t \t\t&& passwd.trim().equalsIgnoreCase(user.getPassword().trim()))\r\n\t\t \treturn 1;\r\n\t\t else\r\n\t\t \treturn 3;\r\n\t\t }\r\n\t\t }\r\n\t return 2;\r\n\t\t\r\n\t}", "public boolean create(UserDTO user){\r\n error = \"\";\r\n boolean check = checkMail(user.getEmail());\r\n if(check){\r\n try {\r\n PreparedStatement preSta = conn.prepareStatement(sqlInsertUser);\r\n preSta.setString(1, user.getEmail());\r\n preSta.setString(2, user.getPassword());\r\n preSta.setInt(3, user.getRole());\r\n if(preSta.executeUpdate() > 0){\r\n return true;\r\n }\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(UserDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } \r\n }\r\n return false;\r\n \r\n }", "public boolean userNameExist(String username);", "public User userExists(IDatabase db) {\n\t\tUser doesExist = db.userExists(model);\n\t\treturn doesExist;\n\t}", "private void isUserExist() {\n\n if (firebaseAuth.getCurrentUser() != null) {\n\n final String user_id = firebaseAuth.getCurrentUser().getUid();\n users_database_reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.hasChild(user_id)) {\n // sign in the user and go to main activity\n // Intent intent = new Intent(StartActivity.this, MainActivity.class);\n // intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(intent);\n } else {\n // go to profile page\n Intent intent = new Intent(MainActivity.this, Profile.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }\n }", "public boolean userExists(String userName) {\r\n String qr = \"from UserCredsTbl where userName like '%\" + userName + \"%'\"\r\n + \"or userName like '%\" + userName + \"%'\";\r\n List userList = crud.getObject(qr);\r\n\r\n if (userList.size() > 0) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "private boolean correctUser() {\n // TODO mirar si l'usuari es unic a la base de dades\n return true;\n }", "private boolean userIDExists( String idCedulaNit, Connection con ) \n {\n ClassConnection cc = new ClassConnection();\n \n //System.out.println( idCedulaNit );\n //System.out.print( idCedulaNit );\n Boolean presente = (Boolean) cc.execute( \"SELECT idcedulanit FROM usuario WHERE idcedulanit = \" + Long.parseLong( idCedulaNit ) , 2, con);\n \n return presente;\n }", "public boolean existsUser(String userId) {\n\t\treturn true;\n\t}", "public void checkUsernameExist() {\n\n try {\n BLUser bluser = new BLUser();\n User user = new User();\n\n ResultSet rs = bluser.selectUserIdFromUsername(txt_username.getText());\n\n user.setUsername(txt_username.getText());\n bluser.setUser(user);\n\n if (bluser.checkUsernameExist()) {\n \n populateDataOnTable();\n }// end if\n else {\n JOptionPane.showMessageDialog(rootPane, \"Invalid username!\");\n }// end else \n\n }// end try\n catch (Exception ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage(), \"Exception\", JOptionPane.INFORMATION_MESSAGE);\n }//end catch\n }", "boolean registrarUsuario(Usuario usuario) throws Exception;", "public boolean registerNewUser(String un, String pw, String fn, String ln, String sq, String sa, int age) {\n\n boolean success;\n\n if (isUsernameExist(un)) {\n success = false;\n }\n else {\n // encrypting input password\n SHAEncryption sha = new SHAEncryption();\n String shaPW = sha.getSHA(pw);\n\n // accessing registeredUser table (collection)\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n\n // creating new user document based on the input from UI\n Document newUser = new Document(\"username\", un)\n .append(\"password\", shaPW)\n .append(\"firstName\", fn)\n .append(\"lastName\", ln)\n .append(\"age\", age)\n .append(\"secureQ\", sq)\n .append(\"secureA\", sa.toLowerCase())\n .append(\"status\", \"\")\n .append(\"hidefriends\",false)\n .append(\"hideposts\",false)\n .append(\"hideage\",false)\n .append(\"hidestatus\",false);\n\n // insert newUser into registeredUser collection\n collRU.insertOne(newUser);\n System.out.println(\"Username \" + un + \" is registered!\");\n success = true;\n \n // create followList for new user\n db.getCollection(\"followList\").insertOne(\n new Document(\"username\", un).append(\"following\", new ArrayList<String>()));\n }\n\n return success;\n }", "Boolean registerNewUser(User user);", "public boolean newUser(String email, String senha) {\n try {\n return usDao.newUser(email, senha);\n } catch (SQLException ex) {\n throw new RuntimeException(\"an error occurred trying to add a new user to database: \" + ex.getMessage());\n }\n }", "public boolean registrar(usuario usr) {\n\n PreparedStatement ps = null;\n Conectar ct = new Conectar();\n Connection con = ct.conexion();\n //INSEERTAR DENTRO DE LA TABLA TRABAJO LOS DATOS DE REGISTRO\n String sql = \"INSERT INTO trabajo (usuario, password, Email, id_tipo, Nombre) VALUES(?,?,?,?,?)\";\n\n try {\n ps = con.prepareStatement(sql);\n\n ps.setString(1, usr.getUsuario());\n\n ps.setString(2, usr.getPassword());\n\n ps.setString(3, usr.getEmail());\n\n ps.setInt(4, usr.getId_tipo());\n\n ps.setString(5, usr.getNombre());\n\n ps.execute();\n return true;\n\n } catch (SQLException ex) {\n Logger.getLogger(sqlUsuario.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }", "private boolean existeUsuario(String chatId)\n\t{\n\t\treturn usuarioService.findById(chatId).isPresent();\n\t}", "public boolean isUsernameExist(String un) {\n\n boolean exist = false;\n\n // accessing registeredUser table (collection)\n MongoCollection<Document> collection = db.getCollection(\"registeredUser\");\n\n // ----- get document of given username from registeredData -----\n System.out.println(\"\\nVerifying if username already exists or not\\n--------------------\\n\");\n String colUsername = \"username\"; // set key and value to look for in document\n FindIterable<Document> docOne = collection.find(Filters.eq(colUsername, un)); // find document by filters\n MongoCursor<Document> cursor1 = docOne.iterator(); // set up cursor to iterate rows of documents\n try {\n // cursor1 will only have 1 data if we found a match\n if (cursor1.hasNext()) {\n System.out.println(\"Username already exists\");\n exist = true;\n }\n else {\n System.out.println(\"Username is available to register\");\n }\n } finally {\n cursor1.close();\n }\n\n return exist;\n }", "public boolean checkUserExist(String userName) {\n\t\tboolean exist = true;\n\t\tString adminToken = this.loginAAA(adminUsername, adminPassword);\n\n\t\ttry {\n\t\t\t// read identity of the user\n\t\t\tString identity = this.getIdentity(userName);\n\t\t\tif (identity != null && !identity.equals(\"\")) {\n\t\t\t\t// parse the UUID from user identity, the member userUUID will\n\t\t\t\t// be\n\t\t\t\t// null if the user is not exist\n\t\t\t\tthis.userUUID = this.getUUIDByUserIdentity(identity);\n\t\t\t\tif (this.userUUID == null)\n\t\t\t\t\texist = false;\n\t\t\t} else {\n\t\t\t\texist = false;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\texist = false;\n\t\t\tlogger.error(\"IOException: \", e);\n\t\t} catch (Exception e) {\n\t\t\texist = false;\n\t\t\tlogger.error(\"Exception: \", e);\n\t\t} finally {\n\t\t\tif (adminToken != null) {\n\t\t\t\tthis.logoutAAA(adminToken);\n\t\t\t}\n\t\t}\n\n\t\tif (exist)\n\t\t\tlogger.info(\"user {}'s UUID = {} \", userName, this.userUUID);\n\t\telse\n\t\t\tlogger.info(\"user {} is not exist\");\n\n\t\treturn exist;\n\t}", "@Override\n\tpublic boolean registerUtente(Utente user) {\n\t\tif(!userExists(user)) {\n\t\t\tDB db = getDB();\n\t\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\t\tlong hash = (long) user.getUsername().hashCode();\n\t\t\tusers.put(hash, user);\n\t\t\tdb.commit();\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\t\n\t}", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "@Override\n\tpublic boolean userExists(String user) {\n\t\tLogin login = fetchUser(user);\n\t\treturn (login != null);\n\t}", "public boolean crearUsuario(Usuario usuario) {\n\t\ttry{\n String insert = \"INSERT INTO usuarios(usuario,nombre, clave) \"\n + \" VALUES (?, ?, ? );\";\n PreparedStatement ps = con.prepareStatement(insert);\n ps.setString(1, usuario.getUsuario());\n ps.setString(2, usuario.getNombre());\n ps.setString(3, usuario.getClave()); \n //para marca un punto de referencia en la transacción para hacer un ROLLBACK parcial. \n Savepoint sp1 = con.setSavepoint(\"SAVE_POINT_ONE\");\t\t\t\n ps.executeUpdate();\t\n con.commit();\n return true;\n\t\t}catch(Exception e){\n System.out.println(e.getMessage());\n e.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public boolean userExists(User user) {\n return DATABASE.getUsers().stream()\n .anyMatch(currentUser -> user.equals(currentUser));\n }", "public boolean isUserExisted(String _fbEmail);", "public boolean checkUserExists(String username) {\n boolean exists = false;\n try {\n conn = dao.getConnection();\n ps = conn.prepareStatement(\"SELECT * FROM USERS WHERE USERNAME=?\");\n ps.setString(1, username);\n\n ResultSet rs = ps.executeQuery();\n\n // rs.next() is false if the set is empty\n exists = rs.next();\n\n // close stuff\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return exists;\n }", "boolean isUsernameExist(String username);", "@Override\r\n\tpublic boolean insertUsuario(Usuario user) {\n\t\treturn false;\r\n\t}", "private boolean isExistUserName(String userName, String userId) {\n User user = userService.findByUserNameAndStatus(userName, Constant.Status.ACTIVE.getValue());\n if (user != null && !user.getUserId().equals(userId)) {\n return true;\n }\n return false;\n }", "boolean hasUserId();", "boolean hasUserId();", "boolean hasUserId();", "@Test(expected = UserAlreadyExists.class)\n public void registryUserExists() throws Exception {\n\n User user_expected = new User();\n user_expected.setId(1L);\n user_expected.setName(\"nametest\");\n user_expected.setLast_name(\"lastnametest\");\n user_expected.setUsername(\"usernametest\");\n user_expected.setPassword(\"a7574a42198b7d7eee2c037703a0b95558f195457908d6975e681e2055fd5eb9\");\n\n given(userRepository.findByUsername(anyString())).willReturn(Optional.of(user_expected));\n\n User user_saved = userServiceImpl.registryUser(this.user);\n\n }", "boolean exists(String username);", "private boolean isUserExist(String friendName)\r\n\t{\r\n\t\tlogger.debug(\"->->->->-> Inside isUserExist method ->->->->->\");\r\n\t\tif(userDAO.getParticularUserbyUserName(friendName)==null){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "private void checkForUser(){\n if(mUserId != -1){\n return;\n }\n\n if(mPreferences == null) {\n getPrefs();\n }\n\n mUserId = mPreferences.getInt(USER_ID_KEY, -1);\n\n if(mUserId != -1){\n return;\n }\n\n //do we have any users at all?\n List<User> users = mUserDAO.getAllUsers();\n if(users.size() <= 0 ){\n User defaultUser = new User(\"din_djarin\",\"baby_yoda_ftw\");\n mUserDAO.insert(defaultUser);\n }\n }", "public boolean doesUserExist(String username) {\n\t\t\n\t\tfor(User u : users) {\n\t\t\tif(u.getUsername().equals(username)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean validateUsernameExist(String username) {\n return userRepository.findUsername(username);\n }", "@RequestMapping(value = \"is_exist_user\", method = { RequestMethod.GET })\n\tpublic boolean isExistUser(@RequestParam(\"username\") String username) throws IOException {\n\t\tSystem.out.println(username);\n\t\tboolean result = true;\n\t\tMongoClient mongoClient = null;\n\t\ttry {\n\t\t\t// Create Mongo client\n\t\t\tmongoClient = new MongoClient(\"localhost\", 27017);\n\t\t\tMongoDatabase db = mongoClient.getDatabase(\"projectDB\");\n\n\t\t\t// Create Users collection and user document\n\t\t\tMongoCollection<Document> collection = db.getCollection(\"USERS\");\n\t\t\tDocument myDoc = collection.find(eq(\"username\", username)).first();\n\n\t\t\t//In case no document in the collection match the condition, the user not exist in the DB\n\t\t\tif (myDoc == null) {\n\t\t\t\tmongoClient.close();\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t//Close DB connection\n\t\t\tmongoClient.close();\n\n\t\t} catch (Exception e) {\n\t\t\tmongoClient.close();\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn result;\n\t}", "private boolean comprobarUsuario(String nombre, String contrasenia, String grupo) {\n\n return true;\n }", "@Override\n @SuppressWarnings(\"unchecked\")\n public boolean checkExists(String username) throws DAOException{\n \n try{\n Session session = HibernateConnectionUtil.getSession();\n \n Criteria crit = session.createCriteria(UserProfile.class);\n crit.add(Restrictions.eq(\"username\", username));\n List<UserProfile> userList = crit.list();\n session.close();\n return !userList.isEmpty();\n }\n catch(HibernateException e){\n throw new DAOException(\"HibernateException: \" + e.getMessage());\n }\n\n }", "boolean hasObjUser();", "public boolean verifyUser(User user) {\n GetUserTask getUserTask = new GetUserTask();\n User temp = new User();\n\n try {\n temp = getUserTask.execute(user.getUserName()).get();\n }\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n catch (ExecutionException e) {\n e.printStackTrace();\n }\n\n //if user did not exist, add one\n if(temp == null){\n ElasticSearchUserController.AddUserTask addUserTask = new ElasticSearchUserController.AddUserTask();\n addUserTask.execute(user);\n return true;\n }\n return false;\n }", "Boolean checkUserExists(String userName) throws AppException;", "@Override\n public boolean checkLoginExist(String login) {\n logger.info(\"check if login exists\");\n if (userDao.get(login) != null) {\n logger.info(\"Such login does't existing\");\n }\n return userDao.get(login) != null;\n }", "public static boolean userExists(String username) throws IOException, SQLException {\n ArrayList<String> user = retrieveUser(username);\n if (!user.isEmpty()) {\n if (user.get(0).equals(username)) {\n System.out.println(\"Username exists in database.\");\n return true;\n }\n }\n System.out.println(\"The user: \" + username + \" does not exist\");\n return false;\n }", "@Override\r\n\tpublic boolean create(UserInfo bean) throws Exception\r\n\t{\r\n\t\ttry {\r\n\t\t\tif (em.find(UserInfo.class, bean.getUsername()) == null) {\r\n\t\t\t\tem.persist(bean);\r\n\t\t\t\treturn true;\r\n\t\t\t} else\r\n\t\t\t\treturn false;\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic Boolean kiemTonTaiTheoUserName(String id) {\n\t\treturn userReposotory.existsByUserName(id);\r\n\t}" ]
[ "0.75688773", "0.7558418", "0.75583833", "0.7532476", "0.747419", "0.7471396", "0.73636097", "0.73442763", "0.72989684", "0.72855496", "0.7276844", "0.72581434", "0.72308123", "0.7214162", "0.718095", "0.7179188", "0.71218646", "0.712029", "0.70759773", "0.7013258", "0.7007877", "0.7003499", "0.6989656", "0.6978179", "0.6974477", "0.6973464", "0.6959487", "0.6954938", "0.69545466", "0.6954487", "0.6933211", "0.6901253", "0.689853", "0.6892604", "0.6892604", "0.6892604", "0.6892604", "0.6892604", "0.6892604", "0.6892604", "0.6887332", "0.6880174", "0.6878269", "0.6872931", "0.6864153", "0.6838476", "0.68301713", "0.6812515", "0.67988425", "0.67985815", "0.6783376", "0.67797565", "0.6764217", "0.67623395", "0.6759819", "0.67524934", "0.6743233", "0.6736876", "0.6733915", "0.6730731", "0.6729504", "0.67259294", "0.67227304", "0.6703141", "0.6692732", "0.6690358", "0.66891134", "0.66840184", "0.66840184", "0.66840184", "0.66840184", "0.66840184", "0.66840184", "0.66821474", "0.667338", "0.6666467", "0.6660479", "0.66587985", "0.665494", "0.6654021", "0.66506356", "0.6628178", "0.6628178", "0.6628178", "0.66240776", "0.6601543", "0.65875244", "0.6578397", "0.6574134", "0.65687597", "0.65658426", "0.6562097", "0.65443504", "0.65414816", "0.6539998", "0.65381837", "0.65377676", "0.6536104", "0.6521656", "0.65186095" ]
0.7194826
14
borrar usuario ws No devuelve nada
public void wsdelete_user(String mail) throws HibernateException { User user_del = null; String i=null; long id_user=0; try { iniciaOperacion(); i= sesion.createQuery("SELECT u.id_user FROM User u WHERE u.mail ='"+mail+"'").uniqueResult().toString(); //una vez encontrado el id del user puedo buscarlo id_user= Integer.parseInt(i); user_del = (User) sesion.get(User.class, id_user); sesion.delete(user_del); //le pasamos todo el objeto a eliminar tx.commit(); } catch (HibernateException he) { manejaExcepcion(he); throw he; } finally { sesion.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void crearUsuarioWS(String name, String login, String pass){\n //JAXBElement<ArrayOfAdministrationResource> arrayAdminRole = obtenerRolesPorNombre(ConstantesWS.ROL_NAME_CLIENTE).;\n \n ObjectFactory fact = new ObjectFactory(); \n //fact.createArrayOfAdministrationRole(obtenerRolesPorNombre(ConstantesWS.ROL_NAME_CLIENTE).);\n \n //fact.createArrayOfint()\n \n //obtenerConexion().getRolesByIds()\n \n //busqueda y seteo del rol de cliente\n ArrayOfint aux =fact.createArrayOfint(); \n aux.getInt().add(Integer.valueOf(181)); //perfil del cliente \n ArrayOfAdministrationRole arrayRole = obtenerConexion().getRolesByIds(aux);\n \n JAXBElement<ArrayOfAdministrationRole> jaxbElementRol;\n jaxbElementRol = fact.createArrayOfAdministrationRole(arrayRole);\n \n //creacion del nuevo usuario con rol cliente\n AdministrationUser user = new AdministrationUser();\n user.setEnabled(Boolean.TRUE);\n user.setMustChangePassword(Boolean.FALSE);\n user.setLastName(fact.createString(name)); \n user.setPassword(fact.createString(pass));\n user.setUserName(fact.createString(login)); \n user.setRoles(jaxbElementRol); \n \n \n //agrego el nuevo usuario\n obtenerConexion().addUser(ConstantesWS.APLICACION_PROVEEDORES, user);\n \n }", "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 crearUsuarioWS(RequestParams params){\n prgDialog.show();\n AsyncHttpClient client = new AsyncHttpClient();\n client.post(ws.urlservice+\"registroCliente\", params, new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n prgDialog.dismiss();\n if(statusCode==201){\n //Toast.makeText(getApplicationContext(), \"Registro con Exito!\", Toast.LENGTH_SHORT).show();\n AlertDialog.Builder builder = new AlertDialog.Builder(RegisterActivity.this);\n builder.setTitle(\"Registro con Exito!\");\n builder.setMessage(\"Por favor revise su correo electrónico para verificar su cuenta.\").setPositiveButton(\"ACEPTAR\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n AlertDialog alert = builder.create();\n alert.setCancelable(false);\n alert.show();\n }else{\n Toast.makeText(getApplicationContext(), \"No se pudo guardar el registro!\", Toast.LENGTH_SHORT).show();\n }\n }\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n prgDialog.dismiss();\n Toast.makeText(getApplicationContext(), \"Ocurrio un error con el servidor\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public void InicializacionWS(){\n try {\n factory = new WebSocketFactory().setConnectionTimeout(5000);\n ws = factory.createSocket(ws_host);\n // Register a listener to receive WebSocket events.\n ws.addListener(new WebSocketAdapter() {\n @Override\n public void onTextMessage(WebSocket websocket, String message) throws Exception {\n System.out.println(message);\n }\n });\n } catch (IOException e){\n GenericDialogs.Dialogs.ShowDiaglog(\"Exception WebSocket client class\", e.getMessage(), context);\n }\n }", "public ExportaDatosWSBean() {\n }", "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 void respaldo() {\n if (seleccionados != null && seleccionados.length > 0) {\n ZipOutputStream salidaZip; //Donde va a quedar el archivo zip\n\n File file = new File(FacesContext.getCurrentInstance()\n .getExternalContext()\n .getRealPath(\"/temporales/\") + archivoRespaldo + \".zip\");\n\n try {\n salidaZip\n = new ZipOutputStream(new FileOutputStream(file));\n ZipEntry entradaZip;\n\n for (String s : seleccionados) {\n if (s.contains(\"Paises\")) {\n\n entradaZip = new ZipEntry(\"paises.json\");\n salidaZip.putNextEntry(entradaZip);\n byte data[]\n = PaisGestion.generaJson().getBytes();\n salidaZip.write(data, 0, data.length);\n salidaZip.closeEntry();\n }\n }\n salidaZip.close();\n\n // Descargar el archivo zip\n //Se carga el zip en un arreglo de bytes...\n byte[] zip = Files.readAllBytes(file.toPath());\n\n //Generar la página de respuesta...\n HttpServletResponse respuesta\n = (HttpServletResponse) FacesContext\n .getCurrentInstance()\n .getExternalContext()\n .getResponse();\n\n ServletOutputStream salida\n = respuesta.getOutputStream();\n\n //Defino los encabezados de la página de respuesta\n respuesta.setContentType(\"application/zip\");\n respuesta.setHeader(\"Content-Disposition\",\n \"attachement; filename=\" + archivoRespaldo + \".zip\");\n\n salida.write(zip);\n salida.flush();\n\n //Todo listo\n FacesContext.getCurrentInstance().responseComplete();\n file.delete();\n } catch (FileNotFoundException ex) {\n Logger.getLogger(RespaldoController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(RespaldoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n\n }", "public void SubirOpenKM(ArrayList<tipoPDF_cargar> subidaArchivos, String estampaTiempo, String codigoFirma, String hash) throws IOException {\n this.setPubHash(hash);\n //String host = \"http://localhost:8083/OpenKM\";\n String host = \"http://wmyserver.sytes.net:8083/OpenKM\";\n String username = \"okmAdmin\";\n String password = \"admin\";\n OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);\n try {\n boolean crearFolder = false;\n String rutaFolderCrear;\n /* codigoFirma - en este caso corresponde al nombre de la carpeta que contendra\n el articulo y su tabla de contenido en formato PDFA\n Ruta del folder a crear en el Gestor Openkm*/\n // rutaFolderCrear = \"/okm:root/Doctorado_Electronica/\" + codigoFirma;\n rutaFolderCrear = \"/okm:root/Doctorado_Electronica/\" + this.pubEstIdentificador.getEstUsuario();\n this.setPubDiropkm(codigoFirma);\n try {\n /* Se valida si el forder a crear existe o no*/\n ws.isValidFolder(rutaFolderCrear);\n crearFolder = false;\n } catch (Exception e) {\n crearFolder = true;\n }\n if (crearFolder == true) {\n /* Si no existe el folder, se crea con la ruta(rutaFolderCrear)*/\n Folder fld = new Folder();\n fld.setPath(rutaFolderCrear);\n ws.createFolder(fld);\n }\n\n rutaFolderCrear = \"/okm:root/Doctorado_Electronica/\" + this.pubEstIdentificador.getEstUsuario() + \"/\" + codigoFirma;\n try {\n /* Se valida si el forder a crear existe o no*/\n ws.isValidFolder(rutaFolderCrear);\n crearFolder = false;\n } catch (Exception e) {\n crearFolder = true;\n }\n if (crearFolder == true) {\n /* Si no existe el folder, se crea con la ruta(rutaFolderCrear)*/\n Folder fld = new Folder();\n fld.setPath(rutaFolderCrear);\n ws.createFolder(fld);\n }\n\n for (int i = 0; i < subidaArchivos.size(); i++) {\n\n Archivo arch = (Archivo) archivoCollection.toArray()[i];\n /* Se Comprubea si los Metadatos en OpenKm que se van a llenar son para \n una revista, un congreso , un libro o un capitulo de un libro*/\n if (this.pubTipoPublicacion.equalsIgnoreCase(\"revista\")) {\n\n InputStream is = new FileInputStream(\"\" + subidaArchivos.get(i).getRutaArchivo());\n com.openkm.sdk4j.bean.Document doc = new com.openkm.sdk4j.bean.Document();\n doc.setPath(rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\");\n ws.createDocument(doc, is);\n\n IOUtils.closeQuietly(is);\n List<FormElement> fElements = ws.getPropertyGroupProperties(\"\" + rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\", \"okg:revista\");\n for (FormElement fElement : fElements) {\n if (fElement.getName().equals(\"okp:revista.identPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIdentificador);\n }\n if (fElement.getName().equals(\"okp:revista.identArchivo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + arch.getArcIdentificador());\n }\n\n if (fElement.getName().equals(\"okp:revista.tipoPDFCargar\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + subidaArchivos.get(i).getTipoPDF());\n }\n\n if (fElement.getName().equals(\"okp:revista.estampaTiempo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + estampaTiempo);\n }\n if (fElement.getName().equals(\"okp:revista.nombreAutor\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubNombreAutor);\n }\n if (fElement.getName().equals(\"okp:revista.autoresSecundarios\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubAutoresSecundarios);\n }\n\n SimpleDateFormat formateador = new SimpleDateFormat(\"MM-yyyy\");\n String FechaPublicacion = formateador.format(this.pubFechaPublicacion);\n\n if (fElement.getName().equals(\"okp:revista.fechaPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + FechaPublicacion);\n }\n if (fElement.getName().equals(\"okp:revista.tipoPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubTipoPublicacion);\n }\n if (fElement.getName().equals(\"okp:revista.tituloArticulo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.revista.getRevTituloArticulo());\n }\n if (fElement.getName().equals(\"okp:revista.nombreRevista\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.revista.getRevNombreRevista());\n }\n if (fElement.getName().equals(\"okp:revista.categoria\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.revista.getRevCategoria());\n }\n if (fElement.getName().equals(\"okp:revista.DOI\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubDoi);\n }\n if (fElement.getName().equals(\"okp:revista.ISBN\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIsbn);\n }\n if (fElement.getName().equals(\"okp:revista.ISSN\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIssn);\n }\n }\n ws.setPropertyGroupProperties(\"\" + rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\", \"okg:revista\", fElements);\n\n }\n\n if (this.pubTipoPublicacion.equalsIgnoreCase(\"congreso\")) {\n\n InputStream is = new FileInputStream(\"\" + subidaArchivos.get(i).getRutaArchivo());\n com.openkm.sdk4j.bean.Document doc = new com.openkm.sdk4j.bean.Document();\n\n doc.setPath(rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\");\n ws.createDocument(doc, is);\n IOUtils.closeQuietly(is);\n List<FormElement> fElements = ws.getPropertyGroupProperties(\"\" + rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\", \"okg:congreso\");\n\n for (FormElement fElement : fElements) {\n if (fElement.getName().equals(\"okp:congreso.identPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIdentificador);\n }\n if (fElement.getName().equals(\"okp:congreso.identArchivo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + arch.getArcIdentificador());\n }\n\n if (fElement.getName().equals(\"okp:congreso.tipoPDFCargar\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + subidaArchivos.get(i).getTipoPDF());\n }\n\n if (fElement.getName().equals(\"okp:congreso.estampaTiempo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + estampaTiempo);\n }\n if (fElement.getName().equals(\"okp:congreso.nombreAutor\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubNombreAutor);\n }\n if (fElement.getName().equals(\"okp:congreso.autoresSecundarios\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubAutoresSecundarios);\n }\n\n SimpleDateFormat formateador = new SimpleDateFormat(\"MM-yyyy\");\n String FechaPublicacion = formateador.format(this.pubFechaPublicacion);\n\n if (fElement.getName().equals(\"okp:congreso.fechaPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + FechaPublicacion);\n }\n if (fElement.getName().equals(\"okp:congreso.tipoPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubTipoPublicacion);\n }\n if (fElement.getName().equals(\"okp:congreso.tituloPonencia\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.congreso.getCongTituloPonencia());\n }\n if (fElement.getName().equals(\"okp:congreso.nombreEvento\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.congreso.getCongNombreEvento());\n }\n if (fElement.getName().equals(\"okp:congreso.tipoCongreso\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.congreso.getCongTipoCongreso());\n }\n if (fElement.getName().equals(\"okp:congreso.DOI\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubDoi);\n }\n if (fElement.getName().equals(\"okp:congreso.ISBN\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIsbn);\n }\n if (fElement.getName().equals(\"okp:congreso.ISSN\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIssn);\n }\n }\n ws.setPropertyGroupProperties(\"\" + rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\", \"okg:congreso\", fElements);\n\n }\n\n if (this.pubTipoPublicacion.equalsIgnoreCase(\"capitulo_libro\")) {\n\n InputStream is = new FileInputStream(\"\" + subidaArchivos.get(i).getRutaArchivo());\n com.openkm.sdk4j.bean.Document doc = new com.openkm.sdk4j.bean.Document();\n\n doc.setPath(rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\");\n ws.createDocument(doc, is);\n IOUtils.closeQuietly(is);\n List<FormElement> fElements = ws.getPropertyGroupProperties(\"\" + rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\", \"okg:capLibro\");\n\n for (FormElement fElement : fElements) {\n if (fElement.getName().equals(\"okp:capLibro.identPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIdentificador);\n }\n if (fElement.getName().equals(\"okp:capLibro.identArchivo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + arch.getArcIdentificador());\n }\n\n if (fElement.getName().equals(\"okp:capLibro.tipoPDFCargar\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + subidaArchivos.get(i).getTipoPDF());\n }\n if (fElement.getName().equals(\"okp:capLibro.estampaTiempo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + estampaTiempo);\n }\n if (fElement.getName().equals(\"okp:capLibro.nombreAutor\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubNombreAutor);\n }\n if (fElement.getName().equals(\"okp:capLibro.autoresSecundarios\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubAutoresSecundarios);\n }\n\n SimpleDateFormat formateador = new SimpleDateFormat(\"MM-yyyy\");\n String FechaPublicacion = formateador.format(this.pubFechaPublicacion);\n\n if (fElement.getName().equals(\"okp:capLibro.fechaPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + FechaPublicacion);\n }\n if (fElement.getName().equals(\"okp:capLibro.tipoPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubTipoPublicacion);\n }\n if (fElement.getName().equals(\"okp:capLibro.tituloLibro\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.capituloLibro.getCaplibTituloLibro());\n }\n if (fElement.getName().equals(\"okp:capLibro.tituloCapitulo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.capituloLibro.getCaplibTituloCapitulo());\n }\n if (fElement.getName().equals(\"okp:capLibro.DOI\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubDoi);\n }\n if (fElement.getName().equals(\"okp:capLibro.ISBN\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIsbn);\n }\n if (fElement.getName().equals(\"okp:capLibro.ISSN\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIssn);\n }\n }\n ws.setPropertyGroupProperties(\"\" + rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\", \"okg:capLibro\", fElements);\n\n }\n\n if (this.pubTipoPublicacion.equalsIgnoreCase(\"libro\")) {\n\n InputStream is = new FileInputStream(\"\" + subidaArchivos.get(i).getRutaArchivo());\n com.openkm.sdk4j.bean.Document doc = new com.openkm.sdk4j.bean.Document();\n\n doc.setPath(rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\");\n ws.createDocument(doc, is);\n IOUtils.closeQuietly(is);\n List<FormElement> fElements = ws.getPropertyGroupProperties(\"\" + rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\", \"okg:libro\");\n\n for (FormElement fElement : fElements) {\n if (fElement.getName().equals(\"okp:libro.identPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIdentificador);\n }\n if (fElement.getName().equals(\"okp:libro.identArchivo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + arch.getArcIdentificador());\n }\n\n if (fElement.getName().equals(\"okp:libro.tipoPDFCargar\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + subidaArchivos.get(i).getTipoPDF());\n }\n\n if (fElement.getName().equals(\"okp:libro.estampaTiempo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + estampaTiempo);\n }\n if (fElement.getName().equals(\"okp:libro.nombreAutor\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubNombreAutor);\n }\n if (fElement.getName().equals(\"okp:libro.autoresSecundarios\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubAutoresSecundarios);\n }\n\n SimpleDateFormat formateador = new SimpleDateFormat(\"MM-yyyy\");\n String FechaPublicacion = formateador.format(this.pubFechaPublicacion);\n\n if (fElement.getName().equals(\"okp:libro.fechaPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + FechaPublicacion);\n }\n if (fElement.getName().equals(\"okp:libro.tipoPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubTipoPublicacion);\n }\n if (fElement.getName().equals(\"okp:libro.tituloLibro\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.libro.getLibTituloLibro());\n }\n if (fElement.getName().equals(\"okp:libro.DOI\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubDoi);\n }\n if (fElement.getName().equals(\"okp:libro.ISBN\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIsbn);\n }\n if (fElement.getName().equals(\"okp:libro.ISSN\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIssn);\n }\n }\n ws.setPropertyGroupProperties(\"\" + rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\", \"okg:libro\", fElements);\n\n }\n\n File fichero = new File(subidaArchivos.get(i).getRutaArchivo());\n fichero.delete();\n\n }\n\n } catch (AccessDeniedException | AutomationException | DatabaseException | ExtensionException | FileSizeExceededException | ItemExistsException | LockException | NoSuchGroupException | NoSuchPropertyException | ParseException | PathNotFoundException | RepositoryException | UnknowException | UnsupportedMimeTypeException | UserQuotaExceededException | VirusDetectedException | WebserviceException | IOException e) {\n e.printStackTrace();\n }\n\n }", "public void zerarSistema() {\r\n\t\tarquivo.clear();\r\n\t\tcriaRepositorio();\r\n\t}", "public void guardarArchivo(String nombre, byte[] contenido) {\n\t\tFileOutputStream fos = null;\r\n\t\t// tenemos un objeto de tipo file, aqui no se crea el archivo\r\n\t\tFile carpetaPrincipal = new File(\"C:\\\\java\\\\wildfly-9.0.2.Final\\\\welcome-content\\\\documentos\\\\clientes\");\r\n\t\t// se crea la carpeta\r\n\t\tcarpetaPrincipal.mkdir();\r\n\t\tString nombreSinEspacios = \"\";\r\n\t\tFile miArchivo = new File(\"C:\\\\java\\\\wildfly-9.0.2.Final\\\\welcome-content\\\\documentos\\\\clientes\\\\\" + nombre);\r\n\t\ttry {\r\n\t\t\tmiArchivo.createNewFile();// se crea el archivo\r\n\t\t\tfos = new FileOutputStream(miArchivo);\r\n\t\t\tfos.write(contenido); // en memoria se escribe el archivo\r\n\t\t\tfos.flush();// escribir en el disco y tambien\r\n\t\t\tSystem.out.println(\"path donde se guardo \" + carpetaPrincipal.getAbsolutePath());\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tfos.close();// permite liberar el archivo\r\n\t\t\t} catch (IOException e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tString nmArchivo = \"<a href=\\\"http://localhost:8081/documentos/clientes/\" + nombre + \"\\\" target=\\\"_blank\\\">\"\r\n\t\t\t\t+ nombre + \"</a><br/>\";\r\n\t\tSystem.out.println(\"filename:\" + nmArchivo);\r\n\t}", "public long wsadd_user( UserWS user)\r\n\t\t{ \r\n\t\t\t\r\n\t\t\tlong id = 0; //id de la tabla user (único) \r\n\t\t\t\r\n\t\t \r\n\t\t User userH = new User(user.getLogin(),user.getPassword(),user.getRole(),user.getName(),user.getPhone(),user.getDepartment());\r\n\t\t \r\n\t\t //User cliente1 = new User(\"[email protected]\", \"gutie33\", 1, \"Luis\",\"677899876\", \"Informatica\"); \r\n\t\t \r\n\t\t try \r\n\t\t { \r\n\t\t iniciaOperacion(); \r\n\t\t \r\n\t\t id= (Long) sesion.createQuery(\"SELECT u.id_company FROM Company u WHERE u.company_name ='\"+user.getName_company()+\"'\").uniqueResult();\r\n\t\t Company x = (Company) sesion.load(Company.class, id);\r\n\t\t x.addUsuario(userH);\r\n\t\t \r\n\t\t\t userH.setCompany(x);\r\n\t\t \r\n\t\t //sesion.update(compx);\r\n\t\t \r\n\t\t \r\n\t\t //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t\t tx.commit(); \r\n\t\t }catch(HibernateException he) \r\n\t\t { \r\n\t\t manejaExcepcion(he);\r\n\t\t throw he; \r\n\t\t }finally \r\n\t\t { \r\n\t\t \t//Busqueda del id con qu elo ha introducido a la BBDD\r\n\t\t \tid= (Long) sesion.createQuery(\"SELECT u.id_user FROM User u WHERE u.mail ='\"+user.getLogin()+\"'\").uniqueResult();\r\n\t\t sesion.close(); \r\n\t\t } \r\n\t\t return id; \r\n\t\t}", "@WebService(name = \"AgendarReservasWS\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\")\npublic interface AgendarReservasWS {\n\n\n /**\n * \n * @param reserva\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws ApplicationException_Exception\n * @throws AccesoMultipleException_Exception\n * @throws BusinessException_Exception\n * @throws ValidacionException_Exception\n * @throws ErrorValidacionException_Exception\n * @throws WarningValidacionCommitException_Exception\n * @throws WarningValidacionException_Exception\n * @throws ErrorValidacionCommitException_Exception\n * @throws UserException_Exception\n * @throws ValidacionClaveUnicaException_Exception\n * @throws ValidacionPorCampoException_Exception\n */\n @WebMethod\n @WebResult(name = \"confirmarReservaResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"confirmarReserva\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConfirmarReserva\")\n @ResponseWrapper(localName = \"confirmarReservaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConfirmarReservaResponse\")\n public Reserva confirmarReserva(\n @WebParam(name = \"reserva\", targetNamespace = \"\")\n Reserva reserva)\n throws AccesoMultipleException_Exception, ApplicationException_Exception, BusinessException_Exception, ErrorValidacionCommitException_Exception, ErrorValidacionException_Exception, UserException_Exception, ValidacionClaveUnicaException_Exception, ValidacionException_Exception, ValidacionPorCampoException_Exception\n ;\n\n// /**\n// * \n// * @param nombre\n// * @return\n// * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Agenda\n// * @throws ApplicationException_Exception\n// * @throws BusinessException_Exception\n// */\n// @WebMethod\n// @WebResult(name = \"consultarAgendaPorNombreResult\", targetNamespace = \"\")\n// @RequestWrapper(localName = \"consultarAgendaPorNombre\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorNombre\")\n// @ResponseWrapper(localName = \"consultarAgendaPorNombreResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorNombreResponse\")\n// public Agenda consultarAgendaPorNombre(\n// @WebParam(name = \"nombre\", targetNamespace = \"\")\n// String nombre)\n// throws ApplicationException_Exception, BusinessException_Exception\n// ;\n\n /**\n * \n * @param nombre\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Agenda\n * @throws ApplicationException_Exception\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarAgendaPorIdResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarAgendaPorId\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorId\")\n @ResponseWrapper(localName = \"consultarAgendaPorIdResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorIdResponse\")\n public Agenda consultarAgendaPorId(\n @WebParam(name = \"id\", targetNamespace = \"\")\n Integer id)\n throws ApplicationException_Exception, BusinessException_Exception\n ;\n \n /**\n * \n * @param agenda\n * @return\n * returns java.util.List<uy.gub.imm.sae.common.factories.ws.client.agendar.Recurso>\n * @throws ApplicationException_Exception\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarRecursosResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarRecursos\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarRecursos\")\n @ResponseWrapper(localName = \"consultarRecursosResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarRecursosResponse\")\n public List<Recurso> consultarRecursos(\n @WebParam(name = \"agenda\", targetNamespace = \"\")\n Agenda agenda)\n throws ApplicationException_Exception, BusinessException_Exception\n ;\n\n /**\n * \n * @param datos\n * @param recurso\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws ApplicationException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarReservaPorDatosClaveResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarReservaPorDatosClave\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarReservaPorDatosClave\")\n @ResponseWrapper(localName = \"consultarReservaPorDatosClaveResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarReservaPorDatosClaveResponse\")\n public Reserva consultarReservaPorDatosClave(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"datos\", targetNamespace = \"\")\n HashMap<DatoASolicitar, DatoReserva> datos)\n throws ApplicationException_Exception\n ;\n\n /**\n * \n * @param reserva\n * @throws BusinessException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"desmarcarReserva\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.DesmarcarReserva\")\n @ResponseWrapper(localName = \"desmarcarReservaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.DesmarcarReservaResponse\")\n public void desmarcarReserva(\n @WebParam(name = \"reserva\", targetNamespace = \"\")\n Reserva reserva)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param disponibilidad\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws BusinessException_Exception\n * @throws UserException_Exception\n * @throws UserCommitException_Exception\n */\n @WebMethod\n @WebResult(name = \"marcarReservaDisponibleResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"marcarReservaDisponible\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.MarcarReservaDisponible\")\n @ResponseWrapper(localName = \"marcarReservaDisponibleResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.MarcarReservaDisponibleResponse\")\n public Reserva marcarReservaDisponible(\n @WebParam(name = \"disponibilidad\", targetNamespace = \"\")\n Disponibilidad disponibilidad)\n throws BusinessException_Exception, UserException_Exception\n ;\n\n /**\n * \n * @param ventanaDeTiempo\n * @param recurso\n * @return\n * returns java.util.List<java.lang.Integer>\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerCuposPorDiaResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerCuposPorDia\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerCuposPorDia\")\n @ResponseWrapper(localName = \"obtenerCuposPorDiaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerCuposPorDiaResponse\")\n public List<Integer> obtenerCuposPorDia(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"ventanaDeTiempo\", targetNamespace = \"\")\n VentanaDeTiempo ventanaDeTiempo,\n @WebParam(name = \"timezone\", targetNamespace = \"\")\n TimeZone timezone\n )\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param ventanaDeTiempo\n * @param recurso\n * @return\n * returns java.util.List<uy.gub.imm.sae.common.factories.ws.client.agendar.Disponibilidad>\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerDisponibilidadesResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerDisponibilidades\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerDisponibilidades\")\n @ResponseWrapper(localName = \"obtenerDisponibilidadesResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerDisponibilidadesResponse\")\n public List<Disponibilidad> obtenerDisponibilidades(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"ventanaDeTiempo\", targetNamespace = \"\")\n VentanaDeTiempo ventanaDeTiempo)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param recurso\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.VentanaDeTiempo\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerVentanaCalendarioInternetResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerVentanaCalendarioInternet\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerVentanaCalendarioInternet\")\n @ResponseWrapper(localName = \"obtenerVentanaCalendarioInternetResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerVentanaCalendarioInternetResponse\")\n public VentanaDeTiempo obtenerVentanaCalendarioInternet(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"pingResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ping\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.Ping\")\n @ResponseWrapper(localName = \"pingResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.PingResponse\")\n public String ping();\n\n}", "@Override\n\t@POST\n\t@Path(\"/wsAutorizarRetiros\")\n\t@Consumes(\"application/json\")\n\t@Produces(\"application/json\")\t\n\tpublic Mwf_servicios Post(Mwf_servicios msg) {\n\t\treturn null;\n\t}", "public void onTransferWS() {\n log.debug(\"Transf WS...\");\n targetWSList.clear();\n targetPROCList.clear();\n CommunicationBridge communicationBridge;\n String strTarget = communicationBridgeWs.getTarget().toString();\n strTarget = strTarget.substring(1, strTarget.length() - 1);\n if (!strTarget.isEmpty()) {\n String[] split = strTarget.split(\",\");\n for (String cb : split) {\n log.debug(\"CB : \" + cb);\n communicationBridge = communicationBridgeMap.get(cb.trim());\n if (communicationBridge != null)//Identificar el componente WS o Proc\n targetWSList.add(communicationBridge);\n\n }\n\n }\n log.debug(\"List target : \" + targetWSList.size());\n }", "public static void main (String []args){\n\t\tint i2=0;\n\t\tIntegraInformacionSalidaWMS integra = new IntegraInformacionSalidaWMS();\n\t\tprop = new Properties();\n\t\ttry{\n\t\t\t//System.out.println(\"Ruta Properties:\"+Constants.FILE_PROPERTIES);\n\t\t\tprop.load(new FileInputStream(\"/proceso_XML/\"+\"config.properties\"));\n\t\t\t//prop.load(new FileInputStream(\"proceso/\"+\"config.properties\"));\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tString mensaje = \"Mensaje 1 :\"+e.getMessage();\n\t\t\t//email.mail(mensaje);\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry{\n\t\t\tString ws=prop.getProperty(\"wsCaserita\");\n\t\t\tString dir1=prop.getProperty(\"dirInicial\");\n\t\t\tString dir2=prop.getProperty(\"dirFinal\");\n\t\t\twhile (i2==0){\n\t\t\t\t//String path = \"/home2/ftp/out/\";\n\t\t\t\t//String path = \"/RedPrairie/LCSWMSTST/LES/files/hostout/\";\n\t\t\t\tString path = dir1;\n\n\t\t\t\tString files;\n\n\t\t\t\tFile directorio = new File(path);\n\t\t\t\tFile [] ficheros = directorio.listFiles();\n\t\t\t\tString line;\n\t\t\t\t//log.info(ws);\n\t\t\t\tif (ficheros!=null){\n\t\t\t\t\tfor (int i = 0; i < ficheros.length; i++) {\n\t\t\t\t\t\t\n\t\t\t if (ficheros[i].isFile()) {\n\t\t\t \tfiles = ficheros[i].getName();\n\t\t\t if (files.endsWith(\".xml\") || files.endsWith(\".XML\")){\n\t\t\t \tlog.info(\"archivo:\"+path+ficheros[i].getName());\n\t\t\t \t\t\t\ttry{\n\t\t\t \t\t\t\t\t\n\t\t\t \t\t\t\t\tBufferedReader bf = new BufferedReader(new FileReader(path+ficheros[i].getName()));\n\t\t\t \t\t\t\t\tString linea=\"\";\n\t\t\t \t\t\t\t\tString xml=\"\";\n\t\t\t \t\t\t\t\tint lin=0;\n\t\t\t \t\t\t\t\tint band=1;\n\t\t\t \t\t\t\t\tString xml1=\"\";\n\t\t\t \t\t\t\t\tFecha fecha = new Fecha();\n\n\t\t\t \t\t\t\t\twhile((linea=bf.readLine())!=null){\n\t\t\t \t\t\t\t\t\txml=xml+linea;\n\t\t\t \t\t\t\t\t\tlin++;\n\t\t\t \t\t\t\t\t\tband=1;\n\t\t\t \t\t\t\t\t\tif (lin==5000){\n\n\t\t\t \t\t\t\t\t\t\txml1=xml1+xml;\n\t\t\t \t\t\t\t\t\t\txml=\"\";\n\t\t\t \t\t\t\t\t\t\tlin=0;\n\t\t\t \t\t\t\t\t\t\tband=0;\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//Concatena XML \n\t\t\t \t\t\t\t\tif (band==1){\n\t\t\t \t\t\t\t\t\txml1=xml1+xml;\n\t\t\t \t\t\t\t\t}\n\t\t\t \t\t\t\t\tFecha fecha2 = new Fecha();\n\t\t\t \t\t\t\t\t\n\t\t\t \t\t\t\t\tlog.info(xml1);\n\t\t\t \t\t\t\t\t//System.out.println(xml);\n\t\t\t \t\t\t\t\tbf.close();\n\t\t\t \t\t\t\t\tConfirmacionDTO confirmacion = new ConfirmacionDTO();\n\t\t\t \t\t\t\t\tconfirmacion.setXml(xml1);\n\t\t\t \t\t\t\t\tconfirmacion.setNameFile(ficheros[i].getName());\n\t\t\t \t\t\t\t\tGson gson = new Gson();\n\t\t\t \t\t\t\t\tString json = gson.toJson(confirmacion);\n\t\t\t \t\t\t\t\t//System.out.println(json);\n\t\t\t \t\t\t\t\ttry {\n\t\t\t \t\t\t\t\t\t \n\t\t\t \t\t\t\t\t\tURL url = new URL(ws.trim());\n\t\t\t \t\t\t\t\t\t\n\t\t\t \t\t\t\t\t\t//URL url = new URL(\"http://192.168.1.30:8080/ServiciosTransportistaWEB/servicioTransRest/wmsCaserita/post\");\n\n\t\t\t \t\t\t\t\t\t\n\t\t\t \t\t\t\t\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\t\t \t\t\t\t\t\tconn.setDoOutput(true);\n\t\t\t \t\t\t\t\t\tconn.setRequestMethod(\"POST\");\n\t\t\t \t\t\t\t\t\tOutputStream os = conn.getOutputStream();\n\t\t\t \t\t\t\t\t\tos.write(json.getBytes());\n\t\t\t \t\t\t\t\t\t//os.write(xml.getBytes());\n\t\t\t \t\t\t\t\t\tos.flush();\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 (conn.getResponseCode() != 200) {\n\t\t\t \t\t\t\t\t\t\tthrow new RuntimeException(\"Failed : HTTP error code : \"\n\t\t\t \t\t\t\t\t\t\t\t\t+ conn.getResponseCode());\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\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t \t\t\t\t\t\t\t(conn.getInputStream())));\n\t\t\t \t\t\t\t \n\t\t\t \t\t\t\t\t\tString output;\n\t\t\t \t\t\t\t\t\tlog.info(\"Output from Server .... \\n\");\n\t\t\t \t\t\t\t\t\t/*while ((output = br.readLine()) != null) {\n\t\t\t \t\t\t\t\t\t\tSystem.out.println(output);\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\tconn.disconnect();\n\t\t\t \t\t\t\t\t\txml=\"\";\n\t\t\t\t\t \t\t\t\txml1=\"\";\n\t\t\t\t\t \t\t\t\tlog.info(\"Hora Inicial:\"+fecha.getHHMMSS());\n\n\t\t\t\t \t\t\t\t\tlog.info(\"Hora Final:\"+fecha2.getHHMMSS());\n\t\t\t \t\t\t\t\t } catch (MalformedURLException e) {\n\t\t\t \t\t\t\t\t\t String mensaje = \"Mensaje 2: \"+e.getMessage();\n\t\t\t \t\t\t\t\t\t\t//email.mail(mensaje);\n\t\t\t \t\t\t\t\t\te.printStackTrace();\n\t\t\t \t\t\t\t \n\t\t\t \t\t\t\t\t } catch (IOException e) {\n\t\t\t \t\t\t\t\t\t String mensaje = \"Mensaje 3: \"+e.getMessage();\n\t\t\t \t\t\t\t\t\t\t//email.mail(mensaje);\n\t\t\t \t\t\t\t\t\te.printStackTrace();\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\t\n\n\t\t\t \t\t\t\t}catch(Exception e){\n\t\t\t \t\t\t\t\tString mensaje = \"Mensaje 4: \"+e.getMessage();\n\t\t\t \t\t\t\t\t//email.mail(mensaje);\n\t\t\t \t\t\t\t\te.printStackTrace();\n\t\t\t \t\t\t\t}\n\t\t\t \t\t\t\tintegra.moveFile(path+ficheros[i].getName(), ficheros[i].getName(),dir2);\n\t\t\t \t\t\t\t\n\t\t\t }\n\t\t\t }\n\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\t\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tString mensaje = \"Mensaje 5: \"+e.getMessage();\n\t\t\t//email.mail(mensaje);\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void pruebaEscritura() {\n\t\tFileWriter fichero = null;\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tfichero = new FileWriter(\"//172.16.1.141/Modelo_Raster/Varios/Monitoreo_Forestal/REDD/Metadatos/test.xml\");\n\t\t\tpw = new PrintWriter(fichero);\n\n\t\t\tfor (int i = 0; i < 10; i++)\n\t\t\t\tpw.println(\"Linea \" + i);\n\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\t// Nuevamente aprovechamos el finally para\n\t\t\t\t// asegurarnos que se cierra el fichero.\n\t\t\t\tif (null != fichero) fichero.close();\n\t\t\t}\n\t\t\tcatch (Exception e2) {\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void borrar() {\n\t\tmiPintor.borrar();\n\t\tlienzo.refrescar();\n\t\t\n\t}", "public void enviarArchivo() {\r\n \t try {\r\n \t\t\t// TODO Auto-generated method stub\r\n \t \t File archivo = new File( nombre );\r\n \t \r\n \t // Obtenemos el tamaño del archivo\r\n \t int tamañoArchivo = ( int )archivo.length();\r\n \t \r\n \t // Creamos el flujo de salida, este tipo de flujo nos permite \r\n \t // hacer la escritura de diferentes tipos de datos tales como\r\n \t // Strings, boolean, caracteres y la familia de enteros, etc.\r\n \t //dos = new DataOutputStream( socket.getOutputStream() );\r\n \t \r\n \t System.out.println( \"Enviando Archivo: \"+archivo.getName() );\r\n \t \r\n \t // Enviamos el nombre del archivo \r\n \t dos.writeUTF( archivo.getName() );\r\n \t \r\n \t // Enviamos el tamaño del archivo\r\n \t dos.writeInt( tamañoArchivo );\r\n \t \r\n \t // Creamos flujo de entrada para realizar la lectura del archivo en bytes\r\n \t fis = new FileInputStream( nombre );\r\n \t bis = new BufferedInputStream( fis );\r\n \t \r\n \t // Creamos el flujo de salida para enviar los datos del archivo en bytes\r\n \t bos = new BufferedOutputStream( socket.getOutputStream() );\r\n \t \r\n \t // Creamos un array de tipo byte con el tamaño del archivo \r\n \t byte[] buffer = new byte[ tamañoArchivo ];\r\n \t \r\n \t // Leemos el archivo y lo introducimos en el array de bytes \r\n \t bis.read( buffer ); \r\n \t \r\n \t // Realizamos el envio de los bytes que conforman el archivo\r\n \t for( int i = 0; i < buffer.length; i++ )\r\n \t {\r\n \t bos.write( buffer[ i ] ); \r\n \t } \r\n \t \r\n \t System.out.println( \"Archivo Enviado: \"+archivo.getName() );\r\n \t // Cerramos socket y flujos\r\n \t bis.close();\r\n \t bos.close();\r\n \t socket.close(); \r\n \t }\r\n \t catch( Exception e )\r\n \t {\r\n \t System.out.println( e.toString() );\r\n \t }\r\n\t \t\r\n }", "static void CrearArchivo(Vector productos, Vector clientes){ \r\n \ttry{ //iniciamos el try y si no funciona se hace el catch\r\n BufferedWriter bw = new BufferedWriter(\r\n \t\t//Iniciamos el archivo adentro de bw que es un objeto.\r\n new FileWriter(\"reporte.txt\") );\r\n //creamos un producto auxiliar\r\n Producto p; \r\n //mientas existan productos se escribe lo siguiente en el archivo\r\n for(int x = 0; x < productos.size(); x++){ \r\n \t//impresiones de nombre,codigo,stock,precio en el archivo\r\n \tp = (Producto) productos.elementAt(x);\r\n bw.write(\"Nombre del producto: \" + p.getNombre() + \"\\n\"); \r\n bw.write(\"Codigo del producto: \" + p.getCodigo() + \"\\n\");\r\n bw.write(\"Tamaño del stock: \" + p.getStock() + \"\\n\");\r\n bw.write(\"Precio: \" + p.getPrecio() + \"\\n\");\r\n \r\n \r\n }\r\n //creamos un cliente auxiliar\r\n Cliente c;\r\n //mientas existan clientes se escribe lo siguiente en el archivo\r\n for(int x = 0; x < clientes.size(); x++){ \r\n \tc = (Cliente) clientes.elementAt(x);\r\n \t//impresiones de nombre,telefono,cantidad y total en el archivo\r\n bw.write(\"Nombre del cliente: \" + c.getname() + \"\\n\");\r\n bw.write(\"Numero de telefono: \" + c.getTelefono() + \"\\n\"); \r\n bw.write(\"Cantidad de compra: \" + c.getCantidad() + \"\\n\");\r\n bw.write(\"Total de compra: \" + c.getTotal() + \"\\n\");\r\n \r\n \r\n }\r\n // Cerrar archivo al finalizar\r\n bw.close();\r\n System.out.println(\"¡Archivo creado con éxito!\");\r\n //si no funciona imprime el error\r\n } catch(Exception ex){ \r\n System.out.println(ex);\r\n }\r\n }", "public void guardar(Usuario u) throws Exception{\r\n //paso1 generar el archivo a guardarse\r\n File f=new File(\"archivaldo.raton\");\r\n if(f.exists()) usuarios= buscarTodos();\r\n //indicar que se va a guardar\r\n FileOutputStream fos=new FileOutputStream(f);\r\n \r\n //generar el objeto que nos va a ayudar a guardar el arraylist de usuarios\r\n ObjectOutputStream oos=new ObjectOutputStream(fos);\r\n //ahora si a guardar el objeto\r\n usuarios.add(u);\r\n oos.writeObject(usuarios);\r\n }", "@Override\n\tpublic String bajarFichero(String URLdiscoCliente, int idFichero, int idSesionCliente) throws RemoteException, MalformedURLException, NotBoundException {\n\t\tdatos = (ServicioDatosInterface) Naming.lookup(\"rmi://\" + direccion + \":\" + puerto + \"/almacen\");\n\t\t\n\t\t//se deberia comprobar si el fichero realmente es el del cliente\n\t\t\n\t\tMetadatos m = datos.descargarFichero(idFichero,idSesionCliente);\n\t\tint idCliente = datos.sesion2id(idSesionCliente);\n\t\tint idSesionRepo = datos.dimeRepositorio(idCliente);\n\t\tif (m != null){\n\t\t\t\n\t\t\tInterfaz.imprime(\"Se ha notificado que el fichero \" + m.getNombreFichero() + \" va a ser descargado\");\n\t\t\tString URLservicioSrOperador = \"rmi://\" + direccionServicioSrOperador + \":\" + puertoServicioSrOperador + \"/sroperador/\" + idSesionRepo;\n\t\t\n\t\t\t//ahora buscamos el Servicio SrOperador y le pasamos la URL del DiscoCliente y el id de cliente que es el nombre de la carpeta\n\t\t\tServicioSrOperadorInterface servicioSrOperador =(ServicioSrOperadorInterface)Naming.lookup(URLservicioSrOperador);\n\t\t\t//el tercer parametro es la carpeta donde esta el fichero real, en caso de compartido es la carpeta dequien comparte evidentemente.\n\t\t\tservicioSrOperador.bajarFichero(URLdiscoCliente,m.getNombreFichero(),m.getIdCliente());\n\t\t\treturn m.getNombreFichero();\n\t\t}else return null;\t\t\n\t}", "public void enviarRequisicaoSairSala() {\n servidor.removerJogador(nomeJogador);\n }", "@WebService(name = \"resaService\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ResaService {\n\n\n /**\n * \n */\n @WebMethod\n @RequestWrapper(localName = \"verifEndResa\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.VerifEndResa\")\n @ResponseWrapper(localName = \"verifEndResaResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.VerifEndResaResponse\")\n public void verifEndResa();\n\n /**\n * \n * @param resaId\n * @throws NotFoundException_Exception\n * @throws Exception_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"mailResa\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.MailResa\")\n @ResponseWrapper(localName = \"mailResaResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.MailResaResponse\")\n public void mailResa(\n @WebParam(name = \"resaId\", targetNamespace = \"\")\n Integer resaId)\n throws Exception_Exception, FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param resaId\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteReservation\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.DeleteReservation\")\n @ResponseWrapper(localName = \"deleteReservationResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.DeleteReservationResponse\")\n public void deleteReservation(\n @WebParam(name = \"resaId\", targetNamespace = \"\")\n Integer resaId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param livreId\n * @param demandeurId\n * @return\n * returns fr.mb.biblio.webappConsumer.services.reservation.Reservation\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"newReservation\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.NewReservation\")\n @ResponseWrapper(localName = \"newReservationResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.NewReservationResponse\")\n public Reservation newReservation(\n @WebParam(name = \"livreId\", targetNamespace = \"\")\n Integer livreId,\n @WebParam(name = \"demandeurId\", targetNamespace = \"\")\n Integer demandeurId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param resaId\n * @return\n * returns fr.mb.biblio.webappConsumer.services.reservation.Reservation\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResaById\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaById\")\n @ResponseWrapper(localName = \"getResaByIdResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByIdResponse\")\n public Reservation getResaById(\n @WebParam(name = \"resaId\", targetNamespace = \"\")\n Integer resaId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param demandeurId\n * @return\n * returns java.util.List<fr.mb.biblio.webappConsumer.services.reservation.ReservationWS>\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResaByUserId\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByUserId\")\n @ResponseWrapper(localName = \"getResaByUserIdResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByUserIdResponse\")\n public List<ReservationWS> getResaByUserId(\n @WebParam(name = \"demandeurId\", targetNamespace = \"\")\n Integer demandeurId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param livreId\n * @return\n * returns java.util.List<fr.mb.biblio.webappConsumer.services.reservation.Reservation>\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResaByLivreId\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByLivreId\")\n @ResponseWrapper(localName = \"getResaByLivreIdResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByLivreIdResponse\")\n public List<Reservation> getResaByLivreId(\n @WebParam(name = \"livreId\", targetNamespace = \"\")\n Integer livreId)\n throws FunctionalException_Exception\n ;\n\n /**\n * \n * @param resaId\n * @return\n * returns fr.mb.biblio.webappConsumer.services.reservation.Reservation\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"startResa\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.StartResa\")\n @ResponseWrapper(localName = \"startResaResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.StartResaResponse\")\n public Reservation startResa(\n @WebParam(name = \"resaId\", targetNamespace = \"\")\n Integer resaId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n}", "public void encerrarSistema() {\r\n\t\tthis.salvarXML();\r\n\t}", "public void recevoirDossier() {\n try {\n fileInfo = (FileInfo) ois.readObject(); //lire les informations du fichier\n //chemin du fichier en sortie\n String outputFile = fileInfo.getDestinationDirectory() + fileInfo.getFilename();\n dstFile = new File(outputFile);\n if (!new File(fileInfo.getDestinationDirectory()).exists()) { //si le fichier n'existe pas\n new File(fileInfo.getDestinationDirectory()).mkdirs(); //creation du fichier\n fos = new FileOutputStream(dstFile);\n fos.write(fileInfo.getFileData()); //ecrire les données dans le fichier\n fos.flush();\n fileInfo.setFileData(null);\n System.gc();\n fos.close();\n dstFile.setLastModified(fileInfo.getModifier());\n\n } else if (dstFile.lastModified() < fileInfo.getModifier()) { //si le fichier existe et que c'est une nouvelle version alors\n fos = new FileOutputStream(dstFile);\n fos.write(fileInfo.getFileData());\n fos.flush();\n fileInfo.setFileData(null);\n fos.close();\n dstFile.setLastModified(fileInfo.getModifier());\n }\n } catch (IOException | ClassNotFoundException ex) {\n Logger.getLogger(RecevoirFichier.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void upload() throws ServicioException {\n if (justificacionHelper.getArchivoCargado() != null) {\n if (justificacionHelper.getArchivoCargado().getContentType().equals(\"application/pdf\")) {\n ParametroGlobal buscarParametroGlobalPorNemonico =\n administracionServicio.buscarParametroGlobalPorNemonico(\n ParametroGlobalEnum.TAMANIO_MAXIMO_PDF.getCodigo());\n if (justificacionHelper.getArchivoCargado().getSize()\n > buscarParametroGlobalPorNemonico.getValorNumerico().longValue()) {\n mostrarMensajeEnPantalla(\"El tamaño del archivo supera los \"\n + (buscarParametroGlobalPorNemonico.getValorNumerico().longValue() / 1024) + \" MB\",\n FacesMessage.SEVERITY_WARN);\n justificacionHelper.setArchivoRequerido(Boolean.TRUE);\n justificacionHelper.setArchivoCargado(null);\n } else {\n mostrarMensajeEnPantalla(\"ec.gob.mrl.smp.justificacionReglas.archivoCargadoCorrectamente\",\n FacesMessage.SEVERITY_INFO);\n justificacionHelper.setArchivoRequerido(Boolean.FALSE);\n System.out.println(\"Archivo Cargado \" + justificacionHelper.getArchivoCargado().getFileName());\n }\n } else {\n mostrarMensajeEnPantalla(\"ec.gob.mrl.smp.justificacionReglas.archivoCargadoNoesPDF\",\n FacesMessage.SEVERITY_ERROR);\n justificacionHelper.setArchivoRequerido(Boolean.TRUE);\n justificacionHelper.setArchivoCargado(null);\n }\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 }", "private void borraArchivos() {\n boolean isBorrado;\n for (BeanCargaOmisos dato : this.listadoCargaOmisos) {\n String dirBitacora = dato.getRutaEnBitacora();\n String dirRepositorio = dato.getRutaEnRepositorio();\n if (dirBitacora != null && !dirBitacora.isEmpty()) {\n File archivoBitacora = new File(dirBitacora);\n if (archivoBitacora.exists()) {\n isBorrado = archivoBitacora.delete();\n getLogger().debug(isBorrado);\n }\n }\n if (dirRepositorio != null && !dirRepositorio.isEmpty()) {\n File archivoRepositorio = new File(dirRepositorio);\n if (archivoRepositorio.exists()) {\n isBorrado = archivoRepositorio.delete();\n getLogger().debug(isBorrado);\n }\n }\n }\n }", "public ArchivoClientes(){\n\t\t\n\t\tif(archivo.exists()){\n\t\t\t//System.out.println(\"El archivo ya existe\");\n\t\t}else{\n\t\t\ttry {\n\t\t\t\t//archivo.mkdir();\n\t\t\t\tarchivo.createNewFile();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Creación del archivo clientes: \" +e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "public static void guardar()\n {\n File fileUsuario,fileDocente;\n ObjectOutputStream entradaUsuario,entradaDocente;\n \n fileDocente = new File(\"docentes\"); \n fileUsuario = new File(\"usuarios\");\n \n try \n {\n \n entradaDocente = new ObjectOutputStream(new FileOutputStream(fileDocente));\n entradaUsuario = new ObjectOutputStream(new FileOutputStream(fileUsuario));\n \n entradaDocente.writeObject(docentes);\n entradaUsuario.writeObject(usuarios);\n \n entradaDocente.close();\n entradaUsuario.close();\n } \n catch (Exception e) \n {\n e.printStackTrace();\n }\n }", "@WebService(name = \"CajaUnificadaWeb\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CajaUnificadaWeb {\n\n\n /**\n * \n * @param profileCode\n * @param stationName\n * @param userCode\n * @return\n * returns cl.imperial.cajaunificada.ws.StartupResult\n * @throws CajaUnificadaWebException\n */\n @WebMethod\n @WebResult(name = \"startupResult\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n @RequestWrapper(localName = \"startup\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.Startup\")\n @ResponseWrapper(localName = \"startupResponse\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.StartupResponse\")\n @Action(input = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/startupRequest\", output = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/startupResponse\", fault = {\n @FaultAction(className = CajaUnificadaWebException.class, value = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/startup/Fault/CajaUnificadaWebException\")\n })\n public StartupResult startup(\n @WebParam(name = \"userCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String userCode,\n @WebParam(name = \"profileCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n BigDecimal profileCode,\n @WebParam(name = \"stationName\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String stationName)\n throws CajaUnificadaWebException\n ;\n\n /**\n * \n * @param profileCode\n * @param stationName\n * @param nroInterno\n * @param codEmp\n * @param userCode\n * @return\n * returns cl.imperial.cajaunificada.ws.ValeGetResult\n * @throws CajaUnificadaWebException\n */\n @WebMethod\n @WebResult(name = \"valeGetResult\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n @RequestWrapper(localName = \"valeGet\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.ValeGet\")\n @ResponseWrapper(localName = \"valeGetResponse\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.ValeGetResponse\")\n @Action(input = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/valeGetRequest\", output = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/valeGetResponse\", fault = {\n @FaultAction(className = CajaUnificadaWebException.class, value = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/valeGet/Fault/CajaUnificadaWebException\")\n })\n public ValeGetResult valeGet(\n @WebParam(name = \"userCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String userCode,\n @WebParam(name = \"profileCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n BigDecimal profileCode,\n @WebParam(name = \"stationName\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String stationName,\n @WebParam(name = \"nroInterno\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n int nroInterno,\n @WebParam(name = \"codEmp\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String codEmp)\n throws CajaUnificadaWebException\n ;\n\n /**\n * \n * @param nroInterno\n * @return\n * returns cl.imperial.cajaunificada.ws.RegistraPagoResult\n * @throws CajaUnificadaWebException\n */\n @WebMethod\n @WebResult(name = \"registraPagoResult\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n @RequestWrapper(localName = \"registraPago\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.RegistraPago\")\n @ResponseWrapper(localName = \"registraPagoResponse\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.RegistraPagoResponse\")\n @Action(input = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/registraPagoRequest\", output = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/registraPagoResponse\", fault = {\n @FaultAction(className = CajaUnificadaWebException.class, value = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/registraPago/Fault/CajaUnificadaWebException\")\n })\n public RegistraPagoResult registraPago(\n @WebParam(name = \"nroInterno\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n int nroInterno)\n throws CajaUnificadaWebException\n ;\n\n}", "public void guardarArchivoXLS(HSSFWorkbook libro)\r\n {\r\n JFileChooser fileChooserAlumnos = new JFileChooser();\r\n \r\n //filtro para ver solo archivos .xls\r\n fileChooserAlumnos.addChoosableFileFilter(new FileNameExtensionFilter(\"todos los archivos *.XLS\", \"xls\",\"XLS\"));\r\n int seleccion = fileChooserAlumnos.showSaveDialog(null);\r\n \r\n try{\r\n \t//comprueba si ha presionado el boton de aceptar\r\n if (seleccion == JFileChooser.APPROVE_OPTION){\r\n File archivoJFileChooser = fileChooserAlumnos.getSelectedFile();\r\n FileOutputStream archivo = new FileOutputStream(archivoJFileChooser+\".xls\");\r\n libro.write(archivo); \r\n JOptionPane.showMessageDialog(null,\"Se guardó correctamente el archivo\", \"Guardado exitoso!\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n }catch (Exception e){\r\n JOptionPane.showMessageDialog(null,\"Error al guardar el archivo!\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "private void ConsumirWS() {\n String url = \"https://pixabay.com/api/?key=12544769-ce772d6f6df4078b74b23c3cf&q=yellow+flowers&image_type=photo\";\n //Instanciar el objeto request para que sea agregado\n // a la cola de requests.\n JsonObjectRequest request = new JsonObjectRequest(\n Request.Method.GET, url, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n JSONArray jsonArray =\n response.getJSONArray(\"hits\");\n for(int i = 0; i < jsonArray.length(); i++){\n JSONObject objImagen\n = jsonArray.getJSONObject(i);\n vDatos.add(new Animales(objImagen.getString(\"user\"),\n objImagen.getString(\"webformatURL\")));\n\n }\n adapter.agregarElemento(vDatos);\n\n }catch (JSONException ex){\n ex.printStackTrace();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n\n }\n }\n );\n mQueue.add(request);\n }", "public void uploadFile() throws IOException {\n\n\t\t// Provera da li ima jos mesta za upload (samo za standard korisnike -\n\t\t// ogranicenje je 4 fajla)\n\t\tfor (User u : Server.dataBase)\n\t\t\tif (username.equals(u.getUsername()))\n\t\t\t\tif (u.getTipKorisnika().toString().equals(\"STANDARD\"))\n\t\t\t\t\tif (u.getBrojFajlova() > 3)\n\t\t\t\t\t\tpom = \"***ogranicenje\";\n\n\t\tif (pom.equals(\"***ogranicenje\")) {\n\t\t\tclientOutput.println(\"Dostignut je maksimalan broj fajlova!\");\n\t\t\treturn;\n\t\t} else {\n\n\t\t\tclientOutput.println(\n\t\t\t\t\t\">>> Unesite relativnu putanju do fajla koji zelite da upload-ujete, zajedno sa imenom fajla: \");\n\t\t\tuserInput = clientInput.readLine();\n\n\t\t\tclientOutput.println(\n\t\t\t\t\t\">>> Unesite relativnu putanju do mesta gde zelite da upload-ujete fajl, zajedno sa imenom fajla: \");\n\t\t\tuserInput = clientInput.readLine();\n\n\t\t\tuserInput = \"drive/\" + username + \"/\" + userInput;\n\t\t\tdestinacija = new File(userInput);\n\t\t\tdestinacija.createNewFile();\n\n\t\t\tif (destinacija.getName().endsWith(\".txt\")) {\n\t\t\t\tPrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(userInput)));\n\t\t\t\tpom = null;\n\n\t\t\t\tdo {\n\t\t\t\t\tuserInput = clientInput.readLine();\n\t\t\t\t\tif (userInput.equals(\"***kraj\"))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tif (pom != null)\n\t\t\t\t\t\tpw.print(\"\\n\");\n\t\t\t\t\tpw.print(userInput);\n\t\t\t\t\tpom = \"upis\";\n\t\t\t\t\tclientOutput.println(userInput);\n\t\t\t\t} while (true);\n\t\t\t\tpw.close();\n\t\t\t\tfor (User u : Server.dataBase)\n\t\t\t\t\tif (username.equals(u.getUsername()))\n\t\t\t\t\t\tu.setBrojFajlova(u.getBrojFajlova() + 1);\n\t\t\t} else {\n\t\t\t\tuserInput = clientInput.readLine();\n\t\t\t\ttry {\n\t\t\t\t\tFileOutputStream fOut = new FileOutputStream(destinacija);\n\t\t\t\t\tbyte[] b = Base64.getDecoder().decode(userInput);\n\t\t\t\t\tfOut.write(b);\n\t\t\t\t\tfOut.close();\n\t\t\t\t\tfor (User u : Server.dataBase)\n\t\t\t\t\t\tif (username.equals(u.getUsername()))\n\t\t\t\t\t\t\tu.setBrojFajlova(u.getBrojFajlova() + 1);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@SuppressWarnings({ \"deprecation\", \"static-access\" })\n\tpublic void crearExcel(String nombreFichero,java.sql.Connection connection) throws SQLException {\n \tint contador=0;\n \t\n // Se crea el libro\n HSSFWorkbook libro = new HSSFWorkbook();\n\n // Se crea una hoja dentro del libro\n HSSFSheet hoja = libro.createSheet();\n\n // Se crea una fila dentro de la hoja\n HSSFRow fila = hoja.createRow(contador);\n\n // Se crea una celda dentro de la fila\n HSSFCell celda = fila.createCell((short) 0);\n // Se crea una celda dentro de la fila\n HSSFCell celda2 = fila.createCell((short) 1 );\n // Se crea una celda dentro de la fila\n HSSFCell celda3 = fila.createCell((short) 2 );\n // Se crea una celda dentro de la fila\n HSSFCell celda4 = fila.createCell((short) 3 );\n \n // Se crea el contenido de la celda y se mete en ella.\n HSSFRichTextString texto = new HSSFRichTextString(\"Área\");\n celda.setCellValue(texto);\n\n HSSFRichTextString texto2 = new HSSFRichTextString(\"Dimensión\");\n celda2.setCellValue(texto2);\n \n HSSFRichTextString texto3 = new HSSFRichTextString(\"Lema\");\n celda3.setCellValue(texto3);\n \n HSSFRichTextString texto4 = new HSSFRichTextString(\"Rasgos de Contenido\");\n celda4.setCellValue(texto4);\n \n ArrayList<idPalabra> misAreasAux=new ArrayList<idPalabra>();\n\t\t String areaAct=\"\";\n\t\t area misAreas=new area();\n\t\t misAreasAux=misAreas.devolverAreas(connection);\n\t\t Integer lemAct;\n\t\t \n //SE RECORREN TODAS LAS AREAS\n\t\t for(int i=0; i<misAreasAux.size();i++){\n\t\t\t\n\t\t\t //SE OBTIENE EL AREA ACTUAL\n\t\t\t areaAct=misAreasAux.get(i).getPalabra();\t\n\t\t\t ArrayList<idPalabra> misCategorias= new ArrayList<idPalabra>();\n\t\t\t categoria micategoria = new categoria();\n\t\t\t misCategorias=micategoria.consultarCategoriasConArea(areaAct, connection);\n\t\t\t //Si es 0 es que no hay categorias\n\t\t\t if(misCategorias.size()==0){\n\t\t\t\t contador=contador+1;\n\t\t\t\t fila = hoja.createRow(contador);\n\t\t\t\t celda = fila.createCell((short) 0);\n\t\t\t\t celda.setCellValue(areaAct);\n\t\t\t\t\n\t\t\t } \n\t\t\t else{\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t//esto es que si tengo categorias\n\t\t\t\tfor(int j=0; j<misCategorias.size();j++){\n\t\t\t\t\t\n\t\t\t\t\t String catAct=misCategorias.get(j).getPalabra();\t\n\t\t\t\t\t//para cada categoria tengo que ver si tiene lemas\n\t\t\t\t\tArrayList<Integer> lemasAct=new ArrayList<Integer>();\n\t\t\t\t\tcategoriasLemas misLemas=new categoriasLemas();\n\t\t\t\t\tlemasAct=misLemas.consultarLemasdeunaCategoria(misCategorias.get(j).getId(),connection);\n\t\t\t\t\t//Si es 0 es que no tengo lemas asociados a dicha categoria\n\t\t\t\t\tif(lemasAct.size()==0){\n\t\t\t\t\t\t contador=contador+1;\n\t\t\t\t\t\t fila = hoja.createRow(contador);\n\t\t\t\t\t\t celda = fila.createCell((short) 0);\n\t\t\t\t\t\t celda.setCellValue(areaAct);\n\t\t\t\t\t\t celda = fila.createCell((short) 1);\n\t\t\t\t\t\t celda.setCellValue(catAct);\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t//SI TIENE VARIOS LEMAS ASOCIADOS\n\t\t\t\t\t\tfor(int x=0; x<lemasAct.size();x++){\n\t\t\t\t\t\t\tlema miLema =new lema();\n\t\t\t\t\t\t\t lemAct=lemasAct.get(x);\t\n\t\t\t\t\t\t\tlemaRasgo misLemaRasgo= new lemaRasgo();\n\t\t\t\t\t\t\tArrayList<Integer> rasgos=new ArrayList<Integer>();\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\trasgos= misLemaRasgo.devolverRasgosDeLema(lemasAct.get(x),connection);\n\t\t\t\t\t\t\t//NO TIENE RASGOS\n\t\t\t\t\t\t\tif(rasgos.size()==0){\n\t\t\t\t\t\t\t\tcontador=contador+1;\n\t\t\t\t\t\t\t\t fila = hoja.createRow(contador);\n\t\t\t\t\t\t\t\t celda = fila.createCell((short) 0);\n\t\t\t\t\t\t\t\t celda.setCellValue(areaAct);\n\t\t\t\t\t\t\t\t celda = fila.createCell((short) 1);\n\t\t\t\t\t\t\t\t celda.setCellValue(catAct);\n\t\t\t\t\t\t\t\t celda = fila.createCell((short) 2);\n\t\t\t\t\t\t\t\t celda.setCellValue(miLema.consultarUnLemaPorId(lemAct,connection));\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}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//SI TIENE RASGOS\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tcontador++;\n\t\t\t\t\t\t\t\t fila = hoja.createRow(contador);\n\t\t\t\t\t\t\t\tcelda = fila.createCell((short) 0);\n\t\t\t\t\t\t\t\t celda.setCellValue(areaAct);\n\t\t\t\t\t\t\t\t celda = fila.createCell((short) 1);\n\t\t\t\t\t\t\t\t celda.setCellValue(catAct);\n\t\t\t\t\t\t\t\t celda = fila.createCell((short) 2);\n\t\t\t\t\t\t\t\t celda.setCellValue(miLema.consultarUnLemaPorId(lemAct,connection));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t int cont=3;\n\t\t\t\t\t\t\t\tfor(int k=0; k<rasgos.size();k++){\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\trasgocontenido mirasgo =new rasgocontenido();\n\t\t\t\t\t\t\t\t\tcelda = fila.createCell((short) cont);\n\t\t\t\t\t\t\t\t\tcelda.setCellValue(mirasgo.consultarRasgoPorId(rasgos.get(k),connection));\n\t\t\t\t\t\t\t\t\tcont++;\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\t}\n\t\t\t\t\t\t\t\t\n\t\n\t\t\t\t\t\t\t}//if rasgos\n\t\t\t\t\t\t}//if lemas\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t}//if categorias\n\t\t\t\t\t\t\n\n \n\t\t\t }\n\t\t }\n \n // Se salva el libro.\n try {\n FileOutputStream elFichero = new FileOutputStream(nombreFichero);\n libro.write(elFichero);\n elFichero.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void deleteNetWS() {\r\n/* 142 */ this._has_netWS = false;\r\n/* */ }", "private void cargarWebService() {\n String iddoc = \"20181\";\n String url_lh = Globals.url;\n\n //String url = \"http://192.168.0.13/proyecto_dconfo/wsJSONConsultarListaCursosDocente.php?iddocente=\" + txtiddoc.getText().toString();\n\n // String url = \"http://\"+url_lh+\"/proyecto_dconfo/wsJSONConsultarListaCursosDocente.php?iddocente=\" + txtiddoc.getText().toString();\n String url = \"http://\" + url_lh + \"/proyecto_dconfo_v1/wsJSON1ConsultarListaImagenes.php\";\n // http://localhost/proyecto_dconfo/\n///wsJSONConsultarEstudiante.php?documento=\" + edt_codigo.getText().toString();\n url = url.replace(\" \", \"%20\");\n //hace el llamado a la url\n jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, this, this);\n\n final int MY_DEFAULT_TIMEOUT = 15000;\n jsonObjectRequest.setRetryPolicy(new DefaultRetryPolicy(\n MY_DEFAULT_TIMEOUT,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n\n // request.add(jsonObjectRequest);\n VolleySingleton.getIntanciaVolley(getApplicationContext()).addToRequestQueue(jsonObjectRequest);//p21\n //Toast.makeText(getApplicationContext(), \"web service 1111\", Toast.LENGTH_LONG).show();\n }", "public void bajaUsuario(int id) throws IOException {\n//\t\tUsuario[] vu = ReturnArr.listadoUsuarios();\n\n\t\tMiObjectInputStream oi = null;\n\t\tboolean b = false, libPres = false;\n\n\t\ttry { // comprueba que el archivo FUSUARIOS existe antes de leerlo\n\t\t\toi = new MiObjectInputStream(new FileInputStream(Const.FUSUARIOS));\n\t\t\tb = true;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Archivo no encontrado - bajaUsuario - \" + e.toString());\n\t\t}\n\n\t\tif (b) { // si el archivo existe, muestra en pantalla el listado de usuarios\n\t\t\tFileOutputStream fo = new FileOutputStream(Const.FUSUARIOSAUX, true);\n\t\t\tMiObjectOutputStream oo = new MiObjectOutputStream(fo);\n\n\t\t\ttry {\n\t\t\t\tint i = 0;\n\t\t\t\twhile (b) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tUsuario u = (Usuario) oi.readObject();\n\t\t\t\t\t\tif (i == id) {\n\t\t\t\t\t\t\tfor (int j = 0; j < Const.MAXLIBROSPRES; j++) {\n\t\t\t\t\t\t\t\tif (u.getLibrosPrestados()[j] != null) {\n\t\t\t\t\t\t\t\t\tlibPres = true;\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\n\t\t\t\t\t\t// cambiara el Usuario por un null cuando el id sea el mismo y no tenga libros\n\t\t\t\t\t\t// en prestamo.\n\t\t\t\t\t\tif (i == id && !libPres) {\n\t\t\t\t\t\t\tu = null;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Guardo los usuarios en el archivo\n\t\t\t\t\t\too.writeObject(u);\n\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\t\tb = false;\n\t\t\t\t\t}\n\t\t\t\t} // finaliza el while para la lectura\n\t\t\t\too.close();\n\t\t\t\toi.close();\n\t\t\t} catch (Exception e) { // encaso de encontrar el archivos pero no puede leerlo\n\t\t\t\tSystem.out.println(\"Problemas al leer el archivo - bajaUsuario - \" + e.toString());\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Elimina el archivo antiguo de usuarios y en su lugar se renombra el auxiliar\n\t\t\t * con el de usuarios eliminado\n\t\t\t */\n\t\t\tBackup.reemplazoFich(Const.FUSUARIOS, Const.FUSUARIOSAUX);\n\t\t}\n\t}", "public static void main(String[] args) {\n webSocket(\"/forte\", WebSocketHandler.class);\n\n //indicar ruta de archivos publicos.\n staticFileLocation(\"/public\");\n //agregar pantalla de debug. Solo en desarrollo.\n enableDebugScreen();\n\n //freemarker template engine\n Configuration configuration = new Configuration();\n configuration.setClassForTemplateLoading(Main.class, \"/templates\");\n\n //aplicar filtros\n Filtros.iniciarFiltros();\n\n //iniciar db\n DBService.test();\n\n //crear usuario por default si no se ha creado ya\n GestorUsuarios.getInstance().editar(new Usuario(\"admin\",\"admin\",\"admin\",true,true));\n\n //Rutas\n get(\"/chat\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"chat\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n data.put(\"active_user\",Sesion.getUsuarioActivo(request));\n\n return new ModelAndView(data,\"chat_page.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n get(\"/\", (request, response) -> {\n response.redirect(\"/page/1\");\n\n return \"\";\n });\n\n get(\"/page/:pageNumber\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"index\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n try {\n int page = Integer.parseInt(request.params(\"pageNumber\"));\n\n page = Math.max(1,page);\n\n data.put(\"articulos\",GestorArticulos.getInstance().find_page(page));\n\n if(GestorArticulos.getInstance().hasMoreArticles()) {\n data.put(\"proxima_pagina\", \"\" + (page + 1));\n }\n if(page > 1) {\n data.put(\"anterior_pagina\",\"\" + (page - 1));\n }\n\n\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n\n return new ModelAndView(data,\"index.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n get(\"/tag/:etiqueta/\",(request, response) -> {\n String tag = request.params(\"etiqueta\");\n response.redirect(\"/tag/\" + tag + \"/page/1\");\n\n return \"\";\n });\n\n get(\"/tag/:etiqueta/page/:pageNumber\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"index\");\n data.put(\"loggedIn\",Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n try {\n int page = Integer.parseInt(request.params(\"pageNumber\"));\n page = Math.max(1,page);\n\n String tag = request.params(\"etiqueta\");\n\n data.put(\"articulos\",GestorArticulos.getInstance().find_by_tag(page,tag));\n\n if(GestorArticulos.getInstance().hasMoreArticles()) {\n data.put(\"proxima_pagina\", \"\" + (page + 1));\n }\n if(page > 1) {\n data.put(\"anterior_pagina\",\"\" + (page - 1));\n }\n\n\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n\n return new ModelAndView(data,\"index.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n\n get(\"/admin/user/list\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"list_users\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n //obtener los usuarios\n data.put(\"usuarios\", GestorUsuarios.getInstance().findAll());\n\n return new ModelAndView(data,\"user_list.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n get(\"/admin/user/delete/:username\",(request, response) -> {\n String username = request.params(\"username\");\n\n Usuario target = GestorUsuarios.getInstance().find(username);\n\n if(target != null) {\n //borrar\n if(GestorUsuarios.getInstance().eliminar(target)) {\n target = null;\n }\n }\n //redireccionar\n response.redirect(\"/admin/user/list\");\n\n return \"\";\n });\n\n get(\"/admin/user/edit/:username\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"edit_user\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n String username = request.params(\"username\");\n Usuario target = GestorUsuarios.getInstance().find(username);\n\n if(target == null) {\n //redireccionar por error\n response.redirect(\"/admin/user/list\");\n }\n else {\n //setear datos para llenar formulario\n data.put(\"username\",target.getUsername());\n data.put(\"nombre\",target.getNombre());\n\n if(target.isAdministrador()) {\n data.put(\"esAdministrador\",\"si\");\n }\n else {\n if (target.isAutor()) {\n data.put(\"esAutor\", \"si\");\n }\n else {\n data.put(\"esLector\", \"si\");\n }\n }\n }\n\n return new ModelAndView(data,\"register_edit_user.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n post(\"/admin/user/edit\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"edit_user\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n String username = request.queryParams(\"username\");\n Usuario target = GestorUsuarios.getInstance().find(username.trim());\n\n if(target == null) {\n //redireccionar por error\n response.redirect(\"/admin/user/list\");\n }\n else {\n //tratar de actualizar usuario\n String password = request.queryParams(\"password\");\n String nombre = request.queryParams(\"nombre\");\n boolean esAdministrador = request.queryParams(\"type\").contentEquals(\"administrador\");\n boolean esAutor = request.queryParams(\"type\").contentEquals(\"autor\") || esAdministrador;\n\n //actulizar usuario\n target = new Usuario(username,password,nombre,esAdministrador,esAutor);\n\n if(GestorUsuarios.getInstance().editar(target)) {\n //redireccionar\n response.redirect(\"/admin/user/list\");\n }\n else {\n //setear datos para llenar formulario\n data.put(\"username\", target.getUsername());\n data.put(\"nombre\", target.getNombre());\n if (target.isAdministrador()) {\n data.put(\"esAdministrador\", \"si\");\n }\n else {\n if (target.isAutor()) {\n data.put(\"esAutor\", \"si\");\n } else {\n data.put(\"esLector\", \"si\");\n }\n }\n\n data.put(\"msg_type\", \"error\");\n data.put(\"msg\", \"Hubo un error con el formulario. Revisa los campos.\");\n }\n }\n\n return new ModelAndView(data,\"register_edit_user.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n\n get(\"/article/new\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"new_article\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n return new ModelAndView(data,\"create_edit_article.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n post(\"/article/new\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"new_article\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n String titulo = request.queryParams(\"titulo\");\n String cuerpo = request.queryParams(\"cuerpo\");\n String raw_etiquetas = request.queryParams(\"etiquetas\");\n\n //Crear articulo en el gestor\n Articulo nuevo = new Articulo();\n nuevo.setTitulo(titulo);\n nuevo.setCuerpo(cuerpo);\n nuevo.setAutor(GestorUsuarios.getInstance().find(Sesion.getUsuarioActivo(request)));\n nuevo.setFecha(new java.sql.Date(Calendar.getInstance().getTimeInMillis()));\n boolean exito = GestorArticulos.getInstance().crear(nuevo);\n\n if(exito) {\n //si se creo el articulo, crear las etiquetas\n Set<String> etiquetas = GestorEtiquetas.parsearEtiquetas(raw_etiquetas);\n for(String str : etiquetas) {\n Etiqueta e = new Etiqueta();\n e.setEtiqueta(str);\n e.setArticulo(nuevo);\n\n GestorEtiquetas.getInstance().crear(e);\n }\n\n //redireccionar a vista con mis articulos\n response.redirect(\"/\");\n }\n else {\n data.put(\"titulo\",titulo);\n data.put(\"cuerpo\",cuerpo);\n data.put(\"etiquetas\",raw_etiquetas);\n\n data.put(\"msg_type\",\"error\");\n data.put(\"msg\",\"Hubo un error en el formulario\");\n }\n\n return new ModelAndView(data,\"create_edit_article.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n get(\"/article/edit/:articulo_id\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"edit_article\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n String raw_id = request.params(\"articulo_id\");\n Articulo articulo = null;\n\n try {\n Long long_id = Long.parseLong(raw_id);\n articulo = GestorArticulos.getInstance().find(long_id);\n } catch(NumberFormatException e) {\n e.printStackTrace();\n }\n\n if (articulo != null) {\n data.put(\"id\",articulo.getId());\n data.put(\"cuerpo\",articulo.getCuerpo());\n data.put(\"titulo\",articulo.getTitulo());\n data.put(\"etiquetas\",GestorEtiquetas.joinListEtiquetdas(articulo.etiquetas()));\n }\n else {\n response.redirect(\"/\");\n }\n\n return new ModelAndView(data,\"create_edit_article.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n post(\"/article/edit\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"edit_article\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n //obtener datos del form y del usuario activo\n String raw_id = request.queryParams(\"id\");\n long long_id = -1;\n boolean exito = true;\n\n String titulo = request.queryParams(\"titulo\");\n String cuerpo = request.queryParams(\"cuerpo\");\n String raw_etiquetas = request.queryParams(\"etiquetas\");\n\n try {\n long_id = Long.parseLong(raw_id.trim());\n\n Articulo ar = GestorArticulos.getInstance().find(long_id);\n ar.setTitulo(titulo);\n ar.setCuerpo(cuerpo);\n exito = GestorArticulos.getInstance().editar(ar);\n exito = exito && GestorEtiquetas.getInstance().crearEtiquetasByArticle(ar,raw_etiquetas);\n } catch (NumberFormatException e) {\n //TODO CAMBIAR MENSAJE DE EXITO\n e.printStackTrace();\n }\n\n if(exito) {\n response.redirect(\"/\");\n }\n else {\n data.put(\"id\",long_id);\n data.put(\"titulo\",titulo);\n data.put(\"cuerpo\",cuerpo);\n// data.put(\"etiquetas\",_GestorEtiquetas.cargarEtiquetas(long_id));\n\n data.put(\"msg_type\",\"error\");\n data.put(\"msg\",\"Hubo un error con el formulario.\");\n }\n\n return new ModelAndView(data,\"create_edit_article.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n get(\"/article/delete/:article_id\", (request, response) -> {\n String raw_id = request.params(\"article_id\");\n\n try {\n long long_id = Long.parseLong(raw_id);\n\n Articulo articulo = GestorArticulos.getInstance().find(long_id);\n\n if(articulo != null) {\n GestorArticulos.getInstance().eliminar(articulo);\n }\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n\n response.redirect(\"/\");\n\n return \"\";\n });\n\n get(\"/article/view/:article_id\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"view_article\");\n data.put(\"loggedIn\",Sesion.isLoggedIn(request));\n data.put(\"currentUser\",Sesion.getUsuarioActivo(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n if(esAdmin) {\n data.put(\"isAdmin\",\"si\");\n }\n\n String raw_article_id = request.params(\"article_id\");\n boolean exito = false;\n\n try {\n long long_id = Long.parseLong(raw_article_id);\n\n Articulo articulo = GestorArticulos.getInstance().find(long_id);\n\n if(articulo != null) {\n data.put(\"articulo\", articulo);\n data.put(\"comentarios\",GestorComentarios.getInstance().findByArticle(articulo));\n\n\n data.put(\"num_likes\",GestorComentarios.getInstance().likeCount(articulo) + \"\");\n\n exito = true;\n }\n } catch (NumberFormatException e) {\n //TODO CAMBIAR MENSAJE DE EXCEPCION\n e.printStackTrace();\n }\n\n if(!exito) {\n response.redirect(\"/\");\n }\n\n return new ModelAndView(data,\"view_article.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n\n post(\"/comment/new\", (request, response) -> {\n if(!Sesion.isLoggedIn(request)) {\n response.redirect(\"/\");\n }\n\n String username = Sesion.getUsuarioActivo(request);\n String cuerpo_com = request.queryParams(\"comentario\");\n String raw_articulo_id = request.queryParams(\"articulo_id\");\n String voto = request.queryParams(\"voto\");\n\n boolean exito = false;\n\n try {\n long long_articulo_id = Long.parseLong(raw_articulo_id);\n\n Comentario comentario = new Comentario();\n comentario.setArticulo(GestorArticulos.getInstance().find(long_articulo_id));\n comentario.setComentario(cuerpo_com);\n comentario.setAutor(GestorUsuarios.getInstance().find(username));\n boolean esVotoBueno = (voto != null && voto.contentEquals(\"bueno\"));\n comentario.setVoto(esVotoBueno);\n\n GestorComentarios.getInstance().crear(comentario);\n exito = true;\n } catch (NumberFormatException e) {\n //TODO CAMBIAR MENSAJE DE EXCEPCION\n e.printStackTrace();\n }\n\n if(exito) {\n response.redirect(\"/article/view/\" + raw_articulo_id);\n }\n else {\n response.redirect(\"/\");\n }\n\n return \"\";\n });\n\n get(\"/comment/like/:comentario/:articulo\", (request, response) -> {\n if(!Sesion.isLoggedIn(request)) {\n response.redirect(\"/\");\n }\n\n String username = Sesion.getUsuarioActivo(request);\n String raw_comentario_id = request.params(\"comentario\");\n String articulo_id = request.params(\"articulo\");\n\n try {\n Long comentario_id = Long.parseLong(raw_comentario_id);\n\n Usuario usuario = GestorUsuarios.getInstance().find(username);\n Comentario comentario = GestorComentarios.getInstance().find(comentario_id);\n\n GestorLikesComentarios.getInstance().darLike(usuario, comentario);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n\n response.redirect(\"/article/view/\" + articulo_id.trim());\n return \"\";\n });\n\n get(\"/comment/delete/:article_id/:comment_id\", (request, response) -> {\n String raw_articulo_id = request.params(\"article_id\");\n\n long articulo_id = Long.parseLong(raw_articulo_id);\n Articulo ar = GestorArticulos.getInstance().find(articulo_id);\n\n boolean esAdministrador = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n boolean esAutor = false;\n if(ar != null) {\n esAutor = esAutor && ar.getAutor().getUsername() == Sesion.getUsuarioActivo(request);\n }\n\n if(esAutor || esAdministrador) {\n String comentario_id = request.params(\"comment_id\");\n\n try {\n long long_comentario_id = Long.parseLong(comentario_id);\n\n Comentario comentario = GestorComentarios.getInstance().find(long_comentario_id);\n GestorComentarios.getInstance().eliminar(comentario);\n } catch (NumberFormatException e) {\n //TODO CAMBIAR MENSAJE DE EXCEPCION\n e.printStackTrace();\n }\n }\n\n response.redirect(\"/article/view/\" + articulo_id);\n\n return \"\";\n });\n\n\n get(\"/logout\",(request, response) -> {\n WebSocketHandler.desconectar(Sesion.getUsuarioActivo(request));\n\n Sesion.cerrar(request);\n\n response.redirect(\"/\");\n\n return \"\";\n });\n\n get(\"/login\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"login\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n return new ModelAndView(data,\"login.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n post(\"/login\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"login\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n if(!request.queryParams(\"submit\").isEmpty()) {\n //obtener datos de quien desea iniciar sesion\n String username = request.queryParams(\"username\");\n String password = request.queryParams(\"password\");\n\n if(GestorUsuarios.getInstance().credencialesValidas(username,password)) {\n Usuario user = GestorUsuarios.getInstance().find(username);\n //iniciar sesion\n Sesion.iniciar(request,user);\n\n //redireccionar con estado de exito\n response.redirect(\"/\");\n }\n else {\n //setear datos para llenar formulario\n data.put(\"username\",username);\n\n data.put(\"msg_type\",\"error\");\n data.put(\"msg\",\"No se pudo iniciar sesion. Username/password no coinciden.\");\n }\n }\n\n return new ModelAndView(data,\"login.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n get(\"/user/register\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"register\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n return new ModelAndView(data,\"register_edit_user.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n post(\"/user/register\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"register\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n //si el request llego desde el formulario\n if(!request.queryParams(\"submit\").isEmpty()) {\n //obtener datos de nuevo usuario\n String username = request.queryParams(\"username\");\n String password = request.queryParams(\"password\");\n String nombre = request.queryParams(\"nombre\");\n //no es administrador by default\n boolean esAutor = request.queryParams(\"type\").contentEquals(\"autor\"); //1 : autor, 0 : lector\n\n //crear nueva instancia\n Usuario newUser = new Usuario(username,password,nombre,false,esAutor);\n\n //persistir nueva instancia, en caso de ser valida\n if(GestorUsuarios.getInstance().crear(newUser)) {\n //redireccionar con mensaje de exito\n response.redirect(\"/\");\n }\n else {\n //setear datos para llenar formulario\n data.put(\"username\",newUser.getUsername());\n data.put(\"nombre\",newUser.getNombre());\n if(newUser.isAutor()) {\n data.put(\"esAutor\",\"si\");\n }\n else {\n data.put(\"esLector\",\"si\");\n }\n\n data.put(\"msg_type\",\"error\");\n data.put(\"msg\",\"No se pudo crear usuario. Revisar datos del formulario.\");\n }\n }\n\n return new ModelAndView(data,\"register_edit_user.ftl\");\n }, new FreeMarkerEngine(configuration));\n }", "private void salvarXML(){\r\n\t\tarquivo.setLista(listaDeUsuarios);\r\n\t\tarquivo.finalizarXML();\r\n\t}", "public void leerArchivo() {\n String rfcProveedor = produccionCigarrosHelper.getProveedor().getRfc();\n String rfcTabacalera = produccionCigarrosHelper.getTabacalera().getRfc();\n\n if (archivoFoliosService != null && desperdiciosHelper.getArchivoFolios() != null) {\n try {\n desperdiciosHelper.setNombreArchivo(desperdiciosHelper.getArchivoFolios().getFileName());\n InputStream inputStream = desperdiciosHelper.getArchivoFolios().getInputstream();\n\n desperdiciosHelper.setRangoFoliosList(archivoFoliosProduccionService.leerArchivoFolios(inputStream, desperdiciosHelper.getNombreArchivo()));\n desperdiciosHelper.setRangoFoliosListAux(validadorRangosService.generarRangosProduccion(rfcTabacalera, rfcProveedor, desperdiciosHelper.getRangoFoliosList()));\n desperdiciosHelper.setMsgErrorArchivo(\"\");\n\n solicitudService.generaCadenaOriginal(firmaFormHelper.getRfcSession(), sumaRangosFolio(desperdiciosHelper.getRangoFoliosListAux()), null);\n firmaFormHelper.setCadenaOriginal(solicitudService.generaCadenaOriginal(firmaFormHelper.getRfcSession(), sumaRangosFolio(desperdiciosHelper.getRangoFoliosListAux()), null));\n desperdiciosHelper.setCantidadSolicitada(sumaRangosFolio(desperdiciosHelper.getRangoFoliosListAux()));\n\n } catch (SolicitudServiceException bE) {\n desperdiciosHelper.setMsgErrorArchivo(bE.getMessage());\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n LOGGER.error(\"Error: al Leer el archivo\" + bE.getMessage(), bE);\n } catch (RangosException rE) {\n desperdiciosHelper.setMsgErrorArchivo(rE.getMessage());\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n super.msgError(rE.getMessage());\n } catch (IOException io) {\n desperdiciosHelper.setMsgErrorArchivo(io.getMessage());\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n LOGGER.error(\"ERROR: Al leer el Archivo : \" + io.getMessage());\n } catch (ArchivoFoliosServiceException ex) {\n LOGGER.error(\"ERROR: Al leer el Archivo : \" + ex.getMessage());\n }\n if (!desperdiciosHelper.getMsgErrorArchivo().isEmpty()) {\n desperdiciosHelper.setDeshabilitaBtnGuardar(true);\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n } else {\n desperdiciosHelper.setMsgExitoArchivo(\"El archivo \" + desperdiciosHelper.getNombreArchivo() + \" se cargo con éxito\");\n desperdiciosHelper.setMsgErrorArchivo(\"\");\n }\n }\n }", "public void IntercambiarArchivos(byte[] archivoSinCifrar) {\r\n\t\ttry {\r\n\t\t\tString entry;\r\n\t\t\tServerSocket socketServidor = new ServerSocket();\r\n\t\t\tSocket client = socketServidor.accept();\r\n\t\t\t\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(client.getOutputStream());\r\n\t ObjectInputStream ois = new ObjectInputStream(client.getInputStream());\r\n\t \t \r\n\t BufferedReader inFromClient = new BufferedReader(new InputStreamReader(client.getInputStream()));\r\n\t BufferedWriter OutFromServer = new BufferedWriter( new OutputStreamWriter(client.getOutputStream() ) );\r\n\t \r\n\t OutputStream in = client.getOutputStream();\r\n\t DataOutputStream dataOut = new DataOutputStream(in);\r\n\t \r\n\t OutFromServer.write(\"GENERAR DH\");\r\n\t entry = inFromClient.readLine();\r\n\t if(entry.equals(\"LISTO PARA GENERAR DH\")) {\r\n\t \t\r\n\t }\r\n\t \r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\r\n public void windowClosing(WindowEvent e) {\n if (isSendFile || isReceiveFile) {\r\n JOptionPane.showMessageDialog(contentPane,\r\n \"���ڴ����ļ��У��������뿪...\",\r\n \"Error Message\", JOptionPane.ERROR_MESSAGE);\r\n } else {\r\n int result = JOptionPane.showConfirmDialog(getContentPane(),\r\n \"��ȷ��Ҫ�뿪������\");\r\n if (result == 0) {\r\n CatBean clientBean = new CatBean();\r\n clientBean.setType(-1);\r\n clientBean.setName(name);\r\n clientBean.setTimer(CatUtil.getTimer());\r\n sendMessage(clientBean);\r\n }\r\n }\r\n }", "@WebService(name = \"ProductoWS\", targetNamespace = \"http://ProductoWS/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ProductoWS {\n\n\n /**\n * \n * @return\n * returns java.util.List<com.udea.ws.Producto>\n */\n @WebMethod(operationName = \"ConsultarProducto\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ConsultarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.ConsultarProducto\")\n @ResponseWrapper(localName = \"ConsultarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.ConsultarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/ConsultarProductoRequest\", output = \"http://ProductoWS/ProductoWS/ConsultarProductoResponse\")\n public List<Producto> consultarProducto();\n\n /**\n * \n * @param codigo\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"BuscarProducto\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"BuscarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.BuscarProducto\")\n @ResponseWrapper(localName = \"BuscarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.BuscarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/BuscarProductoRequest\", output = \"http://ProductoWS/ProductoWS/BuscarProductoResponse\")\n public String buscarProducto(\n @WebParam(name = \"codigo\", targetNamespace = \"\")\n int codigo);\n\n /**\n * \n * @param descripcion\n * @param precio\n * @param stock\n * @param nombre\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ingresarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.IngresarProducto\")\n @ResponseWrapper(localName = \"ingresarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.IngresarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/ingresarProductoRequest\", output = \"http://ProductoWS/ProductoWS/ingresarProductoResponse\")\n public String ingresarProducto(\n @WebParam(name = \"nombre\", targetNamespace = \"\")\n String nombre,\n @WebParam(name = \"precio\", targetNamespace = \"\")\n double precio,\n @WebParam(name = \"stock\", targetNamespace = \"\")\n int stock,\n @WebParam(name = \"descripcion\", targetNamespace = \"\")\n String descripcion);\n\n}", "public WebService_Detalle_alquiler_factura() {\n }", "private void storageTotemp(Workbook workbook,HttpServletRequest req,String username){\n try{\n if(workbook==null||req==null||username==null||username.equals(\"\"))\n return;\n String path=req.getSession().getServletContext().getRealPath(\"\\\\\")+\"\\\\\"+REPOSITORY+\"\\\\\"+username+\"\\\\\"+TEMP;\n File filePath=new File(path);\n File targetFile=new File(filePath,name);\n if(!filePath.exists()){\n filePath.mkdirs();\n }\n if(targetFile.exists()){\n return;\n }\n FileOutputStream out=new FileOutputStream(targetFile);\n workbook.write(out);\n out.close();\n workbook.close();\n }catch (Exception ex){\n ex.printStackTrace();\n }\n }", "private void backup(SubscriptionDto sDto) throws IOException {\n\t\tSystem.out.println(\"Gaurav\");\n\t\tString routePath = this.getClass().getClassLoader()\n\t\t\t\t.getResource(File.separator).getPath();\n\t\tSystem.out.println(routePath);\n\t\tString newLine = System.getProperty(\"line.separator\");\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(routePath+File.separator+\"..\"+File.separator+\"backup.txt\"), true));\n\t\tbw.write(\"Suscription Details\" + newLine);\n\t\tbw.write(\"**************************************\" + newLine);\n\t\tbw.write(\"SUBSCRIPTION ID \" + sDto.getSubscriptionId() + newLine);\n\t\tbw.write(\"CUSTOMER NAME \" + sDto.getCustomerName() + newLine);\n\t\tbw.write(\"Total Cost :\" + sDto.getTotalCost() + newLine);\n\t\tbw.write(\"-----------------------------------------------------------------------\"\n\t\t\t\t+ newLine);\n\n\t\tbw.write(\"Channel Suscribed Details\" + newLine);\n\t\tbw.write(\"**************************************\\n\" + newLine);\n\t\tbw.write(\" CHANNEL NAME | COST_PER MONTH \"\n\t\t\t\t+ newLine);\n\t\tbw.write(\"+--------------------------------------------------------------+\"\n\t\t\t\t+ newLine);\n\t\tfor (Channel c : sDto.getSubscribedChannel()) {\n\t\t\tbw.write(\"|\" + c.getChannelName() + \"\\t\\t\\t\\t | \\t\\t\\t \"\n\t\t\t\t\t+ c.getCostPerMonth() + \"\\t\\t\\t\\t\\t | \" + newLine);\n\t\t}\n\n\t\tbw.write(newLine);\n\t\tbw.write(\"-------------End---------------------\" + newLine);\n\t\tbw.close();\n\n\t}", "private void gerarArquivoExcel() {\n\t\tFile currDir = getPastaParaSalvarArquivo();\n\t\tString path = currDir.getAbsolutePath();\n\t\t// Adiciona ao nome da pasta o nome do arquivo que desejamos utilizar\n\t\tString fileLocation = path.substring(0, path.length()) + \"/relatorio.xls\";\n\t\t\n\t\t// mosta o caminho que exportamos na tela\n\t\ttextField.setText(fileLocation);\n\n\t\t\n\t\t// Criação do arquivo excel\n\t\ttry {\n\t\t\t\n\t\t\t// Diz pro excel que estamos usando portguês\n\t\t\tWorkbookSettings ws = new WorkbookSettings();\n\t\t\tws.setLocale(new Locale(\"pt\", \"BR\"));\n\t\t\t// Cria uma planilha\n\t\t\tWritableWorkbook workbook = Workbook.createWorkbook(new File(fileLocation), ws);\n\t\t\t// Cria uma pasta dentro da planilha\n\t\t\tWritableSheet sheet = workbook.createSheet(\"Pasta 1\", 0);\n\n\t\t\t// Cria um cabeçario para a Planilha\n\t\t\tWritableCellFormat headerFormat = new WritableCellFormat();\n\t\t\tWritableFont font = new WritableFont(WritableFont.ARIAL, 16, WritableFont.BOLD);\n\t\t\theaderFormat.setFont(font);\n\t\t\theaderFormat.setBackground(Colour.LIGHT_BLUE);\n\t\t\theaderFormat.setWrap(true);\n\n\t\t\tLabel headerLabel = new Label(0, 0, \"Nome\", headerFormat);\n\t\t\tsheet.setColumnView(0, 60);\n\t\t\tsheet.addCell(headerLabel);\n\n\t\t\theaderLabel = new Label(1, 0, \"Idade\", headerFormat);\n\t\t\tsheet.setColumnView(0, 40);\n\t\t\tsheet.addCell(headerLabel);\n\n\t\t\t// Cria as celulas com o conteudo\n\t\t\tWritableCellFormat cellFormat = new WritableCellFormat();\n\t\t\tcellFormat.setWrap(true);\n\n\t\t\t// Conteudo tipo texto\n\t\t\tLabel cellLabel = new Label(0, 2, \"Elcio Bonitão\", cellFormat);\n\t\t\tsheet.addCell(cellLabel);\n\t\t\t// Conteudo tipo número (usar jxl.write... para não confundir com java.lang.number...)\n\t\t\tjxl.write.Number cellNumber = new jxl.write.Number(1, 2, 49, cellFormat);\n\t\t\tsheet.addCell(cellNumber);\n\n\t\t\t// Não esquecer de escrever e fechar a planilha\n\t\t\tworkbook.write();\n\t\t\tworkbook.close();\n\n\t\t} catch (IOException e1) {\n\t\t\t// Imprime erro se não conseguir achar o arquivo ou pasta para gravar\n\t\t\te1.printStackTrace();\n\t\t} catch (WriteException e) {\n\t\t\t// exibe erro se acontecer algum tipo de celula de planilha inválida\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void grabarArchivo() {\n\t\tPrintWriter salida;\n\t\ttry {\n\t\t\tsalida = new PrintWriter(new FileWriter(super.salida));\n\t\t\tsalida.println(this.aDevolver);\n\t\t\tsalida.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@OnWebSocketConnect\n public void conectando(Session usuario){\n System.out.println(\"Conectando Usuario: \"+usuario.getLocalAddress().getAddress().toString());\n usuariosConectados.add(usuario);\n }", "public int BorrarAnuncioDestinatarios(int id){\n int status=0;\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is); \n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"borrar.Destinatario\"));\n ps.setInt(1, id);\n status=ps.executeUpdate();\n }catch(Exception e){\n e.printStackTrace();\n }\n return status;\n }", "public CalculadoraRESTfulWS() {\n }", "void suplantarIdUsuer(String nombre) throws Exception {\n\t\tLibro[] librosPres = new Libro[Const.MAXLIBROSPRES];\n\t\tint bpn = busquedaPrimerNulo();\n\t\tUsuario[] vu = ArrayObject.listadoUsuarios();\n\n\t\tMiObjectInputStream oi = null;\n\n\t\ttry { // comprueba que el archivo FUSUARIOS existe antes de leerlo\n\t\t\toi = new MiObjectInputStream(new FileInputStream(Const.FUSUARIOS));\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Archivo no encontrado - suplantarIdUsuer - \" + e.toString());\n\t\t}\n\n\t\t// busca donde se encuentra el primer usuario null del archivo para crear un\n\t\t// usuario nuevo en ese mismo lugar para obtener un id ordenado. Del mismo modo\n\t\t// la primera vez que esto se ustiliza llena el archivode usuarios de nulos pero\n\t\t// no elimna los usuarios que se encuentran por debajo\n\t\tUsuario u = (Usuario) oi.readObject();\n\t\tu = new Usuario(bpn, nombre, librosPres);\n\t\tvu[bpn] = u;\n\n\t\ttry {\n\t\t\tFileOutputStream fo = new FileOutputStream(Const.FUSUARIOSAUX, true);\n\t\t\tMiObjectOutputStream oo = new MiObjectOutputStream(fo);\n\t\t\tint i = 0;\n\t\t\twhile (i < vu.length) {\n\t\t\t\tu = vu[i];\n\t\t\t\too.writeObject(u);\n\t\t\t\ti++;\n\t\t\t} // finaliza el while para la lectura\n\t\t\too.close();\n\n\t\t} catch (Exception e) { // encaso de encontrar el archivos pero no puede leerlo\n\t\t\tSystem.out.println(\"Problemas al leer el archivo - suplantarIdUsuer - \" + e.toString());\n\t\t}\n\t\toi.close();\n\t}", "public boolean saveAplicacion() {\r\n\t\ttry {\r\n\t\t\tObjectOutputStream objectFile = new ObjectOutputStream(new FileOutputStream(ficheroCarga));\r\n\t\t\tobjectFile.writeObject(getInstancia(this.nombreAdmin, this.contraseñaAdmin, this.numMinApoyos));\r\n\t\t}catch(Exception e) {\r\n\t\t\t\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@WebService(name = \"UtenteServant\", targetNamespace = \"http://utente.servant.car2go.it/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface UtenteServant {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"verificaPresenzaUsername\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.VerificaPresenzaUsername\")\n @ResponseWrapper(localName = \"verificaPresenzaUsernameResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.VerificaPresenzaUsernameResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/verificaPresenzaUsernameRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/verificaPresenzaUsernameResponse\")\n public boolean verificaPresenzaUsername(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"salvaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.SalvaUtente\")\n @ResponseWrapper(localName = \"salvaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.SalvaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/salvaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/salvaUtenteResponse\")\n public void salvaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Utente arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteByUsernamePassword\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernamePassword\")\n @ResponseWrapper(localName = \"getUtenteByUsernamePasswordResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernamePasswordResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernamePasswordRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernamePasswordResponse\")\n public Utente getUtenteByUsernamePassword(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteByUsername\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsername\")\n @ResponseWrapper(localName = \"getUtenteByUsernameResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernameResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernameRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernameResponse\")\n public Utente getUtenteByUsername(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Ruolo\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRuoloUtenteById\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetRuoloUtenteById\")\n @ResponseWrapper(localName = \"getRuoloUtenteByIdResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetRuoloUtenteByIdResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getRuoloUtenteByIdRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getRuoloUtenteByIdResponse\")\n public Ruolo getRuoloUtenteById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"cancellaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.CancellaUtente\")\n @ResponseWrapper(localName = \"cancellaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.CancellaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/cancellaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/cancellaUtenteResponse\")\n public void cancellaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<it.car2go.servant.utente.Utente>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenti\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenti\")\n @ResponseWrapper(localName = \"getUtentiResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtentiResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtentiRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtentiResponse\")\n public List<Utente> getUtenti();\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteById\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteById\")\n @ResponseWrapper(localName = \"getUtenteByIdResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByIdResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByIdRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByIdResponse\")\n public Utente getUtenteById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<it.car2go.servant.utente.Utente>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"elencoUtentiSemplici\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.ElencoUtentiSemplici\")\n @ResponseWrapper(localName = \"elencoUtentiSempliciResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.ElencoUtentiSempliciResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/elencoUtentiSempliciRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/elencoUtentiSempliciResponse\")\n public List<Utente> elencoUtentiSemplici(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"aggiornaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.AggiornaUtente\")\n @ResponseWrapper(localName = \"aggiornaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.AggiornaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/aggiornaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/aggiornaUtenteResponse\")\n public void aggiornaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Utente arg0);\n\n}", "public Boolean rechazarRegistro(Usuario u,String motivo) {\r\n\t\tif(!this.modoAdmin) return false;\r\n\t\tu.rechazar(motivo);\r\n\t\tthis.proponentes.remove(u);\r\n\t\treturn true;\r\n\t}", "private void registrarRecibo_() throws Exception {\t\n\t\t\n\t\tif (CajaUtil.CAJAS_ABIERTAS.get(this.selectedItem.getPos6()) != null) {\n\t\t\tString msg = \"CAJA BLOQUEADA POR USUARIO: \" + CajaUtil.CAJAS_ABIERTAS.get(this.selectedItem.getPos6());\n\t\t\tClients.showNotification(msg, Clients.NOTIFICATION_TYPE_ERROR, null, null, 0);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tthis.nvoRecibo.setPos1(\"\");\n\t\tthis.nvoRecibo.setPos2(new Date());\n\t\tWindowPopup wp = new WindowPopup();\n\t\twp.setDato(this);\n\t\twp.setModo(WindowPopup.NUEVO);\n\t\twp.setHigth(\"300px\");\n\t\twp.setWidth(\"400px\");\n\t\twp.setCheckAC(new ValidadorRegistrarRecibo());\n\t\twp.setTitulo(\"Registrar Recibo de Pago\");\n\t\twp.show(ZUL_REGISTRAR_RECIBO);\n\t\tif (wp.isClickAceptar()) {\n\t\t\t\n\t\t\tif (CajaUtil.CAJAS_ABIERTAS.get(this.selectedItem.getPos6()) != null) {\n\t\t\t\tString msg = \"CAJA BLOQUEADA POR USUARIO: \" + CajaUtil.CAJAS_ABIERTAS.get(this.selectedItem.getPos6());\n\t\t\t\tClients.showNotification(msg, Clients.NOTIFICATION_TYPE_ERROR, null, null, 0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tString numeroRecibo = ((String) this.nvoRecibo.getPos1()).toUpperCase();\n\t\t\tDate fechaRecibo = (Date) this.nvoRecibo.getPos2();\n\t\t\tlong idOrdenPago = this.selectedItem.getId();\n\t\t\tString user = this.getLoginNombre();\n\t\t\tAssemblerRecibo.registrarReciboPago(numeroRecibo, fechaRecibo, idOrdenPago, user, false, false);\t\t\t\n\t\t\tthis.selectedItem = null;\n\t\t\tthis.mensajePopupTemporal(\"Recibo Registrado..\", 5000);\n\t\t}\t\n\t}", "private static synchronized void saveArchivo(List<String> objects, String cabecera, String name) \n\t\t\tthrows Exception {\n\t\tFileWriter file = new FileWriter(Configuracion.pathRetencionTesaka + name +\".txt\");\n\t\tfile.write(cabecera);\n\t\tfor (String string : objects) {\n\t\t\tfile.write(string);\n\t\t}\t\n\t\tfile.flush();\n\t\tfile.close();\n\t\tFiledownload.save(InformeHechauka.PATH_FILE + name +\".txt\", null);\n\t}", "@OnWebSocketMessage\n public void recibiendoMensaje(Session usuario, String message) {\n\n\n System.out.println(\"Recibiendo del cliente: \"+usuario.getLocalAddress().getAddress().toString()+\" - Mensaje \"+message);\n try {\n\n String[] mensaje = message.split(\"~\") ;\n\n\n\n System.out.println(mensaje[0]);\n System.out.println(mensaje[1]);\n\n\n switch (mensaje[1]){\n\n case \"iniciarSesion\":\n usuarios.put(usuario, mensaje[0].trim());\n sesiones.put(mensaje[0].trim(), usuario);\n\n break;\n case \"iniciarSesionAdmin\":\n sesionAdmin = usuario;\n break;\n case \"mensajeNuevo\":\n\n if(sesionAdmin != null){\n System.out.println(mensaje[0]);\n sesionAdmin.getRemote().sendString(mensaje[0] +\"~\"+ usuarios.get(usuario) );\n }\n break;\n\n case \"mensajeNuevoAdmin\":\n String destino = mensaje[2];\n\n Session sesionDestino = sesiones.get(destino);\n if(sesionDestino != null){\n System.out.println(destino);\n sesionDestino.getRemote().sendString(mensaje[0] +\"~\"+sesiones.get(usuario));\n }\n break;\n\n\n }\n\n\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void ugasiKorisnika() {\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n if (outputStream != null) {\n outputStream.close();\n }\n if (socket != null) {\n socket.close();\n }\n } catch (IOException ex) {\n Logger.getLogger(KorisnikApstraktni.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void confirmarGuardarUsr() {\n String pregunta = \"Esto seguro de realizar el registro?\";\n new AlertDialog.Builder(this)\n .setTitle(getResources().getString(R.string.msj_confirmacion))\n .setMessage(pregunta)\n .setNegativeButton(android.R.string.cancel, null)//sin listener\n .setPositiveButton(getResources().getString(R.string.lbl_aceptar),\n new DialogInterface.OnClickListener() {//un listener que al pulsar, solicite el WS de Transsaccion\n @Override\n public void onClick(DialogInterface dialog, int which){\n guardarUsr();\n }\n })\n .show();\n }", "@FXML\r\n private void HBSimpan(ActionEvent event) {\n String xml = xstream.toXML(resi);\r\n FileOutputStream xx = null;\r\n try {\r\n // membuat nama file & folder tempat menyimpan jika perlu\r\n xx = new FileOutputStream(\"xoxo.xml\");\r\n \r\n // mengubah karakter penyusun string xml sebagai \r\n // bytes (berbentuk nomor2 kode ASCII\r\n byte[] bytes = xml.getBytes(\"UTF-8\");\r\n // menyimpan file dari bytes\r\n xx.write(bytes);\r\n } \r\n catch (Exception e) {\r\n System.err.println(\"Perhatian: \" + e.getMessage());\r\n } \r\n finally {\r\n if (xx != null) {\r\n try {\r\n xx.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n } \r\n\r\n }", "private void przygotujFolderWynikowy() {\r\n\t\tFile folder = new File(\"./wynik\");\r\n\t\tif (!(folder.mkdir())) {\r\n\t\t\tFile[] tablica = folder.listFiles();\r\n\t\t\tif(tablica != null)\r\n\t\t\tfor (File f : tablica) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tf.delete();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t}", "private static void abrirPuerto() {\n try {\n serverSocket = new ServerSocket(PUERTO);\n System.out.println(\"Servidor escuchando por el puerto: \" + PUERTO);\n } catch (IOException ex) {\n Logger.getLogger(ServidorUnicauca.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void tozip() {\r\n\t\t//session.setAttribute(Constant.USER_SESSION_KEY, null);\r\n\t\tList<Netlog> result = null;\r\n\t\tInteger total = null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t\tresult = (List<Netlog>)netlogDao.findNetlogByPage(1,10000);\r\n\t\t\t\ttotal= result.size();\r\n\t\t\t\t//total= netlogDao.findNetlogCount();\r\n\t\t\t\r\n\t\t} catch (SQLException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tNetlogs netlogs = new Netlogs(result);\r\n\t\tString path = this.getClass().getClassLoader().getResource(\"\").getPath();\r\n\t\tSystem.out.println(path);\r\n\t\tpath = path.replace(\"WEB-INF/classes/\", \"\");\r\n\t\tString path1 = path + \"netlog/\";\r\n\t\tLong time = System.currentTimeMillis()/1000;\r\n\t\tXml2Java.beanToXML(netlogs,path1+\"145-330000-\"+time.toString()+\"-00001-WA-SOURCE_NETLOG_0001-0.xml\");\r\n\r\n\t\tZipUtil.ZipMultiFile(path1, path+\"145-353030334-330300-330300-netlog-00001.zip\");\r\n\t}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, registry.ClientRegistryStub.RemoveFilesFromUser param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\r\n throws org.apache.axis2.AxisFault{\r\n\r\n \r\n try{\r\n\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody().addChild(param.getOMElement(registry.ClientRegistryStub.RemoveFilesFromUser.MY_QNAME,factory));\r\n return emptyEnvelope;\r\n } catch(org.apache.axis2.databinding.ADBException e){\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n \r\n\r\n }", "public void EliminarArchivos(){\n\t\ttry{\n\t\tFile Delete = new File(\"Cod.txt\");\n\t\tDelete.deleteOnExit();\n\t\tFile Borrar = new File(\"Maq.txt\");\n\t\tBorrar.deleteOnExit();\n\t\tFile eliminar = new File(\"WS.txt\");\n\t\teliminar.deleteOnExit();\n\t\tFile Bye = new File(\"RESPALDO.txt\");\n\t\tBye.deleteOnExit();\n\t\t\tBufferedReader numero= new BufferedReader(new FileReader(\"WS.txt\"));\n\t\t\tString valor = numero.readLine();\n\t\t\tint NumAreas= Integer.valueOf(valor);\n\t\t\tfor(int i=0; i< NumAreas;i++){\n\t\t\t\tvalor= numero.readLine();\n\t\t\t\tFile eliminas = new File(\"WS\"+valor+\".txt\");\n\t\t\t\teliminas.deleteOnExit();\n\t\t\t}\n\t\t\tnumero.close();\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"File not found\");\n\t\t}\n\t}", "private WebServicesFabrica(){}", "public void borrarCuenta(String email) {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tOwlUserDAO OwlDAO = new OwlUserDAO();\n\t\t\tOwlDAO.borrarUsuario(email, mysql);\n\t\t\tmysql.disconnect();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\n\t}", "public void crearCliente(Cliente cliente) {\n \n File db = new File(\"src/Archivo/archivo.txt\");\n File tempDB = new File(\"src/Archivo/archivo_temp.txt\");\n\n try {\n \n if (cliente.getNombreCliente().isEmpty()) {\n cliente.setNombreCliente(\"undefined\");\n }\n if (cliente.getNombreEmpresa().isEmpty()) {\n cliente.setNombreEmpresa(\"undefined\");\n }\n if (cliente.getCiudad().isEmpty()) {\n cliente.setCiudad(\"undefined\");\n }\n \n List<Cliente> newClientes = añadirClienteToList(cliente);\n\n BufferedWriter bw = new BufferedWriter(new FileWriter(tempDB));\n\n\n\n for(Cliente cli:newClientes) {\n bw.write(\n Integer.toString(cli.getId())+\",\"+\n cli.getNombreCliente()+\",\"+\n cli.getNombreEmpresa()+\",\"+\n cli.getCiudad()+\",\"+\n cli.getDeuda()+\",\"+\n cli.getPrecioVentaSaco()\n );\n bw.flush();\n bw.newLine();\n }\n bw.close();\n db.delete();\n } catch (Exception e) {\n System.err.println(\"Method-actualizarUsuarioById: \" + e);\n }\n\n boolean success = tempDB.renameTo(db);\n System.out.println(success);\n }", "private static void escribirArchivo(String nombre, String contenido, boolean agregar) {\n\n\t\tFileOutputStream archivo = null;\n\t\tBufferedOutputStream buffer = null;\n\t\tbyte entrada[] = new byte [100];\n\t\tArrayList<String> lista = new ArrayList<String>(5);\n\n\t\ttry {\n\t\t\tarchivo = new FileOutputStream(nombre, agregar);\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbuffer = new BufferedOutputStream(archivo);\n\t\t\tbuffer.write(contenido.getBytes());\n\t\t\tbuffer.write(\"\\n\".getBytes());\n\t\t\tbuffer.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void exportarDatos() {\r\n // Cabecera\r\n System.out.println(\"Exportación de Datos\");\r\n System.out.println(\"====================\");\r\n\r\n // Acceso al Fichero\r\n try (PrintWriter pr = new PrintWriter(DEF_NOMBRE_FICHERO)) {\r\n // Bucle de Escritura\r\n for (Item item : CARRITO) {\r\n // Generar Linea de Texto\r\n String linea = String.format(Locale.ENGLISH, \"%d%s%s%s%.2f%s%s\",\r\n item.getId(), REG_CSV_ESCR,\r\n item.getNombre(), REG_CSV_ESCR,\r\n item.getPrecio(), REG_CSV_ESCR,\r\n UtilesGraficos.obtenerNombreColor(item.getColor()));\r\n\r\n // Item > Fichero\r\n pr.println(linea);\r\n }\r\n\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"Datos exportados correctamente\");\r\n } catch (NumberFormatException | NullPointerException e) {\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"ERROR: Formato de datos incorrecto\");\r\n\r\n // Vaciado Carrito\r\n CARRITO.clear();\r\n } catch (IOException e) {\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"ERROR: Acceso al fichero\");\r\n }\r\n }", "protected String cargarTempRojoBhcs(String url, String username,\n String password) throws Exception {\n try {\n getTempRojoBhcs();\n if(mTempRojoBhcs.size()>0){\n saveTempRojoBhcs(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/trojos\";\n TempRojoBhc[] envio = mTempRojoBhcs.toArray(new TempRojoBhc[mTempRojoBhcs.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<TempRojoBhc[]> requestEntity =\n new HttpEntity<TempRojoBhc[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveTempRojoBhcs(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveTempRojoBhcs(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "void onConnectedToWebService() {\n invalidateOptionsMenu();\n scenesFragment.setConnectStatusIndicator(status.OPEN);\n //mOBSWebSocketClient.getScenesList();\n }", "@PostMapping(\"/administrador/borrar\")\r\n\tpublic String borrar(@RequestParam(value=\"id\", defaultValue=\"\")Long id,@RequestParam(value=\"passwordactualhash\",defaultValue=\"\")String passwordactual,HttpSession session,ModelMap m) {//TODO probar mejorable obteniedo primero eladmin a borrar en borrarotro pasar el admin entero (se ahorra una consulta en la bd\r\n\t\tif(permisos(session)&&((Usuario)session.getAttribute(\"user\")).getPassword().equals(passwordactual)){\r\n\t\t\tif(id==null) id=((Administrador)session.getAttribute(\"user\")).getId();\r\n\t\t\tAdministrador admin=RAdministrador.findOne(id);\r\n\t\t\tif(admin==null&&((Administrador)session.getAttribute(\"user\")).getId().equals(id)) LoginController.logoutStatic(session);\r\n\t\t\tif(admin!=null&&(permisosBorrar(id,session)||permisosBorrarOtros(id,session))){\r\n\t\t\t\tRAdministrador.delete(id);\r\n\t\t\t\tif(session.getAttribute(\"user\")!=null&&((Administrador)session.getAttribute(\"user\")).getId().equals(id)) LoginController.logoutStatic(session);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"redirect:/administrador/listar\";\r\n\t}", "public void setFilaDatosExportarXmlAnalisisTransaCliente(AnalisisTransaCliente analisistransacliente,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(AnalisisTransaClienteConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(analisistransacliente.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(AnalisisTransaClienteConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(analisistransacliente.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(analisistransacliente.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementmodulo_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDMODULO);\r\n\t\telementmodulo_descripcion.appendChild(document.createTextNode(analisistransacliente.getmodulo_descripcion()));\r\n\t\telement.appendChild(elementmodulo_descripcion);\r\n\r\n\t\tElement elementnombre = document.createElement(AnalisisTransaClienteConstantesFunciones.NOMBRE);\r\n\t\telementnombre.appendChild(document.createTextNode(analisistransacliente.getnombre().trim()));\r\n\t\telement.appendChild(elementnombre);\r\n\r\n\t\tElement elementdescripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.DESCRIPCION);\r\n\t\telementdescripcion.appendChild(document.createTextNode(analisistransacliente.getdescripcion().trim()));\r\n\t\telement.appendChild(elementdescripcion);\r\n\r\n\t\tElement elementtransaccion_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION);\r\n\t\telementtransaccion_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion_descripcion()));\r\n\t\telement.appendChild(elementtransaccion_descripcion);\r\n\r\n\t\tElement elementtransaccion1_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION1);\r\n\t\telementtransaccion1_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion1_descripcion()));\r\n\t\telement.appendChild(elementtransaccion1_descripcion);\r\n\r\n\t\tElement elementtransaccion2_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION2);\r\n\t\telementtransaccion2_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion2_descripcion()));\r\n\t\telement.appendChild(elementtransaccion2_descripcion);\r\n\r\n\t\tElement elementtransaccion3_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION3);\r\n\t\telementtransaccion3_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion3_descripcion()));\r\n\t\telement.appendChild(elementtransaccion3_descripcion);\r\n\r\n\t\tElement elementtransaccion4_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION4);\r\n\t\telementtransaccion4_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion4_descripcion()));\r\n\t\telement.appendChild(elementtransaccion4_descripcion);\r\n\r\n\t\tElement elementtransaccion5_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION5);\r\n\t\telementtransaccion5_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion5_descripcion()));\r\n\t\telement.appendChild(elementtransaccion5_descripcion);\r\n\r\n\t\tElement elementtransaccion6_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION6);\r\n\t\telementtransaccion6_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion6_descripcion()));\r\n\t\telement.appendChild(elementtransaccion6_descripcion);\r\n\r\n\t\tElement elementtransaccion7_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION7);\r\n\t\telementtransaccion7_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion7_descripcion()));\r\n\t\telement.appendChild(elementtransaccion7_descripcion);\r\n\r\n\t\tElement elementtransaccion8_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION8);\r\n\t\telementtransaccion8_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion8_descripcion()));\r\n\t\telement.appendChild(elementtransaccion8_descripcion);\r\n\r\n\t\tElement elementtransaccion9_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION9);\r\n\t\telementtransaccion9_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion9_descripcion()));\r\n\t\telement.appendChild(elementtransaccion9_descripcion);\r\n\r\n\t\tElement elementtransaccion10_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION10);\r\n\t\telementtransaccion10_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion10_descripcion()));\r\n\t\telement.appendChild(elementtransaccion10_descripcion);\r\n\t}", "public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }", "@WebService(name = \"ProductoDaoSessionBean\", targetNamespace = \"http://dao.model.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ProductoDaoSessionBean {\n\n\n /**\n * \n * @return\n * returns java.util.List<ws.producto.Producto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"listarp\", targetNamespace = \"http://dao.model.com/\", className = \"ws.producto.Listarp\")\n @ResponseWrapper(localName = \"listarpResponse\", targetNamespace = \"http://dao.model.com/\", className = \"ws.producto.ListarpResponse\")\n @Action(input = \"http://dao.model.com/ProductoDaoSessionBean/listarpRequest\", output = \"http://dao.model.com/ProductoDaoSessionBean/listarpResponse\")\n public List<Producto> listarp();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.Object\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"buscar\", targetNamespace = \"http://dao.model.com/\", className = \"ws.producto.Buscar\")\n @ResponseWrapper(localName = \"buscarResponse\", targetNamespace = \"http://dao.model.com/\", className = \"ws.producto.BuscarResponse\")\n @Action(input = \"http://dao.model.com/ProductoDaoSessionBean/buscarRequest\", output = \"http://dao.model.com/ProductoDaoSessionBean/buscarResponse\")\n public Object buscar(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Object arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"eliminar\", targetNamespace = \"http://dao.model.com/\", className = \"ws.producto.Eliminar\")\n @ResponseWrapper(localName = \"eliminarResponse\", targetNamespace = \"http://dao.model.com/\", className = \"ws.producto.EliminarResponse\")\n @Action(input = \"http://dao.model.com/ProductoDaoSessionBean/eliminarRequest\", output = \"http://dao.model.com/ProductoDaoSessionBean/eliminarResponse\")\n public void eliminar(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Object arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"crear\", targetNamespace = \"http://dao.model.com/\", className = \"ws.producto.Crear\")\n @ResponseWrapper(localName = \"crearResponse\", targetNamespace = \"http://dao.model.com/\", className = \"ws.producto.CrearResponse\")\n @Action(input = \"http://dao.model.com/ProductoDaoSessionBean/crearRequest\", output = \"http://dao.model.com/ProductoDaoSessionBean/crearResponse\")\n public void crear(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Object arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"actualizar\", targetNamespace = \"http://dao.model.com/\", className = \"ws.producto.Actualizar\")\n @ResponseWrapper(localName = \"actualizarResponse\", targetNamespace = \"http://dao.model.com/\", className = \"ws.producto.ActualizarResponse\")\n @Action(input = \"http://dao.model.com/ProductoDaoSessionBean/actualizarRequest\", output = \"http://dao.model.com/ProductoDaoSessionBean/actualizarResponse\")\n public void actualizar(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Object arg0);\n\n}", "public void generarReporteAnalisisTransaClientes(String sAccionBusqueda,List<AnalisisTransaCliente> analisistransaclientesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"AnalisisTransaCliente\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"AnalisisTransaClienteMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"AnalisisTransaClienteMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"AnalisisTransaCliente\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Analisis Transaccion Clientees\");\t\t\r\n\t\tparameters.put(\"busquedapor\", AnalisisTransaClienteConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceAnalisisTransaCliente=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceAnalisisTransaCliente=new JRBeanArrayDataSource(AnalisisTransaClienteJInternalFrame.TraerAnalisisTransaClienteBeans(analisistransaclientesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceAnalisisTransaCliente);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+AnalisisTransaClienteConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+AnalisisTransaClienteConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(AnalisisTransaClienteBean.TraerAnalisisTransaClienteBeans(analisistransaclientesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoAnalisisTransaClienteActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "@WebService(name = \"MyServicesPort\", targetNamespace = \"http://mglsi.local/soap\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface MyServicesPort {\n\n\n /**\n * Lister Utilisateur Function\n * \n * @return\n * returns local.mglsi.soap.ArrayOfUser\n */\n @WebMethod(action = \"http://mglsi.local/soap#listerUser\")\n @WebResult(partName = \"return\")\n public ArrayOfUser listerUser();\n\n /**\n * Ajouter un Utilisateur Function\n * \n * @param password\n * @param nom\n * @param prenom\n * @param pseudo\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"http://mglsi.local/soap#ajouterUser\")\n @WebResult(partName = \"return\")\n public String ajouterUser(\n @WebParam(name = \"nom\", partName = \"nom\")\n String nom,\n @WebParam(name = \"prenom\", partName = \"prenom\")\n String prenom,\n @WebParam(name = \"pseudo\", partName = \"pseudo\")\n String pseudo,\n @WebParam(name = \"password\", partName = \"password\")\n String password);\n\n /**\n * Ajouter un Utilisateur Function\n * \n * @param password\n * @param id\n * @param nom\n * @param prenom\n * @param pseudo\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"http://mglsi.local/soap#modifierUser\")\n @WebResult(partName = \"return\")\n public String modifierUser(\n @WebParam(name = \"id\", partName = \"id\")\n String id,\n @WebParam(name = \"nom\", partName = \"nom\")\n Object nom,\n @WebParam(name = \"prenom\", partName = \"prenom\")\n Object prenom,\n @WebParam(name = \"pseudo\", partName = \"pseudo\")\n Object pseudo,\n @WebParam(name = \"password\", partName = \"password\")\n Object password);\n\n /**\n * Supprimer un Utilisateur Function\n * \n * @param id\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"http://mglsi.local/soap#supprimerUser\")\n @WebResult(partName = \"return\")\n public String supprimerUser(\n @WebParam(name = \"id\", partName = \"id\")\n int id);\n\n /**\n * Login Function\n * \n * @param pseudo\n * @param token\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"Login\", action = \"http://mglsi.local/soap#Login\")\n @WebResult(partName = \"return\")\n public String login(\n @WebParam(name = \"pseudo\", partName = \"pseudo\")\n String pseudo,\n @WebParam(name = \"token\", partName = \"token\")\n String token);\n\n /**\n * Returns Hello World.\n * \n * @param world\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"http://mglsi.local/soap#getInterAdmins\")\n @WebResult(partName = \"return\")\n public String getInterAdmins(\n @WebParam(name = \"world\", partName = \"world\")\n String world);\n\n /**\n * Use test soap service\n * \n * @param name\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"SayHello\", action = \"http://mglsi.local/soap#SayHello\")\n @WebResult(partName = \"return\")\n public String sayHello(\n @WebParam(name = \"name\", partName = \"name\")\n String name);\n\n}", "public void setFilaDatosExportarXmlPagosAutorizados(PagosAutorizados pagosautorizados,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(PagosAutorizadosConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(pagosautorizados.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(PagosAutorizadosConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(pagosautorizados.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(PagosAutorizadosConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(pagosautorizados.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementfecha_corte = document.createElement(PagosAutorizadosConstantesFunciones.FECHACORTE0);\r\n\t\telementfecha_corte.appendChild(document.createTextNode(pagosautorizados.getfecha_corte().toString().trim()));\r\n\t\telement.appendChild(elementfecha_corte);\r\n\r\n\t\tElement elementnombre_cliente = document.createElement(PagosAutorizadosConstantesFunciones.NOMBRECLIENTE);\r\n\t\telementnombre_cliente.appendChild(document.createTextNode(pagosautorizados.getnombre_cliente().trim()));\r\n\t\telement.appendChild(elementnombre_cliente);\r\n\r\n\t\tElement elementnumero_factura = document.createElement(PagosAutorizadosConstantesFunciones.NUMEROFACTURA);\r\n\t\telementnumero_factura.appendChild(document.createTextNode(pagosautorizados.getnumero_factura().trim()));\r\n\t\telement.appendChild(elementnumero_factura);\r\n\r\n\t\tElement elementfecha_emision = document.createElement(PagosAutorizadosConstantesFunciones.FECHAEMISION);\r\n\t\telementfecha_emision.appendChild(document.createTextNode(pagosautorizados.getfecha_emision().toString().trim()));\r\n\t\telement.appendChild(elementfecha_emision);\r\n\r\n\t\tElement elementfecha_vencimiento = document.createElement(PagosAutorizadosConstantesFunciones.FECHAVENCIMIENTO);\r\n\t\telementfecha_vencimiento.appendChild(document.createTextNode(pagosautorizados.getfecha_vencimiento().toString().trim()));\r\n\t\telement.appendChild(elementfecha_vencimiento);\r\n\r\n\t\tElement elementnombre_banco = document.createElement(PagosAutorizadosConstantesFunciones.NOMBREBANCO);\r\n\t\telementnombre_banco.appendChild(document.createTextNode(pagosautorizados.getnombre_banco().trim()));\r\n\t\telement.appendChild(elementnombre_banco);\r\n\r\n\t\tElement elementvalor_por_pagar = document.createElement(PagosAutorizadosConstantesFunciones.VALORPORPAGAR);\r\n\t\telementvalor_por_pagar.appendChild(document.createTextNode(pagosautorizados.getvalor_por_pagar().toString().trim()));\r\n\t\telement.appendChild(elementvalor_por_pagar);\r\n\r\n\t\tElement elementvalor_cancelado = document.createElement(PagosAutorizadosConstantesFunciones.VALORCANCELADO);\r\n\t\telementvalor_cancelado.appendChild(document.createTextNode(pagosautorizados.getvalor_cancelado().toString().trim()));\r\n\t\telement.appendChild(elementvalor_cancelado);\r\n\r\n\t\tElement elementnumero_cuenta = document.createElement(PagosAutorizadosConstantesFunciones.NUMEROCUENTA);\r\n\t\telementnumero_cuenta.appendChild(document.createTextNode(pagosautorizados.getnumero_cuenta().trim()));\r\n\t\telement.appendChild(elementnumero_cuenta);\r\n\r\n\t\tElement elementesta_autorizado = document.createElement(PagosAutorizadosConstantesFunciones.ESTAAUTORIZADO);\r\n\t\telementesta_autorizado.appendChild(document.createTextNode(pagosautorizados.getesta_autorizado().toString().trim()));\r\n\t\telement.appendChild(elementesta_autorizado);\r\n\r\n\t\tElement elementdescripcion = document.createElement(PagosAutorizadosConstantesFunciones.DESCRIPCION);\r\n\t\telementdescripcion.appendChild(document.createTextNode(pagosautorizados.getdescripcion().trim()));\r\n\t\telement.appendChild(elementdescripcion);\r\n\r\n\t\tElement elementfecha_corte_dato = document.createElement(PagosAutorizadosConstantesFunciones.FECHACORTE);\r\n\t\telementfecha_corte_dato.appendChild(document.createTextNode(pagosautorizados.getfecha_corte_dato().toString().trim()));\r\n\t\telement.appendChild(elementfecha_corte_dato);\r\n\r\n\t\tElement elementestado = document.createElement(PagosAutorizadosConstantesFunciones.ESTADO);\r\n\t\telementestado.appendChild(document.createTextNode(pagosautorizados.getestado().trim()));\r\n\t\telement.appendChild(elementestado);\r\n\r\n\t\tElement elementcodigo_cuenta_con_cliente = document.createElement(PagosAutorizadosConstantesFunciones.CODIGOCUENTACONCLIENTE);\r\n\t\telementcodigo_cuenta_con_cliente.appendChild(document.createTextNode(pagosautorizados.getcodigo_cuenta_con_cliente().trim()));\r\n\t\telement.appendChild(elementcodigo_cuenta_con_cliente);\r\n\r\n\t\tElement elementcodigo_cuenta_con_banco = document.createElement(PagosAutorizadosConstantesFunciones.CODIGOCUENTACONBANCO);\r\n\t\telementcodigo_cuenta_con_banco.appendChild(document.createTextNode(pagosautorizados.getcodigo_cuenta_con_banco().trim()));\r\n\t\telement.appendChild(elementcodigo_cuenta_con_banco);\r\n\t}", "public void removeFilesFromUser(\r\n registry.ClientRegistryStub.RemoveFilesFromUser removeFilesFromUser6\r\n\r\n ) throws java.rmi.RemoteException\r\n \r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n\r\n \r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\r\n _operationClient.getOptions().setAction(\"urn:removeFilesFromUser\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n //Style is Doc.\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n removeFilesFromUser6,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://registry\",\r\n \"removeFilesFromUser\")),new javax.xml.namespace.QName(\"http://registry\",\r\n \"removeFilesFromUser\"));\r\n \r\n\r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n _operationClient.execute(true);\r\n\r\n \r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n \r\n return;\r\n }", "@WebService(name = \"livros\", targetNamespace = \"http://servico.estoque.knight.com.br/\")\n@XmlSeeAlso({\n br.com.knight.estoque.servico.ObjectFactory.class,\n br.com.knight.estoque.servico.excecoes.ObjectFactory.class\n})\npublic interface Livros {\n\n\n /**\n * \n * @param usuario\n * @param parameters\n * @return\n * returns br.com.knight.estoque.servico.CriarLivroResponse\n * @throws UsuarioNaoAutorizadoException\n * @throws SOAPException_Exception\n */\n @WebMethod\n @WebResult(name = \"criarLivroResponse\", targetNamespace = \"http://servico.estoque.knight.com.br/\", partName = \"result\")\n @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n public CriarLivroResponse criarLivro(\n @WebParam(name = \"criarLivro\", targetNamespace = \"http://servico.estoque.knight.com.br/\", partName = \"parameters\")\n CriarLivro parameters,\n @WebParam(name = \"usuario\", targetNamespace = \"http://servico.estoque.knight.com.br/\", header = true, partName = \"usuario\")\n Usuario usuario)\n throws SOAPException_Exception, UsuarioNaoAutorizadoException\n ;\n\n /**\n * \n * @return\n * returns java.util.List<br.com.knight.estoque.servico.Livro>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"listarLivros\", targetNamespace = \"http://servico.estoque.knight.com.br/\", className = \"br.com.knight.estoque.servico.ListarLivros\")\n @ResponseWrapper(localName = \"listarLivrosResponse\", targetNamespace = \"http://servico.estoque.knight.com.br/\", className = \"br.com.knight.estoque.servico.ListarLivrosResponse\")\n public List<Livro> listarLivros();\n\n /**\n * \n * @param tamanhoDaPagina\n * @param numeroDaPagina\n * @return\n * returns java.util.List<br.com.knight.estoque.servico.Livro>\n */\n @WebMethod\n @WebResult(name = \"livro\", targetNamespace = \"\")\n @RequestWrapper(localName = \"listarLivrosPaginacao\", targetNamespace = \"http://servico.estoque.knight.com.br/\", className = \"br.com.knight.estoque.servico.ListarLivrosPaginacao\")\n @ResponseWrapper(localName = \"listarLivrosPaginacaoResponse\", targetNamespace = \"http://servico.estoque.knight.com.br/\", className = \"br.com.knight.estoque.servico.ListarLivrosPaginacaoResponse\")\n public List<Livro> listarLivrosPaginacao(\n @WebParam(name = \"numeroDaPagina\", targetNamespace = \"\")\n int numeroDaPagina,\n @WebParam(name = \"tamanhoDaPagina\", targetNamespace = \"\")\n int tamanhoDaPagina);\n\n}", "public alterarSenhaCliente() {\n }", "public void enviaMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=4\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}", "public void setFilaDatosExportarXmlCierreCaja(CierreCaja cierrecaja,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(CierreCajaConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(cierrecaja.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(CierreCajaConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(cierrecaja.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(CierreCajaConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(cierrecaja.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementsucursal_descripcion = document.createElement(CierreCajaConstantesFunciones.IDSUCURSAL);\r\n\t\telementsucursal_descripcion.appendChild(document.createTextNode(cierrecaja.getsucursal_descripcion()));\r\n\t\telement.appendChild(elementsucursal_descripcion);\r\n\r\n\t\tElement elementusuario_descripcion = document.createElement(CierreCajaConstantesFunciones.IDUSUARIO);\r\n\t\telementusuario_descripcion.appendChild(document.createTextNode(cierrecaja.getusuario_descripcion()));\r\n\t\telement.appendChild(elementusuario_descripcion);\r\n\r\n\t\tElement elementtipoformapago_descripcion = document.createElement(CierreCajaConstantesFunciones.IDTIPOFORMAPAGO);\r\n\t\telementtipoformapago_descripcion.appendChild(document.createTextNode(cierrecaja.gettipoformapago_descripcion()));\r\n\t\telement.appendChild(elementtipoformapago_descripcion);\r\n\r\n\t\tElement elementfecha = document.createElement(CierreCajaConstantesFunciones.FECHA);\r\n\t\telementfecha.appendChild(document.createTextNode(cierrecaja.getfecha().toString().trim()));\r\n\t\telement.appendChild(elementfecha);\r\n\r\n\t\tElement elementtotal = document.createElement(CierreCajaConstantesFunciones.TOTAL);\r\n\t\telementtotal.appendChild(document.createTextNode(cierrecaja.gettotal().toString().trim()));\r\n\t\telement.appendChild(elementtotal);\r\n\r\n\t\tElement elementtotal_diferencia = document.createElement(CierreCajaConstantesFunciones.TOTALDIFERENCIA);\r\n\t\telementtotal_diferencia.appendChild(document.createTextNode(cierrecaja.gettotal_diferencia().toString().trim()));\r\n\t\telement.appendChild(elementtotal_diferencia);\r\n\r\n\t\tElement elementesta_activo = document.createElement(CierreCajaConstantesFunciones.ESTAACTIVO);\r\n\t\telementesta_activo.appendChild(document.createTextNode(cierrecaja.getesta_activo().toString().trim()));\r\n\t\telement.appendChild(elementesta_activo);\r\n\t}", "@WebService(name = \"UserService\", targetNamespace = \"http://services/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface UserService {\n\n\n /**\n * \n * @param id\n * @return\n * returns services.Anagrafica\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUserById\", targetNamespace = \"http://services/\", className = \"services.GetUserById\")\n @ResponseWrapper(localName = \"getUserByIdResponse\", targetNamespace = \"http://services/\", className = \"services.GetUserByIdResponse\")\n public Anagrafica getUserById(\n @WebParam(name = \"id\", targetNamespace = \"\")\n int id);\n\n /**\n * \n * @param id\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteUser\", targetNamespace = \"http://services/\", className = \"services.DeleteUser\")\n @ResponseWrapper(localName = \"deleteUserResponse\", targetNamespace = \"http://services/\", className = \"services.DeleteUserResponse\")\n public void deleteUser(\n @WebParam(name = \"id\", targetNamespace = \"\")\n int id);\n\n /**\n * \n * @param anagrafica\n */\n @WebMethod\n @RequestWrapper(localName = \"updateUser\", targetNamespace = \"http://services/\", className = \"services.UpdateUser\")\n @ResponseWrapper(localName = \"updateUserResponse\", targetNamespace = \"http://services/\", className = \"services.UpdateUserResponse\")\n public void updateUser(\n @WebParam(name = \"anagrafica\", targetNamespace = \"http://services/\")\n Anagrafica anagrafica);\n\n /**\n * \n * @param cf\n * @param cognome\n * @param cellulare\n * @param nome\n * @param telefono\n * @param email\n */\n @WebMethod\n @RequestWrapper(localName = \"addUser\", targetNamespace = \"http://services/\", className = \"services.AddUser\")\n @ResponseWrapper(localName = \"addUserResponse\", targetNamespace = \"http://services/\", className = \"services.AddUserResponse\")\n public void addUser(\n @WebParam(name = \"nome\", targetNamespace = \"\")\n String nome,\n @WebParam(name = \"cognome\", targetNamespace = \"\")\n String cognome,\n @WebParam(name = \"cf\", targetNamespace = \"\")\n String cf,\n @WebParam(name = \"telefono\", targetNamespace = \"\")\n String telefono,\n @WebParam(name = \"cellulare\", targetNamespace = \"\")\n String cellulare,\n @WebParam(name = \"email\", targetNamespace = \"\")\n String email);\n\n /**\n * \n * @return\n * returns java.util.List<services.Anagrafica>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"listUsers\", targetNamespace = \"http://services/\", className = \"services.ListUsers\")\n @ResponseWrapper(localName = \"listUsersResponse\", targetNamespace = \"http://services/\", className = \"services.ListUsersResponse\")\n public List<Anagrafica> listUsers();\n\n}", "public String registrarRol() throws Exception\n {\n this.setMsg(\"\");\n String vst_mensaje=\"\";\n ArrayList list_st_comentarios = new ArrayList();\n /* Campos requeridos para registrar un funcionario */\n if(this.getIdRol() == 0)list_st_comentarios.add(\" el número\");\n if(this.getNombreRol().equals(\"\"))list_st_comentarios.add(\" el Nombre\");\n if(this.getDescripcionRol().equals(\"\"))list_st_comentarios.add(\" la Descripción\");\n\n if(!list_st_comentarios.isEmpty())\n {\n for(int i = 0; i < list_st_comentarios.size();i++)\n {\n if(list_st_comentarios.size() == 1)\n vst_mensaje = (String)list_st_comentarios.get(i)+\".\";\n else if(i == 0)\n vst_mensaje += (String)list_st_comentarios.get(i);\n else if(i == list_st_comentarios.size()-1 )\n vst_mensaje += \" y \" + (String)list_st_comentarios.get(i)+\".\";\n else\n vst_mensaje += \", \" + (String)list_st_comentarios.get(i);\n }\n vst_mensaje = \"Para Registrar un rol debe ingresar \"+ vst_mensaje;\n }\n\n if(!list_st_comentarios.isEmpty())\n {\n this.setMsg(vst_mensaje);\n return \"faltandatos\";\n }\n else\n {\n if(new ToolBean().ValidarEsNumero(Integer.toString(this.getIdRol())))\n {\n if(!new ToolBean().ValidarEsPalabra(this.getNombreRol()))\n {\n this.setMsg(\"El nombre del rol debe contener únicamente letras.\");\n return \"\";\n }\n else if(!new ToolBean().ValidarEsPalabra(this.getDescripcionRol()))\n {\n this.setMsg(\"La descripción del rol debe contener únicamente letras.\");\n return \"\";\n }\n else\n {\n Servicio.rolAgregar(this);\n //this.list_ins_RolBeanAdd(this);// <== para el PROTOTIPO\n Servicio.rolListarTodos(this);\n\n\n if(this.getIdRol() == 0)\n return \"noestaregistrado\";\n else\n {\n if(this.getMsg().equals(\"El rol ya está registrado en el sistema.\"))\n return \"yaexiste\";\n else\n return \"registrado\";\n }\n }\n }\n else\n {\n this.setMsg(\"El ID del Rol debe ser un valor numérico.\");\n return \"\";\n }\n }\n }", "@WebService(name = \"UsersTraining\", targetNamespace = \"http://SOAPService.BusinessLogic/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface UsersTraining {\r\n\r\n\r\n /**\r\n * \r\n * @param monthFilter\r\n * @param eventName\r\n * @return\r\n * returns BusinessLogic.SOAPServiceClient.RobWS\r\n */\r\n @WebMethod(operationName = \"UsuariosACapacitar\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"UsuariosACapacitar\", targetNamespace = \"http://SOAPService.BusinessLogic/\", className = \"BusinessLogic.SOAPServiceClient.UsuariosACapacitar\")\r\n @ResponseWrapper(localName = \"UsuariosACapacitarResponse\", targetNamespace = \"http://SOAPService.BusinessLogic/\", className = \"BusinessLogic.SOAPServiceClient.UsuariosACapacitarResponse\")\r\n @Action(input = \"http://SOAPService.BusinessLogic/UsersTraining/UsuariosACapacitarRequest\", output = \"http://SOAPService.BusinessLogic/UsersTraining/UsuariosACapacitarResponse\")\r\n public RobWS usuariosACapacitar(\r\n @WebParam(name = \"EventName\", targetNamespace = \"\")\r\n String eventName,\r\n @WebParam(name = \"MonthFilter\", targetNamespace = \"\")\r\n int monthFilter);\r\n\r\n}", "@WebService(name = \"CardWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CardWS {\n\n\n /**\n * \n * @param plastic\n * @param fechaCorte\n * @param fechaAsignacion\n * @param client\n * @param canal\n * @return\n * returns com.cbp1.ws.cbp.service.RespuestaDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"assignCardToClientWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.AssignCardToClientWS\")\n @ResponseWrapper(localName = \"assignCardToClientWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.AssignCardToClientWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/assignCardToClientWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/assignCardToClientWSResponse\")\n public RespuestaDTO assignCardToClientWS(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"plastic\", targetNamespace = \"\")\n Plastic plastic,\n @WebParam(name = \"fechaCorte\", targetNamespace = \"\")\n String fechaCorte,\n @WebParam(name = \"fechaAsignacion\", targetNamespace = \"\")\n String fechaAsignacion,\n @WebParam(name = \"canal\", targetNamespace = \"\")\n String canal);\n\n /**\n * \n * @param client\n * @param canal\n * @param status\n * @return\n * returns com.cbp1.ws.cbp.service.RespuestaDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"cancelCardWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.CancelCardWS\")\n @ResponseWrapper(localName = \"cancelCardWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.CancelCardWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/cancelCardWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/cancelCardWSResponse\")\n public RespuestaDTO cancelCardWS(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"status\", targetNamespace = \"\")\n String status,\n @WebParam(name = \"canal\", targetNamespace = \"\")\n String canal);\n\n /**\n * \n * @param plasticNumber\n * @return\n * returns com.cbp1.ws.cbp.service.Plastic\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"consultPlasticByNumberWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.ConsultPlasticByNumberWS\")\n @ResponseWrapper(localName = \"consultPlasticByNumberWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.ConsultPlasticByNumberWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/consultPlasticByNumberWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/consultPlasticByNumberWSResponse\")\n public Plastic consultPlasticByNumberWS(\n @WebParam(name = \"plasticNumber\", targetNamespace = \"\")\n String plasticNumber);\n\n}", "public void fechar() {\n\n try {\n geraLog.criaLog(codigoUsuario, \"Principal\", \"Fez Logoff do Sistema\");\n } catch (IOException ex) {\n Logger.getLogger(JfLogin.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n this.dispose();\n\n }", "private void enviarDatos() {\n try {\n if (validarDatos()) { // verificar si todos los datos obligatorios tienen informacion\n // verificar que el usuario de la pantalla presiono el boton YES\n if (obtenerMensajeDeConfirmacion() == JOptionPane.YES_OPTION) {\n llenarEntidadConLosDatosDeLosControles(); // llenar la entidad de Rol con los datos de la caja de texto del formulario\n int resultado = 0;\n switch (opcionForm) {\n case FormEscOpcion.CREAR:\n resultado = ClienteDAL.crear(clienteActual); // si la propiedad opcionForm es CREAR guardar esos datos en la base de datos\n break;\n case FormEscOpcion.MODIFICAR:\n resultado = ClienteDAL.modificar(clienteActual);// si la propiedad opcionForm es MODIFICAR actualizar esos datos en la base de datos\n break;\n case FormEscOpcion.ELIMINAR:\n // si la propiedad opcionForm es ELIMINAR entonces quitamos ese registro de la base de datos\n resultado = ClienteDAL.eliminar(clienteActual);\n break;\n default:\n break;\n }\n if (resultado != 0) {\n // notificar al usuario que \"Los datos fueron correctamente actualizados\"\n JOptionPane.showMessageDialog(this, \"Los datos fueron correctamente actualizados\");\n if (frmPadre != null) {\n // limpiar los datos de la tabla de datos del formulario FrmRolLec\n frmPadre.iniciarDatosDeLaTabla(new ArrayList());\n }\n this.cerrarFormulario(false); // Cerrar el formulario utilizando el metodo \"cerrarFormulario\"\n } else {\n // En el caso que las filas modificadas en el la base de datos sean cero \n // mostrar el siguiente mensaje al usuario \"Sucedio un error al momento de actualizar los datos\"\n JOptionPane.showMessageDialog(this, \"Sucedio un error al momento de actualizar los datos\");\n }\n }\n }\n } catch (Exception ex) {\n // En el caso que suceda un error al ejecutar la consulta en la base de datos \n // mostrar el siguiente mensaje al usuario \"Sucedio un error al momento de actualizar los datos\"\n JOptionPane.showMessageDialog(this, \"Sucedio el siguiente error: \" + ex.getMessage());\n }\n\n }", "boolean borrarRol(int idRol) throws Exception;", "public void exportAllFacturesClient(OutputStream outputStream, long id) throws IOException {\n\n Workbook workbook = new XSSFWorkbook();\n \n // Styles des cellules: \n CellStyle styleGreen = workbook.createCellStyle();\n styleGreen.setFillForegroundColor(IndexedColors.GREEN.getIndex());\n styleGreen.setFillPattern(FillPatternType.SOLID_FOREGROUND); \n \n CellStyle styleBlue = workbook.createCellStyle();\n styleBlue.setFillForegroundColor(IndexedColors.BLUE.getIndex());\n styleBlue.setFillPattern(FillPatternType.SOLID_FOREGROUND); \n \n CellStyle styleYellow = workbook.createCellStyle();\n styleYellow.setFillForegroundColor(IndexedColors.YELLOW.getIndex());\n styleYellow.setFillPattern(FillPatternType.SOLID_FOREGROUND); \n \n Font font = workbook.createFont();\n font.setColor(IndexedColors.WHITE.getIndex());\n styleGreen.setFont(font);\n styleBlue.setFont(font);\n styleYellow.setFont(font);\n \n \n \n List<FactureDto> listAllFacturesAllClient = this.factureService.findAllFactures();\n \n \n for (FactureDto factureDto : listAllFacturesAllClient) {\n\t\t\tif(factureDto.getClient().id == id) {\n\t //SHEET\n\t Sheet sheet = workbook.createSheet(\"Facture\"+factureDto.getId());\n\t Row headerRow = sheet.createRow(0);\n\t //LIBELLES\n\t Cell cellLibelle0 = headerRow.createCell(0);\n\t Cell cellLibelle1 = headerRow.createCell(1);\n\t Cell cellLibelle2 = headerRow.createCell(2);\n\t Cell cellLibelle3 = headerRow.createCell(3);\n\t cellLibelle0.setCellValue(\"Désignation\");\n\t cellLibelle1.setCellValue(\"Quantité\");\n\t cellLibelle2.setCellValue(\"Prix Unitaire\");\n\t cellLibelle3.setCellValue(\"Prix ligne\");\n\t cellLibelle0.setCellStyle(styleGreen);\n\t cellLibelle1.setCellStyle(styleBlue);\n\t cellLibelle2.setCellStyle(styleYellow);\n\t cellLibelle3.setCellStyle(styleGreen);\n\n\t for (int i =0; i<factureDto.getLigneFactures().size(); i++) {\n\t \t\t \t\n\t Row newRow = sheet.createRow(i+1);\n\t \n\t Cell firstCell = newRow.createCell(0);\n\t firstCell.setCellStyle(styleGreen);\n\t firstCell.setCellValue(factureDto.getLigneFactures().get(i).getArticle().getLibelle());\n\t \n\t Cell secondCell =newRow.createCell(1);\n\t secondCell.setCellValue(factureDto.getLigneFactures().get(i).getQuantite());\n\t secondCell.setCellStyle(styleBlue);\n\t \n\t Cell thirdCell =newRow.createCell(3);\n\t thirdCell.setCellValue(factureDto.getLigneFactures().get(i).getArticle().getPrix());\n\t thirdCell.setCellStyle(styleYellow);\n\t \n\t Cell fourthCell =newRow.createCell(3);\n\t fourthCell.setCellValue(\n\t \t\t(factureDto.getLigneFactures().get(i).getArticle().getPrix())*(factureDto.getLigneFactures().get(i).getQuantite())\n\t \t\t);\n\t fourthCell.setCellStyle(styleGreen);\n\t \t\t}\n\t\t\t}\n\t\t}\n\n workbook.write(outputStream);\n workbook.close();\n }", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarMotivo\";\r\n\t}", "public static void tener_Usuario_activo() {\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='username']\").typeKeys(\"ocastro\");\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='password']\").setText(\"bogota2016\");\n\t\t\t\tdesktop.<DomButton>find(\"//BrowserApplication//BrowserWindow//input[@id='loginbtn']\").click();\n\t\t\t\t//end recording\n\t\t\t\tSerenity.takeScreenshot();\n\t}", "@Override\n\tpublic String service(HttpPojo pojo,BusinessPojo buspojo) {\n\t\tString data = null; \n\t\tlogger.info(\"UrlHttpService is begin\");\n\t\tif(pojo.getServer().length()>=(buspojo.getServer_begin()+buspojo.getServer_length())){\n\t\t\tdata =pojo.getServer().substring(buspojo.getServer_begin(), buspojo.getServer_begin()+buspojo.getServer_length());\n\t\t\tlogger.info(\"file is \"+buspojo.getFile()+File.separator+data);\n\t\t\tFile file = new File(buspojo.getFile()+File.separator+data);\n\t\t\tif(file.isFile()){\n\t\t\t\ttry {\n\t\t\t\t\tInputStream fin = new FileInputStream(file);\n\t\t\t\t\tBufferedInputStream buf = new BufferedInputStream(fin);\n\t\t\t\t\tByteArrayOutputStream dos = new ByteArrayOutputStream();\n\t\t\t\t\tbyte[] tmp = new byte[1024]; \n\t\t\t\t\tint n=0;\n\t\t\t\t\twhile((n=buf.read(tmp))!=-1){ \n\t\t\t\t\t\tdos.write(tmp,0,n); \n\t\t\t\t\t}\n\t\t\t\t\tif(logger.isDebugEnabled()){\n\t\t\t\t\t\tlogger.debug(\"read return xml is \"+dos.toString());\n\t\t\t\t\t}\n\t\t\t\t\tlogger.info(\"UrlHttpService is succ...\");\n\t\t\t\t\treturn dos.toString(\"GBK\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogger.error(\"server is error\",e);\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\tlogger.error(\"policy set length is little\");\n\t\t}\n\t\treturn null;\n\t}", "public void analizarArchivo(){\n\t\ttry{\n\t\t\twhile((caracter = inputStream.read())!=-1){\n\t\t\t\testado = analizador.analizarSimbolo(caracter);\n\t\t\t\t//outputStream.write(analizador.simbolo);\n\t\t\t\thistoriaStream.write(formatoEstado(estado));\n\t\t\t\tif(estado == 18 ){//La palabra es web o ebay\n\t\t\t\t\toutputStream.write(\"Auto: Línea [\"+analizador.numero_lineas+\"] Palabra: ebay \\n\");\n\t\t\t\t}else if(estado == 146){\n\t\t\t\t\toutputStream.write(\"Auto: Línea [\"+analizador.numero_lineas+\"] Palabra: web \\n\");\n\t\t\t\t}\n\t\t\t\tif(analizador.isPalabra == true || analizador.isLinea == true){\n\t\t\t\t\thistoriaStream.write(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Num. palabras: \"+analizador.numero_palabras+\" Numero líneas: \"+analizador.numero_lineas+\" Numero correctas: \"+analizador.numero_correctas);\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Remote\npublic interface IRClienteWSAXIS {\n\n /**\n * Realiza la invocacion con el WebService para realizar la registrar la financiacion y obtener el id del convenio\n * \n * @param financiacion\n * datos de la financiacion\n * @return Financiacion con el Numero de axis para Wla financiacion\n * @author julio.pinzon(2016-08-12)\n * @throws CirculemosNegocioException\n */\n public FinanciacionDTO registrarFinanciacion(FinanciacionDTO financiacion) throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para anular la financiacion\n * \n * @param numeroFinanciacion\n * numero del convenio\n * @author julio.pinzon(2016-08-17)\n * @throws CirculemosNegocioException\n */\n public void anularFinanciacion(String numeroFinanciacion) throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para realizar la impugnacion de un comparendo\n * \n * @param comparendo\n * datos del comparendo\n * @param impugnacion\n * datos de la impugnacion\n * @author julio.pinzon(2016-08-17)\n * @throws CirculemosNegocioException\n */\n public void impugnarComparendo(ComparendoDTO comparendo, ProcesoDTO impugnacion) throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para realizar el registro del fallo sobre la impugnacion previa\n * \n * @param fallo\n * datos del fallo\n * @return Nuevo numero de factura\n * @author julio.pinzon(2016-08-17)\n * @param idProceso\n * @param comparendoDTO\n * @throws CirculemosNegocioException\n */\n public Long registrarFalloImpugnacion(FalloImpugnacionDTO fallo, ComparendoDTO comparendoDTO, Long idProceso)\n throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para realizar el registro del numero de coactivo de axis\n * \n * @param coactivoDTO\n * @return CoactivoDTO\n * @throws CirculemosNegocioException\n * @author Jeison.Rodriguez (2016-09-21)\n */\n public CoactivoDTO registarCoactivo(CoactivoDTO coactivoDTO) throws CirculemosNegocioException;\n}", "public static void archivoUsuariosNulos() throws Exception {\n\n\t\tFileOutputStream fo = new FileOutputStream(Const.FUSUARIOS, true);\n\t\tMiObjectOutputStream oo = new MiObjectOutputStream(fo);\n\n\t\tint i = 0;\n\t\twhile (i < Const.MAXUSUARIOS) {\n\n\t\t\tUsuario u = new Usuario();\n\t\t\tu = null;\n\t\t\too.writeObject(u);\n\n\t\t\t// Guardo los usuarios en el archivo\n\t\t\ti++;\n\n\t\t} // finaliza el while para la lectura\n\t\too.close();\n\t}" ]
[ "0.6001916", "0.56322896", "0.5544485", "0.5519399", "0.54185283", "0.5410103", "0.5242732", "0.52405286", "0.52107847", "0.51973534", "0.5107172", "0.5055054", "0.5052992", "0.5039647", "0.50392115", "0.500471", "0.49830416", "0.4974372", "0.49318534", "0.49012455", "0.48803836", "0.4873599", "0.48580366", "0.48507962", "0.48353133", "0.48323557", "0.4817459", "0.48130482", "0.48098823", "0.48033005", "0.47971952", "0.47918263", "0.4779956", "0.4771241", "0.47428277", "0.47412452", "0.47404733", "0.47384292", "0.471956", "0.4717093", "0.47158447", "0.47156367", "0.47051492", "0.46875006", "0.468043", "0.4680013", "0.46793687", "0.4678009", "0.4667402", "0.46664956", "0.4661901", "0.46592087", "0.46571484", "0.4651051", "0.4628869", "0.46109942", "0.4604846", "0.4604033", "0.4600238", "0.45931965", "0.4584795", "0.45833647", "0.45832825", "0.45755756", "0.45712242", "0.4570545", "0.4569797", "0.45673874", "0.4566404", "0.45627505", "0.45526117", "0.45506614", "0.4548381", "0.45421705", "0.4541537", "0.4538703", "0.45319057", "0.45310146", "0.45304918", "0.45291415", "0.45171756", "0.4514872", "0.45095515", "0.45025602", "0.45002648", "0.45001057", "0.44964904", "0.44909212", "0.44852322", "0.4484997", "0.44828972", "0.44818285", "0.4481425", "0.44807845", "0.44806996", "0.4477956", "0.44735625", "0.4473248", "0.44640514", "0.44634488" ]
0.45587775
70
actualizar Usuario ws no devuelve nada
public void wsupdate_user(UserWS user) throws HibernateException { User user_update = null; try { iniciaOperacion(); user_update = (User) sesion.get(User.class,user.getId_user()); //actualizo los camps de la tabla user_update.setLogin(user.getLogin()); user_update.setMail(user.getLogin()); user_update.setName(user.getName()); user_update.setPassword(user.getPassword());; user_update.setPhone(user.getPhone()); user_update.setRole(user.getRole()); user_update.setDepartment(user.getDepartment()); sesion.update(user_update); //le pasamos todo el objeto a modificar tx.commit(); } catch (HibernateException he) { manejaExcepcion(he); throw he; } finally { sesion.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void crearUsuarioWS(String name, String login, String pass){\n //JAXBElement<ArrayOfAdministrationResource> arrayAdminRole = obtenerRolesPorNombre(ConstantesWS.ROL_NAME_CLIENTE).;\n \n ObjectFactory fact = new ObjectFactory(); \n //fact.createArrayOfAdministrationRole(obtenerRolesPorNombre(ConstantesWS.ROL_NAME_CLIENTE).);\n \n //fact.createArrayOfint()\n \n //obtenerConexion().getRolesByIds()\n \n //busqueda y seteo del rol de cliente\n ArrayOfint aux =fact.createArrayOfint(); \n aux.getInt().add(Integer.valueOf(181)); //perfil del cliente \n ArrayOfAdministrationRole arrayRole = obtenerConexion().getRolesByIds(aux);\n \n JAXBElement<ArrayOfAdministrationRole> jaxbElementRol;\n jaxbElementRol = fact.createArrayOfAdministrationRole(arrayRole);\n \n //creacion del nuevo usuario con rol cliente\n AdministrationUser user = new AdministrationUser();\n user.setEnabled(Boolean.TRUE);\n user.setMustChangePassword(Boolean.FALSE);\n user.setLastName(fact.createString(name)); \n user.setPassword(fact.createString(pass));\n user.setUserName(fact.createString(login)); \n user.setRoles(jaxbElementRol); \n \n \n //agrego el nuevo usuario\n obtenerConexion().addUser(ConstantesWS.APLICACION_PROVEEDORES, user);\n \n }", "public static void tener_Usuario_activo() {\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='username']\").typeKeys(\"ocastro\");\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='password']\").setText(\"bogota2016\");\n\t\t\t\tdesktop.<DomButton>find(\"//BrowserApplication//BrowserWindow//input[@id='loginbtn']\").click();\n\t\t\t\t//end recording\n\t\t\t\tSerenity.takeScreenshot();\n\t}", "public void actualizarUsuario(Integer id, String nombre, long documento, String email, Boolean activo) throws Exception;", "public void actualizarUsuario(String cedula,String name ,String lastname , String city ,String phone ,String email,String password) throws BLException;", "public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }", "protected void accionUsuario() {\n\t\t\r\n\t}", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "@FXML\n\tpublic void updateMyUser(ActionEvent event) {\n\t\tSystemUser userToUpdate = restaurant.returnUser(LabelSystemUserName.getText());\n\t\tString name = txtSystemUserNewname.getText();\n\t\tString lastName = txtSystemUserNewLastname.getText();\n\t\tString id = txtSystemUserNewId.getText();\n\t\tString username = txtSystemUserNewUsername.getText();\n\n\t\tif (!name.equals(\"\") && !lastName.equals(\"\") && !id.equals(\"\") && !username.equals(\"\")) {\n\n\t\t\ttry {\n\t\t\t\tuserToUpdate.setNames(name);\n\t\t\t\tuserToUpdate.setSurNames(lastName);\n\t\t\t\tuserToUpdate.setIdNumber(id);\n\t\t\t\tuserToUpdate.setUsername(username);\n\t\t\t\tuserToUpdate.setPassword(passwordSystemUserNewPassword.getText());\n\t\t\t\trestaurant.saveUsersData();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Usuario actualizado satisfactoriamente\");\n\t\t\t\tdialog.setTitle(\"Proceso Satisfactorio\");\n\t\t\t\tdialog.show();\n\n\t\t\t\ttxtSystemUserNewname.setText(\"\");\n\t\t\t\ttxtSystemUserNewLastname.setText(\"\");\n\t\t\t\ttxtSystemUserNewId.setText(\"\");\n\t\t\t\ttxtSystemUserNewUsername.setText(\"\");\n\t\t\t\tpasswordSystemUserNewPassword.setText(\"\");\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización del usuario\");\n\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tFXMLLoader opWindow = new FXMLLoader(getClass().getResource(\"Options-window.fxml\"));\n\t\t\t\topWindow.setController(this);\n\t\t\t\tParent opPane = opWindow.load();\n\t\t\t\tmainPaneLogin.getChildren().setAll(opPane);\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 ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "private void actualizaUsuario() {\n\t\t\n\t\tInteger edad=miCoordinador.validarEdad(campoEdad.getText().trim());\n\t\t\n\t\tif (edad!=null) {\n\t\t\t\n\t\t\tUsuarioVo miUsuarioVo=new UsuarioVo();\n\t\t\t//se asigna cada dato... el metodo trim() del final, permite eliminar espacios al inicio y al final, en caso de que se ingresen datos con espacio\n\t\t\tmiUsuarioVo.setDocumento(campoDocumento.getText().trim());\n\t\t\tmiUsuarioVo.setNombre(campoNombre.getText().trim());\n\t\t\tmiUsuarioVo.setEdad(Integer.parseInt(campoEdad.getText().trim()));\n\t\t\tmiUsuarioVo.setProfesion(campoProfesion.getText().trim());\n\t\t\tmiUsuarioVo.setTelefono(campoTelefono.getText().trim());\n\t\t\tmiUsuarioVo.setDireccion(campoDireccion.getText().trim());\n\t\t\t\n\t\t\tString actualiza=\"\";\n\t\t\t//se llama al metodo validarCampos(), este retorna true o false, dependiendo de eso ingresa a una de las opciones\n\t\t\tif (miCoordinador.validarCampos(miUsuarioVo)) {\n\t\t\t\t//si se retornó true es porque todo está correcto y se llama a actualizar\n\t\t\t\tactualiza=miCoordinador.actualizaUsuario(miUsuarioVo);//en registro se almacena ok o error, dependiendo de lo que retorne el metodo\n\t\t\t}else{\n\t\t\t\tactualiza=\"mas_datos\";//si validarCampos() retorna false, entonces se guarda la palabra mas_datos para indicar que hace falta diligenciar los campos obligatorios\n\t\t\t}\n\t\t\t\n\t\t\t//si el registro es exitoso muestra un mensaje en pantalla, sino, se valida si necesita mas datos o hay algun error\n\t\t\tif (actualiza.equals(\"ok\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \" Se ha Modificado Correctamente \",\"Confirmación\",JOptionPane.INFORMATION_MESSAGE);\t\t\t\n\t\t\t}else{\n\t\t\t\tif (actualiza.equals(\"mas_datos\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Debe Ingresar los campos obligatorios\",\"Faltan Datos\",JOptionPane.WARNING_MESSAGE);\t\t\t\n\t\t\t\t}else{\n\t\t JOptionPane.showMessageDialog(null, \"Error al Modificar\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(null, \"Debe ingresar una edad Valida!!!\",\"Advertencia\",JOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t\t\t\t\n\t}", "public void subeUsuario() {\n\t\tEditText nicknameText = (EditText) findViewById(R.id.nicknameEditText);\n\t\tstrNickname = nicknameText.getText().toString().trim();\n\t\t\n\t\tif (strNickname.equals(\"\")) {\n\t\t\tToast.makeText(this, \"Nickname no puede estar vacío\",Toast.LENGTH_LONG).show();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tguardarPreferences();\n\t\t\n\t\t//lanzamos un uploadService\n\t\tIntent uploadService = new Intent(getApplicationContext(),UploadUserService.class);\n\t\t\n\t\tuploadService.putExtra(\"id\", userId);\n\t\tuploadService.putExtra(\"nickname\", strNickname);\n\t\tuploadService.putExtra(\"mail\", strEmail);\n\t\tuploadService.putExtra(\"dob\", dayOfBirth);\n\t\tuploadService.putExtra(\"pass\", strPassword);\n\t\tuploadService.putExtra(\"genero\", gender);\n\t\tuploadService.putExtra(\"avatar\", strAvatar);\n\t\t\n\t\tstartService(uploadService);\n\t}", "private void editUser(){\n getDeviceLocation();\n ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser);\n ServerManager.editUserProfile(userManager,callback);\n }", "public alterarSenhaCliente() {\n }", "private void crearUsuarioWS(RequestParams params){\n prgDialog.show();\n AsyncHttpClient client = new AsyncHttpClient();\n client.post(ws.urlservice+\"registroCliente\", params, new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n prgDialog.dismiss();\n if(statusCode==201){\n //Toast.makeText(getApplicationContext(), \"Registro con Exito!\", Toast.LENGTH_SHORT).show();\n AlertDialog.Builder builder = new AlertDialog.Builder(RegisterActivity.this);\n builder.setTitle(\"Registro con Exito!\");\n builder.setMessage(\"Por favor revise su correo electrónico para verificar su cuenta.\").setPositiveButton(\"ACEPTAR\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n AlertDialog alert = builder.create();\n alert.setCancelable(false);\n alert.show();\n }else{\n Toast.makeText(getApplicationContext(), \"No se pudo guardar el registro!\", Toast.LENGTH_SHORT).show();\n }\n }\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n prgDialog.dismiss();\n Toast.makeText(getApplicationContext(), \"Ocurrio un error con el servidor\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public static void update_TbUser() {\n builder = new Uri.Builder();\n builder.appendQueryParameter(\"username\", Server.owner.get_username());\n builder.appendQueryParameter(\"email\", Server.owner.get_Email());\n builder.appendQueryParameter(\"birthday\", Server.owner.get_Birthday().toString());\n builder.appendQueryParameter(\"gender\", Server.owner.get_gender() ? \"1\" : \"0\");\n builder.appendQueryParameter(\"phone\", Server.owner.get_Phone());\n builder.appendQueryParameter(\"image_source\", Server.owner.get_imageSource());\n builder.appendQueryParameter(\"conversations\", Server.owner.get_AllConversation());\n\n String url = Constant.M_HOST + Constant.M_UPDATE_USER_WITHOUT_PASS;\n String a = uService.execute(builder, url);\n }", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tUsuarioPojo user = null;\r\n\t\t\t\tUsuarioPersistencia up = new UsuarioPersistencia();\r\n\r\n\t\t\t\t//int id = up.obtenerIdEmple();\r\n\t\t\t\tString usuarioMail = txtUsuario.getText();\r\n\t\t\t\tString password = new String(pwdPass.getPassword()); // DNI de momento\r\n\t\t\t\tString passwordC = new String(pwdConfPass.getPassword());\r\n\t\t\t\tString apenom = txtApenom.getText();\r\n\t\t\t\tString dni = txtDni.getText();\r\n\t\t\t\tint numSS = Integer.parseInt(txtSegSoc.getText());\r\n\t\t\t\tString cuenta = txtCuenta.getText();\r\n\r\n\t\t\t\tif (password.equals(passwordC)) {\r\n\t\t\t\t\t// creamos un objeto usuario si coinciden las contraseñas\r\n\t\t\t\t\tuser = new UsuarioPojo(apenom, numSS, cuenta, dni, usuarioMail, password);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (user != null) {\r\n\t\t\t\t\t// insertaremos el usuario si coinciden las contraseñas\r\n\t\t\t\t\tup = new UsuarioPersistencia();\r\n\t\t\t\t\tint res = up.insertarUser(user);\r\n\r\n\t\t\t\t\tif (res == 1) { // se habrá registrado al usuario\r\n\t\t\t\t\t\tSystem.out.println(\"Insertado correctamente\");\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Registro insertado correctamente\",\r\n\t\t\t\t\t\t\t\t\"Resultado del Registro\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\tdispose(); // dispose cierra ventana actual, System.exit(0) sale del programa\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// mostramos msg si no coinciden las contraseñas, manteniendo el control en dreg\r\n\t\t\t\t\tSystem.out.println(\"No insertado\");\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Contraseñas introducidas no coinciden\", \"Error de contraseña\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\t// limpiamos campos de contraseña\r\n\t\t\t\t}\r\n\t\t\t}", "public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "private void actualizarUsuario() {\n\n\n if (!altura_et.getText().toString().isEmpty() && !peso_et.getText().toString().isEmpty() &&\n !email_et.getText().toString().isEmpty() && !nombreUO_et.getText().toString().isEmpty()) {\n\n user.setAltura(Integer.parseInt(altura_et.getText().toString()));\n user.setPeso(Integer.parseInt(peso_et.getText().toString()));\n user.setCorreo(email_et.getText().toString());\n user.setUserID(nombreUO_et.getText().toString());\n\n\n }else\n Toast.makeText(this,\"Comprueba los datos\", Toast.LENGTH_LONG).show();\n\n }", "@OnWebSocketConnect\n public void conectando(Session usuario){\n System.out.println(\"Conectando Usuario: \"+usuario.getLocalAddress().getAddress().toString());\n usuariosConectados.add(usuario);\n }", "@Test\n public void testUsernameChange() {\n final String username = \"[email protected]\";\n // There was a bug related to the Changing of Username, as it failed if\n // the password contained upper/lower case letters. Since IWS followed\n // the rule from IW3 and only looked at Passwords case insensitive.\n final String password = \"Harvey's password which is SUPER secret.\";\n final CreateUserRequest createRequest = new CreateUserRequest(username, password, \"Harvey\", \"Rabbit\");\n final CreateUserResponse createResponse = administration.createUser(token, createRequest);\n assertThat(createResponse.isOk(), is(true));\n\n // To ensure that we can use the account, we have to activate it. Once\n // it is activated, we can move on to the actual test.\n final String activationCode = readCode(NotificationType.ACTIVATE_NEW_USER);\n final Response activateResponse = administration.activateUser(activationCode);\n assertThat(activateResponse.isOk(), is(true));\n\n // Now we have a fresh new account which is active. So we can now try to\n // change the Username. To do this, we have to log in as the user, since\n // only a user may change his/her own username.\n final String newUsername = \"[email protected]\";\n final AuthenticationToken myToken = login(username, password);\n // We're building the request with the user itself as User Object\n final UserRequest updateRequest = new UserRequest(createResponse.getUser());\n // We're setting a new username here, which we can use.\n updateRequest.setNewUsername(newUsername);\n // To update the username, we need to provide some credentials,\n // otherwise the IWS will reject the request. This is needed to ensure\n // that nobody is attempting to hijack an active account.\n updateRequest.setPassword(password);\n // Let's just clear the Spy before we're using it :-)\n final Response updateResponse = administration.controlUserAccount(myToken, updateRequest);\n assertThat(updateResponse.isOk(), is(true));\n // Changing username must work without being logged in, well actually\n // it doesn't matter. As it doesn't use the current Session.\n logout(myToken);\n // Now, we can read out the update Code from the Notifications, which\n // is a cheap way of reading the value from the e-mail that is send.\n final String updateCode = readCode(NotificationType.UPDATE_USERNAME);\n final Response resetResponse = administration.updateUsername(updateCode);\n assertThat(resetResponse.isOk(), is(true));\n\n // Final part of the test, login with the new username, and ensure that\n // the UserId we're getting is the same as the previous Id.\n final AuthenticationToken newToken = login(newUsername, password);\n assertThat(newToken, is(not(nullValue())));\n final FetchPermissionResponse permissionResponse = access.fetchPermissions(newToken);\n assertThat(permissionResponse.isOk(), is(true));\n assertThat(permissionResponse.getAuthorizations().get(0).getUserGroup().getUser().getUserId(), is(createResponse.getUser().getUserId()));\n logout(newToken);\n // And done - Long test, but worth it :-)\n }", "private static void updateUser() {\n\t currentUser = Structure.User(currentUser);\n\t CRUDUsers.compareWithRemote(currentUser).subscribe(new SingleSubscriber<User>() {\n\t\t @Override\n\t\t public void onSuccess(User value) {\n\t\t\t\tConnection.logIn(value);\n\t\t }\n\t\t\n\t\t @Override\n\t\t public void onError(Throwable error) {\n\t\t\t logOff();\n\t\t\t App.showMessage(error.getMessage());\n\t\t }\n\t });\n }", "public void ponerUsuarioInactivo(String idUsuario);", "public void logOut() {\r\n\t\tthis.modoAdmin = false;\r\n\t\tthis.usuarioConectado = null;\r\n\t}", "@Ignore(\"Test is not done yet\")\n @Test\n public void testChangingUsernameToExisting() {\n final UserRequest request = new UserRequest();\n // We're currently logged in as Austria, so we're trying to change the\n // username to Germany.\n request.setNewUsername(\"[email protected]\");\n final Response response = administration.controlUserAccount(token, request);\n assertThat(response.getError(), is(IWSErrors.FATAL));\n }", "public void resetUsuario()\r\n {\r\n this.usuario = null;\r\n }", "private void atualizarUsuario(HttpServletRequest request, HttpServletResponse response) throws SQLException, IOException {\n\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\n\t\tString nome = request.getParameter(\"nome\");\n\t\tString email = request.getParameter(\"email\");\n\t\tint telefone = Integer.parseInt (request.getParameter(\"telefone\"));\n\t\tString nacionalidade = request.getParameter(\"nacionalidade\");\n\n\t\tUsuario book = new Usuario(id, nome, email, telefone, nacionalidade);\n\t\tdao.atualizarUsuario(book);\n\t\tresponse.sendRedirect(\"lista\");\n\t\t\n\t}", "public void registrarAdministrador() throws IOException {\n\n //asignamos al usuario la imagen de perfil default\n usuarioView.setUsuarioFotoRuta(getPathDefaultUsuario());\n usuarioView.setUsuarioFotoNombre(getNameDefaultUsuario());\n\n //Se genera un login y un pass aleatorio que se le envia al proveedor\n MD5 md = new MD5();\n GenerarPassword pass = new GenerarPassword();\n SendEmail email = new SendEmail();\n\n password = pass.generarPass(6);//Generamos pass aleatorio\n\n //Encriptamos las contraseñas\n usuarioView.setUsuarioPassword(md.getMD5(password));//Se encripta la contreseña\n usuarioView.setUsuarioRememberToken(md.getMD5(password));\n\n //el metodo recibe los atributos, agrega al atributo ciudad del objeto usuario un objeto correspondiente, \n //de la misma forma comprueba el rol y lo asocia, por ultimo persiste el usuario en la base de datos\n usuarioView.setSmsCiudad(ciudadDao.consultarCiudad(usuarioView.getSmsCiudad()));//Asociamos una ciudad a un usuario\n usuarioView.setSmsRol(rolDao.consultarRol(usuarioView.getSmsRol()));//Asociamos un rol a un usuario\n usuarioView.setUsuarioEstadoUsuario(1);//Asignamos un estado de cuenta\n usuarioView.setSmsNacionalidad(nacionalidadDao.consultarNacionalidad(usuarioView.getSmsNacionalidad()));\n\n //registramos el usuario y recargamos la lista de clientes\n usuarioDao.registrarUsuario(usuarioView);\n usuariosListView = adminDao.consultarUsuariosAdministradores();\n\n //Enviar correo\n email.sendEmailAdministradorBienvenida(usuarioView, password);\n\n //limpiamos objetos\n usuarioView = new SmsUsuario();\n password = \"\";\n }", "public void zmienDaneUzytkownika() throws SQLException {\n String noweImie = userEdycjaNoweImie.getText().trim();\n String noweNazwisko = userEdycjaNoweNazwisko.getText().trim();\n String nowyEmail = userEdycjaNoweAdresEmail.getText().trim();\n String nowyNumerKontaktowy = userEdycjaNowyNumerKontaktowy.getText().trim();\n\n Driver.editUser(noweImie, noweNazwisko, nowyNumerKontaktowy, nowyEmail);\n }", "@FXML\n\tpublic void register (ActionEvent e) {\n\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", TRUSTTORE_LOCATION);\n\t\tSSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault();\n\t\ttry {\n\t\t\tString email = txtNewEmail.getText();\n\t\t\tString nick = txtNickName.getText();\n\t\t\tString pass1 = passFirstPass.getText();\n\t\t\tString pass2 = passSecondPass.getText();\n\t\t\tif (!pass1.equals(pass2)) {\n\t\t\t\tAlert al = new Alert(AlertType.WARNING);\n\t\t\t\tal.setTitle(\"Contraseña erronea\");\n\t\t\t\tal.setContentText(\"Las contraseñas no coinciden\");\n\t\t\t\tal.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif (email.equals(\"\") || nick.equals(\"\") || pass1.equals(\"\") ) {\n\t\t\t\tAlert al = new Alert(AlertType.WARNING);\n\t\t\t\tal.setTitle(\"Datos en blanco\");\n\t\t\t\tal.setContentText(\"Por favor no deje datos en blanco\");\n\t\t\t\tal.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tsocketToLoginSystem = sf.createSocket(IP_DIRECTION, Server.PORT_RECEIVE);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(socketToLoginSystem.getInputStream()));\n\t\t\tPrintWriter out = new PrintWriter(socketToLoginSystem.getOutputStream(), true);\n\t\t\tout.println(ClientAttendant.REGISTER);\n\t\t\tout.println(email);\n\t\t\tout.println(nick);\n\t\t\tout.println(pass1);\n\t\t\t\n\t\t\tString ans = br.readLine();\n\t\t\tif (ans.equals(ClientAttendant.ACCEPTED)) {\n\t\t\t\tAlert al = new Alert(AlertType.CONFIRMATION);\n\t\t\t\tal.setTitle(\"Usuario registrado exitosamente\");\n\t\t\t\tal.setContentText(\"Se ha creado el usuario con las credenciales indicadas.\");\n\t\t\t\tal.showAndWait();\n\t\t\t} else if (ans.equals(ClientAttendant.ERROR)) {\n\t\t\t\tAlert al = new Alert(AlertType.WARNING);\n\t\t\t\tal.setTitle(\"Error al registrar usuario\");\n\t\t\t\tal.setHeaderText(\"No se puede crear el usuario\");\n\t\t\t\tal.setContentText(br.readLine());\n\t\t\t\tal.showAndWait();\n\t\t\t}\n\t\t} catch (IOException e1) {\n\t\t\tAlert al = new Alert(AlertType.ERROR);\n\t\t\tal.setTitle(\"Error en la conexión\");\n\t\t\tal.setHeaderText(\"Problemas con el servidor\");\n\t\t\tal.setContentText(\"No se ha podido establecer conexión con el servidor de logueo.\");\n\t\t\tal.showAndWait();\n\t\t}\n\t}", "public void updateUsuario(Usuario usuario) {\n\t\t\n\t}", "@Test\n public void t01_buscaAdmin() throws Exception {\n Usuario admin;\n admin = usuarioServico.login(\"administrador\", \".Ae12345\");\n assertNotNull(admin);\n }", "public void actualizarUsuario(UsuarioDto dto){\n\t\tUsuario usuario = usuarioDao.load(dto.getId());\n\t\t\n\t\t// Seteo los valores a actualizar\n\t\tusuario.setNombre(dto.getNombre());\n\t\tusuario.setApellido(dto.getApellido());\n\t\t\n\t\t// Actualizo en la db\n\t\tusuarioDao.update(usuario);\n\t\t\n\t\tlog.info(\"Se actualizo el producto: \" + dto.getId());\n\t}", "public void modificarUsuario(OwlUserVO usuario, boolean pass, List<String> errores) {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tOwlUserDAO OwlDAO = new OwlUserDAO();\n\t\t\tif (pass) {\n\t\t\t\tErrorsStrings.compruebaDatos(usuario, errores);\n\t\t\t\tif (errores.isEmpty()) {\n\t\t\t\t\tPasswordAuthentication passauth = new PasswordAuthentication();\n\t\t\t\t\tString hashpass = passauth.hash(usuario.getPassword());\n\t\t\t\t\tusuario.setPassword(hashpass);\n\t\t\t\t\tOwlDAO.actualizarUsuario(usuario, mysql);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tErrorsStrings.compruebaDatos(usuario, errores);\n\t\t\t\tif (errores.isEmpty()) {\n\t\t\t\t\tOwlDAO.actualizarUsuario(usuario, mysql);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmysql.disconnect();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\n\t}", "public void altaUsuario();", "public void actualizarUsuario(Long idUsr,String nick,String nombres,String pass){\n\t\t\t\t\t //buscamos el objeto que debe ser actualizado:\n\t\t\t\t\t Usuario u = findbyIdUsuario(idUsr);\n\t\t\t\t\t em.getTransaction().begin();\n\t\t\t\t\t // no se actualiza la clave primaria, en este caso solo la descripcion\n\t\t\t\t\t u.setNick(nick);\n\t\t\t\t\t u.setNombres(nombres);\n\t\t\t\t\t u.setPass(pass);\n\t\t\t\t\t em.merge(u);\n\t\t\t\t\t em.getTransaction().commit();\n\t\t\t\t }", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "public void effacerUtilisateur() {\r\n this.modele.effacerUtilisateur(this.modele);\r\n this.modele = new Utilisateurs();\r\n }", "@Override\r\n\tpublic void analizarUsuario() {\n\t\tfor(IAsesoria ia : usuarios) {\r\n\t\t\tia.analizarUsuario();\r\n\t\t}\t\r\n\t}", "private void LoginUsuario(){\n String url=maya.buscarUrlServidor()+\"/app/servicesREST/ws_login.php\";\n Log.d(\"URL Sesion \", url);\n Log.d(\"SESION \", _etNombreUsuario.getEditText().getText().toString().trim()+\" / \"+_etcontrasenia.getEditText().getText().toString().trim());\n\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n try {\n Log.e(\"JSON Usuario\",response);\n JSONObject jsonUsuario = new JSONObject(response);\n //maya.Toast(\"tam \"+jsonUsuario.length());\n if(jsonUsuario.length() > 0){\n //Preguntamos que usuario es el logeado\n switch (Integer.parseInt(jsonUsuario.optString(\"id_rol\"))){\n case 2:\n manejaBD = new HandlerBasedeDatos(getApplicationContext());\n manejaBD.addUsuario(Integer.parseInt(jsonUsuario.optString(\"id_user\")),jsonUsuario.optString(\"id_rol\"),jsonUsuario.optString(\"rol\"),jsonUsuario.optString(\"id_objeto\"),jsonUsuario.optString(\"nombre\")+\" \"+jsonUsuario.optString(\"ap_paterno\")+\" \"+jsonUsuario.optString(\"ap_materno\"),\"https://cdn.pixabay.com/photo/2016/08/08/09/17/avatar-1577909_960_720.png\",_etNombreUsuario.getEditText().getText().toString().trim(),_etcontrasenia.getEditText().getText().toString().trim());\n Intent ma = new Intent(getApplicationContext(),MenuPrincipalActivity.class);\n startActivity(ma);\n break;\n case 3:\n manejaBD = new HandlerBasedeDatos(getApplicationContext());\n manejaBD.addUsuario(Integer.parseInt(jsonUsuario.optString(\"id_user\")),jsonUsuario.optString(\"id_rol\"),jsonUsuario.optString(\"rol\"),jsonUsuario.optString(\"id_objeto\"),jsonUsuario.optString(\"nombre\")+\" \"+jsonUsuario.optString(\"ap_paterno\")+\" \"+jsonUsuario.optString(\"ap_materno\"),\"https://cdn.pixabay.com/photo/2016/08/08/09/17/avatar-1577909_960_720.png\",_etNombreUsuario.getEditText().getText().toString().trim(),_etcontrasenia.getEditText().getText().toString().trim());\n Intent mat = new Intent(getApplicationContext(),MenuTutorActivity.class);\n startActivity(mat);\n break;\n case 4:\n manejaBD = new HandlerBasedeDatos(getApplicationContext());\n manejaBD.addUsuario(Integer.parseInt(jsonUsuario.optString(\"id_user\")),jsonUsuario.optString(\"id_rol\"),jsonUsuario.optString(\"rol\"),jsonUsuario.optString(\"id_objeto\"),jsonUsuario.optString(\"nombre\")+\" \"+jsonUsuario.optString(\"ap_paterno\")+\" \"+jsonUsuario.optString(\"ap_materno\"),\"https://cdn.pixabay.com/photo/2016/08/08/09/17/avatar-1577909_960_720.png\",_etNombreUsuario.getEditText().getText().toString().trim(),_etcontrasenia.getEditText().getText().toString().trim());\n Intent me = new Intent(getApplicationContext(),MenuEstudianteActivity.class);\n startActivity(me);\n break;\n }\n finish();\n }else{\n maya.Toast(\"Comuniquese con su administrador :(\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n maya.toastError(\"No existe respuesta correcta a la peticion\");\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"URLLogin \", error+\"\");\n //maya.Toast(error+\"\");\n maya.toastInfo(\"No existe respuesta para continuar\");\n }\n }){\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String,String> params = new HashMap<String, String>();\n params.put(\"user\",_etNombreUsuario.getEditText().getText().toString().trim());\n params.put(\"password\",_etcontrasenia.getEditText().getText().toString().trim());\n params.put(\"token\", Variables.TOKEN);\n //params.put(\"token\", \"LUIS MIGUEL\");\n return params;\n }\n };\n requestQueue.add(stringRequest);\n }", "@Override\n\tpublic void update(Usuario bean) {\n\t\tif (bean.getSenha().length()<30){\n\t\t\tbean.setSenha(CriptografiaUtil.criptografaString(bean.getSenha()));\n\t\t}\n\t\tsuper.update(bean);\n\t}", "static void effacerEnregistrer(){\n users.clear();\n }", "protected void proccesValues() {\n Users user = new Users();\n user.setName(bean.getName());\n user.setSurname(bean.getSurname());\n user.setUsername(bean.getUsername());\n StrongPasswordEncryptor passwordEncryptor = new StrongPasswordEncryptor();\n String encryptedPassword = passwordEncryptor.encryptPassword(bean.getPassword());\n user.setPassword(encryptedPassword);\n \n usersService.persist(user);\n Notification.show(msgs.getMessage(INFO_REGISTERED), Notification.Type.ERROR_MESSAGE);\n resetValues();\n UI.getCurrent().getNavigator().navigateTo(ViewLogin.NAME);\n }", "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 }", "@FXML\n\tvoid login(ActionEvent event) throws IOException {\n\t\tMessage messageToServer = new Message();\n\t\tString userName = txtUserName.getText();\n\t\tString password = txtPassword.getText();\n\t\t// check that user put details\n\t\tif (userName.trim().isEmpty() || password.trim().isEmpty())\n\t\t\tlblErr.setText(\"User Name or Password is missing\");\n\t\telse {\n\t\t\tlblErr.setText(\"\");\n\t\t\t// create new Message object with the request\n\t\t\tmessageToServer.setMsg(userName + \" \" + password);\n\t\t\tmessageToServer.setOperation(\"isUserExists\");\n\t\t\tmessageToServer.setControllerName(\"UserController\");\n\t\t\t// the result User instance\n\t\t\tuser = (User) ClientUI.client.handleMessageFromClientUI(messageToServer);\n\t\t\t// user isn't exists in DB\n\t\t\tif (user == null) { // create pop up alert\n\t\t\t\tlblErr.setText(\"User Name or Password is incorrect\");\n\t\t\t}\n\t\t\t// user already log in\n\t\t\telse if (user.isLogedIN() == true) { // create pop up alert\n\t\t\t\tlblErr.setText(\"User already logged in\");\n\t\t\t} else { // user logged in successfully\n\t\t\t\tmessageToServer.setMsg(userName);\n\t\t\t\tmessageToServer.setOperation(\"updateConnectionStatus\");\n\t\t\t\tmessageToServer.setControllerName(\"UserController\");\n\t\t\t\t// update the user's connection status\n\t\t\t\tClientUI.client.handleMessageFromClientUI(messageToServer);\n\t\t\t\t// navigate user to the right home page, by his permission\n\t\t\t\tswitch (user.getUserType()) {\n\t\t\t\tcase STUDENT:\n\t\t\t\t\tNavigator.instance().navigate(\"StudentHomeForm\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase TEACHER:\n\t\t\t\t\tNavigator.instance().navigate(\"TeacherHomeForm\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase PRINCIPAL:\n\t\t\t\t\tNavigator.instance().navigate(\"PrincipalHomeForm\");\n\t\t\t\t\tbreak;\n\t\t\t\t} // end switch case\n\t\t\t}\n\t\t}\n\t}", "@FXML private void setToNewUser(){\n\t\tshowPassword();\n\t\tclearFields();\n\t\thideLackMessages();\n\t\tchangeCancelButton.setText(\"Anuluj\");\n\t\tnewUser = true;\n\t}", "public long wsadd_user( UserWS user)\r\n\t\t{ \r\n\t\t\t\r\n\t\t\tlong id = 0; //id de la tabla user (único) \r\n\t\t\t\r\n\t\t \r\n\t\t User userH = new User(user.getLogin(),user.getPassword(),user.getRole(),user.getName(),user.getPhone(),user.getDepartment());\r\n\t\t \r\n\t\t //User cliente1 = new User(\"[email protected]\", \"gutie33\", 1, \"Luis\",\"677899876\", \"Informatica\"); \r\n\t\t \r\n\t\t try \r\n\t\t { \r\n\t\t iniciaOperacion(); \r\n\t\t \r\n\t\t id= (Long) sesion.createQuery(\"SELECT u.id_company FROM Company u WHERE u.company_name ='\"+user.getName_company()+\"'\").uniqueResult();\r\n\t\t Company x = (Company) sesion.load(Company.class, id);\r\n\t\t x.addUsuario(userH);\r\n\t\t \r\n\t\t\t userH.setCompany(x);\r\n\t\t \r\n\t\t //sesion.update(compx);\r\n\t\t \r\n\t\t \r\n\t\t //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t\t tx.commit(); \r\n\t\t }catch(HibernateException he) \r\n\t\t { \r\n\t\t manejaExcepcion(he);\r\n\t\t throw he; \r\n\t\t }finally \r\n\t\t { \r\n\t\t \t//Busqueda del id con qu elo ha introducido a la BBDD\r\n\t\t \tid= (Long) sesion.createQuery(\"SELECT u.id_user FROM User u WHERE u.mail ='\"+user.getLogin()+\"'\").uniqueResult();\r\n\t\t sesion.close(); \r\n\t\t } \r\n\t\t return id; \r\n\t\t}", "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 }", "private void actualitzaPasswd(String nou){\n user.setPasswd(nou);\n try{\n helperU.actualitzar(user, false);\n \n info(\"Contrasenya actualitzada!\");\n }catch(Exception ex){\n avis(\"Error al actualitzar la contrasenya!\");\n }\n }", "@RequestMapping(value = \"/modificarusuarioisoft\", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)\n public CommonsResponse modifyuser(@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 /*Log.getInstance().debug(ModulesIsoft.ISOFT_PROFILE.getCodigo(), mapConfiguration.get(MAP_USER_TRANSACTION), \"Se validan los parametros de entrada.\");\n GatewayBaseBean.validarParametrosGenericos(request.getUsuario(), request.getNombres());\n GatewayBaseBean.validarEmail(request.getCorreo());\n Usuarios user = GatewayBaseBean.clonUsersRequest(request);*/\n\n userServices.modifyUser(mapConfiguration, new Usuarios());\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 [modificarusuarioisoft], 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 [modificarusuarioisoft].\", ex);\n return response;\n }\n catch (Exception ex)\n {\n logger.warn(\"Error Generico en WS [modificarusuarioisoft].\", ex);\n GatewayBaseBean.matchToResponses(response);\n return response;\n }\n logger.info(\"Se retorna respuesta efectiva del WS [modificarusuarioisoft].\");\n return response.toOk();\n }", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "@Listen(\"onChange = #txtUsuario; onOK = #txtUsuario\")\r\n\tpublic void buscarPorLogin() {\r\n\t\tUsuario usuario = servicioUsuario.buscarPorLogin(txtUsuario.getValue());\r\n\t\tif (usuario != null)\r\n\t\t\tllenarCamposUser(usuario);\r\n\t\telse {\r\n\t\t\tmsj.mensajeAlerta(Mensaje.noHayRegistros);\r\n\t\t\tidUser = \"TODOS\";\r\n\t\t\ttxtUsuario.setValue(\"TODOS\");\r\n\t\t\tlblUsuario.setValue(\"TODOS\");\r\n\t\t\ttxtUsuario.setFocus(true);\r\n\t\t}\r\n\t}", "@Override\n\tpublic Usuario modificar() {\n\t\tLOG.info(\"Se modifico el usuario de la bd\");\n\t\treturn usuario;\n\t}", "public void createUtilisateur(UtilisateurBean u) {\n\t}", "private void action_login_utente(HttpServletRequest request, HttpServletResponse response) throws IOException{\n //recupero credenziali di login\n String email = SecurityLayer.addSlashes(request.getParameter(\"email\").toLowerCase());\n email = SecurityLayer.sanitizeHTMLOutput(email);\n String password = SecurityLayer.addSlashes(request.getParameter(\"password\"));\n password = SecurityLayer.sanitizeHTMLOutput(password);\n if(!email.isEmpty() && !password.isEmpty()){\n try {\n //recupero utente dal db\n Utente u = ((PollwebDataLayer)request.getAttribute(\"datalayer\")).getUtenteDAO().getUtenteByEmail(email);\n //controllo che l'utente esista\n if(u != null){\n //controllo i parametri\n if(u.getEmail().equalsIgnoreCase(email) && new BasicPasswordEncryptor().checkPassword(password, u.getPassword())){\n //se l'utente esiste ed è lui\n\n request.setAttribute(\"userName\", u.getNome());\n request.setAttribute(\"user_id\", u.getId());\n System.out.println(u.getId());\n\n SecurityLayer.createSession(request, u.getId());\n\n if (request.getParameter(\"referrer\") != null) {\n response.sendRedirect(request.getParameter(\"referrer\"));\n } else {\n response.sendRedirect(\"/home\");\n }\n }else{\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n request.setAttribute(\"error\", \"Credenziali errate\");\n response.sendRedirect(\"/login?error=100\");\n }\n }\n\n }else{\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login&error=102\");\n }\n }\n }catch (DataException ex) {\n //TODO Handle Exception\n\n }\n } else {\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login?error=101\");\n }\n }\n }", "private void LoginOwner() {\n Transaksi.setEnabled(false);\n Transaksi.setVisible(false);\n }", "@Override\r\n public void modificarUsuario(User u) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "private void serchUser() {\n if (!userNameTextField.getText().isEmpty() && !passwordPasswordField.getText().isEmpty()) {\n try {\n User user = UserController.searchUserByUserName(userNameTextField.getText());\n if (user != null) {\n if (passwordPasswordField.getText().equals(user.getPassword())) {\n closeFadeOut();\n Hi hi = new Hi();\n hi.setUser(user);\n hi.setVisible(true);\n dispose();\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect username or password !\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect username or password !\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n\n } catch (ClassNotFoundException ex) {\n ex.printStackTrace();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Please enter username and password\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n\n }", "public Login() {\n initComponents();\n this.setTitle(\"Login\");\n this.setLocationRelativeTo(null);\n this.pack();\n // Asignanado objecto\n adminUsers = new usuarioAdmin();\n \n // No hay inicializacion de usuarios\n sys.us[0] = new Usuario();\n sys.us[0].setId(\"admin\");\n sys.us[0].setNombre(\"admin\");\n sys.us[0].setApellido(\"admin\");\n sys.us[0].setUser(\"admin\");\n sys.us[0].setPassword(\"admin\");\n sys.us[0].setRol(\"admin\");\n }", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n \r\n }", "public void inicializar() {\r\n\t\ttry {\r\n\t\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\t\tUIManager.setLookAndFeel(\"com.jtattoo.plaf.hifi.HiFiLookAndFeel\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tgetContentPane().setLayout(null);\r\n\r\n\t\tlblUsuario = new JLabel(\"Mail Empleado:\");\r\n\t\tlblUsuario.setBounds(40, 40, 124, 20);\r\n\t\tgetContentPane().add(lblUsuario);\r\n\r\n\t\tlblPass = new JLabel(\"Contraseña:\");\r\n\t\tlblPass.setBounds(40, 72, 124, 20);\r\n\t\tgetContentPane().add(lblPass);\r\n\r\n\t\tlblConfPass = new JLabel(\"Confirmación Contraseña:\");\r\n\t\tlblConfPass.setBounds(40, 104, 220, 20);\r\n\t\tgetContentPane().add(lblConfPass);\r\n\r\n\t\ttxtUsuario = new JTextField();\r\n\t\ttxtUsuario.setBounds(275, 40, 138, 20);\r\n\t\tgetContentPane().add(txtUsuario);\r\n\t\ttxtUsuario.setColumns(10);\r\n\r\n\t\tpwdPass = new JPasswordField();\r\n\t\tpwdPass.setEchoChar('*'); // quitamos valor\r\n\t\tpwdPass.setBounds(275, 72, 138, 20);\r\n\t\tgetContentPane().add(pwdPass);\r\n\r\n\t\tpwdConfPass = new JPasswordField();\r\n\t\tpwdConfPass.setEchoChar('*');\r\n\t\tpwdConfPass.setBounds(275, 104, 138, 20);\r\n\t\tgetContentPane().add(pwdConfPass);\r\n\r\n\t\tbtnRegistrar = new JButton(\"Registrar\");\r\n\t\tbtnRegistrar.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t// recuperamos los datos introducidos y los volcamos en BD\r\n\t\t\t\tUsuarioPojo user = null;\r\n\t\t\t\tUsuarioPersistencia up = new UsuarioPersistencia();\r\n\r\n\t\t\t\t//int id = up.obtenerIdEmple();\r\n\t\t\t\tString usuarioMail = txtUsuario.getText();\r\n\t\t\t\tString password = new String(pwdPass.getPassword()); // DNI de momento\r\n\t\t\t\tString passwordC = new String(pwdConfPass.getPassword());\r\n\t\t\t\tString apenom = txtApenom.getText();\r\n\t\t\t\tString dni = txtDni.getText();\r\n\t\t\t\tint numSS = Integer.parseInt(txtSegSoc.getText());\r\n\t\t\t\tString cuenta = txtCuenta.getText();\r\n\r\n\t\t\t\tif (password.equals(passwordC)) {\r\n\t\t\t\t\t// creamos un objeto usuario si coinciden las contraseñas\r\n\t\t\t\t\tuser = new UsuarioPojo(apenom, numSS, cuenta, dni, usuarioMail, password);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (user != null) {\r\n\t\t\t\t\t// insertaremos el usuario si coinciden las contraseñas\r\n\t\t\t\t\tup = new UsuarioPersistencia();\r\n\t\t\t\t\tint res = up.insertarUser(user);\r\n\r\n\t\t\t\t\tif (res == 1) { // se habrá registrado al usuario\r\n\t\t\t\t\t\tSystem.out.println(\"Insertado correctamente\");\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Registro insertado correctamente\",\r\n\t\t\t\t\t\t\t\t\"Resultado del Registro\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\tdispose(); // dispose cierra ventana actual, System.exit(0) sale del programa\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// mostramos msg si no coinciden las contraseñas, manteniendo el control en dreg\r\n\t\t\t\t\tSystem.out.println(\"No insertado\");\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Contraseñas introducidas no coinciden\", \"Error de contraseña\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\t// limpiamos campos de contraseña\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnRegistrar.setBounds(305, 285, 90, 23);\r\n\t\tgetContentPane().add(btnRegistrar);\r\n\r\n\t\tchckbxMostrarPass1 = new JCheckBox(\"Mostrar contraseña\");\r\n\t\tchckbxMostrarPass1.setBounds(470, 71, 175, 23);\r\n\t\t// añadimos un listener para poder mostrar la contraseña como texto\r\n\t\tchckbxMostrarPass1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (chckbxMostrarPass1.isSelected()) {\r\n\t\t\t\t\tpwdPass.setEchoChar((char) 0);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpwdPass.setEchoChar('*');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tgetContentPane().add(chckbxMostrarPass1);\r\n\r\n\t\tchckbxMostrarPass2 = new JCheckBox(\"Mostrar contraseña\");\r\n\t\tchckbxMostrarPass2.setBounds(470, 103, 175, 23);\r\n\t\tchckbxMostrarPass2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (chckbxMostrarPass2.isSelected()) {\r\n\t\t\t\t\tpwdConfPass.setEchoChar((char) 0);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpwdConfPass.setEchoChar('*');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tgetContentPane().add(chckbxMostrarPass2);\r\n\r\n\t\tlblApenom = new JLabel(\"Nombre y Apellidos:\");\r\n\t\tlblApenom.setBounds(40, 136, 220, 20);\r\n\t\tgetContentPane().add(lblApenom);\r\n\r\n\t\ttxtApenom = new JTextField();\r\n\t\ttxtApenom.setBounds(275, 136, 270, 20);\r\n\t\tgetContentPane().add(txtApenom);\r\n\t\ttxtApenom.setColumns(10);\r\n\r\n\t\tlblSegSoc = new JLabel(\"Nº Seguridad Social:\");\r\n\t\tlblSegSoc.setBounds(40, 200, 220, 20);\r\n\t\tgetContentPane().add(lblSegSoc);\r\n\r\n\t\ttxtSegSoc = new JTextField();\r\n\t\ttxtSegSoc.setBounds(275, 200, 138, 20);\r\n\t\tgetContentPane().add(txtSegSoc);\r\n\t\ttxtSegSoc.setColumns(10);\r\n\r\n\t\tlblCuenta = new JLabel(\"Nº Cuenta Bancaria:\");\r\n\t\tlblCuenta.setBounds(40, 232, 200, 20);\r\n\t\tgetContentPane().add(lblCuenta);\r\n\r\n\t\ttxtCuenta = new JTextField();\r\n\t\ttxtCuenta.setBounds(275, 232, 138, 20);\r\n\t\tgetContentPane().add(txtCuenta);\r\n\t\ttxtCuenta.setColumns(10);\r\n\r\n\t\tlblDniUser = new JLabel(\"DNI:\");\r\n\t\tlblDniUser.setBounds(40, 168, 124, 20);\r\n\t\tgetContentPane().add(lblDniUser);\r\n\r\n\t\ttxtDni = new JTextField();\r\n\t\ttxtDni.setColumns(10);\r\n\t\ttxtDni.setBounds(275, 168, 138, 20);\r\n\t\tgetContentPane().add(txtDni);\r\n\r\n\t\t// cambiamos EXIT por DISPOSE, porque solo queremos que cierre esta ventana, no\r\n\t\t// que me salga del programa definitivamente\r\n\t\tsetDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\r\n\t\tsetBounds(250, 250, 700, 380);\r\n\t\tthis.setLocationRelativeTo(null); // para que centre en pantalla\r\n\t}", "public boolean verificarUsuario(){\n boolean estado = false;\n try{\n this.usuarioBean = (Dr_siseg_usuarioBean) this.manejoFacesContext.obtenerObjetoSession(\"usuario\");\n if(this.usuarioBean != null){\n estado = true;\n if (this.usuarioBean.getRoll().equals(\"GRP_SERVAGTMII_ADMIN\")){\n modoAdministrador=true;\n// this.usuarioRoll=\"ADMIN\";\n// this.disableBotonFinalizar=\"false\";\n// this.visibleImprimirComprobanteEncargado=\"true\";\n// this.visibleImprimirComprobanteEstudiante=\"true\";\n \n\n }else{\n if (this.usuarioBean.getRoll().equals(\"GRP_SERVAGTMII_PF1\")){\n modoAdministrador=true;\n// this.usuarioRoll=\"PF1\";\n// this.disableBotonFinalizar=\"true\";\n// this.visibleImprimirComprobanteEncargado=\"false\";\n// this.visibleImprimirComprobanteEstudiante=\"true\";\n \n }\n }\n\n }else{\n this.manejoFacesContext.redireccionarFlujoWeb(\"/WebAppSLATE/LogoutServlet\" );\n }\n }catch(Exception ex){\n this.manejoFacesContext.redireccionarFlujoWeb(\"/WebAppSLATE/LogoutServlet\" );\n // this.manejoFacesContext.redireccionarFlujoWeb(\"/WebAppMADEB/cr.ac.una.reg.info.contenido/moduloFuncionario/estudiante/e_editarDireccion.jspx\");\n }//\n return estado;\n }", "protected void changeUser(String username) throws Exception {\n if(username == null) {\n username = TestConfig.getUsername();\n }\n configuration.setUserName(username);\n client = createDefaultClient();\n }", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "public void setUsuario(java.lang.String newUsuario);", "private void metodoSalvarUsuarioFirebase(final Usuarios variavelClasseUsuarios) {\n\n refAutenticacaofb = ConfiguracaoFirebase.metodoAutenticacaoFirebase();\n refAutenticacaofb.createUserWithEmailAndPassword(variavelClasseUsuarios.getEmail(),\n variavelClasseUsuarios.getSenha()).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if(task.isSuccessful()){\n\n idUsuario = task.getResult().getUser().getUid();\n variavelClasseUsuarios.setId(idUsuario);\n variavelClasseUsuarios.salvarUsuario();\n\n if(pegarTipoUsuarioSwitch() == \"Cliente\"){\n\n startActivity(new Intent(CadastroUsuario.this, Home.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Usuário salvo com sucesso\", Toast.LENGTH_LONG).show();\n }else{\n\n startActivity(new Intent(CadastroUsuario.this, PainelEmpresa.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Empresa inserida com sucesso!\", Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n\n\n }\n });\n\n }", "@FXML\n\tprivate void handleConnection() {\n\t\tString pseudo = this.nickName.getText();\n\t\tif (pseudo != null && !pseudo.equals(\"\")) {\n\t\t\tUser user = new User(pseudo);\n\t\t\tthis.mainApp.setUser(user);\n\t\t\t//Un fois que l'utilisateur a été créé dans la main ap, on peut appeler la méthode de connection\n\t\t\tthis.mainApp.connect();\n\t\t}\n\t\telse {\n\t\t\t\n\t\t}\n\t}", "private void entrar() {\n\n Connection con = Conexao.abrirConexao();\n UsuarioDAO ud = new UsuarioDAO(con);\n String login = txtLOGIN.getText();\n String senha = txtSENHA.getText();\n String nome;\n\n if (txtLOGIN.getText().equals(\"admin\")) {\n nome = \"Administrador\";\n } else {\n nome = ud.retornarUsuario(login);\n }\n\n if (/*ud.logar(login, senha) == 0 ||*/ login.equals(\"admin\") && senha.equals(\"admin\")) {\n lblERRO.setText(\"\");\n JFrame principal = new frm_PRINCIPAL(login, nome);\n this.dispose();\n principal.setVisible(true);\n\n } else {\n\n lblERRO.setText(\"Usuário e/ou Senha Inválidos!\");\n }\n Conexao.fecharConexao(con);\n }", "public void updateName() {\n try {\n userFound = clientefacadelocal.find(this.idcliente);\n if (userFound != null) {\n userFound.setNombre(objcliente.getNombre());\n clientefacadelocal.edit(userFound);\n objcliente = new Cliente();\n mensaje = \"sia\";\n } else {\n mensaje = \"noa\";\n System.out.println(\"Usuario No Encontrado\");\n }\n } catch (Exception e) {\n mensaje = \"noa\";\n System.out.println(\"El error al actualizar el nombre es \" + e);\n }\n }", "public String updateUser(){\n\t\tusersservice.update(usersId, username, password, department, role, post, positionId);\n\t\treturn \"Success\";\n\t}", "public void registrar() {\n try {\r\n do {\r\n //totalUsuarios = this.registraUnUsuario(totalUsuarios);\r\n this.registraUnUsuario();\r\n } while (!this.salir());\r\n } catch (IOException e) {\r\n flujoSalida.println(\"Error de entrada/salida, finalizará la aplicación.\");\r\n }\r\n flujoSalida.println(\"Total usuarios registrados: \"+totalUsuarios);\r\n }", "private void setUsuario(Element element) {\r\n\t\tUsuario user = (Usuario)Contexts.getSessionContext().get(\"user\");\r\n\t\t\r\n\t\tElement usuario = new Element(\"N_UsuarioAlta\");\r\n\t\tElement uniqueKey = new Element(\"uniqueKey\");\r\n\t\tuniqueKey.setAttribute(\"login_name\", user.getUsername());\r\n\t\tuniqueKey.setAttribute(\"campoCQ\", \"login_name\");\r\n\t\tuniqueKey.setAttribute(\"entidadCQ\", \"users\");\r\n\t\tusuario.addContent(uniqueKey);\r\n\t\telement.addContent(usuario);\r\n\t}", "@POST(\"/Reset\")\n\tint resetUser();", "public adminUsuarios() {\n initComponents();\n showUsuarios();\n }", "public Usuario() {\n initComponents();\n setLocationRelativeTo(null);\n refrescar();\n }", "public void save() {\r\n\t\tString checkQuery = \"SELECT * FROM users WHERE id = \" + this.id;\r\n\t\tStatement stm;\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\tconnection = DBConnection.getConnection();\r\n\t\t\tstm = connection.createStatement();\r\n\t\t\trs = stm.executeQuery(checkQuery);\r\n\t\t\t// istnieje już ten obiekt - update\r\n\t\t\tif (rs.first()) {\r\n\t\t\t\tString query = \"UPDATE users SET name = \" + toStringOrNULL(name)\r\n\t\t\t\t\t\t+ \", password = \" + toStringOrNULL(password)\r\n\t\t\t\t\t\t+ \", is_admin = \" + isAdmin \r\n\t\t\t\t\t\t+ \", removed_at = \" + toStringOrNULL(removedAt) \r\n\t\t\t\t\t\t+ \" WHERE id = \" + getId();\r\n\t\t\t\texecuteNonReturningQuery(query);\r\n\t\t\t}\r\n\t\t\t// jeszcze go nie ma - zapis nowego\r\n\t\t\telse {\r\n\t\t\t\tString query = \"INSERT INTO users (name, password, removed_at, is_admin) VALUES (\"\r\n\t\t\t\t\t\t+ toStringOrNULL(name) + \", \"\r\n\t\t\t\t\t\t+ toStringOrNULL(password) + \", \"\r\n\t\t\t\t\t\t+ toStringOrNULL(removedAt) + \", \"\r\n\t\t\t\t\t\t+ isAdmin + \")\";\r\n\t\t\t\texecuteNonReturningQuery(query);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tconnection.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static void updateUserTest(Connection conn) {\n\t\t\n\t\ttry {\n\t\t\tUser existingUser = User.loadUserById(conn, 3); // User user = User.loadUserById(conn, 3);\n\t\t\t// the same id is preserved\n\t\t\texistingUser.setUsername(\"jo\");\n\t\t\texistingUser.setEmail(\"[email protected]\");\n\t\t\texistingUser.setUserGroupId(2);\n\t\t\texistingUser.saveToDB(conn);\n\t\t\t\n\t\t\t/*Następnie\tnależy\tsprawdzić,\tczy:\n\t\t\t\t1.\t Czy\twpis\tw\tbazie\tdanych\tma\twszystkie\n\t\t\t\tdane\todpowiednio\tponastawiane?\n\t\t\t\t2.\t Czy\tobiekt\tma\tnastawione\tpoprawne\tid? - czyli niezmienione, bo nie mamy settera dla id\n\t\t\t\t3.\t Czy\tnie\tdodał\tsię\tnowy\twpis\tw\tbazie?*/\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}", "public void enviaMensaje(Usuario usuario, Usuario acusado,\n Comentario c, Puesto pst) {\n /* La cuenta que se usa para autenticarse en el servidor de correo. */\n try {\n LinkedList<Usuario> us = new LinkedList<Usuario>(\n new FabricaControladorJpa().obtenerControladorJpaUsuario()\n .findUsuarioEntities());\n Usuario admin = null;\n for (Usuario u : us) {\n if (u.getEsAdministrador()) {\n admin = u;\n break;\n }\n }\n final String usuarioCorreo;\n final String contrasena;\n String direccion;\n Session sesionEmail;\n String nombre;\n String archivoPropiedadesAutenticacion =\n \"WEB-INF/autenticacion-correo.properties\";\n FacesContext facesContext = FacesContext.getCurrentInstance();\n ExternalContext externalContext = facesContext.getExternalContext();\n try (InputStream is = externalContext\n .getResourceAsStream(archivoPropiedadesAutenticacion)) {\n Properties prop = new Properties();\n prop.load(is);\n\n usuarioCorreo = prop.getProperty(\"usuario\");\n contrasena = prop.getProperty(\"contrasena\");\n nombre = prop.getProperty(\"nombre\");\n direccion = prop.getProperty(\"correo\");\n }\n\n String archivoPropiedadesCorreo = \"WEB-INF/correo.properties\";\n try (InputStream is = externalContext\n .getResourceAsStream(archivoPropiedadesCorreo)) {\n Properties prop = new Properties();\n prop.load(is);\n Authenticator autenticador =\n new Authenticator() {\n @Override\n protected PasswordAuthentication\n getPasswordAuthentication() {\n PasswordAuthentication pa\n = new PasswordAuthentication(usuarioCorreo,\n contrasena);\n return pa;\n }\n };\n sesionEmail = Session.getInstance(prop, autenticador);\n }\n\n MimeMessage mensaje = new MimeMessage(sesionEmail);\n\n String remitente = String.format(\"%s <%s>\",\n \"Administracion-auto\", direccion);\n String recipiente = String.format(\"%s <%s>\",\n \"Administracion-auto\",\n admin.getCorreoElectronico() + \"ciencias.unam.mx\");\n mensaje.setFrom(remitente);\n mensaje.addRecipients(Message.RecipientType.TO, recipiente);\n mensaje.setSubject(\"SCPFC - Comentario inapropiado u ofensivo\");\n\n String textoMensaje = \"El mensaje con id <\"\n + c.getId()\n + \"> de fecha <\"\n + c.getFecha()\n + \"> del usuario <\"\n + acusado.getNombre()\n + \"> ha sido considerado ofensivo por el usuario <\"\n + usuario.getNombre()\n + \">\\n\\nREVISA EL COMENTARIO\\n\";\n String uri = ((HttpServletRequest) externalContext.getRequest())\n .getRequestURI();\n mensaje.setText(textoMensaje\n + obtenerDireccionBase()\n + uri\n + \"?id=\"\n + pst.getId());\n Transport.send(mensaje);\n FacesMessage facesMessage\n = new FacesMessage(FacesMessage.SEVERITY_INFO,\n \"REPORTE ENVIADO\", \"\");\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\n } catch (MessagingException e) {\n FacesMessage facesMessage\n = new FacesMessage(FacesMessage.SEVERITY_ERROR,\n \"ERROR GRAVE\", e.getMessage());\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\n } catch (Exception k) {\n FacesMessage facesMessage\n = new FacesMessage(FacesMessage.SEVERITY_ERROR,\n \"ERROR GRAVE\", k.getMessage());\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\n }\n }", "@Override\n\tpublic int update(Usuario us) {\n\t\tString SQL =\"update user set nomuser = ?, passuser =?\";\n\t\treturn jdbc.update(SQL, us.getUsername(), us.getPassword());\n\t}", "public void Usuarios() {\n\t\r\n}", "public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n }", "public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n }", "public abstract void setUsuario(\n\t\tco.com.telefonica.atiempo.ejb.eb.UsuarioLocal anUsuario);", "public void logout() {\n\n if (WarehouseHelper.warehouse_reserv_context.getUser().getId() != null) {\n //Save authentication line in HisLogin table\n HisLogin his_login = new HisLogin(\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName()\n + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + WarehouseHelper.warehouse_reserv_context.getUser().getLogin(),\n GlobalVars.APP_HOSTNAME, GlobalMethods.getStrTimeStamp()));\n his_login.setCreateId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n his_login.setWriteId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n\n String str = String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName() + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + PackagingVars.context.getUser().getLogin(), GlobalVars.APP_HOSTNAME,\n GlobalMethods.getStrTimeStamp());\n his_login.setMessage(str);\n\n str = \"\";\n his_login.create(his_login);\n\n //Reset the state\n state = new S001_ReservPalletNumberScan();\n\n this.clearContextSessionVals();\n\n connectedUserName_label.setText(\"\");\n }\n\n }", "public void enviaMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=4\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}", "private void NuevoUsuario(String IDFacebook, Usuarios nuevo)\n {\n final String szIDFacebook = IDFacebook;\n\n // Guardamos los datos del nombre del usuario\n Helpers.setNombre(getActivity(), nuevo.NOMBRE);\n\n // Datos de la solicitud\n cliente.post(getActivity(), Helpers.URLApi(\"nuevousuario\"), Usuarios.ToStringEntity(nuevo), \"application/json\", new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n super.onSuccess(statusCode, headers, responseBody);\n\n try\n {\n // Obtenemos el objeto JSON\n JSONObject objeto = Helpers.ResponseBodyToJSON(responseBody);\n\n // Si está OK\n if (objeto.isNull(\"Error\"))\n {\n // Guardamos el token del usuario\n Helpers.setTokenAcceso(getActivity(), objeto.getJSONObject(\"usuario\").getString(\"token\"));\n\n // Guardamos el nombre del usuario\n Helpers.setNombre(getActivity(), objeto.getJSONObject(\"usuario\").getString(\"nombre\"));\n\n // Subimos la foto del usuario\n GetPictureFacebook(szIDFacebook, objeto.getJSONObject(\"usuario\").getString(\"imagen\"));\n }\n else\n {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), objeto.getString(\"Error\"));\n }\n } catch (JSONException ex) {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), getString(R.string.notcreateuser));\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), getString(R.string.notcreateuser));\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 }", "private void updateUserWithoutPassword() throws ClassNotFoundException, NoSuchAlgorithmException{\n\t\tint currentPositionInTableView = usersTable.getSelectionModel().getSelectedIndex(); // zapamiętaj bieżące podświetlenie w tabeli\n\t\tif ((isAllFieldsAreFull()) \n\t\t\t\t&& (isLoginUnique(usersTable.getSelectionModel().getSelectedItem().getId()))){\t\n\t\t\t\t\tMain.getMMUser().update(\t\t\t\t \n\t\t\t\t\t\t\tnew User(\n\t\t\t\t\t\t\t\t\tusersTable.getSelectionModel().getSelectedItem().getId(),\n\t\t\t\t\t\t\t\t\tuserLoginField.getText(), \n\t\t\t\t\t\t\t\t\tusersTable.getSelectionModel().getSelectedItem().getPassword(), \n\t\t\t\t\t\t\t\t\tuserNameField.getText(), \n\t\t\t\t\t\t\t\t\tuserLastNameField.getText(), \n\t\t\t\t\t\t\t\t\tpermission,\n\t\t\t\t\t\t\t\t\teditingCheck.isSelected(),\n\t\t\t\t\t\t\t\t\treminderCheck.isSelected()));\n\t\t\t\t\t// pokaż aktualny stan bazy pracowników\n\t\t\t\t\treadUsers();\n\t\t\t\t\tshowUsers();\n\t\t\t\t\tusersTable.getSelectionModel().select(currentPositionInTableView); // ustaw podswietlenie na bieżący wiersz\n\t\t\t\t\tnew AlertDialog(\"Operacja zakończona\", \"Zaktualizowano dane\", AlertType.INFORMATION);\n\t\t}\n\t}", "public void UserServiceTest_Edit()\r\n {\r\n User user = new User();\r\n user.setId(\"1234\");\r\n user.setName(\"ABCEdited\");\r\n user.setPassword(\"123edited\");\r\n ArrayList<Role> roles = new ArrayList<>();\r\n roles.add(new Role(\"statio manager\"));\r\n user.setRoles(roles);\r\n \r\n UserService service = new UserService(); \r\n try {\r\n service.updateUser(user);\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n }catch (NotFoundException e) {\r\n fail();\r\n System.out.println(e);\r\n }\r\n }", "public String modificarUsuario() {\n\t\tString stringIdUsuario = session.getAttribute(\"id\").toString();\n\t\tInteger intIdUsuario = Integer.parseInt(stringIdUsuario);\n\t\t\n\t\tFacesContext con = FacesContext.getCurrentInstance();\n\t\tHttpServletRequest request = (HttpServletRequest) con.getExternalContext().getRequest();\n\t\tString cambioDeTexto = request.getParameter(\"myForm:texto\");\n\t\tString passwordViejo = request.getParameter(\"myForm:password\");\n\t\tString passwordNuevo = request.getParameter(\"myForm:passwordNuevo\");\n\t\tUsuario usuarioDb = usuarioService.buscarUsuarioPorId(intIdUsuario);\n\t\tif (usuarioDb != null) {\n\t\t\tif(usuarioService.validarNoCaracteresEspeciales(cambioDeTexto)==true) {\n\t\t\t\tString accion = \"Usuario \"+ usuarioDb.getEmail() + \" error al modificar texto.\";\n\t\t\t\tauditoriaService.registrarAuditoria(usuarioDb,accion);\n\t\t\t\terror =\"Campo texto no permitido\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror = usuarioService.usuarioModificaPasswordyTexto(cambioDeTexto, passwordViejo, passwordNuevo, intIdUsuario);\n\t\t\t}\n\t\t}\n\t\treturn \"home\";\n\t\t\n\t}", "public void updateUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk updateUser\");\r\n\t}", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "@PostConstruct\n public void update() {\n\tif(userBean != null && userBean.isLoggedIn()) {\n\t return;\n\t}\n\t \n\ttry {\n\t HttpURLConnection con = (HttpURLConnection)\n\t\tnew URL(AemsUtils.CONFIG.getApiUrl()).openConnection();\n\t con.setReadTimeout(AemsUtils.CONFIG.getConnectTestTimeout());\n\t con.setConnectTimeout(AemsUtils.CONFIG.getConnectTestTimeout());\n\t con.connect();\n\t \n\t // this will trigger a SocketTimeoutException if no connection\n\t // could be established!\n\t con.getResponseCode();\n\t \n\t} catch(Exception e) {\n\t message = \"Die AEMS-API scheint offline zu sein. Versuchen Sie es später erneut. (\" + e.getClass().getSimpleName() + \")\";\n\t Logger.getLogger(ConnectionTestBean.class.getName()).log(Level.INFO, \"No connection to API: {0}\", e);\n\t}\n\t// Everything went well\n }", "private void salvarXML(){\r\n\t\tarquivo.setLista(listaDeUsuarios);\r\n\t\tarquivo.finalizarXML();\r\n\t}", "public Login() {\n inicializarUsuarios();\n }", "public void actionPerformed(ActionEvent arg0) {\n\r\n try {\r\n // Aplicacion Comprador\r\n if (ac != null) {\r\n System.out.println(\"Obteniendo ServiciosCompradorModelo\");\r\n sm = (ServiciosCompradorModelo) ac.getSm();\r\n System.out.println(\"Realizando login\");\r\n sm = (ServiciosCompradorModelo) sm.login((pl.getTxtCUsuario())\r\n .getText(), (pl.getTxtPassword()).getText(), true);\r\n \r\n ac.setSm((ServiciosCompradorRegistradoModelo)sm);\r\n \r\n System.out.println(\"Mostrando menu de usuario registrado\");\r\n ac.setMenuRegistrado();\r\n\r\n } else {\r\n System.out.println(\"***\\nObteniendo serviciosAccesoModelo\");\r\n \r\n sm = (ServiciosAccesoModelo) ae.getSm();\r\n System.out.println(\"Realizando login\");\r\n sm = (ServiciosAccesoModelo) sm.login((pl.getTxtCUsuario()).getText(),\r\n (pl.getTxtPassword()).getText(), false);\r\n \r\n if (sm instanceof ServiciosAdAuxModelo) {\r\n\t\t\t\t\tae.setMenuAdAux();\r\n\t\t}else if(sm instanceof ServiciosCocinaModelo) {\r\n\t\t\tae.setMenuCocina();\t\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Que servicios tenemos?\");\r\n\t\t}\r\n \r\n ae.setSm(sm);\r\n }\r\n\r\n // Actualizamos los servicios de la aplicacion a cliente registrado\r\n pl.setVisible(false);\r\n\r\n } catch (MalformedURLException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (RemoteException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (errorConexionBD e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (errorSQL e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (NotBoundException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n }", "@FXML\n void handlerModifyProfile(){\n //Checks if any field is empty so it can show an alert to the user.\n if(tfName.getText().equals(\"\")||tfFirstSurName.getText().equals(\"\")||\n tfSecondSurName.getText().equals(\"\")||tfDirection.getText().equals(\"\")||\n tfEmail.getText().equals(\"\")){\n //Alert that notice the user that at least oen field is empty\n Alert alert = new Alert(javafx.scene.control.Alert.AlertType.INFORMATION, \"Please write your email before\");\n alert.showAndWait();\n }else{\n try {\n //Checks if the email is correct\n if(new EmailValidator().validate(tfEmail.getText())){\n Alert alert;\n //load a UserDTO class with the current information in the fields\n UserDTO user= new UserDTO(tfUserName.getText(),tfName.getText(),\n tfFirstSurName.getText()+\"%\"+tfSecondSurName.getText(),\n tfEmail.getText(), tfDirection.getText());\n //Call to the DB to change the user information\n userManager.updateUser(user);\n logger.info(tfUserName.getText() + \" user updated\");\n //load password pattern\n String pattern = \"((?=.*[a-z])(?=.*\\\\d)(?=.*[A-Z])(?=.*[@#$%!*.,+-;&]).{8,40})\";\n //Checks that the fields are not empty, have same value and matches with pattern,\n if((!(tfPassword.getText().equals(\"\")||tfRepeatPassword.getText().equals(\"\"))) &&\n tfPassword.getText().equals(tfRepeatPassword.getText()) &&\n tfPassword.getText().matches(pattern)){\n //Update user password\n userManager.changePassword(tfUserName.getText(),EncrypterUtil.encrypt(tfPassword.getText()));\n System.out.println(tfPassword.getText());\n System.out.println(EncrypterUtil.encrypt(tfPassword.getText()));\n alert = new Alert(javafx.scene.control.Alert.AlertType.INFORMATION, \"Credentials updated\");\n alert.showAndWait();\n logger.info(tfUserName.getText() + \" password changed\");\n //Send an email to the user saying that the password has been changed\n MailUtil.sendEmail(tfEmail.getText(), \"Password changed\", \"Your password have changed, if you didn´t do it\"\n + \" put in contact with our customer service.\");\n //Check that passwords got same value\n }else if(!tfPassword.getText().equals(tfRepeatPassword.getText())){\n alert = new Alert(javafx.scene.control.Alert.AlertType.INFORMATION, \"Please write same password\");\n alert.showAndWait();\n //Password are the same but dont match with pattern\n }else if (!tfPassword.getText().matches(pattern) && !(tfPassword.getText().equals(\"\") && tfRepeatPassword.getText().equals(\"\"))){\n alert = new Alert(AlertType.WARNING, \"Pasword has to be valid. A valid pasword contains at least :\\n-8 characters\\n-one capital letter\"\n + \"\\n-one small letter\\n-one number and one symbol\");\n alert.showAndWait();\n }else if(tfPassword.getText().equals(\"\")&&tfRepeatPassword.getText().equals(\"\")){\n //In case the user just changed his/her information.\n MobileApplication.getInstance().showMessage(\"Data saved\");\n }\n \n }\n } catch (UserUpdateException ex) {\n //Put in the logger the information of the error\n logger.severe(ex.getMessage());\n //Alert with the current error\n Alert alert = new Alert(javafx.scene.control.Alert.AlertType.ERROR, ex.getMessage());\n alert.showAndWait();\n }\n }\n }", "public synchronized void agregarUsuario(int idUsuario, ISesion sesion) {\n SessionFactory sf = null;\n try {\n sf = HibernateUtil.getSESSIONFACTORY();\n sf.getCurrentSession().beginTransaction();\n Usuario u;\n if (usuariosConectados.containsKey(idUsuario)) {\n LOGGER.debug(\"El usuario ya posee una sesion. Creando otra.\");\n u = usuariosConectados.get(idUsuario);\n u.agregarSesion(sesion);\n } else {\n LOGGER.debug(\"Creando sesion.\");\n IControladorUsuario controladorUsuario = new ControladorUsuario();\n u = controladorUsuario.getUsuario(idUsuario);\n u.agregarSesion(sesion);\n usuariosConectados.put(idUsuario, u);\n }\n u.exitoAlLogear(sesion.getKey());\n } catch (Exception e) {\n sesion.notificarError(\"Se produjo un error al intentar logear el usuario con el websocket.\");\n LOGGER.error(\"Error al iniciar sesion WebSocket\", e);\n } finally {\n try {\n sf.getCurrentSession().getTransaction().commit();\n } catch (Exception e2) {\n LOGGER.error(\"Error al cerrar sesion sesion\", e2);\n }\n }\n }", "private void invokeChangePasswordWebService(String mobileNo, String password, String confirmPassword, String otp) {\n dialogManager.showDialog();\n RequestParams params = new RequestParams();\n try {\n params.put(\"mobileNo\", mobileNo);\n params.put(\"password\", password);\n params.put(\"confirmpassword\", confirmPassword);\n params.put(\"otp\", otp);\n } catch (Exception e) {\n e.printStackTrace();\n }\n AsyncHttpClient client = new AsyncHttpClient();\n client.setTimeout(30000);\n client.addHeader(\"apikey\", Constants.API_KEY);\n client.addHeader(\"accesstoken\", loginSessionManger.getKeyAccesstoken());\n client.post(Constants.CHANGE_PASSWORD, params, new JsonHttpResponseHandler() {\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n dialogManager.hideDialog();\n showInfoDialog(\"Error\", responseString);\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable,\n JSONObject errorResponse) {\n dialogManager.hideDialog();\n try {\n showInfoDialog(\"Error\", errorResponse.getString(\"message\"));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n dialogManager.hideDialog();\n try {\n String status = response.getString(\"status\");\n if (status.equalsIgnoreCase(\"200\")) {\n showInfoDialog(\"Success\", response.getString(\"message\"));\n Toast.makeText(mContext, response.getString(\"otp\"), Toast.LENGTH_SHORT).show();\n Log.e(\"OTP\", response.getString(\"otp\"));\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(new Intent(mContext, MainActivity.class));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }", "public boolean actualizarUsuario(Usuario usuario) {\n \n //este usuario le mandamos al dao\n boolean cent = usuarioDAO.update(usuario);\n return cent;\n\n }" ]
[ "0.67615485", "0.6348", "0.6183261", "0.6149792", "0.61032903", "0.6046915", "0.6021127", "0.5992458", "0.5988718", "0.58947444", "0.58705795", "0.5849584", "0.5849503", "0.57958376", "0.5792423", "0.57623446", "0.5747915", "0.57264197", "0.57259464", "0.5716518", "0.5684086", "0.5682669", "0.567871", "0.56760764", "0.56725746", "0.5662429", "0.56603515", "0.5650408", "0.562602", "0.56210387", "0.5619495", "0.5619412", "0.56117964", "0.56105393", "0.56104964", "0.5586918", "0.5569943", "0.5560135", "0.55595404", "0.5537329", "0.5537168", "0.5536324", "0.55340546", "0.5531523", "0.551685", "0.5511319", "0.5504561", "0.5499187", "0.5495989", "0.54945594", "0.5485982", "0.54799855", "0.5468131", "0.5463118", "0.54591626", "0.5459128", "0.5455212", "0.5446466", "0.54294187", "0.5423997", "0.5423683", "0.54236317", "0.54164535", "0.5410189", "0.54030097", "0.5401959", "0.53958094", "0.5391774", "0.5385998", "0.5383666", "0.538074", "0.5379493", "0.53752285", "0.5360706", "0.5360342", "0.5351001", "0.535098", "0.5342744", "0.5340457", "0.5338611", "0.5336612", "0.5336612", "0.53280866", "0.5327659", "0.5324031", "0.53185374", "0.53158045", "0.5315037", "0.53129697", "0.5310436", "0.5308071", "0.53018045", "0.5293218", "0.5290882", "0.5288915", "0.52846056", "0.528029", "0.5279511", "0.52784854", "0.5269084" ]
0.5548693
39
Add a Node of a company
public long wsadd_node(NodeWS node) { long id = 0; //id de la tabla user (único) Node nodeC = new Node(node.getNode_name(),node.getMAC_address(),node.getPort_number()); //User cliente1 = new User("[email protected]", "gutie33", 1, "Luis","677899876", "Informatica"); try { iniciaOperacion(); id= (Long) sesion.createQuery("SELECT u.id_company FROM Company u WHERE u.company_name ='"+node.getName_company()+"'").uniqueResult(); Company x = (Company) sesion.load(Company.class, id); x.addNodo(nodeC); nodeC.setCompany(x); //sesion.update(compx); //metodo para guardar cliente (del objeto hibernate.sesion) tx.commit(); }catch(HibernateException he) { manejaExcepcion(he); throw he; }finally { //Busqueda del id con qu elo ha introducido a la BBDD id= (Long) sesion.createQuery("SELECT u.id_node FROM Node u WHERE u.node_name ='"+node.getNode_name()+"'").uniqueResult(); sesion.close(); } return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\npublic void add(Company c) {\n\tchildren.add(c);\r\n}", "private void addNode(String name)\n {\n try (Session session = driver.session())\n {\n // Wrapping Cypher in an explicit transaction provides atomicity\n // and makes handling errors much easier.\n try (Transaction tx = session.beginTransaction())\n {\n tx.run(\"MERGE (a:Node {value: {x}})\", parameters(\"x\", name));\n tx.success(); // Mark this write as successful.\n }\n }\n }", "void addNode(Node n) {\n nodes.put(n.id, n);\n }", "public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }", "public void addNode(CustomerNode<Customer> c){\r\n\t\tCustomerNode<Customer> temp = new CustomerNode<Customer>(new Customer(c.getElement().getArrivalTime(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.getElement().getID(), c.getElement().getOrderTime(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.getElement().getPaid(), c.getElement().getPatience()));\r\n\t\tif(this.isEmpty()){\r\n\t\t\tfirst=last=temp;\r\n\t\t\tsize++;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlast.setNext(temp);\r\n\t\ttemp.setPrev(last);\r\n\t\tlast=temp;\r\n\t\tsize++;\r\n\t}", "@Override\n\tpublic void add(cp_company cp) {\n\t\t\n\t}", "void addNode(Entity entity) {\n\t\tProcessing.nodeSet.add(entity);\n\t\tSystem.out.println(\"the entity was successfully added to the network.\");\n\t}", "public void AddNode(StubNode node) {\n\n }", "void addNode(String node);", "public Node appendNode(Node node);", "public void addNode(Node node){subNodes.add(node);}", "protected void addingNode( SearchNode n ) { }", "void addNode(int node);", "boolean addNode(long idNum, String label);", "@POST\n\t@Consumes(\"application/json\")\n\t@Produces(\"application/json\")\n\tpublic Response addNode(Entity entity) {\n\t\tif(currentGraph != null) {\n\t\t\tcurrentGraph.agregarNodo(entity);\n\t\t\treturn Response.status(200)\n\t\t\t\t\t.entity(currentGraph)\n\t\t\t\t\t.build();\n\t\t}else {\n\t\t\treturn Response.status(400)\n\t\t\t\t\t.build();\n\t\t}\n\n\t}", "void addNode()\n {\n Node newNode = new Node(this.numNodes);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n }", "public void addNode(String id, String label, double sna, double sz, HashMap<String,Integer> growthsPerYear){\n\t\tnodes.add(new CircosNode(id, label, sna, sz, growthsPerYear));\n\t\t\n\t\tString color = Math.round(Math.random() * 255) + \",\" + \n\t\t\t\tMath.round(Math.random() * 255) + \",\" + Math.round(Math.random() * 255); \n\t\tcolors.put(id, color);\n\t}", "private void addNode() {\n // Add GUI node\n int nodeCount = mGraph.getNodeCount();\n Node node = mGraph.addNode(String.valueOf(nodeCount));\n node.addAttribute(\"ui.label\", nodeCount);\n\n // Add Node_GUI node for algorithm to read from\n Node_GUI listNode = new Node_GUI();\n mNodeList.add(listNode);\n }", "private Node createAddNetwork(String name, double v1, double v2) {\n Node number1 = numberNode.extend()\n .withName(\"number1\")\n .withInputValue(\"number\", v1);\n Node number2 = numberNode.extend()\n .withName(\"number2\")\n .withInputValue(\"number\", v2);\n return Node.NETWORK\n .withName(name)\n .withChildAdded(number1)\n .withChildAdded(number2)\n .withChildAdded(addNode)\n .withRenderedChild(addNode)\n .connect(\"number1\", \"add\", \"v1\")\n .connect(\"number2\", \"add\", \"v2\");\n }", "public void addNode(String ip, int port) throws UnknownHostException {\t\r\n\t\tNodeRef ref = new NodeRef(ip, port); // create data node reference\r\n\t\tnodeMap.put(ref.getIp().getHostAddress(), ref);\r\n\t}", "public void add(Node<T> n){\n\t\tconnect.add(n);\n\t}", "void addNodes(List<CyNode> nodes);", "public abstract void addChild(Node node);", "public void addNode(String item){\n Node newNode = new Node(item,null);\nif(this.head == null){\n this.head = newNode;\n}else{\n Node currNode = this.head;\n while(currNode.getNextNode() != null){\n currNode = currNode.getNextNode();\n }\n currNode.setNextNode(newNode);\n}\nthis.numNodes++;\n }", "public boolean addNode(String hostname, String ipAddress)\n\t{\n\t\treturn nodeManager.addNode(hostname, ipAddress);\n\t}", "public void addNode(byte b, Node node) {\n nodes.put(b, node);\n }", "private final void createAndAddNode(String name) {\n\t}", "private void addNode(Node node)\n\t{\n\t\tif (node == null)\n\t\t\treturn;\n\t\tthis.nodes[node.getRowIndex()][node.getColumnIndex()] = node;\n\t}", "@Override\n\tpublic String createNode(String type,String name,String time,String loca,String phone, String desc,String axisId ) {\n\t\tNode node = new Node(type, name, time, loca, phone, desc, axisId);\n\t\thibernatedao.insert(null, node);\n\t\treturn node.getId();\n\t}", "private void addNode(NeuralNode node) {\r\n\t\tinnerNodes.add(node);\r\n\t}", "void addFlight(Node toNode);", "public void addNode(String hostname, String IP) throws IOException, XMLStreamException {\n Integer nodeID = returnHash(hostname);\n if (!IPmap.containsKey(nodeID)) {\n IPmap.put(nodeID, IP);\n //writeToXML();\n for (Map.Entry<Integer, String> entry : IPmap.entrySet()) {\n System.out.println(\"Key: \" + entry.getKey() + \". Value: \" + entry.getValue());\n }\n } else System.out.println(\"Node already in use.\");\n }", "String addNewNode(Double lat, Double lon);", "private void add_node(Node node) {\n if (this.nodes.get(node.name) != null) {\n throw new RuntimeException(\"Node \" + node.name + \" already exists!\");\n }\n this.nodes.put(node.name, node);\n this.bars.put(node.name, new TreeMap<String, Bar>());\n }", "public void buy(CompanyNode item) {\r\n \t\r\n \t//on ne peut pas acheter une compagnie qui vaut plus que cette compagnie. \r\n \t//if( this.compareTo(item) >= 0) {\r\n\t \t\t\r\n\t \tmoney += item.money; // On ajoute l'argent à la compagnie\r\n\t \t\r\n\t \tchilds.insert(item); // On ajoute un element à la compagnie\r\n\t \t\r\n\t \t// ====>>>>Verifier le pire child\r\n\t \t\r\n\t \tif(worstChild.compareTo(item.worstChild) > 0)\r\n\t \t\tworstChild = item.worstChild;\r\n\r\n }", "public void addNode(Node p_node) {\n\t\tnodes.add(p_node);\n\t}", "public void create(NetworkNode networkNode);", "public Node addNode(String node) {\n return nodeRepository.save(new Node(node));\n }", "public void addNode(NodeImpl node) {\n supervisedNodes.add(node);\n \n colorNodes();\n shortenNodeLabels();\n colorNodeLabels();\n colorNodeLabelBorders();\n }", "void createNode(NodeKey key);", "NodeReader addNode(VNFTypeReader type, String hostName) throws AllocationException, ServiceException;", "void btnAddDelivery(Node node, Node previousDeliveryNode, TimeSlot timeSlot);", "private Node getCompanyElements(Document doc, Element element, String name, String value) {\r\n Element node = doc.createElement(name);\r\n node.appendChild(doc.createTextNode(value));\r\n return node;\r\n }", "private void addArbitraryDataToDatabase() {\n\n try (Transaction tx = graphDatabaseService.beginTx()) {\n Node arbitraryNode = graphDatabaseService.createNode(DynamicLabel.label(\"NotAClass\"));\n arbitraryNode.setProperty(\"name\", \"Colin\");\n Node otherNode = graphDatabaseService.createNode(DynamicLabel.label(\"NotAClass\"));\n otherNode.setProperty(\"age\", 39);\n arbitraryNode.createRelationshipTo(otherNode, DynamicRelationshipType.withName(\"TEST\"));\n\n tx.success();\n }\n }", "private Node hubInsertNode(HubNode hubNode, Pane canvas , ContextMenu contextMenu) {\n\n\t\tImage image = new Image(\"root/Images/Hub.png\");\n\t\tImagePattern imagePattern = new ImagePattern(image);\n\n\t\tRectangle node = new Rectangle(NODE_LENGTH, NODE_WIDTH);\n\t\tnode.setFill(imagePattern);\n\n\t\tLabel lnodeName = new Label(\"HUB: \" + hubNode.getName()+ \"\\n\" + \"IP: \" + hubNode.getSubnet() + \"\\n\" + \"NetMask: \" + hubNode.getNetmask());\n\n\t\t//lnodeName.setOpacity(0.5);\n\t\tlnodeName.setStyle(\"-fx-background-color: rgba(255,255,255,0.6); -fx-font-size: 8; \");\n\n\n\t\tStackPane nodeContainer = new StackPane();\n\t\tnodeContainer.getChildren().addAll(node, lnodeName);\n\t\tnodeContainer.relocate(hubNode.getPosx(), hubNode.getPosy());\n\t\thubNode.setCanvasNode(nodeContainer); //for removing\n\n\t\tnodeContainer.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {\n\t\t\t@Override\n\t\t\tpublic void handle(MouseEvent event) {\n\t\t\t\tNodeController nodeController = NodeController.getNodeController();\n\t\t\t\tif (event.getButton() == MouseButton.SECONDARY) {\n\t\t\t\t\tcontextMenu.getItems().get(2).setDisable(false);//allows deletion option of the stack pane object 'nodeContainer'\n\t\t\t\t\tcontextMenu.getItems().get(2).setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void handle(ActionEvent e) {\n\t\t\t\t\t\t\tString hubName = hubNode.getName();\n\t\t\t\t\t\t\tnodeController.removeHubNode(hubName);\n\t\t\t\t\t\t\trefreshAll();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tcontextMenu.setOnHidden(new EventHandler<WindowEvent>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void handle(WindowEvent e) {\n\t\t\t\t\t\t\tcontextMenu.getItems().get(2).setDisable(true);\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\n\n\t\treturn nodeContainer;\n\t}", "public INode addOrGetNode(String label);", "@Test\n\tpublic void addNodeAfterGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node after the given node \");\n\t\tdll.push(4);\n\t\tdll.push(2);\n\t\tdll.push(1);\n\t\tdll.InsertAfter(dll.head.next, 3);\n\t\tdll.print();\n\t}", "public void addNode(Character charId, Node node) {\n graph.put(charId, node);\n }", "void nodeCreate( long id );", "void addIsNodeOf(Subdomain newIsNodeOf);", "@PostMapping(path = \"/\")\n public @ResponseBody String addNode(@RequestBody Node node){\n\n return nodeService.addNode(node);\n }", "public void addNode(ConfigurationNode node)\n {\n if (node == null || node.getName() == null)\n {\n throw new IllegalArgumentException(\n \"Node to add must have a defined name!\");\n }\n node.setParentNode(null); // reset, will later be set\n\n if (nodes == null)\n {\n nodes = new ArrayList<ConfigurationNode>();\n namedNodes = new HashMap<String, List<ConfigurationNode>>();\n }\n\n nodes.add(node);\n List<ConfigurationNode> lst = namedNodes.get(node.getName());\n if (lst == null)\n {\n lst = new LinkedList<ConfigurationNode>();\n namedNodes.put(node.getName(), lst);\n }\n lst.add(node);\n }", "private Node addNode(String nodeName)\r\n\t{\r\n\t final Node n = new Node(nodeName, attributes, numNodes());\r\n\t if (nodeMap.put(nodeName, n) != null)\r\n\t\tthrow new RuntimeException(\"Node <\"+n+\"> already exists!\");\r\n\t return n;\r\n\t}", "TreeNode addChild(TreeNode node);", "@Override\n\tpublic void addCompany(BeanCompany Company) {\n\t\tSession session = HibernateUtil.getSessionFactory().getCurrentSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\ttry {\n\t\t\tsession.save(Company);\n\t\t\ttx.commit();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}\n\t}", "public void addNode(Node node) {\n\t\tnodes.add(node);\n\t}", "@Test\n\tpublic void addNodeBeforeGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node Before the given node \");\n\t\tdll.push(4);\n\t\tdll.push(3);\n\t\tdll.push(1);\n\t\tdll.InsertBefore(dll.head.next, 2);\n\t\tdll.print();\n\t}", "public void addNode (NodeState node) throws RepositoryException, IOException\n\t{\n\t}", "@Override\r\npublic void Display(Company c) {\n\tchildren.add(c);\r\n}", "protected void submitNewNode(NNode node) {\n\t\tNNode newnode = new NNode(node);\n\t\tnodes.put(newnode.ID, newnode);\n\t}", "public void addNode(Node node) {\n\t\tthis.nodes.add(node);\n\t}", "public static void addNode(String nodeId) {\n\t\tif (con.isConnected()) {\n\t\t\t// Create and publish\n\t\t\tConfigureForm form = new ConfigureForm(FormType.submit);\n\t\t\tform.setPersistentItems(false);\n\t\t\tform.setSubscribe(true);\n\t\t\tform.setDeliverPayloads(true);\n\t\t\tform.setAccessModel(AccessModel.open);\n\t\t\tform.setPublishModel(PublishModel.open);\n\n\t\t\t// add node\n\t\t\ttry {\n\t\t\t\tLeafNode myNode = (LeafNode) manager.createNode(nodeId, form);\n\t\t\t\tSystem.out.println(\"node created: \" + nodeId);\n\t\t\t} catch (XMPPException e1) {\n\t\t\t\tSystem.out.println(\"creating/retrieving node fails:\");\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void addCompany(Company company) throws CouponSystemException {\r\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tcon = ConnectionPool.getInstance().getConnection();\r\n\t\t\tString sql = \"insert into companies values(0, ?, ?, ?)\";\r\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\r\n\t\t\tif (company != null) {\r\n\t\t\t\tpstmt.setString(1, company.getCompName());\r\n\t\t\t\tpstmt.setString(2, company.getCompEmail());\r\n\t\t\t\tpstmt.setString(3, company.getCompPass());\r\n\t\t\t\tpstmt.executeUpdate();\r\n\r\n\t\t\t\tSystem.out.println(\"New company was added\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new CouponSystemException(\"addCompany Failed\", e);\r\n\t\t} finally {\r\n\t\t\tif (con != null) {\r\n\t\t\t\tConnectionPool.getInstance().restoreConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void addNode(int key)\n{\n Node n1 = new Node(key);\n\t\n\tif(!getNodes().containsKey(n1.getKey())) \n\t{\n\tmc++;\n\tthis.getNodes().put(n1.getKey(),n1);\n\t\t\n\t}\n\telse {\n\t\treturn;\n\t\t//System.out.println(\"Node already in the graph\");\n\t}\n}", "void addNode(CommunicationLink communicationLink)\n {\n int nodeId = communicationLink.getInfo().hashCode();\n assert !nodeIds.contains(nodeId);\n nodeIds.add(nodeId);\n allNodes.put(nodeId, communicationLink);\n }", "private void editPipelineDefAddBranchNode(PipelineDefinition pipelineDef) {\n PipelineDefinitionNode newPipelineNode = new PipelineDefinitionNode(\n expectedModuleDef3.getName());\n pipelineDef.getRootNodes()\n .get(0)\n .getNextNodes()\n .add(newPipelineNode);\n newPipelineNode.setUnitOfWork(new ClassWrapper<UnitOfWorkTaskGenerator>(\n new TestUowTaskGenerator()));\n newPipelineNode.setStartNewUow(false);\n }", "public void addNode(String name, int index) {\n\t\tDefaultTreeModel model = (DefaultTreeModel) getModel();\n\t\tTreeNode root = (TreeNode) model.getRoot();\n\t\tif (index > root.getChildCount() || index < 0){\n\t\t\tindex = root.getChildCount();\n\t\t}\n\n\t\tmodel.insertNodeInto(new TreeNode(name, root.getNodeOption(), index, false), root, index);\n\t\tmodel.reload();\n\n\t\tscrollRowToVisible(index + 1);\n\n\t}", "@Override\n\tpublic void putNode(N node) {\n\t\t\n\t}", "public void addNodeToTheObjects(Node theNode) {\r\n getTheObjects().add(theNode);\r\n }", "void add(Member node, long now);", "@Override\n\tpublic void addNode(node_data n) {\n\t\tif (Nodes.keySet().contains(n.getKey())) {\n\t\t\tSystem.err.println(\"Err: key already exists, add fail\");\n\t\t\treturn;\n\t\t}\n\t\tif(n.getWeight()<=0)\n\t\t{\n\t\t\tSystem.err.println(\"The weight must be positive! . The node hadn't been added successfully..\");\n\t\t\treturn;\n\t\t}\n\t\tthis.Nodes.put(n.getKey(), n);//n used to be casted into (node)\n\t\tthis.Edges.put(n.getKey(), new HashMap<Integer,edge_data>());\n\t\tMC++;\n\n\t}", "void addNode(int weight) \n {\n Node newNode = new Node(this.numNodes, weight);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n \n }", "public void add(DefaultGraphCell node) {\n nodes.add(node);\n groupObject.add(node);\n fragmentName.append(((NodeData)node.getUserObject()).getName() + \" \");\n \n }", "boolean addNode(N node);", "public boolean add(Node n) {\n\t\t\n\t\t//Validate n is not null\n\t\tif (n == null) { \n\t\t\tSystem.out.println(\"Enter a valid node\");\n\t\t\treturn false; \n\t\t} \n\t\t\n\t\t//If the node is present in the network return\n\t\tif (nodes.contains(n)) {\n\t\t\tSystem.out.println(\"Node name already exists\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//Add the node to the network, with a new array for its neighbors\n\t\tnodes.add(n);\n\t\t\n\t\t//Successfully added\n\t\treturn true;\n\t}", "@Override\n public void visit(Node node) {\n nodes.add(node);\n }", "@Override\n\tpublic void addChild(Node node) {\n\t\t\n\t}", "public Node addNode(String nodeName, Attributes a) \r\n {\r\n\tnodes = null;\r\n\treturn ntMap.get(a.getName()).addNode(nodeName);\r\n }", "public void agregarNodo(Nodo nuevo){\n agregarNodoRec(root, nuevo);//la primera vez inicia en la raiz \n }", "public void addNode(int data) {\n\t\t \n\t\tNode newNode = new Node(data);\n\t\t\n\t\tnewNode.next = head;\n\t\thead = newNode;\n\t}", "private void addNodes(DefaultMutableTreeNode root)\r\n {\r\n // 2A. Create nodes for the three colleges\r\n\r\n // 2B. Add colleges to the root\r\n \r\n // 2C. Add two divisions to OCC\r\n\r\n // Add some departments to busdiv\r\n// busdiv.add(new DefaultMutableTreeNode(\"Accounting\"));\r\n// busdiv.add(new DefaultMutableTreeNode(\"Business\"));\r\n// busdiv.add(new DefaultMutableTreeNode(\"Computer Information Systems\"));\r\n// busdiv.add(new DefaultMutableTreeNode(\"Computer Science\"));\r\n// busdiv.add(new DefaultMutableTreeNode(\"Computerized Office Technology\"));\r\n// busdiv.add(new DefaultMutableTreeNode(\"Management\"));\r\n// busdiv.add(new DefaultMutableTreeNode(\"Marketing\"));\r\n// busdiv.add(new DefaultMutableTreeNode(\"Real Estate\"));\r\n }", "public void addNode(String node) {\n this.graph.put(node, new LinkedList<>());\n }", "public Node makeNode(Document xmlDoc) {\r\n Element out = xmlDoc.createElement(this.parent.getHeader());\r\n this.parent.updateSave();\r\n if (this.nodeText != null) {\r\n out.setTextContent(nodeText);\r\n }\r\n this.makeAtributes(out);\r\n for (int i = 0; i < this.children.size(); i++) {\r\n out.appendChild(this.children.get(i).makeNode(xmlDoc));\r\n }\r\n return out;\r\n}", "private void appendNode(int data) {\n\t\tNode currentNode = head;\n\t\tNode newNode = new Node(data);\n\n\t\tif(currentNode==null) {\n\t\t\thead = newNode;\n\t\t\treturn;\n\t\t}\n\t\tif(currentNode.next==null) {\n\t\t\tcurrentNode.next=newNode;\n\t\t} else {\n\t\t\twhile(currentNode.next!=null) {\n\t\t\t\tcurrentNode = currentNode.next;\n\t\t\t}\n\t\t\tcurrentNode.next = newNode;\n\t\t}\n\t\tSystem.out.println(\" Added new Node to the linkedList \");\n\t}", "private Void createPersonNode(Transaction transaction, Person person) {\n\t\tString attributesForHashing = person.getName() + person.getSurname() + String.valueOf(person.getAge()) + String.valueOf(person.getHeight())\n\t\t\t\t+ String.valueOf(person.getWeight());\n\n\t\tString hash = this.getHash(attributesForHashing); // the hash value is calculated over the concatenation of all attributes of the node\n\t\tString chash = this.getHash(hash); // when a node is created it has no neighbors yet, so it's cHash is the hash of only it's Hash value\n\n\t\t//@formatter:off\n\t\ttransaction.run(\"CREATE (a:Person {name: $name, surname: $surname, age:$age, height: $height, weight: $weight, hash: $hash, chash: $chash})\",\n\t\t\t\tparameters(\"name\", person.getName(), \"surname\", person.getSurname(), \"age\", person.getAge(), \"height\",\n\t\t\t\t\t\tperson.getHeight(), \"weight\", person.getWeight(), \"hash\", hash, \"chash\", chash));\n\t\t//@formatter:on\n\t\treturn null;\n\t}", "public void insert(Node n);", "public void insert(Point2D p) {\n if (this.n ==0) {\n this.root = new Node(p, true, new RectHV(0,0,1,1));\n this.n++;\n } else {\n if (insert1(root, p)) this.n++;\n }\n }", "public void addNode() {\n if (nodeCount + 1 > xs.length)\n resize();\n nodeCount++;\n }", "public void addChild(Node node){\n children.add(node);\n \n }", "void createNode(String path);", "int addItem(final T pNode);", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData addNewCompanyBaseData();", "public void insertNode(String node) {\n Nodo newNode = new Nodo(node);\n newNode.next = lastIn;\n lastIn = newNode;\n size++;\n }", "void addAtBegning(int data){\n\t\t\n\t\tNode newNode = new Node(data);\n\t\tnewNode.next = head;\n\t\tif(head != null){\n\t\t\tNode temp = head;\n\t\t\twhile(temp.next != head)\n\t\t\t\ttemp = temp.next;\n\t\t\ttemp.next = newNode;\n\t\t}else{\n\t\t\tnewNode.next = newNode;\n\t\t}\n\t\thead = newNode;\n\t}", "void append(SNode node);", "@Override\n public boolean addNode(String nodeName) throws NodeException {\n Node newNode = new Node(nodeName);\n\n if(!containsNode(newNode)) {\n nodes.add(new Node(nodeName));\n return true;\n } else {\n // Dany prvek uz v listu existuje\n throw new NodeException(\"Vámi zadaný prvek už v listu existuje!\");\n }\n }", "public void addPerson(T people) {\r\n\t Node tempNode = new Node(people); // the node added by the user \r\n\t \r\n\t if (isEmpty()) { \r\n\t firstNode = tempNode; // if empty set first node to 1, aka the first node \r\n\t currentNode = firstNode; // the current node will also be the first nod e\r\n\t } else {\r\n\t currentNode.next = tempNode; // if its not empty , current node is equal to the node ( of the people ) ; \r\n\t }\r\n\t \r\n\t tempNode.next = firstNode; // this way tempNode.next will always be equal to 1, aka the first Node \r\n\t lastNode = tempNode; // this will make the last node in the list equal to the most current/ last node added \r\n\t skip(); // resetting current node to 1, aka the first node \r\n\t nodeCount++; // adding to the node count \r\n\t }", "private void editPipelineDefAddNextNode(PipelineDefinition pipelineDef) {\n PipelineDefinitionNode newPipelineNode = new PipelineDefinitionNode(\n expectedModuleDef3.getName());\n pipelineDef.getRootNodes()\n .get(0)\n .getNextNodes()\n .get(0)\n .getNextNodes()\n .add(newPipelineNode);\n newPipelineNode.setUnitOfWork(new ClassWrapper<UnitOfWorkTaskGenerator>(\n new TestUowTaskGenerator()));\n newPipelineNode.setStartNewUow(false);\n }", "private void addNode(int index, Node<AnyType> t) throws IndexOutOfBoundsException {\n \n /**\n * -------------------------------------------\n * TODO: You fully implement this method\n * \n */\n \n \n if ( index == 0 && !isEmpty() ) {\n \n t.setNextNode( headNode );\n headNode.setPreviousNode( t );\n headNode = t;\n size++;\n \n } else if ( index == 0 && isEmpty() ) { \n \n t.setNextNode( headNode );\n headNode = t;\n size++;\n \n } else if ( index == size ) {\n \n addNode( t );\n \n } else {\n \n Node<AnyType> node = getNode( index );\n \n node.getPreviousNode().setNextNode( t );\n t.setPreviousNode( node.getPreviousNode() );\n node.setPreviousNode( t );\n t.setNextNode( node );\n \n size++;\n \n }\n \n }", "private void addNode(DLinkedNode node){\n node.pre = head;\n node.post = head.post;\n\n head.post.pre = node;\n head.post = node;\n }" ]
[ "0.67916155", "0.63426673", "0.62341", "0.62279356", "0.61692953", "0.615485", "0.61215055", "0.6051279", "0.60496294", "0.60478705", "0.6018955", "0.5969274", "0.59340084", "0.5921066", "0.5920039", "0.58699", "0.58679616", "0.5835622", "0.5755971", "0.57413197", "0.57210886", "0.5709015", "0.5700268", "0.5686211", "0.5655297", "0.5654064", "0.5639345", "0.56389564", "0.56247544", "0.56200254", "0.561625", "0.561329", "0.55980366", "0.5596784", "0.55936533", "0.5593076", "0.55923116", "0.55687636", "0.5568073", "0.554367", "0.5539506", "0.55336595", "0.5529575", "0.5523233", "0.5512277", "0.55045223", "0.5495545", "0.5491322", "0.5479353", "0.5475865", "0.5463609", "0.5458342", "0.54572356", "0.5451768", "0.5450047", "0.5443144", "0.54416007", "0.54413205", "0.5439079", "0.5434472", "0.5402576", "0.5401877", "0.540043", "0.5395645", "0.5394", "0.5390444", "0.5379079", "0.5373001", "0.5371022", "0.5366426", "0.5361921", "0.53569406", "0.5341008", "0.53387463", "0.53220475", "0.5311846", "0.52932197", "0.5279241", "0.5254053", "0.52390826", "0.52362525", "0.52330816", "0.523097", "0.52299017", "0.5225404", "0.52217466", "0.52205986", "0.52139175", "0.52084535", "0.5205477", "0.51846313", "0.51828605", "0.51822704", "0.51813716", "0.51760733", "0.5171389", "0.5168478", "0.51570344", "0.51562405", "0.51561284" ]
0.6002243
11
busqueda de si el nodo existe para creacion de nodo
public Boolean node_exists (NodeWS node) { Query i = null; iniciaOperacion(); i = sesion.createQuery("SELECT u.id_node FROM Node u WHERE u.node_name = :seu"); i.setString("seu", node.getNode_name()); return (i.uniqueResult() != null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean existsRec(Node<T> nodo, T key) {\r\n\t\tif (nodo.getData().equals(key)) {// Si existe el nodo en el arbol\r\n\t\t\treturn true;\r\n\t\t} else if (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Los hijos\r\n\t\t\tboolean comprobacion = false;\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcomprobacion = existsRec(lista.get(i), key);// Recursividad\r\n\t\t\t\tif (comprobacion == true) // Se encontro\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false; // No se encontro\r\n\t}", "boolean existe(String nombre);", "public static boolean existe(Object o){\n\t\tboolean existe = !naoExiste(o);\n\t\treturn existe;\n\t}", "@Override\n public boolean isExist(Object o) {\n return true;\n }", "@Test\n public void testExistenceTestuJedneOsoby() {\n osBeznyMuz = new Osoba(120, 150, Barva.MODRA);\n testJedneOsoby(osBeznyMuz, 120, 150, 70, 140, Barva.MODRA);\n }", "public boolean isExistant(Noeud noeud)\t{\r\n \treturn noeud != null && noeuds.containsValue(noeud);\r\n }", "@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}", "public boolean existe(Producto producto);", "@Override\r\n\tpublic boolean existe(String nomeEmpresa) {\n\t\treturn false;\r\n\t}", "public abstract boolean doesExist();", "public boolean crear(String nombre, String apellido, String cedula) {\n Cliente cliente = new Cliente(generarId(), nombre, apellido, cedula); // Creo un nuevo cliente\n return datos.add(cliente); // Agrego a mi lista de datos\n }", "@Override\r\n\tpublic boolean isExist() {\n\t\treturn false;\r\n\t}", "public void agregarNodo(Nodo nuevo){\n agregarNodoRec(root, nuevo);//la primera vez inicia en la raiz \n }", "public boolean existeElemento(T dato) {\n\t\t// crea nodo igual al primer elemento\n\t\tNodeTabla<K, T> nodo = primerElemento;\n\n\t\t// itera los elementos hasta que se acaben o encuentre el elemento\n\t\twhile (nodo != null && !nodo.getElemento().equals(dato)) {\n\t\t\tnodo = nodo.getSiguiente();\n\t\t}\n\n\t\t// retorna true si encontro el elemento\n\t\treturn nodo != null;\n\t}", "public boolean existeTrabajadorByDni(String dni) throws DAOException{\n TransactionContext tx = null;\n boolean existeRegistro = false;\n try{\n tx = new TransactionContext();\n TrabajadorDAO trabajadorDAO = new TrabajadorDAO(tx);\n existeRegistro = trabajadorDAO.existeTrabajadorByDni(dni);\n tx.close();\n tx = null;\n }catch(Exception e){\n if(tx != null) {\n try {\n tx.close();\n tx = null;\n }catch(Exception ignore){}\n }\n throw new DAOException(e);\n }\n return existeRegistro;\n }", "private boolean checkIfExist(int klik, int x, int y){\r\n\t\tif (klik == 1){\r\n\t\t\tif (discTable[x][y].owner != 0 && discTable[x][y].owner <= 2) return true;\r\n\t\t\telse return false;\r\n\t\t}else return false;\r\n\t}", "@Override\n\tpublic void exist() {\n\t\t\n\t}", "ExistsOper createExistsOper();", "public void testExisteProjeto() {\n String nome = \"projetoNaoExistente\";\n assertFalse(ProjetoDAO.existeProjeto(nome));\n }", "public boolean existe(int data) {\n NodoRelacion aux = this.first;\n while (aux != null) {\n if (aux.getID_actor() == data) {\n return true;\n }\n aux = aux.getPnext();\n\n }\n return false;\n }", "boolean insertar(Nodo_B nuevo){\n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n size ++;\n return true;\n }else{\n if(this.primero == this.ultimo){ // -------------------------solo hay un nodo \n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }\n }else{ // ---------------------------------------------------hay mas de un nodo\n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n Nodo_B pivote = this.primero;\n while(pivote != null){\n if(nuevo.valor < pivote.valor){\n nuevo.siguiente = pivote;\n nuevo.anterior = pivote.anterior;\n //--------------------------- cambia los punteros a las paginas\n pivote.izq = nuevo.der;\n pivote.anterior.der = nuevo.izq;\n //-----------------------------------------------------------\n pivote.anterior.siguiente = nuevo;\n pivote.anterior = nuevo;\n size++;\n return true;\n }else if(nuevo.valor == pivote.valor){\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }else{\n pivote = pivote.siguiente;\n }\n }\n }\n }\n }\n return false;\n }", "public void crearNodos()\n\t{\n\t\tfor(List<String> renglon: listaDeDatos)\n\t\t{\n\t\t\tPersona persona = new Persona(Integer.parseInt(renglon.get(1)), Integer.parseInt(renglon.get(2))); //crea la persona\n\t\t\t\n\t\t\tNodo nodo = new Nodo(Integer.parseInt(renglon.get(0)), 0, 0, false); //crea el nodo con id en posicion 1\n\t\t\t\n\t\t\tnodo.agregarPersona(persona);\n\t\t\tlistaNodos.add(nodo);\n\t\t}\n\t\t\n\t}", "public boolean existeOrdenador(String codigo) {\n\t\tboolean resultado = false;\n\t\ttry {\n\t\t\tXPathQueryService consulta = \n\t\t\t\t\t(XPathQueryService) \n\t\t\t\t\tcol.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tResourceSet r = consulta.query(\"//ordenador[@codigo='\"+codigo+\"']\");\n\t\t\tResourceIterator i = r.getIterator();\n\t\t\tif(i.hasMoreResources()) {\n\t\t\t\tresultado = true;\n\t\t\t}\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "private synchronized boolean existeIndice() {\r\n\t\tboolean indiceExiste = new File(pastaDoIndice, \"segments.gen\")\r\n\t\t\t\t.exists();\r\n\r\n\t\treturn indiceExiste;\r\n\t}", "private int verificarRemocao(No no){\n if(no.getDireita()==null && no.getEsquerda()==null)\n return 1;\n if((no.getDireita()==null && no.getEsquerda()!=null) || (no.getDireita()!=null && no.getEsquerda()==null))\n return 2;\n if(no.getDireita() != null && no.getEsquerda() != null)\n return 3;\n else return -1;\n }", "boolean getIfNotExist();", "boolean getIfNotExist();", "private Ingrediente givenExisteUnIngrediente() {\n\t\tIngrediente ing = new Ingrediente();\n\t\ting.setId_categoriaIngrediente(1);\n\t\ting.setNombre(\"TOMATE\");\n\t\treturn ing;\n\t}", "public abstract boolean isNatureExist(long id);", "public void insertarOrden(Object dato) {\n Nodo nuevo = new Nodo(dato);\n int res = 0;\n // System.out.println(\"esxa\"+res);\n if (primero == null) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n // System.out.println(\"Es nulo\");\n// System.out.println(\"sss\"+primero.getDato());\n } else {\n res = comp.evaluar(dato, primero.getDato());\n // System.out.println(\"\"+res);\n if (res == -1) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n } else {\n int auxres = 0;\n Nodo anterior, actual;\n anterior = actual = primero;\n auxres = comp.evaluar(dato, actual.getDato());\n while ((actual.getReferencia() != null) && (auxres == 1)) {\n anterior = actual;\n actual = actual.getReferencia();\n auxres = comp.evaluar(dato, actual.getDato());\n }\n if (auxres == 1) {\n anterior = actual;\n }\n nuevo.setReferencia(anterior.getReferencia());\n anterior.setReferencia(nuevo);\n\n }\n }\n\n }", "public static boolean naoExiste(Object o){\n\t\tboolean naoExiste = o==null;\n\t\tif (o instanceof String) {\n\t\t\tString texto = (String) o;\n\t\t\tnaoExiste = texto.equals(\"null\");\n\t\t}\n\t\treturn naoExiste;\n\t}", "boolean exists(Curso curso) throws BusinessException;", "@Override\n\tpublic boolean existe(Usuario usuarioLogado) {\n\t\treturn false;\n\t}", "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 boolean nuevaHoja(String nombre) {\n if(wp.insertarHoja(nombre)){\n numhojas ++; \n return true;\n }\n return false;\n }", "public static boolean exist(String nombre) throws SQLException {\n boolean existe = false;\n Statement stat = BDConnect.connect().createStatement();\n try {\n ResultSet rs = stat.executeQuery(\"SELECT * FROM Grupo WHERE nombre='\" + nombre + \"'\");\n if (rs.next()) {\n existe = true;\n }\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n stat.close();\n }\n return existe;\n }", "public static boolean verificarExistenciaPersona(Personas persona)\n {\n //Este método permite verificar si el usuario a crear es vendedor, comprador o ninguno. Validacion en el main y para el metodo que agrega los tipo de usuario\n ArrayList<Personas> personas = Personas.desserializarPersonas(\"Personas.ser\");\n for(Personas pe: personas)\n {\n if(pe.getCorreoElectronico().equals(persona.getCorreoElectronico()) && pe.getTipo().equals(pe.getTipo()) ) \n \n return true;\n }\n return false;\n }", "private boolean checkforCreating(Object element) {\n\t\tif (element == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (element instanceof Entity) {\n\t\t\tEntity entity = (Entity) element;\n\t\t\tObject entitryValue = entity.getValue(\"autocreate\");\n\t\t\tif (entitryValue != null && entitryValue instanceof Boolean) {\n\t\t\t\treturn (Boolean) entitryValue;\n\t\t\t}\n\t\t}\n\t\tif (element instanceof List<?>) {\n\t\t\tList<?> collection = (List<?>) element;\n\t\t\tfor (Object item : collection) {\n\t\t\t\tif (checkforCreating(item)) {\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}", "boolean existePorId(Long id);", "public void inserisci(NodoAlbero dove, String contenuto, String tipo){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, tipo);\n n_nodi++;\n return;\n }\n //se il nodo padre non ha un figlio, lo creiamo\n if (dove.getFiglio() == null)\n dove.setFiglio(new NodoAlbero(contenuto, dove, tipo));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = dove.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), tipo));\n }\n n_nodi++;\n }", "public boolean exists( Integer idConge ) ;", "@Override\n public boolean create(Revue objet) {\n return false;\n }", "public boolean NuevoAfiliado(String nombrePersona, String numeroDui) {\n if (!Afiliados.contains(nombrePersona)) { //Verificar que sta persona no este agregada.\n //Agregar nuevo afiliado.\n Afiliados.add(nombrePersona);\n FechaAfiliacion.add(ObtenerFechaActual());\n NumeroDui.add(numeroDui);\n return true;\n }\n return false;\n }", "Boolean findExistsCampania(GestionPrecioID id) ;", "public boolean existeLlave(int llave) {\n for (Nodo<Integer, Reservacion> th1 : this.th) {\n if (th1 != null && th1.key == llave) {\n return true;\n }\n }\n return false;\n }", "boolean existeId(Long id);", "@Override\n\tpublic boolean create(Eleve o) {\n\t\tmap.put(o.getId(),o);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isExistRepayment(String originalWaybillNo) {\n\t\treturn false;\n\t}", "public void inserisci(String dove, String contenuto){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, \"directory\");\n n_nodi++;\n return;\n }\n //troviamo il nodo che sarà il padre del nodo che dobbiamo aggiungere\n NodoAlbero cercato = ricerca(dove);\n \n //se il nodo padre non esiste, non aggiungiamo il nuovo nodo\n if (cercato == null)\n return;\n //se il nodo padre non ha un figlio, lo creiamo\n if (cercato.getFiglio() == null)\n cercato.setFiglio(new NodoAlbero(contenuto, cercato, \"directory\"));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = cercato.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), \"directory\"));\n }\n n_nodi++;\n }", "public void InsertarNodo(int nodo) {\r\n Nodo nuevo_nodo = new Nodo(nodo);\r\n nuevo_nodo.siguiente = UltimoValorIngresado;\r\n UltimoValorIngresado = nuevo_nodo;\r\n tamaño++;\r\n }", "public abstract boolean exists();", "boolean hasExists();", "public static boolean exists(){\n \t\treturn everbie != null;\n \t}", "boolean getExists();", "public boolean createPalvelupiste(Palvelupiste palvelupiste);", "public boolean exist(String scholl_node){\n boolean it_exist = false;\n String sql = \"SELECT * FROM \" + Value.TABLE_SCHOLLS + \" WHERE \" + Value.COLUMN_NODE + \" = '\" + scholl_node + \"'\";\n\n Cursor c = db.rawQuery(sql, null);\n int count = c.getCount();\n c.close();\n if(count > 0){\n it_exist = true;\n }\n return it_exist;\n }", "public void crearEntidad() throws EntidadNotFoundException {\r\n\t\tif (validarCampos(getNewEntidad())) {\r\n\t\t\tif (validarNomNitRepetidoEntidad(getNewEntidad())) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN, \"Advertencia: \", \"Nombre, Nit o Prejifo ya existe en GIA\"));\r\n\t\t\t} else {\r\n\t\t\t\tif (entidadController.crearEntidad(getNewEntidad())) {\r\n\t\t\t\t\tmensajeGrow(\"Entidad Creada Satisfactoriamente\", getNewEntidad());\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('entCrearDialog').hide()\");\r\n\t\t\t\t\tsetNewEntidad(new EntidadDTO());\r\n\t\t\t\t\tresetCodigoBUA();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmensajeGrow(\"Entidad No Fue Creada\", getNewEntidad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlistarEntidades();\r\n\t\t\t// newEntidad = new EntidadDTO();\r\n\t\t\t// fechaActual();\r\n\t\t}\r\n\r\n\t}", "public boolean exists(Funcionario pojo) {\r\n\t\treturn (load(pojo.getId()) != null);\r\n\t}", "@Override\n\tpublic boolean existe(String cpf) throws CampoObrigatorioException,\n\t\t\tClienteNaoEncontradoException, CPFInvalidoException, SQLException {\n\t\tfor(ClienteFisico c : set){\n\t\t\tif(cpf.equals(c.getCpf())){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean esArticuloValido(String nombreArticulo) throws RemoteException{\n\t\tString driver = \"org.apache.derby.jdbc.EmbeddedDriver\";\n\t\t// the database name \n\t\tString dbName=\"VentasDB\";\n\t\t// define the Derby connection URL to use \n\t\tString connectionURL = \"jdbc:derby:\" + dbName + \";create=true\";\n\n\t\tConnection conn = null;\n\t\tResultSet rs = null;\n\t\tPreparedStatement pst = null;\n\t\t\n\t\tSystem.out.println(\"Verificando existencia de articulo...\");\n\t\t\n\t\tString sql = \"SELECT NombreArticulo FROM Articulos WHERE NombreArticulo = ?\";\n\t\t\n\t\ttry{\n\t\t\tClass.forName(driver).newInstance();\n\t\t\tconn = DriverManager.getConnection(connectionURL);\t\t \n pst = conn.prepareStatement(sql);\n pst.setString(1, nombreArticulo);\n \n rs = pst.executeQuery();\n \n if (rs.next()){\n return true;\n }\n else{\n return false; \n\t\t\t}\n }catch(Exception e){\n\t\t\tSystem.out.println(\"Error al verificar si el articulo es valido.\");\n\t\t\tSystem.out.println(\"Informacion del error: \" + e.toString());\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n }\t\t\n\t}", "@Override\n\tpublic boolean isExist(String name) {\n\t\treturn false;\n\t}", "public void insert(Nodo nodo) {\r\n\t\tif(cont<7){\r\n\t\t\tif(this.getRaiz() == null) {\r\n\t this.setRaiz(nodo);\r\n\t nodo.setClave(0);\r\n\t return;\r\n\t }\r\n\t \r\n\t Nodo t = this.getRaiz();\r\n\t boolean val = true;\r\n\t while((t != null)&&(val)) {\r\n\t if(t.getLeft() == null) {\r\n\t \tt.setLeft(nodo);\r\n\t \tcont++;\r\n\t \tNivel(nodo);\r\n\t \tval=false;\r\n\t }\r\n\t else if(t.getRight() == null) {\r\n\t t.setRight(nodo);\r\n\t cont++;\r\n\t \tNivel(nodo);\r\n\t val=false;\r\n\t }\r\n\t else {\r\n\t int lCount = countChildren(t.getLeft());\r\n\t int rCount = countChildren(t.getRight());\r\n\t if(lCount == rCount)\r\n\t t = t.getLeft(); \r\n\t \r\n\t else if(lCount == 0 || lCount == 1)\r\n\t t = t.getLeft(); \r\n\t \r\n\t else\r\n\t t = t.getRight();\r\n\t \r\n\t }\r\n\t\r\n\t }\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean create(Document obj) {\n\t\tSystem.out.println(obj);\n\t\tString sql = \"INSERT INTO public.documents( nom, etape_id, process_id)\\r\\n\"\n\t\t\t\t+ \"\tVALUES ('\" + obj.getNom() + \"', \" + obj.getId_etape()+ \" , \"+obj.getId_process()+\");\";\n\t\ttry {\n\t\t\tSystem.out.println(sql);\n\t\t\tPreparedStatement statement = this.connect.prepareStatement(sql);\n\t\t\tstatement.execute();\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\r\n\tpublic boolean create(Jeu obj) {\n\t\treturn false;\r\n\t}", "public boolean nuevaHoja() {\n boolean ret;\n if(ret = nuevaHoja(\"Hoja\" + numhojas));\n numhojas++;\n return ret;\n }", "public void testexisteDescripcion()\n\t{\n\t\tString descripcion = new String(\"admin\");\n\t\tLong id = new Long(\"-1\");\n\t\t\n\t\tBoolean bol = servicio.existeDescripcion(descripcion, id);\n\t\t\tassertEquals(bol.booleanValue(), true);\n\t}", "public void insertar(int x, String nombre) {\n \tNodo nuevo;\n nuevo = new Nodo();\n nuevo.edad = x;\n nuevo.nombre = nombre;\n //Validar si la lista esta vacia\n if (raiz==null)\n {\n nuevo.sig = null;\n raiz = nuevo;\n }\n else\n {\n nuevo.sig = raiz;\n raiz = nuevo;\n }\n }", "public Nodo NodoNotExec(Nodo nodo){\n if (nodo.getParent()!=null){\n Nodo hermano=nodo.getParent().getChildren().getFirst();\n Nodo n= hermano.getHermanos().get(nodo.getSimbolo());\n return n;\n }\n return null;\n }", "@Override\r\n public boolean validarNombreNoRepetido(Integer empresaId, String nombre) throws ServiceException, DaoException {\n List<Sucursal> sucursales = this.getSucursalesPorEmpresaNombre(empresaId, nombre, false, InterfaceDao.TO_UPPER_CASE);\r\n if (sucursales != null && sucursales.size() > 0) {\r\n throw new ServiceException(\"consultorio.service.error.1209\", locale);\r\n }\r\n return true;\r\n }", "protected boolean Exists()\n\t{\n\t\tif (identity<1) return false;\n\t\tNodeReference nodeReference = getNodeReference();\n\t\treturn (nodeReference.exists() || nodeReference.hasSubnodes());\n\t}", "@Override\r\n\tpublic boolean exists() {\n\t\treturn false;\r\n\t}", "public boolean exist() {\n\t\treturn false;\n\t}", "public boolean insertarOrdenador(Ordenador o) {\n\t\tboolean resultado = false;\n\t\ttry {\n\t\t\tSimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\n\t\t\tXPathQueryService consulta = (XPathQueryService) col.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tconsulta.query(\"update insert \"\n\t\t\t\t\t+ \"<ordenador codigo='\"+o.getCodigo()+\"' fecha='\"+\n\t\t\t\t\t formato.format(o.getFecha())+\"'>\"\n\t\t\t\t\t + \"<piezas/>\" +\n\t\t\t\t\t \"<precio>0</precio>\" \n\t\t\t\t\t+\"</ordenador>\"\n\t\t\t\t\t+ \"into /ordenadores\");\n\t\t\tresultado=true;\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "public boolean Add() {\n String query = \"INSERT INTO Proveedores(nombre, idContacto, activo) \"\r\n + \"VALUES('\" + nombre + \"',\" + idContacto + \",\" + activo + \");\";\r\n return dataAccess.Execute(query) >= 1;\r\n }", "@Test\n\tpublic void testExistsInGroupSuccess() {\n\n\t\tgrupo.addColaborador(col1);\n\t\tboolean result = grupo.existsInGroup(col1);\n\n\t\tassertTrue(result);\n\t}", "@Transactional(propagation = Propagation.REQUIRED, readOnly = true)\n\tpublic ServiceResult exists(final Object obj){\n\t\tServiceResult result = new ServiceResult();\n\t\tObject temp;\n\t\ttry{\n\t\t\ttemp = dao.isExisted(obj);\n\t\t\tif (temp != null){\n\t\t\t\tresult.setResult(true);\n\t\t\t\tresult.setReturnObject(temp);\n\t\t\t} else {\n\t\t\t\tresult.setResult(false);\n\t\t\t}\n\t\t} catch (Exception e){\n\t\t\tresult.setResult(false);\n\t\t\tresult.setMessage(\"Error:\"+e);\n\t\t\tlog.error(\"Error checking if object is unique: \", e);\n\t\t}\n\t\treturn result;\n\t}", "@Override\n public boolean contiene(T dato) {\n return this.buscar(dato) != null;\n }", "boolean hasTreeNodeId();", "public int existeCuenta(int numCuenta){\n //mostrarCuentas();\n int j=-1;\n for(int i=0;i<it;i++){\n \n if(cuentas[i].getNroCuenta()==numCuenta){\n \n j=i;\n }\n }\n return j;\n }", "public void carroNoEncontrado(){\n System.out.println(\"Su carro no fue removido porque no fue encontrado en el registro\");\n }", "public boolean existeix_Doc(String titol, String autor) {\n return this.M.containsKey(titol+\", \"+autor);\n }", "@Override\n\tpublic boolean semelhante(Assemelhavel obj, int profundidade) {\n\t\treturn false;\n\t}", "public boolean joueurExiste(String nomJoueur) {\n\t\treturn stats.containsKey(nomJoueur);\n\t}", "@Override\n\tpublic boolean exists() {\n\t\treturn false;\n\t}", "boolean exists();", "boolean exists();", "@Override\r\n\tpublic boolean exists(Integer arg0) {\n\t\treturn false;\r\n\t}", "private boolean jaTemDono(int posicao) {\n String nomeDono = Donos.get(posicao).toString();\n return (this.isUmJogador(nomeDono));\n\n }", "public boolean crea(Libro libro);", "private boolean userIDExists( String idCedulaNit, Connection con ) \n {\n ClassConnection cc = new ClassConnection();\n \n //System.out.println( idCedulaNit );\n //System.out.print( idCedulaNit );\n Boolean presente = (Boolean) cc.execute( \"SELECT idcedulanit FROM usuario WHERE idcedulanit = \" + Long.parseLong( idCedulaNit ) , 2, con);\n \n return presente;\n }", "public boolean exists( Conge conge ) ;", "public boolean addPieza(Ordenador o, Pieza p, int cantidad) {\n\t\tboolean resultado = false;\n\t\ttry {\n\t\t\t\t\t\n\t\t\tXPathQueryService consulta = (XPathQueryService) col.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tconsulta.query(\"update insert \"\n\t\t\t\t\t+ \"<pieza codigo='\"+p.getCodigo()+\"' cantidad='\"+\n\t\t\t\t\t cantidad+\"'/>\"\n\t\t\t\t\t+ \"into //ordenador[@codigo='\"+o.getCodigo()+\"']/piezas\");\n\t\t\tresultado=true;\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "public void criar() throws IOException {\nif (!directorio.exists()) {\n directorio.mkdir();\n System.out.println(\"Directorio criado\");\n } else {\n System.out.println(\"Directorio existe\");\n }\n if (!fileAdmin.exists()) {\n fileAdmin.createNewFile();\n System.out.println(\"file de Administrador criado com sucesso\");\n escrever(lista);\n } else {\n System.out.println(\"ficheiro existe\");\n }\n\n }", "public boolean getExists();", "public boolean existePieza(int codigo) {\n\t\tboolean resultado = false;\n\t\ttry {\n\t\t\tXPathQueryService consulta = \n\t\t\t\t\t(XPathQueryService) \n\t\t\t\t\tcol.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tResourceSet r = consulta.query(\"/piezas/pieza[@codigo='\"+codigo+\"']\");\n\t\t\tResourceIterator i = r.getIterator();\n\t\t\tif(i.hasMoreResources()) {\n\t\t\t\tresultado = true;\n\t\t\t}\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "public boolean nouvelleFonction(String fonction, int label, String t) {\n\t \n\t Iterator<TableSymboleFonction> iter = list.iterator(); \n\t \n\t while(iter.hasNext()){\n\t \t\t\n\t \tTableSymboleFonction f = iter.next();\n\t \t\n\t \tif( f.getIdent().equals( fonction ) && f.getType().equals( t ) ){\n\t \t\t\n\t \t\t System.err.println(\"Fonction \\\"\"+ fonction + \"\\\" déjà définie avec type de retour \\\"\" + t +\"\\\".\");\n\t \t\t System.exit(0);\n\t \t\t return false;\n\t \t}\n\t }\n\t \n\t TableSymboleFonction nouvelleFonc = new TableSymboleFonction( fonction , label , t);\n\t list.add( nouvelleFonc );\n\t\treturn true;\n\t \n\t}", "private boolean validarMezcla() {\n\t\tint grado = nodos.get(0).getGrado();\n\t\tboolean retorno = true;\n\t\tfor (Nodo n : nodos) {\n\t\t\tif (n.getGrado() != grado) {\n\t\t\t\tif (n.getGrado() < grado) {\n\t\t\t\t\tSystem.err.println(\"Error en la mezcla del grafo\");\n\t\t\t\t\tSystem.exit(4321);\n\t\t\t\t} else\n\t\t\t\t\tgrado = n.getGrado();\n\t\t\t}\n\t\t}\n\t\treturn retorno;\n\t}", "public boolean isExist(Serializable id);", "@Override\n\tpublic boolean exists(String arg0) {\n\t\treturn false;\n\t}" ]
[ "0.6806645", "0.66048753", "0.63853806", "0.63734746", "0.6346782", "0.6324984", "0.6281748", "0.6281748", "0.61961365", "0.6175683", "0.6139455", "0.6137723", "0.6126985", "0.60984355", "0.60631907", "0.6038702", "0.6035225", "0.600464", "0.59981555", "0.5979954", "0.5977317", "0.5975981", "0.5967952", "0.59565747", "0.5947943", "0.5939853", "0.5925445", "0.5925445", "0.5921744", "0.5913975", "0.58910495", "0.5887875", "0.5880068", "0.5865899", "0.58525175", "0.5844425", "0.5837963", "0.5829287", "0.58284944", "0.58252484", "0.57943135", "0.57911", "0.57848155", "0.5778383", "0.57703567", "0.5767216", "0.57548976", "0.57522523", "0.57208717", "0.57186854", "0.5706085", "0.5704578", "0.5701061", "0.5682088", "0.568134", "0.56781083", "0.5642825", "0.5632698", "0.56305075", "0.56250715", "0.5618368", "0.5615591", "0.56143534", "0.5597166", "0.55961335", "0.55953896", "0.5591353", "0.55898297", "0.55794823", "0.55757165", "0.55683553", "0.5566947", "0.5560431", "0.55568916", "0.5554906", "0.554908", "0.5544843", "0.5544403", "0.5543283", "0.552988", "0.55260813", "0.55256796", "0.5522526", "0.5517588", "0.5517281", "0.55064964", "0.55064964", "0.5497509", "0.54974544", "0.5493802", "0.5491624", "0.5490622", "0.54902637", "0.54893327", "0.54837143", "0.5479073", "0.5476821", "0.5475217", "0.54669386", "0.54661286" ]
0.5884807
32
borrar nodo ws No devuelve nada
public void wsdelete_node(String name) throws HibernateException { Node node_del = null; String i=null; long id_node=0; try { iniciaOperacion(); i= sesion.createQuery("SELECT u.id_node FROM Node u WHERE u.node_name ='"+name+"'").uniqueResult().toString(); //una vez encontrado el id del user puedo buscarlo id_node= Integer.parseInt(i); node_del = (Node) sesion.get(Node.class, id_node); sesion.delete(node_del); //le pasamos todo el objeto a eliminar tx.commit(); } catch (HibernateException he) { manejaExcepcion(he); throw he; } finally { sesion.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void borrar() {\n\t\tmiPintor.borrar();\n\t\tlienzo.refrescar();\n\t\t\n\t}", "private File exportAndZip(String siteId, String webappDir) throws Exception {\r\n\tlog.info(\"user [\" + sessionManager.getCurrentSession().getUserEid()\r\n\t\t+ \"] exports site: [\" + siteId + \"]\");\r\n\r\n\t// opening a new temporary zipfile\r\n\tFile zipFile = File.createTempFile(\"osyl-package-export\", \".zip\");\r\n\tZipOutputStream zos =\r\n\t\tnew ZipOutputStream(new FileOutputStream(zipFile));\r\n\r\n\t// retrieving the xml file\r\n\tCOSerialized coSerialized =\r\n\t\tosylSiteService.getCourseOutlineForExport(siteId, webappDir);\r\n\r\n\tbyte[] xmlBytes = coSerialized.getContent().getBytes(\"UTF-8\");\r\n\twriteToZip(zos, OsylManagerService.CO_XML_FILENAME, xmlBytes);\r\n\r\n\t// retrieving other resources\r\n\tString resourceDir = contentHostingService.getSiteCollection(siteId);\r\n\r\n\ttry {\r\n\t ContentCollection workContent =\r\n\t\t contentHostingService.getCollection(resourceDir);\r\n\t // recursively retrieve all files\r\n\t retrieveFiles(zos, workContent, resourceDir);\r\n\t} catch (Exception e) {\r\n\t log.error(e);\r\n\t e.printStackTrace();\r\n\t throw new Exception(\"Cannot retrieve files in site for zipping\", e);\r\n\t}\r\n\tzos.close();\r\n\treturn zipFile;\r\n }", "public void tozip() {\r\n\t\t//session.setAttribute(Constant.USER_SESSION_KEY, null);\r\n\t\tList<Netlog> result = null;\r\n\t\tInteger total = null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t\tresult = (List<Netlog>)netlogDao.findNetlogByPage(1,10000);\r\n\t\t\t\ttotal= result.size();\r\n\t\t\t\t//total= netlogDao.findNetlogCount();\r\n\t\t\t\r\n\t\t} catch (SQLException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tNetlogs netlogs = new Netlogs(result);\r\n\t\tString path = this.getClass().getClassLoader().getResource(\"\").getPath();\r\n\t\tSystem.out.println(path);\r\n\t\tpath = path.replace(\"WEB-INF/classes/\", \"\");\r\n\t\tString path1 = path + \"netlog/\";\r\n\t\tLong time = System.currentTimeMillis()/1000;\r\n\t\tXml2Java.beanToXML(netlogs,path1+\"145-330000-\"+time.toString()+\"-00001-WA-SOURCE_NETLOG_0001-0.xml\");\r\n\r\n\t\tZipUtil.ZipMultiFile(path1, path+\"145-353030334-330300-330300-netlog-00001.zip\");\r\n\t}", "private void borraArchivos() {\n boolean isBorrado;\n for (BeanCargaOmisos dato : this.listadoCargaOmisos) {\n String dirBitacora = dato.getRutaEnBitacora();\n String dirRepositorio = dato.getRutaEnRepositorio();\n if (dirBitacora != null && !dirBitacora.isEmpty()) {\n File archivoBitacora = new File(dirBitacora);\n if (archivoBitacora.exists()) {\n isBorrado = archivoBitacora.delete();\n getLogger().debug(isBorrado);\n }\n }\n if (dirRepositorio != null && !dirRepositorio.isEmpty()) {\n File archivoRepositorio = new File(dirRepositorio);\n if (archivoRepositorio.exists()) {\n isBorrado = archivoRepositorio.delete();\n getLogger().debug(isBorrado);\n }\n }\n }\n }", "public void EliminarArchivos(){\n\t\ttry{\n\t\tFile Delete = new File(\"Cod.txt\");\n\t\tDelete.deleteOnExit();\n\t\tFile Borrar = new File(\"Maq.txt\");\n\t\tBorrar.deleteOnExit();\n\t\tFile eliminar = new File(\"WS.txt\");\n\t\teliminar.deleteOnExit();\n\t\tFile Bye = new File(\"RESPALDO.txt\");\n\t\tBye.deleteOnExit();\n\t\t\tBufferedReader numero= new BufferedReader(new FileReader(\"WS.txt\"));\n\t\t\tString valor = numero.readLine();\n\t\t\tint NumAreas= Integer.valueOf(valor);\n\t\t\tfor(int i=0; i< NumAreas;i++){\n\t\t\t\tvalor= numero.readLine();\n\t\t\t\tFile eliminas = new File(\"WS\"+valor+\".txt\");\n\t\t\t\teliminas.deleteOnExit();\n\t\t\t}\n\t\t\tnumero.close();\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"File not found\");\n\t\t}\n\t}", "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}", "public void guardarArchivoXLS(HSSFWorkbook libro)\r\n {\r\n JFileChooser fileChooserAlumnos = new JFileChooser();\r\n \r\n //filtro para ver solo archivos .xls\r\n fileChooserAlumnos.addChoosableFileFilter(new FileNameExtensionFilter(\"todos los archivos *.XLS\", \"xls\",\"XLS\"));\r\n int seleccion = fileChooserAlumnos.showSaveDialog(null);\r\n \r\n try{\r\n \t//comprueba si ha presionado el boton de aceptar\r\n if (seleccion == JFileChooser.APPROVE_OPTION){\r\n File archivoJFileChooser = fileChooserAlumnos.getSelectedFile();\r\n FileOutputStream archivo = new FileOutputStream(archivoJFileChooser+\".xls\");\r\n libro.write(archivo); \r\n JOptionPane.showMessageDialog(null,\"Se guardó correctamente el archivo\", \"Guardado exitoso!\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n }catch (Exception e){\r\n JOptionPane.showMessageDialog(null,\"Error al guardar el archivo!\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "public void guardarArchivo(String nombre, byte[] contenido) {\n\t\tFileOutputStream fos = null;\r\n\t\t// tenemos un objeto de tipo file, aqui no se crea el archivo\r\n\t\tFile carpetaPrincipal = new File(\"C:\\\\java\\\\wildfly-9.0.2.Final\\\\welcome-content\\\\documentos\\\\clientes\");\r\n\t\t// se crea la carpeta\r\n\t\tcarpetaPrincipal.mkdir();\r\n\t\tString nombreSinEspacios = \"\";\r\n\t\tFile miArchivo = new File(\"C:\\\\java\\\\wildfly-9.0.2.Final\\\\welcome-content\\\\documentos\\\\clientes\\\\\" + nombre);\r\n\t\ttry {\r\n\t\t\tmiArchivo.createNewFile();// se crea el archivo\r\n\t\t\tfos = new FileOutputStream(miArchivo);\r\n\t\t\tfos.write(contenido); // en memoria se escribe el archivo\r\n\t\t\tfos.flush();// escribir en el disco y tambien\r\n\t\t\tSystem.out.println(\"path donde se guardo \" + carpetaPrincipal.getAbsolutePath());\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tfos.close();// permite liberar el archivo\r\n\t\t\t} catch (IOException e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tString nmArchivo = \"<a href=\\\"http://localhost:8081/documentos/clientes/\" + nombre + \"\\\" target=\\\"_blank\\\">\"\r\n\t\t\t\t+ nombre + \"</a><br/>\";\r\n\t\tSystem.out.println(\"filename:\" + nmArchivo);\r\n\t}", "public ExportaDatosWSBean() {\n }", "public void zerarSistema() {\r\n\t\tarquivo.clear();\r\n\t\tcriaRepositorio();\r\n\t}", "public void respaldo() {\n if (seleccionados != null && seleccionados.length > 0) {\n ZipOutputStream salidaZip; //Donde va a quedar el archivo zip\n\n File file = new File(FacesContext.getCurrentInstance()\n .getExternalContext()\n .getRealPath(\"/temporales/\") + archivoRespaldo + \".zip\");\n\n try {\n salidaZip\n = new ZipOutputStream(new FileOutputStream(file));\n ZipEntry entradaZip;\n\n for (String s : seleccionados) {\n if (s.contains(\"Paises\")) {\n\n entradaZip = new ZipEntry(\"paises.json\");\n salidaZip.putNextEntry(entradaZip);\n byte data[]\n = PaisGestion.generaJson().getBytes();\n salidaZip.write(data, 0, data.length);\n salidaZip.closeEntry();\n }\n }\n salidaZip.close();\n\n // Descargar el archivo zip\n //Se carga el zip en un arreglo de bytes...\n byte[] zip = Files.readAllBytes(file.toPath());\n\n //Generar la página de respuesta...\n HttpServletResponse respuesta\n = (HttpServletResponse) FacesContext\n .getCurrentInstance()\n .getExternalContext()\n .getResponse();\n\n ServletOutputStream salida\n = respuesta.getOutputStream();\n\n //Defino los encabezados de la página de respuesta\n respuesta.setContentType(\"application/zip\");\n respuesta.setHeader(\"Content-Disposition\",\n \"attachement; filename=\" + archivoRespaldo + \".zip\");\n\n salida.write(zip);\n salida.flush();\n\n //Todo listo\n FacesContext.getCurrentInstance().responseComplete();\n file.delete();\n } catch (FileNotFoundException ex) {\n Logger.getLogger(RespaldoController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(RespaldoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n\n }", "public void doExport(IProgressMonitor monitor) throws ExportException\n\t{\n\t\tSubMonitor subMonitor = SubMonitor.convert(monitor, \"Creating War File\", 20);\n\t\tFile warFile = createNewWarFile();\n\t\tsubMonitor.worked(1);\n\t\tFile tmpWarDir = createTempDir();\n\t\tsubMonitor.worked(1);\n\t\tString appServerDir = exportModel.getServoyApplicationServerDir();\n\t\tsubMonitor.subTask(\"Copy root webapp files\");\n\t\tcopyRootWebappFiles(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy beans\");\n\t\tcopyBeans(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy plugins\");\n\t\tcopyPlugins(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy lafs\");\n\t\tcopyLafs(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy all standard libraries\");\n\t\tfinal File targetLibDir = copyStandardLibs(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy Drivers\");\n\t\tcopyDrivers(appServerDir, targetLibDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy images\");\n\t\tcopyLibImages(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tmoveSlf4j(tmpWarDir, targetLibDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Creating web.xml\");\n\t\tcopyWebXml(tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\tcreateTomcatContextXML(subMonitor, tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\taddServoyProperties(tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\tif (exportModel.isExportActiveSolution())\n\t\t{\n\t\t\tsubMonitor.subTask(\"Copy the active solution\");\n\t\t\tcopyActiveSolution(subMonitor.newChild(2), tmpWarDir);\n\t\t}\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Create properties for default admin page\");\n\t\tcreateAdminProperties(subMonitor, tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy NGClient components\");\n\t\tcopyComponents(subMonitor, tmpWarDir, targetLibDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy exported components\");\n\t\tcopyExportedComponentsPropertyFile(tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Creating/zipping the WAR file\");\n\t\tzipDirectory(tmpWarDir, warFile);\n\t\tsubMonitor.worked(2);\n\t\tdeleteDirectory(tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\tmonitor.done();\n\t\treturn;\n\t}", "private void backup(SubscriptionDto sDto) throws IOException {\n\t\tSystem.out.println(\"Gaurav\");\n\t\tString routePath = this.getClass().getClassLoader()\n\t\t\t\t.getResource(File.separator).getPath();\n\t\tSystem.out.println(routePath);\n\t\tString newLine = System.getProperty(\"line.separator\");\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(routePath+File.separator+\"..\"+File.separator+\"backup.txt\"), true));\n\t\tbw.write(\"Suscription Details\" + newLine);\n\t\tbw.write(\"**************************************\" + newLine);\n\t\tbw.write(\"SUBSCRIPTION ID \" + sDto.getSubscriptionId() + newLine);\n\t\tbw.write(\"CUSTOMER NAME \" + sDto.getCustomerName() + newLine);\n\t\tbw.write(\"Total Cost :\" + sDto.getTotalCost() + newLine);\n\t\tbw.write(\"-----------------------------------------------------------------------\"\n\t\t\t\t+ newLine);\n\n\t\tbw.write(\"Channel Suscribed Details\" + newLine);\n\t\tbw.write(\"**************************************\\n\" + newLine);\n\t\tbw.write(\" CHANNEL NAME | COST_PER MONTH \"\n\t\t\t\t+ newLine);\n\t\tbw.write(\"+--------------------------------------------------------------+\"\n\t\t\t\t+ newLine);\n\t\tfor (Channel c : sDto.getSubscribedChannel()) {\n\t\t\tbw.write(\"|\" + c.getChannelName() + \"\\t\\t\\t\\t | \\t\\t\\t \"\n\t\t\t\t\t+ c.getCostPerMonth() + \"\\t\\t\\t\\t\\t | \" + newLine);\n\t\t}\n\n\t\tbw.write(newLine);\n\t\tbw.write(\"-------------End---------------------\" + newLine);\n\t\tbw.close();\n\n\t}", "public void enviarArchivo() {\r\n \t try {\r\n \t\t\t// TODO Auto-generated method stub\r\n \t \t File archivo = new File( nombre );\r\n \t \r\n \t // Obtenemos el tamaño del archivo\r\n \t int tamañoArchivo = ( int )archivo.length();\r\n \t \r\n \t // Creamos el flujo de salida, este tipo de flujo nos permite \r\n \t // hacer la escritura de diferentes tipos de datos tales como\r\n \t // Strings, boolean, caracteres y la familia de enteros, etc.\r\n \t //dos = new DataOutputStream( socket.getOutputStream() );\r\n \t \r\n \t System.out.println( \"Enviando Archivo: \"+archivo.getName() );\r\n \t \r\n \t // Enviamos el nombre del archivo \r\n \t dos.writeUTF( archivo.getName() );\r\n \t \r\n \t // Enviamos el tamaño del archivo\r\n \t dos.writeInt( tamañoArchivo );\r\n \t \r\n \t // Creamos flujo de entrada para realizar la lectura del archivo en bytes\r\n \t fis = new FileInputStream( nombre );\r\n \t bis = new BufferedInputStream( fis );\r\n \t \r\n \t // Creamos el flujo de salida para enviar los datos del archivo en bytes\r\n \t bos = new BufferedOutputStream( socket.getOutputStream() );\r\n \t \r\n \t // Creamos un array de tipo byte con el tamaño del archivo \r\n \t byte[] buffer = new byte[ tamañoArchivo ];\r\n \t \r\n \t // Leemos el archivo y lo introducimos en el array de bytes \r\n \t bis.read( buffer ); \r\n \t \r\n \t // Realizamos el envio de los bytes que conforman el archivo\r\n \t for( int i = 0; i < buffer.length; i++ )\r\n \t {\r\n \t bos.write( buffer[ i ] ); \r\n \t } \r\n \t \r\n \t System.out.println( \"Archivo Enviado: \"+archivo.getName() );\r\n \t // Cerramos socket y flujos\r\n \t bis.close();\r\n \t bos.close();\r\n \t socket.close(); \r\n \t }\r\n \t catch( Exception e )\r\n \t {\r\n \t System.out.println( e.toString() );\r\n \t }\r\n\t \t\r\n }", "public void SubirOpenKM(ArrayList<tipoPDF_cargar> subidaArchivos, String estampaTiempo, String codigoFirma, String hash) throws IOException {\n this.setPubHash(hash);\n //String host = \"http://localhost:8083/OpenKM\";\n String host = \"http://wmyserver.sytes.net:8083/OpenKM\";\n String username = \"okmAdmin\";\n String password = \"admin\";\n OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);\n try {\n boolean crearFolder = false;\n String rutaFolderCrear;\n /* codigoFirma - en este caso corresponde al nombre de la carpeta que contendra\n el articulo y su tabla de contenido en formato PDFA\n Ruta del folder a crear en el Gestor Openkm*/\n // rutaFolderCrear = \"/okm:root/Doctorado_Electronica/\" + codigoFirma;\n rutaFolderCrear = \"/okm:root/Doctorado_Electronica/\" + this.pubEstIdentificador.getEstUsuario();\n this.setPubDiropkm(codigoFirma);\n try {\n /* Se valida si el forder a crear existe o no*/\n ws.isValidFolder(rutaFolderCrear);\n crearFolder = false;\n } catch (Exception e) {\n crearFolder = true;\n }\n if (crearFolder == true) {\n /* Si no existe el folder, se crea con la ruta(rutaFolderCrear)*/\n Folder fld = new Folder();\n fld.setPath(rutaFolderCrear);\n ws.createFolder(fld);\n }\n\n rutaFolderCrear = \"/okm:root/Doctorado_Electronica/\" + this.pubEstIdentificador.getEstUsuario() + \"/\" + codigoFirma;\n try {\n /* Se valida si el forder a crear existe o no*/\n ws.isValidFolder(rutaFolderCrear);\n crearFolder = false;\n } catch (Exception e) {\n crearFolder = true;\n }\n if (crearFolder == true) {\n /* Si no existe el folder, se crea con la ruta(rutaFolderCrear)*/\n Folder fld = new Folder();\n fld.setPath(rutaFolderCrear);\n ws.createFolder(fld);\n }\n\n for (int i = 0; i < subidaArchivos.size(); i++) {\n\n Archivo arch = (Archivo) archivoCollection.toArray()[i];\n /* Se Comprubea si los Metadatos en OpenKm que se van a llenar son para \n una revista, un congreso , un libro o un capitulo de un libro*/\n if (this.pubTipoPublicacion.equalsIgnoreCase(\"revista\")) {\n\n InputStream is = new FileInputStream(\"\" + subidaArchivos.get(i).getRutaArchivo());\n com.openkm.sdk4j.bean.Document doc = new com.openkm.sdk4j.bean.Document();\n doc.setPath(rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\");\n ws.createDocument(doc, is);\n\n IOUtils.closeQuietly(is);\n List<FormElement> fElements = ws.getPropertyGroupProperties(\"\" + rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\", \"okg:revista\");\n for (FormElement fElement : fElements) {\n if (fElement.getName().equals(\"okp:revista.identPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIdentificador);\n }\n if (fElement.getName().equals(\"okp:revista.identArchivo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + arch.getArcIdentificador());\n }\n\n if (fElement.getName().equals(\"okp:revista.tipoPDFCargar\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + subidaArchivos.get(i).getTipoPDF());\n }\n\n if (fElement.getName().equals(\"okp:revista.estampaTiempo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + estampaTiempo);\n }\n if (fElement.getName().equals(\"okp:revista.nombreAutor\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubNombreAutor);\n }\n if (fElement.getName().equals(\"okp:revista.autoresSecundarios\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubAutoresSecundarios);\n }\n\n SimpleDateFormat formateador = new SimpleDateFormat(\"MM-yyyy\");\n String FechaPublicacion = formateador.format(this.pubFechaPublicacion);\n\n if (fElement.getName().equals(\"okp:revista.fechaPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + FechaPublicacion);\n }\n if (fElement.getName().equals(\"okp:revista.tipoPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubTipoPublicacion);\n }\n if (fElement.getName().equals(\"okp:revista.tituloArticulo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.revista.getRevTituloArticulo());\n }\n if (fElement.getName().equals(\"okp:revista.nombreRevista\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.revista.getRevNombreRevista());\n }\n if (fElement.getName().equals(\"okp:revista.categoria\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.revista.getRevCategoria());\n }\n if (fElement.getName().equals(\"okp:revista.DOI\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubDoi);\n }\n if (fElement.getName().equals(\"okp:revista.ISBN\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIsbn);\n }\n if (fElement.getName().equals(\"okp:revista.ISSN\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIssn);\n }\n }\n ws.setPropertyGroupProperties(\"\" + rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\", \"okg:revista\", fElements);\n\n }\n\n if (this.pubTipoPublicacion.equalsIgnoreCase(\"congreso\")) {\n\n InputStream is = new FileInputStream(\"\" + subidaArchivos.get(i).getRutaArchivo());\n com.openkm.sdk4j.bean.Document doc = new com.openkm.sdk4j.bean.Document();\n\n doc.setPath(rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\");\n ws.createDocument(doc, is);\n IOUtils.closeQuietly(is);\n List<FormElement> fElements = ws.getPropertyGroupProperties(\"\" + rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\", \"okg:congreso\");\n\n for (FormElement fElement : fElements) {\n if (fElement.getName().equals(\"okp:congreso.identPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIdentificador);\n }\n if (fElement.getName().equals(\"okp:congreso.identArchivo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + arch.getArcIdentificador());\n }\n\n if (fElement.getName().equals(\"okp:congreso.tipoPDFCargar\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + subidaArchivos.get(i).getTipoPDF());\n }\n\n if (fElement.getName().equals(\"okp:congreso.estampaTiempo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + estampaTiempo);\n }\n if (fElement.getName().equals(\"okp:congreso.nombreAutor\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubNombreAutor);\n }\n if (fElement.getName().equals(\"okp:congreso.autoresSecundarios\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubAutoresSecundarios);\n }\n\n SimpleDateFormat formateador = new SimpleDateFormat(\"MM-yyyy\");\n String FechaPublicacion = formateador.format(this.pubFechaPublicacion);\n\n if (fElement.getName().equals(\"okp:congreso.fechaPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + FechaPublicacion);\n }\n if (fElement.getName().equals(\"okp:congreso.tipoPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubTipoPublicacion);\n }\n if (fElement.getName().equals(\"okp:congreso.tituloPonencia\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.congreso.getCongTituloPonencia());\n }\n if (fElement.getName().equals(\"okp:congreso.nombreEvento\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.congreso.getCongNombreEvento());\n }\n if (fElement.getName().equals(\"okp:congreso.tipoCongreso\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.congreso.getCongTipoCongreso());\n }\n if (fElement.getName().equals(\"okp:congreso.DOI\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubDoi);\n }\n if (fElement.getName().equals(\"okp:congreso.ISBN\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIsbn);\n }\n if (fElement.getName().equals(\"okp:congreso.ISSN\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIssn);\n }\n }\n ws.setPropertyGroupProperties(\"\" + rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\", \"okg:congreso\", fElements);\n\n }\n\n if (this.pubTipoPublicacion.equalsIgnoreCase(\"capitulo_libro\")) {\n\n InputStream is = new FileInputStream(\"\" + subidaArchivos.get(i).getRutaArchivo());\n com.openkm.sdk4j.bean.Document doc = new com.openkm.sdk4j.bean.Document();\n\n doc.setPath(rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\");\n ws.createDocument(doc, is);\n IOUtils.closeQuietly(is);\n List<FormElement> fElements = ws.getPropertyGroupProperties(\"\" + rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\", \"okg:capLibro\");\n\n for (FormElement fElement : fElements) {\n if (fElement.getName().equals(\"okp:capLibro.identPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIdentificador);\n }\n if (fElement.getName().equals(\"okp:capLibro.identArchivo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + arch.getArcIdentificador());\n }\n\n if (fElement.getName().equals(\"okp:capLibro.tipoPDFCargar\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + subidaArchivos.get(i).getTipoPDF());\n }\n if (fElement.getName().equals(\"okp:capLibro.estampaTiempo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + estampaTiempo);\n }\n if (fElement.getName().equals(\"okp:capLibro.nombreAutor\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubNombreAutor);\n }\n if (fElement.getName().equals(\"okp:capLibro.autoresSecundarios\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubAutoresSecundarios);\n }\n\n SimpleDateFormat formateador = new SimpleDateFormat(\"MM-yyyy\");\n String FechaPublicacion = formateador.format(this.pubFechaPublicacion);\n\n if (fElement.getName().equals(\"okp:capLibro.fechaPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + FechaPublicacion);\n }\n if (fElement.getName().equals(\"okp:capLibro.tipoPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubTipoPublicacion);\n }\n if (fElement.getName().equals(\"okp:capLibro.tituloLibro\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.capituloLibro.getCaplibTituloLibro());\n }\n if (fElement.getName().equals(\"okp:capLibro.tituloCapitulo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.capituloLibro.getCaplibTituloCapitulo());\n }\n if (fElement.getName().equals(\"okp:capLibro.DOI\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubDoi);\n }\n if (fElement.getName().equals(\"okp:capLibro.ISBN\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIsbn);\n }\n if (fElement.getName().equals(\"okp:capLibro.ISSN\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIssn);\n }\n }\n ws.setPropertyGroupProperties(\"\" + rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\", \"okg:capLibro\", fElements);\n\n }\n\n if (this.pubTipoPublicacion.equalsIgnoreCase(\"libro\")) {\n\n InputStream is = new FileInputStream(\"\" + subidaArchivos.get(i).getRutaArchivo());\n com.openkm.sdk4j.bean.Document doc = new com.openkm.sdk4j.bean.Document();\n\n doc.setPath(rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\");\n ws.createDocument(doc, is);\n IOUtils.closeQuietly(is);\n List<FormElement> fElements = ws.getPropertyGroupProperties(\"\" + rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\", \"okg:libro\");\n\n for (FormElement fElement : fElements) {\n if (fElement.getName().equals(\"okp:libro.identPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIdentificador);\n }\n if (fElement.getName().equals(\"okp:libro.identArchivo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + arch.getArcIdentificador());\n }\n\n if (fElement.getName().equals(\"okp:libro.tipoPDFCargar\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + subidaArchivos.get(i).getTipoPDF());\n }\n\n if (fElement.getName().equals(\"okp:libro.estampaTiempo\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + estampaTiempo);\n }\n if (fElement.getName().equals(\"okp:libro.nombreAutor\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubNombreAutor);\n }\n if (fElement.getName().equals(\"okp:libro.autoresSecundarios\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubAutoresSecundarios);\n }\n\n SimpleDateFormat formateador = new SimpleDateFormat(\"MM-yyyy\");\n String FechaPublicacion = formateador.format(this.pubFechaPublicacion);\n\n if (fElement.getName().equals(\"okp:libro.fechaPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + FechaPublicacion);\n }\n if (fElement.getName().equals(\"okp:libro.tipoPublicacion\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubTipoPublicacion);\n }\n if (fElement.getName().equals(\"okp:libro.tituloLibro\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.libro.getLibTituloLibro());\n }\n if (fElement.getName().equals(\"okp:libro.DOI\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubDoi);\n }\n if (fElement.getName().equals(\"okp:libro.ISBN\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIsbn);\n }\n if (fElement.getName().equals(\"okp:libro.ISSN\")) {\n Input name = (Input) fElement;\n name.setValue(\"\" + this.pubIssn);\n }\n }\n ws.setPropertyGroupProperties(\"\" + rutaFolderCrear + \"/\" + subidaArchivos.get(i).getNombreArchivo() + \".pdf\", \"okg:libro\", fElements);\n\n }\n\n File fichero = new File(subidaArchivos.get(i).getRutaArchivo());\n fichero.delete();\n\n }\n\n } catch (AccessDeniedException | AutomationException | DatabaseException | ExtensionException | FileSizeExceededException | ItemExistsException | LockException | NoSuchGroupException | NoSuchPropertyException | ParseException | PathNotFoundException | RepositoryException | UnknowException | UnsupportedMimeTypeException | UserQuotaExceededException | VirusDetectedException | WebserviceException | IOException e) {\n e.printStackTrace();\n }\n\n }", "private void grabarArchivo() {\n\t\tPrintWriter salida;\n\t\ttry {\n\t\t\tsalida = new PrintWriter(new FileWriter(super.salida));\n\t\t\tsalida.println(this.aDevolver);\n\t\t\tsalida.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void deleteNetWS() {\r\n/* 142 */ this._has_netWS = false;\r\n/* */ }", "static void CrearArchivo(Vector productos, Vector clientes){ \r\n \ttry{ //iniciamos el try y si no funciona se hace el catch\r\n BufferedWriter bw = new BufferedWriter(\r\n \t\t//Iniciamos el archivo adentro de bw que es un objeto.\r\n new FileWriter(\"reporte.txt\") );\r\n //creamos un producto auxiliar\r\n Producto p; \r\n //mientas existan productos se escribe lo siguiente en el archivo\r\n for(int x = 0; x < productos.size(); x++){ \r\n \t//impresiones de nombre,codigo,stock,precio en el archivo\r\n \tp = (Producto) productos.elementAt(x);\r\n bw.write(\"Nombre del producto: \" + p.getNombre() + \"\\n\"); \r\n bw.write(\"Codigo del producto: \" + p.getCodigo() + \"\\n\");\r\n bw.write(\"Tamaño del stock: \" + p.getStock() + \"\\n\");\r\n bw.write(\"Precio: \" + p.getPrecio() + \"\\n\");\r\n \r\n \r\n }\r\n //creamos un cliente auxiliar\r\n Cliente c;\r\n //mientas existan clientes se escribe lo siguiente en el archivo\r\n for(int x = 0; x < clientes.size(); x++){ \r\n \tc = (Cliente) clientes.elementAt(x);\r\n \t//impresiones de nombre,telefono,cantidad y total en el archivo\r\n bw.write(\"Nombre del cliente: \" + c.getname() + \"\\n\");\r\n bw.write(\"Numero de telefono: \" + c.getTelefono() + \"\\n\"); \r\n bw.write(\"Cantidad de compra: \" + c.getCantidad() + \"\\n\");\r\n bw.write(\"Total de compra: \" + c.getTotal() + \"\\n\");\r\n \r\n \r\n }\r\n // Cerrar archivo al finalizar\r\n bw.close();\r\n System.out.println(\"¡Archivo creado con éxito!\");\r\n //si no funciona imprime el error\r\n } catch(Exception ex){ \r\n System.out.println(ex);\r\n }\r\n }", "public void recevoirDossier() {\n try {\n fileInfo = (FileInfo) ois.readObject(); //lire les informations du fichier\n //chemin du fichier en sortie\n String outputFile = fileInfo.getDestinationDirectory() + fileInfo.getFilename();\n dstFile = new File(outputFile);\n if (!new File(fileInfo.getDestinationDirectory()).exists()) { //si le fichier n'existe pas\n new File(fileInfo.getDestinationDirectory()).mkdirs(); //creation du fichier\n fos = new FileOutputStream(dstFile);\n fos.write(fileInfo.getFileData()); //ecrire les données dans le fichier\n fos.flush();\n fileInfo.setFileData(null);\n System.gc();\n fos.close();\n dstFile.setLastModified(fileInfo.getModifier());\n\n } else if (dstFile.lastModified() < fileInfo.getModifier()) { //si le fichier existe et que c'est une nouvelle version alors\n fos = new FileOutputStream(dstFile);\n fos.write(fileInfo.getFileData());\n fos.flush();\n fileInfo.setFileData(null);\n fos.close();\n dstFile.setLastModified(fileInfo.getModifier());\n }\n } catch (IOException | ClassNotFoundException ex) {\n Logger.getLogger(RecevoirFichier.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void pruebaEscritura() {\n\t\tFileWriter fichero = null;\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tfichero = new FileWriter(\"//172.16.1.141/Modelo_Raster/Varios/Monitoreo_Forestal/REDD/Metadatos/test.xml\");\n\t\t\tpw = new PrintWriter(fichero);\n\n\t\t\tfor (int i = 0; i < 10; i++)\n\t\t\t\tpw.println(\"Linea \" + i);\n\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\t// Nuevamente aprovechamos el finally para\n\t\t\t\t// asegurarnos que se cierra el fichero.\n\t\t\t\tif (null != fichero) fichero.close();\n\t\t\t}\n\t\t\tcatch (Exception e2) {\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void comprar() {\n }", "public void InicializacionWS(){\n try {\n factory = new WebSocketFactory().setConnectionTimeout(5000);\n ws = factory.createSocket(ws_host);\n // Register a listener to receive WebSocket events.\n ws.addListener(new WebSocketAdapter() {\n @Override\n public void onTextMessage(WebSocket websocket, String message) throws Exception {\n System.out.println(message);\n }\n });\n } catch (IOException e){\n GenericDialogs.Dialogs.ShowDiaglog(\"Exception WebSocket client class\", e.getMessage(), context);\n }\n }", "public void onTransferWS() {\n log.debug(\"Transf WS...\");\n targetWSList.clear();\n targetPROCList.clear();\n CommunicationBridge communicationBridge;\n String strTarget = communicationBridgeWs.getTarget().toString();\n strTarget = strTarget.substring(1, strTarget.length() - 1);\n if (!strTarget.isEmpty()) {\n String[] split = strTarget.split(\",\");\n for (String cb : split) {\n log.debug(\"CB : \" + cb);\n communicationBridge = communicationBridgeMap.get(cb.trim());\n if (communicationBridge != null)//Identificar el componente WS o Proc\n targetWSList.add(communicationBridge);\n\n }\n\n }\n log.debug(\"List target : \" + targetWSList.size());\n }", "private void przygotujFolderWynikowy() {\r\n\t\tFile folder = new File(\"./wynik\");\r\n\t\tif (!(folder.mkdir())) {\r\n\t\t\tFile[] tablica = folder.listFiles();\r\n\t\t\tif(tablica != null)\r\n\t\t\tfor (File f : tablica) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tf.delete();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t}", "public Resource cargarArchivo(String nombreArchivo) throws MalformedURLException;", "public static void main (String []args){\n\t\tint i2=0;\n\t\tIntegraInformacionSalidaWMS integra = new IntegraInformacionSalidaWMS();\n\t\tprop = new Properties();\n\t\ttry{\n\t\t\t//System.out.println(\"Ruta Properties:\"+Constants.FILE_PROPERTIES);\n\t\t\tprop.load(new FileInputStream(\"/proceso_XML/\"+\"config.properties\"));\n\t\t\t//prop.load(new FileInputStream(\"proceso/\"+\"config.properties\"));\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tString mensaje = \"Mensaje 1 :\"+e.getMessage();\n\t\t\t//email.mail(mensaje);\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry{\n\t\t\tString ws=prop.getProperty(\"wsCaserita\");\n\t\t\tString dir1=prop.getProperty(\"dirInicial\");\n\t\t\tString dir2=prop.getProperty(\"dirFinal\");\n\t\t\twhile (i2==0){\n\t\t\t\t//String path = \"/home2/ftp/out/\";\n\t\t\t\t//String path = \"/RedPrairie/LCSWMSTST/LES/files/hostout/\";\n\t\t\t\tString path = dir1;\n\n\t\t\t\tString files;\n\n\t\t\t\tFile directorio = new File(path);\n\t\t\t\tFile [] ficheros = directorio.listFiles();\n\t\t\t\tString line;\n\t\t\t\t//log.info(ws);\n\t\t\t\tif (ficheros!=null){\n\t\t\t\t\tfor (int i = 0; i < ficheros.length; i++) {\n\t\t\t\t\t\t\n\t\t\t if (ficheros[i].isFile()) {\n\t\t\t \tfiles = ficheros[i].getName();\n\t\t\t if (files.endsWith(\".xml\") || files.endsWith(\".XML\")){\n\t\t\t \tlog.info(\"archivo:\"+path+ficheros[i].getName());\n\t\t\t \t\t\t\ttry{\n\t\t\t \t\t\t\t\t\n\t\t\t \t\t\t\t\tBufferedReader bf = new BufferedReader(new FileReader(path+ficheros[i].getName()));\n\t\t\t \t\t\t\t\tString linea=\"\";\n\t\t\t \t\t\t\t\tString xml=\"\";\n\t\t\t \t\t\t\t\tint lin=0;\n\t\t\t \t\t\t\t\tint band=1;\n\t\t\t \t\t\t\t\tString xml1=\"\";\n\t\t\t \t\t\t\t\tFecha fecha = new Fecha();\n\n\t\t\t \t\t\t\t\twhile((linea=bf.readLine())!=null){\n\t\t\t \t\t\t\t\t\txml=xml+linea;\n\t\t\t \t\t\t\t\t\tlin++;\n\t\t\t \t\t\t\t\t\tband=1;\n\t\t\t \t\t\t\t\t\tif (lin==5000){\n\n\t\t\t \t\t\t\t\t\t\txml1=xml1+xml;\n\t\t\t \t\t\t\t\t\t\txml=\"\";\n\t\t\t \t\t\t\t\t\t\tlin=0;\n\t\t\t \t\t\t\t\t\t\tband=0;\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//Concatena XML \n\t\t\t \t\t\t\t\tif (band==1){\n\t\t\t \t\t\t\t\t\txml1=xml1+xml;\n\t\t\t \t\t\t\t\t}\n\t\t\t \t\t\t\t\tFecha fecha2 = new Fecha();\n\t\t\t \t\t\t\t\t\n\t\t\t \t\t\t\t\tlog.info(xml1);\n\t\t\t \t\t\t\t\t//System.out.println(xml);\n\t\t\t \t\t\t\t\tbf.close();\n\t\t\t \t\t\t\t\tConfirmacionDTO confirmacion = new ConfirmacionDTO();\n\t\t\t \t\t\t\t\tconfirmacion.setXml(xml1);\n\t\t\t \t\t\t\t\tconfirmacion.setNameFile(ficheros[i].getName());\n\t\t\t \t\t\t\t\tGson gson = new Gson();\n\t\t\t \t\t\t\t\tString json = gson.toJson(confirmacion);\n\t\t\t \t\t\t\t\t//System.out.println(json);\n\t\t\t \t\t\t\t\ttry {\n\t\t\t \t\t\t\t\t\t \n\t\t\t \t\t\t\t\t\tURL url = new URL(ws.trim());\n\t\t\t \t\t\t\t\t\t\n\t\t\t \t\t\t\t\t\t//URL url = new URL(\"http://192.168.1.30:8080/ServiciosTransportistaWEB/servicioTransRest/wmsCaserita/post\");\n\n\t\t\t \t\t\t\t\t\t\n\t\t\t \t\t\t\t\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\t\t \t\t\t\t\t\tconn.setDoOutput(true);\n\t\t\t \t\t\t\t\t\tconn.setRequestMethod(\"POST\");\n\t\t\t \t\t\t\t\t\tOutputStream os = conn.getOutputStream();\n\t\t\t \t\t\t\t\t\tos.write(json.getBytes());\n\t\t\t \t\t\t\t\t\t//os.write(xml.getBytes());\n\t\t\t \t\t\t\t\t\tos.flush();\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 (conn.getResponseCode() != 200) {\n\t\t\t \t\t\t\t\t\t\tthrow new RuntimeException(\"Failed : HTTP error code : \"\n\t\t\t \t\t\t\t\t\t\t\t\t+ conn.getResponseCode());\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\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t \t\t\t\t\t\t\t(conn.getInputStream())));\n\t\t\t \t\t\t\t \n\t\t\t \t\t\t\t\t\tString output;\n\t\t\t \t\t\t\t\t\tlog.info(\"Output from Server .... \\n\");\n\t\t\t \t\t\t\t\t\t/*while ((output = br.readLine()) != null) {\n\t\t\t \t\t\t\t\t\t\tSystem.out.println(output);\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\tconn.disconnect();\n\t\t\t \t\t\t\t\t\txml=\"\";\n\t\t\t\t\t \t\t\t\txml1=\"\";\n\t\t\t\t\t \t\t\t\tlog.info(\"Hora Inicial:\"+fecha.getHHMMSS());\n\n\t\t\t\t \t\t\t\t\tlog.info(\"Hora Final:\"+fecha2.getHHMMSS());\n\t\t\t \t\t\t\t\t } catch (MalformedURLException e) {\n\t\t\t \t\t\t\t\t\t String mensaje = \"Mensaje 2: \"+e.getMessage();\n\t\t\t \t\t\t\t\t\t\t//email.mail(mensaje);\n\t\t\t \t\t\t\t\t\te.printStackTrace();\n\t\t\t \t\t\t\t \n\t\t\t \t\t\t\t\t } catch (IOException e) {\n\t\t\t \t\t\t\t\t\t String mensaje = \"Mensaje 3: \"+e.getMessage();\n\t\t\t \t\t\t\t\t\t\t//email.mail(mensaje);\n\t\t\t \t\t\t\t\t\te.printStackTrace();\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\t\n\n\t\t\t \t\t\t\t}catch(Exception e){\n\t\t\t \t\t\t\t\tString mensaje = \"Mensaje 4: \"+e.getMessage();\n\t\t\t \t\t\t\t\t//email.mail(mensaje);\n\t\t\t \t\t\t\t\te.printStackTrace();\n\t\t\t \t\t\t\t}\n\t\t\t \t\t\t\tintegra.moveFile(path+ficheros[i].getName(), ficheros[i].getName(),dir2);\n\t\t\t \t\t\t\t\n\t\t\t }\n\t\t\t }\n\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\t\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tString mensaje = \"Mensaje 5: \"+e.getMessage();\n\t\t\t//email.mail(mensaje);\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private void gerarArquivoExcel() {\n\t\tFile currDir = getPastaParaSalvarArquivo();\n\t\tString path = currDir.getAbsolutePath();\n\t\t// Adiciona ao nome da pasta o nome do arquivo que desejamos utilizar\n\t\tString fileLocation = path.substring(0, path.length()) + \"/relatorio.xls\";\n\t\t\n\t\t// mosta o caminho que exportamos na tela\n\t\ttextField.setText(fileLocation);\n\n\t\t\n\t\t// Criação do arquivo excel\n\t\ttry {\n\t\t\t\n\t\t\t// Diz pro excel que estamos usando portguês\n\t\t\tWorkbookSettings ws = new WorkbookSettings();\n\t\t\tws.setLocale(new Locale(\"pt\", \"BR\"));\n\t\t\t// Cria uma planilha\n\t\t\tWritableWorkbook workbook = Workbook.createWorkbook(new File(fileLocation), ws);\n\t\t\t// Cria uma pasta dentro da planilha\n\t\t\tWritableSheet sheet = workbook.createSheet(\"Pasta 1\", 0);\n\n\t\t\t// Cria um cabeçario para a Planilha\n\t\t\tWritableCellFormat headerFormat = new WritableCellFormat();\n\t\t\tWritableFont font = new WritableFont(WritableFont.ARIAL, 16, WritableFont.BOLD);\n\t\t\theaderFormat.setFont(font);\n\t\t\theaderFormat.setBackground(Colour.LIGHT_BLUE);\n\t\t\theaderFormat.setWrap(true);\n\n\t\t\tLabel headerLabel = new Label(0, 0, \"Nome\", headerFormat);\n\t\t\tsheet.setColumnView(0, 60);\n\t\t\tsheet.addCell(headerLabel);\n\n\t\t\theaderLabel = new Label(1, 0, \"Idade\", headerFormat);\n\t\t\tsheet.setColumnView(0, 40);\n\t\t\tsheet.addCell(headerLabel);\n\n\t\t\t// Cria as celulas com o conteudo\n\t\t\tWritableCellFormat cellFormat = new WritableCellFormat();\n\t\t\tcellFormat.setWrap(true);\n\n\t\t\t// Conteudo tipo texto\n\t\t\tLabel cellLabel = new Label(0, 2, \"Elcio Bonitão\", cellFormat);\n\t\t\tsheet.addCell(cellLabel);\n\t\t\t// Conteudo tipo número (usar jxl.write... para não confundir com java.lang.number...)\n\t\t\tjxl.write.Number cellNumber = new jxl.write.Number(1, 2, 49, cellFormat);\n\t\t\tsheet.addCell(cellNumber);\n\n\t\t\t// Não esquecer de escrever e fechar a planilha\n\t\t\tworkbook.write();\n\t\t\tworkbook.close();\n\n\t\t} catch (IOException e1) {\n\t\t\t// Imprime erro se não conseguir achar o arquivo ou pasta para gravar\n\t\t\te1.printStackTrace();\n\t\t} catch (WriteException e) {\n\t\t\t// exibe erro se acontecer algum tipo de celula de planilha inválida\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private static void escribirArchivo(String nombre, String contenido, boolean agregar) {\n\n\t\tFileOutputStream archivo = null;\n\t\tBufferedOutputStream buffer = null;\n\t\tbyte entrada[] = new byte [100];\n\t\tArrayList<String> lista = new ArrayList<String>(5);\n\n\t\ttry {\n\t\t\tarchivo = new FileOutputStream(nombre, agregar);\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbuffer = new BufferedOutputStream(archivo);\n\t\t\tbuffer.write(contenido.getBytes());\n\t\t\tbuffer.write(\"\\n\".getBytes());\n\t\t\tbuffer.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void exportFxwl(File dir) {\n File f = new File(dir,getName() + \".fxwl\");\n try {\n X.toXML(this, new BufferedWriter(new FileWriter(f)));\n } catch (IOException ex) {\n LOGGER.error(\"Unable to export component launcher for {} into {}\", getName(),f);\n }\n }", "public void finalizar(String mytab) {\n DBmensajes conn = new DBmensajes(mytab);\n conn.borrar(mi.getNodo());\n }", "@Override\r\n public void windowClosing(WindowEvent e) {\n if (isSendFile || isReceiveFile) {\r\n JOptionPane.showMessageDialog(contentPane,\r\n \"���ڴ����ļ��У��������뿪...\",\r\n \"Error Message\", JOptionPane.ERROR_MESSAGE);\r\n } else {\r\n int result = JOptionPane.showConfirmDialog(getContentPane(),\r\n \"��ȷ��Ҫ�뿪������\");\r\n if (result == 0) {\r\n CatBean clientBean = new CatBean();\r\n clientBean.setType(-1);\r\n clientBean.setName(name);\r\n clientBean.setTimer(CatUtil.getTimer());\r\n sendMessage(clientBean);\r\n }\r\n }\r\n }", "public static void Descomprimir(String ficheroZip, String directorioSalida) throws Exception {\n\t\t\n\t\tfinal int TAM_BUFFER = 4096;\n\t\tbyte[] buffer = new byte[TAM_BUFFER];\n\n\t\tZipInputStream flujo = null;\n\t\ttry {\n\t\t flujo = new ZipInputStream(new BufferedInputStream(new FileInputStream(ficheroZip)));\n\t\t \n\t\t ZipEntry entrada;\n\t\t while ((entrada = flujo.getNextEntry()) != null) {\n\t\t\tString nombreSalida = directorioSalida + File.separator + entrada.getName();\n\t\t\tif (entrada.isDirectory()) {\n\t\t\t File directorio = new File(nombreSalida);\n\t\t\t directorio.mkdir();\n\t\t\t} else {\n\t\t\t BufferedOutputStream salida = null;\n\t\t\t try {\n\t\t\t\tint leido;\n\t\t\t\tsalida = new BufferedOutputStream(new FileOutputStream(nombreSalida), TAM_BUFFER);\n\t\t\t\twhile ((leido = flujo.read(buffer, 0, TAM_BUFFER)) != -1) {\n\t\t\t\t salida.write(buffer, 0, leido);\n\t\t\t\t}\n\t\t\t } finally {\n\t\t\t\tif (salida != null) {\n\t\t\t\t salida.close();\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t }\n\t\t} finally {\n\t\t if (flujo != null) {\n\t\t\tflujo.close();\n\t\t }\n\n\t\t}\n\t}", "private void writeArchive(Content content) throws Exception {\n\t\tString path = open();\n\t\tTranslateContent translate = new TranslateContent(content, path);\n\t\ttranslate.writeArchive();\n\n\t\t// compress archive file if +C used\n\t\tif (content.isCompressed()) {\n\t\t\tcompressArchive();\n\t\t}\n\t}", "private static synchronized void saveArchivo(List<String> objects, String cabecera, String name) \n\t\t\tthrows Exception {\n\t\tFileWriter file = new FileWriter(Configuracion.pathRetencionTesaka + name +\".txt\");\n\t\tfile.write(cabecera);\n\t\tfor (String string : objects) {\n\t\t\tfile.write(string);\n\t\t}\t\n\t\tfile.flush();\n\t\tfile.close();\n\t\tFiledownload.save(InformeHechauka.PATH_FILE + name +\".txt\", null);\n\t}", "public int BorrarAnuncioDestinatarios(int id){\n int status=0;\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is); \n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"borrar.Destinatario\"));\n ps.setInt(1, id);\n status=ps.executeUpdate();\n }catch(Exception e){\n e.printStackTrace();\n }\n return status;\n }", "public void exportar(Object bean) {\n\t\t\r\n\t}", "public void IntercambiarArchivos(byte[] archivoSinCifrar) {\r\n\t\ttry {\r\n\t\t\tString entry;\r\n\t\t\tServerSocket socketServidor = new ServerSocket();\r\n\t\t\tSocket client = socketServidor.accept();\r\n\t\t\t\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(client.getOutputStream());\r\n\t ObjectInputStream ois = new ObjectInputStream(client.getInputStream());\r\n\t \t \r\n\t BufferedReader inFromClient = new BufferedReader(new InputStreamReader(client.getInputStream()));\r\n\t BufferedWriter OutFromServer = new BufferedWriter( new OutputStreamWriter(client.getOutputStream() ) );\r\n\t \r\n\t OutputStream in = client.getOutputStream();\r\n\t DataOutputStream dataOut = new DataOutputStream(in);\r\n\t \r\n\t OutFromServer.write(\"GENERAR DH\");\r\n\t entry = inFromClient.readLine();\r\n\t if(entry.equals(\"LISTO PARA GENERAR DH\")) {\r\n\t \t\r\n\t }\r\n\t \r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "protected void generarReporte(String fileNameOut){\n LinkedList datos;\n LinkedList listaHojas;\n frmHoja tmpSheet;\n Clases.Dato tmpDato;\n int numRows = 0;\n int numCols = 0;\n try{\n sw = new FileWriter(fileNameOut,true);\n //obtener lista de hojas desde el workplace\n listaHojas = wp.getListaHojas();\n\n //escribir encabezado de HTML a stream\n sw.write(\"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD HTML 4.01 Transitional//EN\\\">\\n\");\n sw.write(\"<html>\\n<head>\\n<meta content=\\\"text/html; charset=ISO-8859-1\\\" http-equiv=\\\"content-type\\\">\\n\");\n sw.write(\"<title>JExcel</title>\\n\");\n sw.write(\"</head>\\n<body>\\n\");\n sw.write(\"<big><span style=\\\"font-weight: bold;\\\">Hoja generada por JExcel</span></big><br>\\n\");\n sw.write(\"<small>Universidad Mariano Gálvez de Guatemala</small><br>\\n<br>\\n\");\n sw.write(\"<small>Extensión Morales Izabal</small><br>\\n<br>\\n\");\n sw.write(\"<small>(C) Amy C. Leiva - 4890-15-</small><br>\\n<br>\\n\");\n // Iterar sobre cada hoja en listaSheets\n for (int i = 0; i < listaHojas.size();i++){\n // obtener maximo numero de datos\n tmpSheet = (frmHoja) listaHojas.get(i);\n\n numRows = tmpSheet.getHoja().getRowCount();\n numCols = tmpSheet.getHoja().getColumnCount();\n sw.write(\"<table style=\\\"text-align: left; width: 100%;\\\" border=\\\"1\\\" cellpadding=\\\"2\\\" cellspacing=\\\"2\\\">\\n\");\n sw.write(\"<tbody>\\n\");\n sw.write(\" <tr> <td colspan=\\\"4\\\" rowspan=\\\"1\\\"><big><span style=\\\"font-weight: bold;\\\">\");\n sw.write(\"Nombre de la Hoja: \" + tmpSheet.getId());\n sw.write(\"</span></big></td>\\n</tr>\\n\");\n sw.write(\" <tr><td>Fila</td><td>Columna</td><td>Expresi&oacute;n</td> <td>Valor Num&eacute;rico</td> </tr>\\n\");\n // obtener lista de datos desde matriz\n if( tmpSheet.getHoja().getTabla().estaVacia() == false){ // si la tabla tiene datos\n datos = tmpSheet.getHoja().getTabla().getSubset(1,1,numCols,numRows);\n //escribir tabla con datos generados\n for (int j = 0; j < datos.size();j++){\n tmpDato = (Clases.Dato) datos.get(j); \n sw.write(\"<tr>\\n\");\n sw.write(\"<td>\" + tmpDato.getRow() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.getCol() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.getExpr() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.eval() + \"</td>\\n\");\n sw.write(\"</tr>\\n\");\n }\n }\n else{\n sw.write(\"<tr><td colspan=\\\"4\\\" rowspan=\\\"1\\\"> Hoja Vacia... </td></tr>\");\n }\n sw.write(\" </tbody></table>\\n<br><br><br>\");\n // sw.write();\n // sw.write();\n }\n //escribir fin de datos\n sw.write(\"</body></html>\");\n //escribir a archivo de salida\n sw.close();\n }\n catch(Exception e){\n System.out.println(\"No se pudo guardar archivo:\" + e);\n }\n \n }", "private void writeArrayToFile(Warship[] wsArr, FileOutputStream fos) throws Exception {\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tpw = new PrintWriter(fos);\n\t\t\tfor (Warship ws : wsArr) {\n\t\t\t\tif (ws != null) {\n\t\t\t\t\tpw.println(ws);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(e.getMessage());\n\t\t} finally {\n\t\t\tif (pw != null) {\n\t\t\t\tpw.close();\n\t\t\t}\n\t\t}\n\t}", "@Deployment\n public static WebArchive deploy() {\n final File[] dependencies = Maven\n .resolver()\n .loadPomFromFile(\"pom.xml\")\n .resolve(\"mysql:mysql-connector-java\",\n \"org.assertj:assertj-core\").withoutTransitivity()\n .asFile();\n\n // The webArchive is the special packaging of your project\n // so that only the test cases run on the server or embedded\n // container\n final WebArchive webArchive = ShrinkWrap.create(WebArchive.class)\n .setWebXML(new File(\"src/main/webapp/WEB-INF/web.xml\"))\n .addPackage(Books.class.getPackage())\n .addPackage(BooksAction.class.getPackage())\n .addPackage(BooksController.class.getPackage())\n .addPackage(JsfUtil.class.getPackage())\n .addAsWebInfResource(EmptyAsset.INSTANCE, \"beans.xml\")\n .addAsWebInfResource(new File(\"src/main/webapp/WEB-INF/glassfish-resources.xml\"), \"glassfish-resources.xml\")\n .addAsResource(new File(\"src/main/resources/META-INF/persistence.xml\"), \"META-INF/persistence.xml\")\n .addAsResource(\"pacmabooks.sql\")\n .addAsLibraries(dependencies);\n\n return webArchive;\n }", "private void saveButtonActionPerformed(java.awt.event.ActionEvent evt) {\n \n if(!validateFileName())\n return;\n if(props != null) {\n\n FileOutputStream fout = null;\n try {\n String sjn = serviceJarTf.getText();\n props.setProperty(SERVICE_JAR_NAME, sjn);\n \n boolean isCopyToServerCp = copyJarCB.isSelected();\n if(isCopyToServerCp)\n props.setProperty(COPY_JAR_TO_SERVERCLASSPATH,Boolean.toString(isCopyToServerCp));\n else\n props.remove(COPY_JAR_TO_SERVERCLASSPATH);\n \n fout = new FileOutputStream(serviceProps);\n props.store(fout, sjn);\n fout.flush();\n \n } catch (Exception ex) {\n Exceptions.printStackTrace(ex);\n } finally {\n try {\n fout.close();\n } catch (Exception ex) {\n Exceptions.printStackTrace(ex);\n }\n }\n } else {\n\n FileOutputStream fout = null;\n try {\n String sjn = serviceJarTf.getText();\n props = new Properties();\n props.setProperty(SERVICE_JAR_NAME, sjn);\n fout = new FileOutputStream(serviceProps);\n props.store(fout, sjn);\n fout.flush();\n \n } catch (Exception ex) {\n Exceptions.printStackTrace(ex);\n } finally {\n try {\n fout.close();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n }\n }\n \n dispose();\n}", "public ArchivoClientes(){\n\t\t\n\t\tif(archivo.exists()){\n\t\t\t//System.out.println(\"El archivo ya existe\");\n\t\t}else{\n\t\t\ttry {\n\t\t\t\t//archivo.mkdir();\n\t\t\t\tarchivo.createNewFile();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Creación del archivo clientes: \" +e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "void cleanupFileTransfer(){\n\n try {\n\n //Close the file channell\n if(aFileStream != null){\n aFileStream.getFD().sync();\n aFileStream.flush();\n }\n\n } catch (IOException ex) {\n Log.log(Level.SEVERE, NAME_Class, \"cleanupFileTransfer()\", ex.getMessage(), ex);\n } \n\n //Close the file stream\n try {\n if(aFileStream != null){\n aFileStream.close();\n }\n } catch (IOException ex) {\n Log.log(Level.SEVERE, NAME_Class, \"cleanupFileTransfer()\", ex.getMessage(), ex);\n } \n \n //Close the socket\n try {\n \n ServerConfig theConfig = ServerConfig.getServerConfig();\n int socketPort = theConfig.getSocketPort();\n\n //Shutdown the socket\n PortRouter aSPR = theFileMessageManager.getPortManager().getPortRouter(socketPort);\n IncomingConnectionManager aICM = (IncomingConnectionManager)aSPR.getConnectionManager(srcId);\n if( aICM != null ){\n SocketChannelHandler aSCH = aICM.removeHandler(channelId);\n if( aSCH != null )\n aSCH.shutdown();\n }\n \n } catch (LoggableException ex) {\n Log.log(Level.SEVERE, NAME_Class, \"cleanupFileTransfer()\", ex.getMessage(), ex);\n } \n }", "public void analizarArchivo(){\n\t\ttry{\n\t\t\twhile((caracter = inputStream.read())!=-1){\n\t\t\t\testado = analizador.analizarSimbolo(caracter);\n\t\t\t\t//outputStream.write(analizador.simbolo);\n\t\t\t\thistoriaStream.write(formatoEstado(estado));\n\t\t\t\tif(estado == 18 ){//La palabra es web o ebay\n\t\t\t\t\toutputStream.write(\"Auto: Línea [\"+analizador.numero_lineas+\"] Palabra: ebay \\n\");\n\t\t\t\t}else if(estado == 146){\n\t\t\t\t\toutputStream.write(\"Auto: Línea [\"+analizador.numero_lineas+\"] Palabra: web \\n\");\n\t\t\t\t}\n\t\t\t\tif(analizador.isPalabra == true || analizador.isLinea == true){\n\t\t\t\t\thistoriaStream.write(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Num. palabras: \"+analizador.numero_palabras+\" Numero líneas: \"+analizador.numero_lineas+\" Numero correctas: \"+analizador.numero_correctas);\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void leerArchivo() {\n String rfcProveedor = produccionCigarrosHelper.getProveedor().getRfc();\n String rfcTabacalera = produccionCigarrosHelper.getTabacalera().getRfc();\n\n if (archivoFoliosService != null && desperdiciosHelper.getArchivoFolios() != null) {\n try {\n desperdiciosHelper.setNombreArchivo(desperdiciosHelper.getArchivoFolios().getFileName());\n InputStream inputStream = desperdiciosHelper.getArchivoFolios().getInputstream();\n\n desperdiciosHelper.setRangoFoliosList(archivoFoliosProduccionService.leerArchivoFolios(inputStream, desperdiciosHelper.getNombreArchivo()));\n desperdiciosHelper.setRangoFoliosListAux(validadorRangosService.generarRangosProduccion(rfcTabacalera, rfcProveedor, desperdiciosHelper.getRangoFoliosList()));\n desperdiciosHelper.setMsgErrorArchivo(\"\");\n\n solicitudService.generaCadenaOriginal(firmaFormHelper.getRfcSession(), sumaRangosFolio(desperdiciosHelper.getRangoFoliosListAux()), null);\n firmaFormHelper.setCadenaOriginal(solicitudService.generaCadenaOriginal(firmaFormHelper.getRfcSession(), sumaRangosFolio(desperdiciosHelper.getRangoFoliosListAux()), null));\n desperdiciosHelper.setCantidadSolicitada(sumaRangosFolio(desperdiciosHelper.getRangoFoliosListAux()));\n\n } catch (SolicitudServiceException bE) {\n desperdiciosHelper.setMsgErrorArchivo(bE.getMessage());\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n LOGGER.error(\"Error: al Leer el archivo\" + bE.getMessage(), bE);\n } catch (RangosException rE) {\n desperdiciosHelper.setMsgErrorArchivo(rE.getMessage());\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n super.msgError(rE.getMessage());\n } catch (IOException io) {\n desperdiciosHelper.setMsgErrorArchivo(io.getMessage());\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n LOGGER.error(\"ERROR: Al leer el Archivo : \" + io.getMessage());\n } catch (ArchivoFoliosServiceException ex) {\n LOGGER.error(\"ERROR: Al leer el Archivo : \" + ex.getMessage());\n }\n if (!desperdiciosHelper.getMsgErrorArchivo().isEmpty()) {\n desperdiciosHelper.setDeshabilitaBtnGuardar(true);\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n } else {\n desperdiciosHelper.setMsgExitoArchivo(\"El archivo \" + desperdiciosHelper.getNombreArchivo() + \" se cargo con éxito\");\n desperdiciosHelper.setMsgErrorArchivo(\"\");\n }\n }\n }", "@Override\n\tpublic String bajarFichero(String URLdiscoCliente, int idFichero, int idSesionCliente) throws RemoteException, MalformedURLException, NotBoundException {\n\t\tdatos = (ServicioDatosInterface) Naming.lookup(\"rmi://\" + direccion + \":\" + puerto + \"/almacen\");\n\t\t\n\t\t//se deberia comprobar si el fichero realmente es el del cliente\n\t\t\n\t\tMetadatos m = datos.descargarFichero(idFichero,idSesionCliente);\n\t\tint idCliente = datos.sesion2id(idSesionCliente);\n\t\tint idSesionRepo = datos.dimeRepositorio(idCliente);\n\t\tif (m != null){\n\t\t\t\n\t\t\tInterfaz.imprime(\"Se ha notificado que el fichero \" + m.getNombreFichero() + \" va a ser descargado\");\n\t\t\tString URLservicioSrOperador = \"rmi://\" + direccionServicioSrOperador + \":\" + puertoServicioSrOperador + \"/sroperador/\" + idSesionRepo;\n\t\t\n\t\t\t//ahora buscamos el Servicio SrOperador y le pasamos la URL del DiscoCliente y el id de cliente que es el nombre de la carpeta\n\t\t\tServicioSrOperadorInterface servicioSrOperador =(ServicioSrOperadorInterface)Naming.lookup(URLservicioSrOperador);\n\t\t\t//el tercer parametro es la carpeta donde esta el fichero real, en caso de compartido es la carpeta dequien comparte evidentemente.\n\t\t\tservicioSrOperador.bajarFichero(URLdiscoCliente,m.getNombreFichero(),m.getIdCliente());\n\t\t\treturn m.getNombreFichero();\n\t\t}else return null;\t\t\n\t}", "public static void borrarhijoRecursivo(Path carpetaHija) {\n\n\t\tDirectoryStream<Path> hijosCarpeta;// Este objeto sirve para poder iterar directorios lo convertimos en una\n\t\t\t\t\t\t\t\t\t\t\t// especie\n\t\t// de lista para guardar varios Path\n\n\t\ttry {\n\n\t\t\thijosCarpeta = Files.newDirectoryStream(carpetaHija);// hacemos esto para crear diferentes Path en los\n\t\t\t// subdirectorios de carpeta\n\n\t\t\t// y en el segundo borrar los ficheros\n\t\t\tfor (Path entry : hijosCarpeta) {\n\n\t\t\t\tif (Files.isDirectory(entry)) {\n\t\t\t\t\tSystem.out.println(\"entrando en\" + entry);\n\t\t\t\t\tborrarhijoRecursivo(entry);\n\t\t\t\t} else {\n\n\t\t\t\t\tSystem.out.println(\"borrando\" + entry);\n\t\t\t\t\tFiles.delete(entry);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Borrando carpeta \" + carpetaHija.toAbsolutePath());\n\t\t\tFiles.delete(carpetaHija);\n\n\t\t\t// llamamos otra vez a la funcion recursivamente para crear la carpeta\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@SuppressWarnings({ \"deprecation\", \"static-access\" })\n\tpublic void crearExcel(String nombreFichero,java.sql.Connection connection) throws SQLException {\n \tint contador=0;\n \t\n // Se crea el libro\n HSSFWorkbook libro = new HSSFWorkbook();\n\n // Se crea una hoja dentro del libro\n HSSFSheet hoja = libro.createSheet();\n\n // Se crea una fila dentro de la hoja\n HSSFRow fila = hoja.createRow(contador);\n\n // Se crea una celda dentro de la fila\n HSSFCell celda = fila.createCell((short) 0);\n // Se crea una celda dentro de la fila\n HSSFCell celda2 = fila.createCell((short) 1 );\n // Se crea una celda dentro de la fila\n HSSFCell celda3 = fila.createCell((short) 2 );\n // Se crea una celda dentro de la fila\n HSSFCell celda4 = fila.createCell((short) 3 );\n \n // Se crea el contenido de la celda y se mete en ella.\n HSSFRichTextString texto = new HSSFRichTextString(\"Área\");\n celda.setCellValue(texto);\n\n HSSFRichTextString texto2 = new HSSFRichTextString(\"Dimensión\");\n celda2.setCellValue(texto2);\n \n HSSFRichTextString texto3 = new HSSFRichTextString(\"Lema\");\n celda3.setCellValue(texto3);\n \n HSSFRichTextString texto4 = new HSSFRichTextString(\"Rasgos de Contenido\");\n celda4.setCellValue(texto4);\n \n ArrayList<idPalabra> misAreasAux=new ArrayList<idPalabra>();\n\t\t String areaAct=\"\";\n\t\t area misAreas=new area();\n\t\t misAreasAux=misAreas.devolverAreas(connection);\n\t\t Integer lemAct;\n\t\t \n //SE RECORREN TODAS LAS AREAS\n\t\t for(int i=0; i<misAreasAux.size();i++){\n\t\t\t\n\t\t\t //SE OBTIENE EL AREA ACTUAL\n\t\t\t areaAct=misAreasAux.get(i).getPalabra();\t\n\t\t\t ArrayList<idPalabra> misCategorias= new ArrayList<idPalabra>();\n\t\t\t categoria micategoria = new categoria();\n\t\t\t misCategorias=micategoria.consultarCategoriasConArea(areaAct, connection);\n\t\t\t //Si es 0 es que no hay categorias\n\t\t\t if(misCategorias.size()==0){\n\t\t\t\t contador=contador+1;\n\t\t\t\t fila = hoja.createRow(contador);\n\t\t\t\t celda = fila.createCell((short) 0);\n\t\t\t\t celda.setCellValue(areaAct);\n\t\t\t\t\n\t\t\t } \n\t\t\t else{\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t//esto es que si tengo categorias\n\t\t\t\tfor(int j=0; j<misCategorias.size();j++){\n\t\t\t\t\t\n\t\t\t\t\t String catAct=misCategorias.get(j).getPalabra();\t\n\t\t\t\t\t//para cada categoria tengo que ver si tiene lemas\n\t\t\t\t\tArrayList<Integer> lemasAct=new ArrayList<Integer>();\n\t\t\t\t\tcategoriasLemas misLemas=new categoriasLemas();\n\t\t\t\t\tlemasAct=misLemas.consultarLemasdeunaCategoria(misCategorias.get(j).getId(),connection);\n\t\t\t\t\t//Si es 0 es que no tengo lemas asociados a dicha categoria\n\t\t\t\t\tif(lemasAct.size()==0){\n\t\t\t\t\t\t contador=contador+1;\n\t\t\t\t\t\t fila = hoja.createRow(contador);\n\t\t\t\t\t\t celda = fila.createCell((short) 0);\n\t\t\t\t\t\t celda.setCellValue(areaAct);\n\t\t\t\t\t\t celda = fila.createCell((short) 1);\n\t\t\t\t\t\t celda.setCellValue(catAct);\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t//SI TIENE VARIOS LEMAS ASOCIADOS\n\t\t\t\t\t\tfor(int x=0; x<lemasAct.size();x++){\n\t\t\t\t\t\t\tlema miLema =new lema();\n\t\t\t\t\t\t\t lemAct=lemasAct.get(x);\t\n\t\t\t\t\t\t\tlemaRasgo misLemaRasgo= new lemaRasgo();\n\t\t\t\t\t\t\tArrayList<Integer> rasgos=new ArrayList<Integer>();\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\trasgos= misLemaRasgo.devolverRasgosDeLema(lemasAct.get(x),connection);\n\t\t\t\t\t\t\t//NO TIENE RASGOS\n\t\t\t\t\t\t\tif(rasgos.size()==0){\n\t\t\t\t\t\t\t\tcontador=contador+1;\n\t\t\t\t\t\t\t\t fila = hoja.createRow(contador);\n\t\t\t\t\t\t\t\t celda = fila.createCell((short) 0);\n\t\t\t\t\t\t\t\t celda.setCellValue(areaAct);\n\t\t\t\t\t\t\t\t celda = fila.createCell((short) 1);\n\t\t\t\t\t\t\t\t celda.setCellValue(catAct);\n\t\t\t\t\t\t\t\t celda = fila.createCell((short) 2);\n\t\t\t\t\t\t\t\t celda.setCellValue(miLema.consultarUnLemaPorId(lemAct,connection));\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}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//SI TIENE RASGOS\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tcontador++;\n\t\t\t\t\t\t\t\t fila = hoja.createRow(contador);\n\t\t\t\t\t\t\t\tcelda = fila.createCell((short) 0);\n\t\t\t\t\t\t\t\t celda.setCellValue(areaAct);\n\t\t\t\t\t\t\t\t celda = fila.createCell((short) 1);\n\t\t\t\t\t\t\t\t celda.setCellValue(catAct);\n\t\t\t\t\t\t\t\t celda = fila.createCell((short) 2);\n\t\t\t\t\t\t\t\t celda.setCellValue(miLema.consultarUnLemaPorId(lemAct,connection));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t int cont=3;\n\t\t\t\t\t\t\t\tfor(int k=0; k<rasgos.size();k++){\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\trasgocontenido mirasgo =new rasgocontenido();\n\t\t\t\t\t\t\t\t\tcelda = fila.createCell((short) cont);\n\t\t\t\t\t\t\t\t\tcelda.setCellValue(mirasgo.consultarRasgoPorId(rasgos.get(k),connection));\n\t\t\t\t\t\t\t\t\tcont++;\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\t}\n\t\t\t\t\t\t\t\t\n\t\n\t\t\t\t\t\t\t}//if rasgos\n\t\t\t\t\t\t}//if lemas\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t}//if categorias\n\t\t\t\t\t\t\n\n \n\t\t\t }\n\t\t }\n \n // Se salva el libro.\n try {\n FileOutputStream elFichero = new FileOutputStream(nombreFichero);\n libro.write(elFichero);\n elFichero.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void close() throws IOException {\n FileOutputStream out = new FileOutputStream(fileName);\n wb.write(out);\n\n out.close();\n wb.close();\n }", "public void leeArchivo() throws IOException {\n // defino el objeto de Entrada para tomar datos\n BufferedReader brwEntrada;\n try {\n // creo el objeto de entrada a partir de un archivo de texto\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n } catch (FileNotFoundException e) {\n // si marca error es que el archivo no existia entonces lo creo\n File filPuntos = new File(\"datos.txt\");\n PrintWriter prwSalida = new PrintWriter(filPuntos);\n // le pongo datos ficticios o de default\n // lo cierro para que se grabe lo que meti al archivo\n prwSalida.close();\n // lo vuelvo a abrir porque el objetivo es leer datos\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n }\n // con el archivo abierto leo los datos que estan guardados\n brwEntrada.close();\n }", "public void crearUsuarioWS(String name, String login, String pass){\n //JAXBElement<ArrayOfAdministrationResource> arrayAdminRole = obtenerRolesPorNombre(ConstantesWS.ROL_NAME_CLIENTE).;\n \n ObjectFactory fact = new ObjectFactory(); \n //fact.createArrayOfAdministrationRole(obtenerRolesPorNombre(ConstantesWS.ROL_NAME_CLIENTE).);\n \n //fact.createArrayOfint()\n \n //obtenerConexion().getRolesByIds()\n \n //busqueda y seteo del rol de cliente\n ArrayOfint aux =fact.createArrayOfint(); \n aux.getInt().add(Integer.valueOf(181)); //perfil del cliente \n ArrayOfAdministrationRole arrayRole = obtenerConexion().getRolesByIds(aux);\n \n JAXBElement<ArrayOfAdministrationRole> jaxbElementRol;\n jaxbElementRol = fact.createArrayOfAdministrationRole(arrayRole);\n \n //creacion del nuevo usuario con rol cliente\n AdministrationUser user = new AdministrationUser();\n user.setEnabled(Boolean.TRUE);\n user.setMustChangePassword(Boolean.FALSE);\n user.setLastName(fact.createString(name)); \n user.setPassword(fact.createString(pass));\n user.setUserName(fact.createString(login)); \n user.setRoles(jaxbElementRol); \n \n \n //agrego el nuevo usuario\n obtenerConexion().addUser(ConstantesWS.APLICACION_PROVEEDORES, user);\n \n }", "@WebService(name = \"AgendarReservasWS\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\")\npublic interface AgendarReservasWS {\n\n\n /**\n * \n * @param reserva\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws ApplicationException_Exception\n * @throws AccesoMultipleException_Exception\n * @throws BusinessException_Exception\n * @throws ValidacionException_Exception\n * @throws ErrorValidacionException_Exception\n * @throws WarningValidacionCommitException_Exception\n * @throws WarningValidacionException_Exception\n * @throws ErrorValidacionCommitException_Exception\n * @throws UserException_Exception\n * @throws ValidacionClaveUnicaException_Exception\n * @throws ValidacionPorCampoException_Exception\n */\n @WebMethod\n @WebResult(name = \"confirmarReservaResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"confirmarReserva\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConfirmarReserva\")\n @ResponseWrapper(localName = \"confirmarReservaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConfirmarReservaResponse\")\n public Reserva confirmarReserva(\n @WebParam(name = \"reserva\", targetNamespace = \"\")\n Reserva reserva)\n throws AccesoMultipleException_Exception, ApplicationException_Exception, BusinessException_Exception, ErrorValidacionCommitException_Exception, ErrorValidacionException_Exception, UserException_Exception, ValidacionClaveUnicaException_Exception, ValidacionException_Exception, ValidacionPorCampoException_Exception\n ;\n\n// /**\n// * \n// * @param nombre\n// * @return\n// * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Agenda\n// * @throws ApplicationException_Exception\n// * @throws BusinessException_Exception\n// */\n// @WebMethod\n// @WebResult(name = \"consultarAgendaPorNombreResult\", targetNamespace = \"\")\n// @RequestWrapper(localName = \"consultarAgendaPorNombre\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorNombre\")\n// @ResponseWrapper(localName = \"consultarAgendaPorNombreResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorNombreResponse\")\n// public Agenda consultarAgendaPorNombre(\n// @WebParam(name = \"nombre\", targetNamespace = \"\")\n// String nombre)\n// throws ApplicationException_Exception, BusinessException_Exception\n// ;\n\n /**\n * \n * @param nombre\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Agenda\n * @throws ApplicationException_Exception\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarAgendaPorIdResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarAgendaPorId\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorId\")\n @ResponseWrapper(localName = \"consultarAgendaPorIdResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorIdResponse\")\n public Agenda consultarAgendaPorId(\n @WebParam(name = \"id\", targetNamespace = \"\")\n Integer id)\n throws ApplicationException_Exception, BusinessException_Exception\n ;\n \n /**\n * \n * @param agenda\n * @return\n * returns java.util.List<uy.gub.imm.sae.common.factories.ws.client.agendar.Recurso>\n * @throws ApplicationException_Exception\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarRecursosResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarRecursos\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarRecursos\")\n @ResponseWrapper(localName = \"consultarRecursosResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarRecursosResponse\")\n public List<Recurso> consultarRecursos(\n @WebParam(name = \"agenda\", targetNamespace = \"\")\n Agenda agenda)\n throws ApplicationException_Exception, BusinessException_Exception\n ;\n\n /**\n * \n * @param datos\n * @param recurso\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws ApplicationException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarReservaPorDatosClaveResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarReservaPorDatosClave\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarReservaPorDatosClave\")\n @ResponseWrapper(localName = \"consultarReservaPorDatosClaveResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarReservaPorDatosClaveResponse\")\n public Reserva consultarReservaPorDatosClave(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"datos\", targetNamespace = \"\")\n HashMap<DatoASolicitar, DatoReserva> datos)\n throws ApplicationException_Exception\n ;\n\n /**\n * \n * @param reserva\n * @throws BusinessException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"desmarcarReserva\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.DesmarcarReserva\")\n @ResponseWrapper(localName = \"desmarcarReservaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.DesmarcarReservaResponse\")\n public void desmarcarReserva(\n @WebParam(name = \"reserva\", targetNamespace = \"\")\n Reserva reserva)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param disponibilidad\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws BusinessException_Exception\n * @throws UserException_Exception\n * @throws UserCommitException_Exception\n */\n @WebMethod\n @WebResult(name = \"marcarReservaDisponibleResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"marcarReservaDisponible\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.MarcarReservaDisponible\")\n @ResponseWrapper(localName = \"marcarReservaDisponibleResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.MarcarReservaDisponibleResponse\")\n public Reserva marcarReservaDisponible(\n @WebParam(name = \"disponibilidad\", targetNamespace = \"\")\n Disponibilidad disponibilidad)\n throws BusinessException_Exception, UserException_Exception\n ;\n\n /**\n * \n * @param ventanaDeTiempo\n * @param recurso\n * @return\n * returns java.util.List<java.lang.Integer>\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerCuposPorDiaResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerCuposPorDia\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerCuposPorDia\")\n @ResponseWrapper(localName = \"obtenerCuposPorDiaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerCuposPorDiaResponse\")\n public List<Integer> obtenerCuposPorDia(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"ventanaDeTiempo\", targetNamespace = \"\")\n VentanaDeTiempo ventanaDeTiempo,\n @WebParam(name = \"timezone\", targetNamespace = \"\")\n TimeZone timezone\n )\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param ventanaDeTiempo\n * @param recurso\n * @return\n * returns java.util.List<uy.gub.imm.sae.common.factories.ws.client.agendar.Disponibilidad>\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerDisponibilidadesResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerDisponibilidades\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerDisponibilidades\")\n @ResponseWrapper(localName = \"obtenerDisponibilidadesResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerDisponibilidadesResponse\")\n public List<Disponibilidad> obtenerDisponibilidades(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"ventanaDeTiempo\", targetNamespace = \"\")\n VentanaDeTiempo ventanaDeTiempo)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param recurso\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.VentanaDeTiempo\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerVentanaCalendarioInternetResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerVentanaCalendarioInternet\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerVentanaCalendarioInternet\")\n @ResponseWrapper(localName = \"obtenerVentanaCalendarioInternetResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerVentanaCalendarioInternetResponse\")\n public VentanaDeTiempo obtenerVentanaCalendarioInternet(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"pingResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ping\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.Ping\")\n @ResponseWrapper(localName = \"pingResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.PingResponse\")\n public String ping();\n\n}", "public String execute() throws SQLException\n {\n setDestPath(\"/home/hadoop/NetBeansProjects/RestfulAPI/document/\");\n\n try{\n System.out.println(\"name: \" + getName());\n\n System.out.println(\"Src File name: \" + getMyFile());\n System.out.println(\"Dst File name: \" + getMyFileFileName());\n\n File destFile = new File(getDestPath(), getMyFileFileName());\n FileUtils.copyFile(getMyFile(), destFile);\n System.out.println(\"Berhasil\");\n \n DBConnector connector = new DBConnector();\n Connection conn = connector.getConn();\n String sql = \"insert into book (name,sinopsis,author) values (?,?,?)\";\n PreparedStatement stmt = null;\n stmt = conn.prepareStatement(sql);\n stmt.setString(1, name);\n stmt.setString(2, sinopsis);\n stmt.setString(3, author);\n stmt.executeUpdate();\n// PreparedStatement ps = conn.prepareStatement(sql);\n// ResultSet rs0 = ps.executeQuery();\n \n// se.writeFakta(conn, namaperiod, list,Integer.parseInt(periodselect),Integer.parseInt(modelfakta));\n \n }catch(IOException e){\n e.printStackTrace();\n return ERROR;\n }\n\n return SUCCESS;\n }", "public int send2FtpServer()\n\t{\n\t\tCoFile file = null;\n\t\tCoFile to = null;\n\t\tString filename = \"\";\n\t\tString dest_filename = \"\";\n\t\tString sum_line = \"\";\n\t\tboolean loadResult = false;\n\t\tboolean renameFileResult = false;\n\t\tfor (int i = 0; i < vFiles.size(); i++)\n\t\t{\n\t\t\tfilename = ((File) (vFiles.elementAt(i))).getName();\n\t\t\t/* source FtpFile remote file */\n\t\t\tfile = new LocalFile(FtpData.LOCAL_FOLDER, filename);\n\t\t\t// System.out.println(\"From: \" + file.toString());\n\t\t\t/* destination LocalFile home dir */\n\t\t\t// ---------------------count ftp file\n\t\t\t// site--------------------------------\n\t\t\tFile f = new File(FtpData.LOCAL_FOLDER + \"/\" + filename);\n\t\t\tString fileLength = String.valueOf(f.length());\n\t\t\t// System.out.println(\"file size: \" + fileLength);\n\t\t\t// ---------------------count ftp file\n\t\t\t// site--------------------------------\n\n\t\t\tto = new FtpFile(\"tmp_\" + filename, this.ftp);\n\n\t\t\t// System.out.println(\"To: \" + to.toString());\n\t\t\t/* download file */\n\t\t\tloadResult = CoLoad.copy(to, file);\n\t\t\tLogger.info(\"FTP-SIZE: \" + loadResult);\n\t\t\t// System.out.println(\"Load: \" + loadResult);\n\t\t\t// rename file sau khi ftp sang\n\t\t\t// System.out.print(\"Start rename file cdr: \" + \"tmp_\" + filename +\n\t\t\t// \"-->\" + filename);\n\t\t\trenameFileResult = this.ftp.mv( \"tmp_\" + filename, \"\" + filename);\n\t\t\t// System.out.println(\"Rename: \" + renameFileResult);\n\t\t\tLogger.info(\"FTP-RENAME: \" + renameFileResult);\n\t\t\tif (loadResult && renameFileResult)\n\t\t\t{ // ok -->delete file.\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tString sDateFolder = DateProc.Timestamp2YYYYMMDD(DateProc.createTimestamp(), \"\");\n\n\t\t\t\t\t// File dest_dir = new File(FtpData.SENT_FOLDER + \"\\\\\" +\n\t\t\t\t\t// sDateFolder);\n\t\t\t\t\tFile dest_dir = new File(FtpData.SENT_FOLDER_VMS + \"/\" + sDateFolder);\n\n\t\t\t\t\tboolean exists = dest_dir.exists();\n\t\t\t\t\tif (!exists)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Directory does not exist --> create it\n\t\t\t\t\t\tboolean success = dest_dir.mkdirs();\n\t\t\t\t\t}\n\t\t\t\t\t// fileTool.copy(FtpData.LOCAL_FOLDER + \"\\\\\" +\n\t\t\t\t\t// file.getName(),\n\t\t\t\t\t// FtpData.SENT_FOLDER + \"\\\\\" + sDateFolder + \"\\\\\" +\n\t\t\t\t\t// file.getName());\n\t\t\t\t\tfileTool.copy(FtpData.LOCAL_FOLDER + \"/\" + file.getName(), FtpData.SENT_FOLDER_VMS + \"/\" + sDateFolder + \"/\" + file.getName());\n\t\t\t\t\t\n\t\t\t\t\tLogger.info(\"backup file: from: \" + FtpData.LOCAL_FOLDER + \"/\" + file.getName() + \" to: \" + FtpData.SENT_FOLDER_VMS + \"/\" + sDateFolder\n\t\t\t\t\t\t\t+ \"/\" + file.getName());\n\t\t\t\t\tfile.delete();\n\t\t\t\t\tCdrFilename4vms.setNewFilenameVMS(filename);\n\t\t\t\t\tLogger.info(\"FTP : file name: \" + filename + \"# filesize: \" + fileLength + \" bytes\");\n\t\t\t\t}\n\t\t\t\tcatch (IOException ex)\n\t\t\t\t{\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\tLogger.info(\"FTP\", ex.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif ((loadResult = false) && (renameFileResult = true))\n\t\t\t\t\t{\n\t\t\t\t\t\t// DBTools.log_alert(Preference.sourceAddressList.toString(),\n\t\t\t\t\t\t// \"CDR->FTP\",\n\t\t\t\t\t\t// \"<-\" + Preference.mobileOperator +\n\t\t\t\t\t\t// \"-> ERROR: Khong ftp duoc file cuoc sang telcos!\",\n\t\t\t\t\t\t// 1, Preference.alert_person,\n\t\t\t\t\t\t// Preference.alert_mobile);\n\t\t\t\t\t\tDBTools.log_alert(\"Billing system\", \"-> ERROR: Khong ftp duoc file cuoc sang telcos! \", 1, 0, \"serious\", Preference.alert_person);\n\t\t\t\t\t}\n\t\t\t\t\telse if ((loadResult = true) && (renameFileResult = false))\n\t\t\t\t\t{\n\t\t\t\t\t\t// DBTools.log_alert(Preference.sourceAddressList.toString(),\n\t\t\t\t\t\t// \"CDR->FTP\",\n\t\t\t\t\t\t// \"<-\" + Preference.mobileOperator +\n\t\t\t\t\t\t// \"-> ERROR: Khong rename duoc file cuoc sau khi ftp sang telcos!\",\n\t\t\t\t\t\t// 1, Preference.alert_person,\n\t\t\t\t\t\t// Preference.alert_mobile);\n\t\t\t\t\t\tDBTools.log_alert(\"Billing system\", \"-> ERROR: Khong rename duoc file cuoc sau khi ftp ! \", 1, 0, \"serious\", Preference.alert_person);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// DBTools.log_alert(Preference.sourceAddressList.toString(),\n\t\t\t\t\t\t// \"CDR->FTP\",\n\t\t\t\t\t\t// \"<-\" + Preference.mobileOperator +\n\t\t\t\t\t\t// \"-> ERROR: Loi ftp file cuoc\",\n\t\t\t\t\t\t// 1, Preference.alert_person, Preference.alert_mobile);\n\t\t\t\t\t\tDBTools.log_alert(\"Billing system\", \"-> ERROR: Loi ftp file cuoc ! \", 1, 0, \"serious\", Preference.alert_person);\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tcatch (Exception e)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn this.vFiles.size();\n\t}", "@Test\n\tpublic void testRemovedWPtoWS() {\n\t\tWorkPackage wp = new WorkPackage(null);\n\t\tWorkSpace ws = new WorkSpace(null);\n\t\tws.addWP(wp);\n\t\tAssert.assertTrue(ws.removeWP(wp));\n\t\tAssert.assertTrue(ws.getWpList().size()==0);\n\t}", "private void exportarDatos() {\r\n // Cabecera\r\n System.out.println(\"Exportación de Datos\");\r\n System.out.println(\"====================\");\r\n\r\n // Acceso al Fichero\r\n try (PrintWriter pr = new PrintWriter(DEF_NOMBRE_FICHERO)) {\r\n // Bucle de Escritura\r\n for (Item item : CARRITO) {\r\n // Generar Linea de Texto\r\n String linea = String.format(Locale.ENGLISH, \"%d%s%s%s%.2f%s%s\",\r\n item.getId(), REG_CSV_ESCR,\r\n item.getNombre(), REG_CSV_ESCR,\r\n item.getPrecio(), REG_CSV_ESCR,\r\n UtilesGraficos.obtenerNombreColor(item.getColor()));\r\n\r\n // Item > Fichero\r\n pr.println(linea);\r\n }\r\n\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"Datos exportados correctamente\");\r\n } catch (NumberFormatException | NullPointerException e) {\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"ERROR: Formato de datos incorrecto\");\r\n\r\n // Vaciado Carrito\r\n CARRITO.clear();\r\n } catch (IOException e) {\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"ERROR: Acceso al fichero\");\r\n }\r\n }", "@WebService(name = \"FileService\", targetNamespace = \"http://soap.web.lab/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface FileService extends lab.web.FileService {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n * @throws ServiceException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"writeFile\", targetNamespace = \"http://soap.web.lab/\", className = \"WriteFile\")\n @ResponseWrapper(localName = \"writeFileResponse\", targetNamespace = \"http://soap.web.lab/\", className = \"WriteFileResponse\")\n public boolean writeFile(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0)\n throws ServiceException\n ;\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListAllFiles\", targetNamespace = \"http://soap.web.lab/\", className = \"GetListAllFiles\")\n @ResponseWrapper(localName = \"getListAllFilesResponse\", targetNamespace = \"http://soap.web.lab/\", className = \"GetListAllFilesResponse\")\n public List<String> getListAllFiles();\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n * @throws ServiceException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteFile\", targetNamespace = \"http://soap.web.lab/\", className = \"DeleteFile\")\n @ResponseWrapper(localName = \"deleteFileResponse\", targetNamespace = \"http://soap.web.lab/\", className = \"DeleteFileResponse\")\n public boolean deleteFile(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0)\n throws ServiceException\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns boolean\n * @throws ServiceException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"downloadFile\", targetNamespace = \"http://soap.web.lab/\", className = \"DownloadFile\")\n @ResponseWrapper(localName = \"downloadFileResponse\", targetNamespace = \"http://soap.web.lab/\", className = \"DownloadFileResponse\")\n public boolean downloadFile(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1)\n throws ServiceException\n ;\n\n}", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\twrite();\n\t\t\t\t} catch (Exception 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}", "private void compressArchive() throws Exception {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"Compressing archive: \" + path);\n\t\t}\n\n\t\tFileOutputStream fout = new FileOutputStream(path + \".gz\");\n\t\tGZIPOutputStream gout = new GZIPOutputStream(fout);\n\t\tFileInputStream fin = new FileInputStream(path);\n\t\tbyte[] buf = new byte[blockSize];\n\t\tint len;\n\t\twhile ((len = fin.read(buf)) > 0) {\n\t\t\tgout.write(buf, 0, len);\n\t\t}\n\t\tfin.close();\n\n\t\t// flush and close gzip file\n\t\tgout.finish();\n\t\tgout.close();\n\n\t\t// unlink original archive\n\t\tFile file = new File(path);\n\t\tfile.delete();\n\t}", "private void writeClientFile(Content content) throws Exception {\n\t\tString path = open();\n\t\tTranslateContent translate = new TranslateContent(content, path);\n\n\t\t// Links may need to be deleted before update to content.\n\t\tPath linkPath = FileSystems.getDefault().getPath(path);\n\t\tlinkPath.toFile().delete();\n\n\t\ttranslate.writeClient();\n\t}", "public void exportAllFacturesClient(OutputStream outputStream, long id) throws IOException {\n\n Workbook workbook = new XSSFWorkbook();\n \n // Styles des cellules: \n CellStyle styleGreen = workbook.createCellStyle();\n styleGreen.setFillForegroundColor(IndexedColors.GREEN.getIndex());\n styleGreen.setFillPattern(FillPatternType.SOLID_FOREGROUND); \n \n CellStyle styleBlue = workbook.createCellStyle();\n styleBlue.setFillForegroundColor(IndexedColors.BLUE.getIndex());\n styleBlue.setFillPattern(FillPatternType.SOLID_FOREGROUND); \n \n CellStyle styleYellow = workbook.createCellStyle();\n styleYellow.setFillForegroundColor(IndexedColors.YELLOW.getIndex());\n styleYellow.setFillPattern(FillPatternType.SOLID_FOREGROUND); \n \n Font font = workbook.createFont();\n font.setColor(IndexedColors.WHITE.getIndex());\n styleGreen.setFont(font);\n styleBlue.setFont(font);\n styleYellow.setFont(font);\n \n \n \n List<FactureDto> listAllFacturesAllClient = this.factureService.findAllFactures();\n \n \n for (FactureDto factureDto : listAllFacturesAllClient) {\n\t\t\tif(factureDto.getClient().id == id) {\n\t //SHEET\n\t Sheet sheet = workbook.createSheet(\"Facture\"+factureDto.getId());\n\t Row headerRow = sheet.createRow(0);\n\t //LIBELLES\n\t Cell cellLibelle0 = headerRow.createCell(0);\n\t Cell cellLibelle1 = headerRow.createCell(1);\n\t Cell cellLibelle2 = headerRow.createCell(2);\n\t Cell cellLibelle3 = headerRow.createCell(3);\n\t cellLibelle0.setCellValue(\"Désignation\");\n\t cellLibelle1.setCellValue(\"Quantité\");\n\t cellLibelle2.setCellValue(\"Prix Unitaire\");\n\t cellLibelle3.setCellValue(\"Prix ligne\");\n\t cellLibelle0.setCellStyle(styleGreen);\n\t cellLibelle1.setCellStyle(styleBlue);\n\t cellLibelle2.setCellStyle(styleYellow);\n\t cellLibelle3.setCellStyle(styleGreen);\n\n\t for (int i =0; i<factureDto.getLigneFactures().size(); i++) {\n\t \t\t \t\n\t Row newRow = sheet.createRow(i+1);\n\t \n\t Cell firstCell = newRow.createCell(0);\n\t firstCell.setCellStyle(styleGreen);\n\t firstCell.setCellValue(factureDto.getLigneFactures().get(i).getArticle().getLibelle());\n\t \n\t Cell secondCell =newRow.createCell(1);\n\t secondCell.setCellValue(factureDto.getLigneFactures().get(i).getQuantite());\n\t secondCell.setCellStyle(styleBlue);\n\t \n\t Cell thirdCell =newRow.createCell(3);\n\t thirdCell.setCellValue(factureDto.getLigneFactures().get(i).getArticle().getPrix());\n\t thirdCell.setCellStyle(styleYellow);\n\t \n\t Cell fourthCell =newRow.createCell(3);\n\t fourthCell.setCellValue(\n\t \t\t(factureDto.getLigneFactures().get(i).getArticle().getPrix())*(factureDto.getLigneFactures().get(i).getQuantite())\n\t \t\t);\n\t fourthCell.setCellStyle(styleGreen);\n\t \t\t}\n\t\t\t}\n\t\t}\n\n workbook.write(outputStream);\n workbook.close();\n }", "@WebService(name = \"resaService\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ResaService {\n\n\n /**\n * \n */\n @WebMethod\n @RequestWrapper(localName = \"verifEndResa\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.VerifEndResa\")\n @ResponseWrapper(localName = \"verifEndResaResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.VerifEndResaResponse\")\n public void verifEndResa();\n\n /**\n * \n * @param resaId\n * @throws NotFoundException_Exception\n * @throws Exception_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"mailResa\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.MailResa\")\n @ResponseWrapper(localName = \"mailResaResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.MailResaResponse\")\n public void mailResa(\n @WebParam(name = \"resaId\", targetNamespace = \"\")\n Integer resaId)\n throws Exception_Exception, FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param resaId\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteReservation\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.DeleteReservation\")\n @ResponseWrapper(localName = \"deleteReservationResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.DeleteReservationResponse\")\n public void deleteReservation(\n @WebParam(name = \"resaId\", targetNamespace = \"\")\n Integer resaId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param livreId\n * @param demandeurId\n * @return\n * returns fr.mb.biblio.webappConsumer.services.reservation.Reservation\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"newReservation\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.NewReservation\")\n @ResponseWrapper(localName = \"newReservationResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.NewReservationResponse\")\n public Reservation newReservation(\n @WebParam(name = \"livreId\", targetNamespace = \"\")\n Integer livreId,\n @WebParam(name = \"demandeurId\", targetNamespace = \"\")\n Integer demandeurId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param resaId\n * @return\n * returns fr.mb.biblio.webappConsumer.services.reservation.Reservation\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResaById\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaById\")\n @ResponseWrapper(localName = \"getResaByIdResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByIdResponse\")\n public Reservation getResaById(\n @WebParam(name = \"resaId\", targetNamespace = \"\")\n Integer resaId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param demandeurId\n * @return\n * returns java.util.List<fr.mb.biblio.webappConsumer.services.reservation.ReservationWS>\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResaByUserId\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByUserId\")\n @ResponseWrapper(localName = \"getResaByUserIdResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByUserIdResponse\")\n public List<ReservationWS> getResaByUserId(\n @WebParam(name = \"demandeurId\", targetNamespace = \"\")\n Integer demandeurId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param livreId\n * @return\n * returns java.util.List<fr.mb.biblio.webappConsumer.services.reservation.Reservation>\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResaByLivreId\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByLivreId\")\n @ResponseWrapper(localName = \"getResaByLivreIdResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByLivreIdResponse\")\n public List<Reservation> getResaByLivreId(\n @WebParam(name = \"livreId\", targetNamespace = \"\")\n Integer livreId)\n throws FunctionalException_Exception\n ;\n\n /**\n * \n * @param resaId\n * @return\n * returns fr.mb.biblio.webappConsumer.services.reservation.Reservation\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"startResa\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.StartResa\")\n @ResponseWrapper(localName = \"startResaResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.StartResaResponse\")\n public Reservation startResa(\n @WebParam(name = \"resaId\", targetNamespace = \"\")\n Integer resaId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n}", "public void windowClosing(java.awt.event.WindowEvent e) {\n\t\t\t\tFile fbTexte = new File (GestionRepertoire.RecupRepTravail()+\"\\\\fbserver.txt\");\r\n\t\t\t\tboolean succesDelete = fbTexte.delete();\r\n\t\t\t\tif (succesDelete==false){\r\n\t\t\t\t\tfbTexte.deleteOnExit();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tnew Fen_Fermeture();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t}", "public void plan(String studyRepositoryURL, File exportedWorkspace, int finalConfiguration, String workspaceStudy) throws Exception {\n String url_oceano = \"http://localhost:8092/oceano/JSONServlet\";\n// String url_oceano = \"http://10.0.0.102:8092/oceano/JSONServlet\";\n// String url_oceano = \"https://gems.ic.uff.br/oceano/JSONServlet\";\n\n\n // List the repository\n list(studyRepositoryURL);\n // Create study workspace\n\n File studyWorkspace = createWorkSpace(workspaceStudy);\n // Check-out the configuration\n CheckoutCiclo checkoutCiclo = new CheckoutCiclo();\n\n CheckOut remoto = checkoutCiclo.remoto(studyRepositoryURL, \"marapa\", \"marapao\", studyWorkspace.getPath(), url_oceano);\n System.out.println(\"svn co \" + studyRepositoryURL + \" \" + studyWorkspace.getPath());\n\n\n\n if (!workspaceStudy.endsWith(\"/\")) {\n workspaceStudy += \"/\";\n }\n\n workspaceStudy += remoto.getAutobranch();\n studyWorkspace = new File(workspaceStudy);\n\n merge(exportedWorkspace, studyWorkspace);\n\n checkin(workspaceStudy);\n\n if (remoto.getAutobranch() % 20 == 0) {\n\n System.out.println(\"----------------Esperando 2 minutos---------------------------------\");\n System.gc();\n Thread.sleep(60000);\n\n\n\n File f = new File(\"/home/marapao/experiementos/scripts/reiniciaglassfish\");\n Runtime r = Runtime.getRuntime();\n Process exec = null;\n\n System.out.println(\"---------------------Reiniciando GlassFish---------------------------------------\");\n if (f.canExecute()) {\n exec = r.exec(f.getAbsolutePath());\n }\n\n exec.waitFor();\n\n System.out.println(\"----------------Esperando 1 minutos---------------------------------\");\n System.gc();\n Thread.sleep(60000);\n //reiniciar o glassfish\n ///home/marapao/glassfish/bin/asadmin stop-domain\n ///home/marapao/glassfish/bin/asadmin start-domain\n\n\n }\n\n }", "@Override\n\tpublic void exportExwarehouse(String ckdh) throws Exception {\n\t\t\n\t}", "public void comprar(){\r\n\t\tSystem.out.println(\"He comprado...\");\r\n\t}", "private void copyNGClientJar(File file, File targetLibDir) throws IOException\n\t{\n\t\tFile dest = new File(targetLibDir, file.getName());\n\t\tZipInputStream zin = new ZipInputStream(new FileInputStream(file));\n\t\tZipOutputStream zout = new ZipOutputStream(new FileOutputStream(dest));\n\t\tbyte[] buf = new byte[1024];\n\n\t\tZipEntry entry = zin.getNextEntry();\n\t\twhile (entry != null)\n\t\t{\n\t\t\tString name = entry.getName();\n\t\t\tboolean toBeDeleted = false;\n\t\t\tfor (String f : EXCLUDE_FROM_NG_JAR)\n\t\t\t{\n\t\t\t\tif (name.startsWith(f))\n\t\t\t\t{\n\t\t\t\t\ttoBeDeleted = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!toBeDeleted)\n\t\t\t{\n\t\t\t\t// Add ZIP entry to output stream.\n\t\t\t\tzout.putNextEntry(new ZipEntry(name));\n\t\t\t\t// Transfer bytes from the ZIP file to the output file\n\t\t\t\tint len;\n\t\t\t\twhile ((len = zin.read(buf)) > 0)\n\t\t\t\t{\n\t\t\t\t\tzout.write(buf, 0, len);\n\t\t\t\t}\n\t\t\t}\n\t\t\tentry = zin.getNextEntry();\n\t\t}\n\t\t// Close the streams\n\t\tzin.close();\n\t\t// Compress the files\n\t\t// Complete the ZIP file\n\t\tzout.close();\n\t}", "@Override\n public void escribirExcel(String pathPlan, String pathDeex, String nombResa) throws Exception {\n LOGGER.info(\"Iniciando escritura del archivo en excel\");\n\n LOGGER.debug(\"Ruta de la plantilla {}\", pathPlan);\n LOGGER.debug(\"Ruta donde se va a escribir la plantilla {} \", pathDeex);\n\n //Archivo Origen\n File archOrig = null;\n //Archivo Destino\n File archDest = null;\n //ruta completa de la plantilla\n String pathDefi = pathDeex + File.separator + nombResa;\n //Registra del archivo de excel\n Row row = null;\n //Celda en el archivo de excel\n Cell cell;\n //Hoja de excel\n Sheet sheet = null;\n //Numero de hojas en el libro de excel\n int numberOfSheets;\n //Constantes\n final String NOMBRE_HOJA = \"RESULTADOS EVALUACION\";\n // Fila y columna para \n int fila = 0;\n int columna = 0;\n //Fila inicio evidencia\n int filaEvid;\n\n try {\n archOrig = new File(pathPlan);\n\n if (!archOrig.exists()) {\n LOGGER.debug(\"Plantilla no existe en la ruta {} \", pathPlan);\n throw new IOException(\"La plantilla no existe en la ruta \" + pathPlan);\n }\n\n archDest = new File(pathDeex);\n\n if (!archDest.exists()) {\n LOGGER.debug(\"Ruta no existe donde se va a depositar el excel {} , se va a crear\", pathDeex);\n archDest.mkdirs();\n }\n\n LOGGER.info(\"Ruta del archivo a crear {}\", pathDefi);\n archDest = new File(pathDefi);\n\n if (!archDest.exists()) {\n LOGGER.info(\"No existe el archivo en la ruta {}, se procede a la creacion \", pathDefi);\n archDest.createNewFile();\n } else {\n\n LOGGER.info(\"el archivo que se requiere crear, ya existe {} se va a recrear\", pathDefi);\n archDest.delete();\n LOGGER.info(\"archivo en la ruta {}, borrado\", pathDefi);\n archDest.createNewFile();\n\n LOGGER.info(\"archivo en la ruta {}, se vuelve a crear\", pathDefi);\n\n }\n\n LOGGER.info(\"Se inicia con la copia de la plantilla de la ruta {} a la ruta {} \", pathPlan, pathDefi);\n try (FileChannel archTror = new FileInputStream(archOrig).getChannel();\n FileChannel archTrDe = new FileOutputStream(archDest).getChannel();) {\n\n archTrDe.transferFrom(archTror, 0, archTror.size());\n\n LOGGER.info(\"Termina la copia del archivo\");\n\n } catch (Exception e) {\n LOGGER.info(\"Se genera un error con la transferencia {} \", e.getMessage());\n throw new Exception(\"Error [\" + e.getMessage() + \"]\");\n }\n\n LOGGER.info(\"Se inicia con el diligenciamiento del formato \");\n\n LOGGER.info(\"Nombre Archivo {}\", archDest.getName());\n if (!archDest.getName().toLowerCase().endsWith(\"xls\")) {\n throw new Exception(\"La plantilla debe tener extension xls\");\n }\n\n try (FileInputStream fis = new FileInputStream(archDest);\n Workbook workbook = new HSSFWorkbook(fis);\n FileOutputStream fos = new FileOutputStream(archDest);) {\n\n if (workbook != null) {\n numberOfSheets = workbook.getNumberOfSheets();\n LOGGER.debug(\"Numero de hojas {}\", numberOfSheets);\n\n LOGGER.info(\"Hoja seleccionada:{}\", NOMBRE_HOJA);\n sheet = workbook.getSheetAt(0);\n\n fila = 5;\n\n LOGGER.info(\"Se inicia con la escritura de las oportunidades de mejora\");\n\n LOGGER.info(\"Creando las celdas a llenar\");\n\n for (int numeFila = fila; numeFila < this.listOpme.size() + fila; numeFila++) {\n\n LOGGER.info(\"Fila {} \", numeFila);\n if (numeFila > 8) {\n\n copyRow(workbook, sheet, numeFila - 2, numeFila - 1);\n sheet.addMergedRegion(new CellRangeAddress(numeFila - 1, numeFila - 1, 1, 4));\n sheet.addMergedRegion(new CellRangeAddress(numeFila - 1, numeFila - 1, 6, 7));\n\n }\n\n }\n\n LOGGER.info(\"Terminando de llenar celdas\");\n LOGGER.info(\"Poblar registros desde {} \", fila);\n\n for (OptuMejo optuMejo : this.listOpme) {\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 1. Valor Capacitacion tecnica {}\", fila, optuMejo.getCapaTecn());\n row = null;\n cell = null;\n\n row = sheet.getRow(fila);\n cell = row.getCell(1);\n\n cell.setCellValue(optuMejo.getCapaTecn());\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 6. Valor compromisos del area {}\", fila, optuMejo.getComporta());\n row = null;\n cell = null;\n\n row = sheet.getRow(fila);\n cell = row.getCell(6);\n\n cell.setCellValue(optuMejo.getComporta());\n\n fila++;\n\n }\n LOGGER.info(\"Termino de poblar el registro hasta {} \", fila);\n //Ajustando los formulario\n if (fila > 8) {\n sheet.addMergedRegion(new CellRangeAddress(fila, fila, 1, 7));\n sheet.addMergedRegion(new CellRangeAddress(fila + 1, fila + 1, 2, 6));\n } else {\n fila = 9;\n }\n\n /* sheet.addMergedRegion(new CellRangeAddress(fila, fila, 1, 7));\n sheet.addMergedRegion(new CellRangeAddress(fila + 1, fila + 1, 2, 6));*/\n LOGGER.info(\"Fin de la escritura de las oportunidades de mejora\");\n\n LOGGER.info(\"Se inicia la escritura de las evidencias \");\n\n fila += 2;\n filaEvid = fila + 5;\n\n LOGGER.info(\"Se inicia la creacion de las celdas desde el registro {} \", fila);\n\n for (Evidenci evidenci : this.listEvid) {\n\n if (filaEvid < fila) {\n copyRow(workbook, sheet, fila - 1, fila);\n\n }\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 1. Valor Fecha {}\", fila, evidenci.getFecha());\n row = null;\n cell = null;\n\n row = sheet.getRow(fila);\n cell = row.getCell(1);\n\n cell.setCellValue(evidenci.getFecha());\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 6. Valor compromisos del area {}\", fila, evidenci.getDescripc());\n row = null;\n cell = null;\n\n row = sheet.getRow(fila);\n cell = row.getCell(2);\n\n cell.setCellValue(evidenci.getDescripc());\n\n sheet.addMergedRegion(new CellRangeAddress(fila, fila, 2, 6));\n\n fila++;\n\n }\n\n LOGGER.info(\"Fin de la escritura de las Evidencias\");\n\n LOGGER.info(\"Inicio de escritura de calificaciones\");\n //Ajustando los formulario - resultado\n\n /*sheet.addMergedRegion(new CellRangeAddress(fila, fila, 1, 7));*/\n if (fila > filaEvid) {\n LOGGER.info(\"Fila a ejecutar {} \", fila);\n sheet.addMergedRegion(new CellRangeAddress(fila + 1, fila + 1, 2, 5));\n sheet.addMergedRegion(new CellRangeAddress(fila + 2, fila + 2, 2, 5));\n sheet.addMergedRegion(new CellRangeAddress(fila + 3, fila + 3, 2, 5));\n sheet.addMergedRegion(new CellRangeAddress(fila + 4, fila + 4, 2, 5));\n sheet.addMergedRegion(new CellRangeAddress(fila + 1, fila + 1, 6, 7));\n sheet.addMergedRegion(new CellRangeAddress(fila + 2, fila + 4, 6, 7));\n //Firma del evaluado ajuste\n sheet.addMergedRegion(new CellRangeAddress(fila + 5, fila + 5, 1, 3));\n sheet.addMergedRegion(new CellRangeAddress(fila + 5, fila + 5, 4, 6));\n\n //Ajustando recursos\n sheet.addMergedRegion(new CellRangeAddress(fila + 6, fila + 6, 1, 7));\n\n sheet.addMergedRegion(new CellRangeAddress(fila + 8, fila + 8, 1, 7));\n sheet.addMergedRegion(new CellRangeAddress(fila + 10, fila + 10, 1, 7));\n\n } else {\n fila = filaEvid + 1;\n LOGGER.info(\"Fila a ejecutar {} \", fila);\n }\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 2. Valor Excelente {}\", fila + 2, this.excelent);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 2);\n cell = row.getCell(2);\n\n cell.setCellValue((this.excelent != null ? this.excelent : \"\"));\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 2. Valor satisfactorio {}\", fila + 3, this.satisfac);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 3);\n cell = row.getCell(2);\n\n cell.setCellValue((this.satisfac != null ? this.satisfac : \"\"));\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 3. Valor no satisfactorio {}\", fila + 4, this.noSatisf);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 4);\n cell = row.getCell(2);\n\n cell.setCellValue((this.noSatisf != null ? this.noSatisf : \"\"));\n\n //Ajustando Total Calificacion en Numero\n LOGGER.debug(\"Se va actualizar la linea {} celda 2. Valor total calificacion {}\", fila + 2, this.numeToca);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 2);\n cell = row.getCell(6);\n\n cell.setCellValue(this.numeToca);\n\n LOGGER.info(\"Fin de escritura de calificaciones\");\n\n LOGGER.info(\"Inicio de escritura de interposicion de recursos\");\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 5. Valor si interpone recursos {}\", fila + 7, this.siinRecu);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 7);\n cell = row.getCell(6);\n\n cell.setCellValue(\"SI:\" + (this.siinRecu != null ? this.siinRecu : \"\"));\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 5. Valor si interpone recursos {}\", fila + 7, this.noinRecu);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 7);\n cell = row.getCell(7);\n\n cell.setCellValue(\"NO:\" + (this.noinRecu != null ? this.noinRecu : \"\"));\n \n \n LOGGER.debug(\"Se va actualizar la linea {} celda 5. Valor si interpone recursos {}\", fila + 8, this.fech);\n \n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 8);\n cell = row.getCell(1);\n\n cell.setCellValue(\"FECHA:\" + (this.fech != null ? this.fech : \"\"));\n \n \n\n LOGGER.info(\"Fin de escritura de interposicion de recursos\");\n\n //Ajustando recursos\n workbook.write(fos);\n\n } else {\n throw new Exception(\"No se cargo de manera adecuada el archivo \");\n }\n\n } catch (Exception e) {\n System.out.println(\"\" + e.getMessage());\n }\n\n } catch (Exception e) {\n LOGGER.error(e.getMessage());\n throw new Exception(e.getMessage());\n }\n }", "private void closeApp() {\n\t\tcurrentBoard.storeXMLfil();\n\t\tzipBackUp( currentBoard.getBoardFile() );\n\t\tlogConcoleOutput();\n\t\t//\n\t\tif( funcBoard != null ){\n\t\t\tfuncBoard.close();\n\t\t\tzipBackUp( funcBoard.getBoardFile() );\n\t\t}\n\t}", "private void cerrarEnviar() {\n \t try {\r\n \t bis.close();\r\n bos.close();\r\n \t }catch(Exception e ) {}\r\n\t}", "@WebService(name = \"ProductoWS\", targetNamespace = \"http://ProductoWS/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ProductoWS {\n\n\n /**\n * \n * @return\n * returns java.util.List<com.udea.ws.Producto>\n */\n @WebMethod(operationName = \"ConsultarProducto\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ConsultarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.ConsultarProducto\")\n @ResponseWrapper(localName = \"ConsultarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.ConsultarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/ConsultarProductoRequest\", output = \"http://ProductoWS/ProductoWS/ConsultarProductoResponse\")\n public List<Producto> consultarProducto();\n\n /**\n * \n * @param codigo\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"BuscarProducto\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"BuscarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.BuscarProducto\")\n @ResponseWrapper(localName = \"BuscarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.BuscarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/BuscarProductoRequest\", output = \"http://ProductoWS/ProductoWS/BuscarProductoResponse\")\n public String buscarProducto(\n @WebParam(name = \"codigo\", targetNamespace = \"\")\n int codigo);\n\n /**\n * \n * @param descripcion\n * @param precio\n * @param stock\n * @param nombre\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ingresarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.IngresarProducto\")\n @ResponseWrapper(localName = \"ingresarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.IngresarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/ingresarProductoRequest\", output = \"http://ProductoWS/ProductoWS/ingresarProductoResponse\")\n public String ingresarProducto(\n @WebParam(name = \"nombre\", targetNamespace = \"\")\n String nombre,\n @WebParam(name = \"precio\", targetNamespace = \"\")\n double precio,\n @WebParam(name = \"stock\", targetNamespace = \"\")\n int stock,\n @WebParam(name = \"descripcion\", targetNamespace = \"\")\n String descripcion);\n\n}", "@Override\n\tpublic void exportarData() {\n\t\tDate date=new Date();\n\t\tString nameFile=\"client-\"+date.getTime()+\".xls\";\n\t\tTableToExcel.save(grid,nameFile);\n\t}", "@AfterClass(alwaysRun = true)\n public void webAppDelete() throws Exception {\n\n webAppAdminClient.deleteWebAppFile(\"HelloWorldWebapp.war\", hostName);\n assertTrue(WebAppDeploymentUtil.isWebApplicationUnDeployed(\n backendURL, sessionCookie,\n \"HelloWorldWebapp.war\"), \"HelloWorldWebapp unDeployment failed\");\n }", "public void descargarArchivo()throws SQLException, IOException {\n //conexion con el resultset\n st = cn.createStatement();\n\n // consulta de descarga el getId es la variable que utilizo para ubicarme en la base de datos\n ResultSet rs = st.executeQuery(\"select anexo_justi, nombre FROM anexoitem where iditem=\"+rt.getId());\ntry {\n \nrs.next();\n// pone en la variable el nombre del archivo de la base de datos\nnombre= rs.getString(\"nombre\");\n// inserta la ruta completa\nFile file = new File(rt.getPath()+nombre);\n// salida del archivo de flujo\nFileOutputStream output = new FileOutputStream(file);\nBlob archivo = rs.getBlob(1);\nInputStream inStream = archivo.getBinaryStream();\n// almacenamiento del tamaño y descarga byte a byte\nint length= -1;\nint size = (int) archivo.length();\nbyte[] buffer = new byte[size];\nwhile ((length = inStream.read(buffer)) != -1) {\noutput.write(buffer, 0, length);\nJOptionPane.showMessageDialog(null,\"El archivo se descargo correctamente\");\n// output.flush();\n\n}\n// inStream.close();\noutput.close();\n} catch (Exception ioe) {\nthrow new IOException(ioe.getMessage());\n}\n}", "public void BotonExportarPDF(String nomRep) {\n //ABRIR CUADRO DE DIALOGO PARA GUARDAR EL ARCHIVO \n JFileChooser fileChooser = new JFileChooser();\n fileChooser.addChoosableFileFilter(new FileNameExtensionFilter(\"todos los archivos *.PDF\", \"pdf\", \"PDF\"));//filtro para ver solo archivos .pdf\n int seleccion = fileChooser.showSaveDialog(null);\n try {\n if (seleccion == JFileChooser.APPROVE_OPTION) {//comprueba si ha presionado el boton de aceptar\n File JFC = fileChooser.getSelectedFile();\n String PATH = JFC.getAbsolutePath();//obtenemos la direccion del archivo + el nombre a guardar\n try (PrintWriter printwriter = new PrintWriter(JFC)) {\n printwriter.print(\"src\\\\Reportes\\\\\" + nomRep + \".jasper\");\n }\n this.ReportePDF(\"src\\\\Reportes\\\\\" + nomRep + \".jasper\", PATH);//mandamos como parametros la ruta del archivo a compilar y el nombre y ruta donde se guardaran \n //comprobamos si a la hora de guardar obtuvo la extension y si no se la asignamos\n if (!(PATH.endsWith(\".pdf\"))) {\n File temp = new File(PATH + \".pdf\");\n JFC.renameTo(temp);//renombramos el archivo\n }\n JOptionPane.showMessageDialog(null, \"Esto puede tardar unos segundos, espere porfavor\", \"Estamos Generando el Reporte\", JOptionPane.WARNING_MESSAGE);\n JOptionPane.showMessageDialog(null, \"Documento Exportado Exitosamente!\", \"Guardado exitoso!\", JOptionPane.INFORMATION_MESSAGE);\n }\n } catch (FileNotFoundException | HeadlessException e) {//por alguna excepcion salta un mensaje de error\n JOptionPane.showMessageDialog(null, \"Error al Exportar el archivo!\", \"Oops! Error\", JOptionPane.ERROR_MESSAGE);\n }\n }", "private void redirectExport()\r\n {\r\n String viewId = Pages.getViewId(FacesContext.getCurrentInstance());\r\n String baseName = Pages.getCurrentBaseName();\r\n DocumentData documentData = new ByteArrayDocumentData(baseName, excelWorkbook.getDocumentType(), excelWorkbook.getBytes());\r\n String id = DocumentStore.instance().newId();\r\n String url = DocumentStore.instance().preferredUrlForContent(baseName, excelWorkbook.getDocumentType().getExtension(), id);\r\n url = Manager.instance().encodeConversationId(url, viewId);\r\n DocumentStore.instance().saveData(id, documentData);\r\n try\r\n {\r\n FacesContext.getCurrentInstance().getExternalContext().redirect(url);\r\n }\r\n catch (IOException e)\r\n {\r\n throw new ExcelWorkbookException(Interpolator.instance().interpolate(\"Could not redirect to #0\", url), e);\r\n }\r\n }", "@Override\r\n public void serializar() throws IOException {\n File fich=new File(\"datos.bin\");\r\n FileOutputStream fos = new FileOutputStream(fich);\r\n ObjectOutputStream oos = new ObjectOutputStream(fos);\r\n oos.writeObject(gestor);\r\n oos.close();\r\n }", "@FXML\r\n private void HBSimpan(ActionEvent event) {\n String xml = xstream.toXML(resi);\r\n FileOutputStream xx = null;\r\n try {\r\n // membuat nama file & folder tempat menyimpan jika perlu\r\n xx = new FileOutputStream(\"xoxo.xml\");\r\n \r\n // mengubah karakter penyusun string xml sebagai \r\n // bytes (berbentuk nomor2 kode ASCII\r\n byte[] bytes = xml.getBytes(\"UTF-8\");\r\n // menyimpan file dari bytes\r\n xx.write(bytes);\r\n } \r\n catch (Exception e) {\r\n System.err.println(\"Perhatian: \" + e.getMessage());\r\n } \r\n finally {\r\n if (xx != null) {\r\n try {\r\n xx.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n } \r\n\r\n }", "public void descargarArchivoVeri()throws SQLException, IOException {\n //conexion con el resultset\n st = cn.createStatement();\n\n // consulta de descarga el getId es la variable que utilizo para ubicarme en la base de datos\n ResultSet rs = st.executeQuery(\"select anexo_veri, nombre FROM anexoverificacion where idverificacion=\"+rt.getId());\ntry {\n \nrs.next();\n// pone en la variable el nombre del archivo de la base de datos\nnombre= rs.getString(\"nombre\");\n// inserta la ruta completa\nFile file = new File(rt.getPath()+nombre);\n// salida del archivo de flujo\nFileOutputStream output = new FileOutputStream(file);\nBlob archivo = rs.getBlob(1);\nInputStream inStream = archivo.getBinaryStream();\n// almacenamiento del tamaño y descarga byte a byte\nint length= -1;\nint size = (int) archivo.length();\nbyte[] buffer = new byte[size];\nwhile ((length = inStream.read(buffer)) != -1) {\noutput.write(buffer, 0, length);\nJOptionPane.showMessageDialog(null,\"El archivo se descargo correctamente\");\n// output.flush();\n\n}\n// inStream.close();\noutput.close();\n} catch (Exception ioe) {\nthrow new IOException(ioe.getMessage());\n}\n}", "@Override\r\n\t\t\tpublic void windowClosing(WindowEvent we) {\n\t\t\t\ttry {\r\n\t\t\t\t\tsocketClose();\r\n\t\t\t\t} catch (IOException ie) {\r\n\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tdispose();// windowclosed 호출\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "public void borrarZonaObjetivoAtaque() {\n\t\t\n\t}", "public static void generateZip(File file) {\r\n\t\t\r\n\t\tFile zipfile=new File(file.toString().replaceAll(\".xlsx\",\".zip\" ));\r\n\t\tFileOutputStream fos=null;\r\n\t\tZipOutputStream zos=null;\r\n\t\tFileInputStream fin=null;\r\n\t\tZipEntry ze=null; \r\n\t\t\t\r\n\t\tif(!zipfile.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tzipfile.createNewFile();\r\n\t\t\t} catch (IOException 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\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t//create ZipOutputStream to write to the zipfile\r\n fos=new FileOutputStream(zipfile);\r\n\t\t\t zos=new ZipOutputStream(fos);\r\n\t\t\t \r\n\t\t//add a new Zip Entry to the ZipOutPutStream \r\n\t\t\t ze=new ZipEntry(file.getName());\r\n\t\t\t zos.putNextEntry(ze);\r\n\t\t\t \r\n\t\t//read the file and write to the ZipOutPutStream\t \r\n\t\t\t fin=new FileInputStream(file);\r\n\t\t\t int i;\r\n\t\t\t \r\n\t\t\t while((i=fin.read())!=-1){\r\n\t\t\t\t zos.write(i);\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t \r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\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}finally{\r\n\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\tif(zos!=null && fos!=null && fin!=null){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t //close the zip entry to write to to zip file\r\n\t\t\t\t\t\tzos.closeEntry();\r\n\t\t\t\t\t//close Resources.\t\r\n\t\t\t\t\t\tzos.close();\r\n\t\t\t\t\t\tfos.close();\r\n\t\t\t\t\t\tfin.close();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\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}\r\n\t\t\t}\r\n\t\t}", "public abstract boolean moveToArchive(K id) throws ServiceException;", "String backup(String request) throws RemoteException;", "public void crearCliente(Cliente cliente) {\n \n File db = new File(\"src/Archivo/archivo.txt\");\n File tempDB = new File(\"src/Archivo/archivo_temp.txt\");\n\n try {\n \n if (cliente.getNombreCliente().isEmpty()) {\n cliente.setNombreCliente(\"undefined\");\n }\n if (cliente.getNombreEmpresa().isEmpty()) {\n cliente.setNombreEmpresa(\"undefined\");\n }\n if (cliente.getCiudad().isEmpty()) {\n cliente.setCiudad(\"undefined\");\n }\n \n List<Cliente> newClientes = añadirClienteToList(cliente);\n\n BufferedWriter bw = new BufferedWriter(new FileWriter(tempDB));\n\n\n\n for(Cliente cli:newClientes) {\n bw.write(\n Integer.toString(cli.getId())+\",\"+\n cli.getNombreCliente()+\",\"+\n cli.getNombreEmpresa()+\",\"+\n cli.getCiudad()+\",\"+\n cli.getDeuda()+\",\"+\n cli.getPrecioVentaSaco()\n );\n bw.flush();\n bw.newLine();\n }\n bw.close();\n db.delete();\n } catch (Exception e) {\n System.err.println(\"Method-actualizarUsuarioById: \" + e);\n }\n\n boolean success = tempDB.renameTo(db);\n System.out.println(success);\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}", "public static void darMasaje() {\n\n\t}", "static void escribir(Planeta planeta_a_escribir) {\n if (escritor != null) {\n try {\n escritor.writeObject(planeta_a_escribir);\n \n } catch (IOException ex) {\n System.out.println(\"Error al escribir el archivo\");\n }\n }\n }", "static void LeerArchivo(){ \r\n \t//iniciamos el try y si no funciona se hace el catch\r\n\r\n try{ \r\n \t//se crea un objeto br con el archivo de txt\r\n \tBufferedReader br = new BufferedReader( \r\n \tnew FileReader(\"reporte.txt\")\r\n );\r\n String s;\r\n //Mientras haya una linea de texto se imprime\r\n while((s = br.readLine()) != null){ \r\n System.out.println(s);\r\n }\r\n //se cierra el archivo de texto\r\n br.close(); \r\n } catch(Exception ex){\r\n \t//si no funciona se imprime el error\r\n System.out.println(ex); \r\n }\r\n }", "private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<fileList.length; i++) \n\t\t\t{ \n\t\t\t\tFile f = new File(dirToZip, fileList[i]); \n\t\t\t\tFileInputStream fis = new FileInputStream(f); \n\t\t\t\tString zEntry = f.getPath();\n\t\t\t\t//System.out.println(\"\\n\" + zEntry);\n\t\t\t\tint start = zEntry.indexOf(uniqueName);\n\t\t\t\tzEntry = zEntry.substring(start + uniqueName.length() + 1, zEntry.length());\n\t\t\t\t//System.out.println(tempDir);\n\t\t\t\t//System.out.println(zEntry + \"\\n\");\n\t\t\t\tZipEntry entry = new ZipEntry(zEntry); \n\t\t\t\trfoFile.putNextEntry(entry); \n\t\t\t\twhile((bytesIn = fis.read(buffer)) != -1) \n\t\t\t\t\trfoFile.write(buffer, 0, bytesIn); \n\t\t\t\tfis.close();\n\t\t\t}\n\t\t\trfoFile.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.compress(): \" + e);\n\t\t}\n\t}", "private void botonFinalizar_actionPerformed() {\n\t\ttry {\n\t\t\tservidor.finalizaSesion();\n\t\t}\n\t\tcatch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void guardar()\n {\n File fileUsuario,fileDocente;\n ObjectOutputStream entradaUsuario,entradaDocente;\n \n fileDocente = new File(\"docentes\"); \n fileUsuario = new File(\"usuarios\");\n \n try \n {\n \n entradaDocente = new ObjectOutputStream(new FileOutputStream(fileDocente));\n entradaUsuario = new ObjectOutputStream(new FileOutputStream(fileUsuario));\n \n entradaDocente.writeObject(docentes);\n entradaUsuario.writeObject(usuarios);\n \n entradaDocente.close();\n entradaUsuario.close();\n } \n catch (Exception e) \n {\n e.printStackTrace();\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 }", "private void exportarXML(){\n \n String nombre_archivo=IO_ES.leerCadena(\"Inserte el nombre del archivo\");\n String[] nombre_elementos= {\"Modulos\", \"Estudiantes\", \"Profesores\"};\n Document doc=XML.iniciarDocument();\n doc=XML.estructurarDocument(doc, nombre_elementos);\n \n for(Persona estudiante : LEstudiantes){\n estudiante.escribirXML(doc);\n }\n for(Persona profesor : LProfesorado){\n profesor.escribirXML(doc);\n }\n for(Modulo modulo: LModulo){\n modulo.escribirXML(doc);\n }\n \n XML.domTransformacion(doc, RUTAXML, nombre_archivo);\n \n }", "@WebService(name = \"CajaUnificadaWeb\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CajaUnificadaWeb {\n\n\n /**\n * \n * @param profileCode\n * @param stationName\n * @param userCode\n * @return\n * returns cl.imperial.cajaunificada.ws.StartupResult\n * @throws CajaUnificadaWebException\n */\n @WebMethod\n @WebResult(name = \"startupResult\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n @RequestWrapper(localName = \"startup\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.Startup\")\n @ResponseWrapper(localName = \"startupResponse\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.StartupResponse\")\n @Action(input = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/startupRequest\", output = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/startupResponse\", fault = {\n @FaultAction(className = CajaUnificadaWebException.class, value = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/startup/Fault/CajaUnificadaWebException\")\n })\n public StartupResult startup(\n @WebParam(name = \"userCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String userCode,\n @WebParam(name = \"profileCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n BigDecimal profileCode,\n @WebParam(name = \"stationName\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String stationName)\n throws CajaUnificadaWebException\n ;\n\n /**\n * \n * @param profileCode\n * @param stationName\n * @param nroInterno\n * @param codEmp\n * @param userCode\n * @return\n * returns cl.imperial.cajaunificada.ws.ValeGetResult\n * @throws CajaUnificadaWebException\n */\n @WebMethod\n @WebResult(name = \"valeGetResult\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n @RequestWrapper(localName = \"valeGet\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.ValeGet\")\n @ResponseWrapper(localName = \"valeGetResponse\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.ValeGetResponse\")\n @Action(input = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/valeGetRequest\", output = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/valeGetResponse\", fault = {\n @FaultAction(className = CajaUnificadaWebException.class, value = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/valeGet/Fault/CajaUnificadaWebException\")\n })\n public ValeGetResult valeGet(\n @WebParam(name = \"userCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String userCode,\n @WebParam(name = \"profileCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n BigDecimal profileCode,\n @WebParam(name = \"stationName\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String stationName,\n @WebParam(name = \"nroInterno\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n int nroInterno,\n @WebParam(name = \"codEmp\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String codEmp)\n throws CajaUnificadaWebException\n ;\n\n /**\n * \n * @param nroInterno\n * @return\n * returns cl.imperial.cajaunificada.ws.RegistraPagoResult\n * @throws CajaUnificadaWebException\n */\n @WebMethod\n @WebResult(name = \"registraPagoResult\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n @RequestWrapper(localName = \"registraPago\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.RegistraPago\")\n @ResponseWrapper(localName = \"registraPagoResponse\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.RegistraPagoResponse\")\n @Action(input = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/registraPagoRequest\", output = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/registraPagoResponse\", fault = {\n @FaultAction(className = CajaUnificadaWebException.class, value = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/registraPago/Fault/CajaUnificadaWebException\")\n })\n public RegistraPagoResult registraPago(\n @WebParam(name = \"nroInterno\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n int nroInterno)\n throws CajaUnificadaWebException\n ;\n\n}", "public void borrarZonaObjetivoMovimiento() {\n\t\t\n\t}", "public void sfDeploy() throws SmartFrogException, RemoteException {\n super.sfDeploy();\n sfLog().info(\"DEPLOYED \"+sfCompleteNameSafe().toString());\n }", "private void moveArquivos(File arquivoOrdem) throws IOException\n\t{\n\t\t/* Busca o nome do diretorio destino definido nas configuracoes */\n\t\tString dirHistorico = getPropriedade(\"ordemVoucher.diretorioHistorico\");\n\t\t\n\t\t/* Move todos os arquivos de caixa da ordem */\n\t\tString arquivosCaixa[] = getNomeArquivosCaixa(arquivoOrdem);\n\t\tfor (int i=0; i < arquivosCaixa.length; i++)\n\t\t{\n\t\t\t/* Cria a referencia para o arquivo origem */\n\t\t\tString dirOrigem = getPropriedade(\"ordemVoucher.dirArquivos\");\n\t\t\tString nomArqOrigem\t= dirOrigem+System.getProperty(\"file.separator\")+arquivosCaixa[i];\n\t\t\tFile arquivoOrigem = new File(nomArqOrigem);\n\t\t\t/* Cria a referencia para o arquivo destino */\n\t\t\tFile arquivoDestino = new File(dirHistorico+System.getProperty(\"file.separator\")+arquivoOrigem.getName());\n\t\t\t/* Move o arquivo origem para destino */\n\t\t\tif (!renomeiaArquivo(arquivoOrigem,arquivoDestino))\n\t\t\t\tSystem.out.println(\"Nao foi possivel mover o arquivo de:\"+arquivoOrigem.getAbsolutePath()+\" para:\"+arquivoDestino.getAbsolutePath());\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Arquivo \"+arquivoOrigem.getName()+\" foi movido para: \"+arquivoDestino.getAbsolutePath());\n\t\t}\n\n\t\t/* Move o arquivo da ordem */\n\t\tFile destino = new File(dirHistorico+System.getProperty(\"file.separator\")+arquivoOrdem.getName());\n\t\tif (!renomeiaArquivo(arquivoOrdem,destino))\n\t\t\tSystem.out.println(\"Nao foi possivel mover o arquivo de:\"+arquivoOrdem.getAbsolutePath()+\" para:\"+destino.getAbsolutePath());\n\t\telse\n\t\t\tSystem.out.println(\"Arquivo \"+arquivoOrdem.getName()+\" foi movido para: \"+destino.getAbsolutePath()); \n\t}", "@Override\n public void writeAll() throws IOException {\n try\n {\n workbook.write(outputStream);\n outputStream.close();\n workbook.dispose();\n }\n catch (IOException io)\n {\n throw new IOException(io);\n }\n }", "public void destory() throws Exception {\n try {\n \tif(conn != null) {\n \tconn.close();\n }\n\t\t} finally {\n\t\t\tif(backupFile != null) {\n\t\t\t\tif(!backupFile.delete()) {\n\t\t\t\t\tbackupFile.deleteOnExit();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n }", "@Override\r\n\tpublic void finishProcess() {\r\n\t\tfor (String soaFolder : this.SOA_Folders) {\r\n\t\t\tString strConfig = soaFolder;\r\n\t\t\tFile f = new File(strConfig + \"/exit\");\r\n\t\t\ttry {\r\n\t\t\t\tf.createNewFile();\r\n\t\t\t} catch (IOException 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\r\n\t\t}\r\n\r\n\t}" ]
[ "0.522185", "0.51703775", "0.51050913", "0.5104005", "0.50481", "0.5036168", "0.5026002", "0.5023595", "0.5021757", "0.49945953", "0.49843517", "0.49572703", "0.49141356", "0.48783052", "0.48661128", "0.48403776", "0.4837216", "0.48164025", "0.47978225", "0.4778406", "0.4776973", "0.47378922", "0.46828726", "0.46528116", "0.4651904", "0.46183202", "0.46162808", "0.46120742", "0.45986015", "0.45732233", "0.45538533", "0.45522594", "0.4547954", "0.45460021", "0.4493588", "0.44913366", "0.44861007", "0.4465167", "0.44518894", "0.4450613", "0.44504905", "0.44439533", "0.44187748", "0.44173986", "0.44128197", "0.44009447", "0.43837887", "0.43831995", "0.4382388", "0.43799856", "0.4376411", "0.43619198", "0.43614325", "0.43578967", "0.43572155", "0.43559882", "0.4355799", "0.43537012", "0.43278107", "0.43206945", "0.43165258", "0.4313983", "0.42892736", "0.42874232", "0.42867118", "0.42841107", "0.4277968", "0.4269566", "0.4268708", "0.42680717", "0.42635703", "0.4262564", "0.4254616", "0.42516497", "0.42447385", "0.4233423", "0.42286196", "0.4225825", "0.4224918", "0.42240027", "0.42223975", "0.4217974", "0.42165318", "0.42137402", "0.42137274", "0.4212576", "0.42093527", "0.42036527", "0.41992065", "0.4199021", "0.4195911", "0.41865414", "0.4185311", "0.41840184", "0.41812485", "0.41809115", "0.41805232", "0.4179476", "0.41735864", "0.41724095", "0.41649157" ]
0.0
-1
actualizar Usuario ws no devuelve nada
public void wsupdate_node(NodeWS node) throws HibernateException { Node node_update = null; try { iniciaOperacion(); node_update = (Node) sesion.get(Node.class,node.getId_node()); //actualizo los camps de la tabla node_update.setMAC_address(node.getMAC_address()); node_update.setNode_name(node.getNode_name()); node_update.setPort_number(node.getPort_number()); sesion.update(node_update); //le pasamos todo el objeto a modificar tx.commit(); } catch (HibernateException he) { manejaExcepcion(he); throw he; } finally { sesion.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void crearUsuarioWS(String name, String login, String pass){\n //JAXBElement<ArrayOfAdministrationResource> arrayAdminRole = obtenerRolesPorNombre(ConstantesWS.ROL_NAME_CLIENTE).;\n \n ObjectFactory fact = new ObjectFactory(); \n //fact.createArrayOfAdministrationRole(obtenerRolesPorNombre(ConstantesWS.ROL_NAME_CLIENTE).);\n \n //fact.createArrayOfint()\n \n //obtenerConexion().getRolesByIds()\n \n //busqueda y seteo del rol de cliente\n ArrayOfint aux =fact.createArrayOfint(); \n aux.getInt().add(Integer.valueOf(181)); //perfil del cliente \n ArrayOfAdministrationRole arrayRole = obtenerConexion().getRolesByIds(aux);\n \n JAXBElement<ArrayOfAdministrationRole> jaxbElementRol;\n jaxbElementRol = fact.createArrayOfAdministrationRole(arrayRole);\n \n //creacion del nuevo usuario con rol cliente\n AdministrationUser user = new AdministrationUser();\n user.setEnabled(Boolean.TRUE);\n user.setMustChangePassword(Boolean.FALSE);\n user.setLastName(fact.createString(name)); \n user.setPassword(fact.createString(pass));\n user.setUserName(fact.createString(login)); \n user.setRoles(jaxbElementRol); \n \n \n //agrego el nuevo usuario\n obtenerConexion().addUser(ConstantesWS.APLICACION_PROVEEDORES, user);\n \n }", "public static void tener_Usuario_activo() {\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='username']\").typeKeys(\"ocastro\");\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='password']\").setText(\"bogota2016\");\n\t\t\t\tdesktop.<DomButton>find(\"//BrowserApplication//BrowserWindow//input[@id='loginbtn']\").click();\n\t\t\t\t//end recording\n\t\t\t\tSerenity.takeScreenshot();\n\t}", "public void actualizarUsuario(Integer id, String nombre, long documento, String email, Boolean activo) throws Exception;", "public void actualizarUsuario(String cedula,String name ,String lastname , String city ,String phone ,String email,String password) throws BLException;", "public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }", "protected void accionUsuario() {\n\t\t\r\n\t}", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "@FXML\n\tpublic void updateMyUser(ActionEvent event) {\n\t\tSystemUser userToUpdate = restaurant.returnUser(LabelSystemUserName.getText());\n\t\tString name = txtSystemUserNewname.getText();\n\t\tString lastName = txtSystemUserNewLastname.getText();\n\t\tString id = txtSystemUserNewId.getText();\n\t\tString username = txtSystemUserNewUsername.getText();\n\n\t\tif (!name.equals(\"\") && !lastName.equals(\"\") && !id.equals(\"\") && !username.equals(\"\")) {\n\n\t\t\ttry {\n\t\t\t\tuserToUpdate.setNames(name);\n\t\t\t\tuserToUpdate.setSurNames(lastName);\n\t\t\t\tuserToUpdate.setIdNumber(id);\n\t\t\t\tuserToUpdate.setUsername(username);\n\t\t\t\tuserToUpdate.setPassword(passwordSystemUserNewPassword.getText());\n\t\t\t\trestaurant.saveUsersData();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Usuario actualizado satisfactoriamente\");\n\t\t\t\tdialog.setTitle(\"Proceso Satisfactorio\");\n\t\t\t\tdialog.show();\n\n\t\t\t\ttxtSystemUserNewname.setText(\"\");\n\t\t\t\ttxtSystemUserNewLastname.setText(\"\");\n\t\t\t\ttxtSystemUserNewId.setText(\"\");\n\t\t\t\ttxtSystemUserNewUsername.setText(\"\");\n\t\t\t\tpasswordSystemUserNewPassword.setText(\"\");\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización del usuario\");\n\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tFXMLLoader opWindow = new FXMLLoader(getClass().getResource(\"Options-window.fxml\"));\n\t\t\t\topWindow.setController(this);\n\t\t\t\tParent opPane = opWindow.load();\n\t\t\t\tmainPaneLogin.getChildren().setAll(opPane);\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 ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "private void actualizaUsuario() {\n\t\t\n\t\tInteger edad=miCoordinador.validarEdad(campoEdad.getText().trim());\n\t\t\n\t\tif (edad!=null) {\n\t\t\t\n\t\t\tUsuarioVo miUsuarioVo=new UsuarioVo();\n\t\t\t//se asigna cada dato... el metodo trim() del final, permite eliminar espacios al inicio y al final, en caso de que se ingresen datos con espacio\n\t\t\tmiUsuarioVo.setDocumento(campoDocumento.getText().trim());\n\t\t\tmiUsuarioVo.setNombre(campoNombre.getText().trim());\n\t\t\tmiUsuarioVo.setEdad(Integer.parseInt(campoEdad.getText().trim()));\n\t\t\tmiUsuarioVo.setProfesion(campoProfesion.getText().trim());\n\t\t\tmiUsuarioVo.setTelefono(campoTelefono.getText().trim());\n\t\t\tmiUsuarioVo.setDireccion(campoDireccion.getText().trim());\n\t\t\t\n\t\t\tString actualiza=\"\";\n\t\t\t//se llama al metodo validarCampos(), este retorna true o false, dependiendo de eso ingresa a una de las opciones\n\t\t\tif (miCoordinador.validarCampos(miUsuarioVo)) {\n\t\t\t\t//si se retornó true es porque todo está correcto y se llama a actualizar\n\t\t\t\tactualiza=miCoordinador.actualizaUsuario(miUsuarioVo);//en registro se almacena ok o error, dependiendo de lo que retorne el metodo\n\t\t\t}else{\n\t\t\t\tactualiza=\"mas_datos\";//si validarCampos() retorna false, entonces se guarda la palabra mas_datos para indicar que hace falta diligenciar los campos obligatorios\n\t\t\t}\n\t\t\t\n\t\t\t//si el registro es exitoso muestra un mensaje en pantalla, sino, se valida si necesita mas datos o hay algun error\n\t\t\tif (actualiza.equals(\"ok\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \" Se ha Modificado Correctamente \",\"Confirmación\",JOptionPane.INFORMATION_MESSAGE);\t\t\t\n\t\t\t}else{\n\t\t\t\tif (actualiza.equals(\"mas_datos\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Debe Ingresar los campos obligatorios\",\"Faltan Datos\",JOptionPane.WARNING_MESSAGE);\t\t\t\n\t\t\t\t}else{\n\t\t JOptionPane.showMessageDialog(null, \"Error al Modificar\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(null, \"Debe ingresar una edad Valida!!!\",\"Advertencia\",JOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t\t\t\t\n\t}", "public void subeUsuario() {\n\t\tEditText nicknameText = (EditText) findViewById(R.id.nicknameEditText);\n\t\tstrNickname = nicknameText.getText().toString().trim();\n\t\t\n\t\tif (strNickname.equals(\"\")) {\n\t\t\tToast.makeText(this, \"Nickname no puede estar vacío\",Toast.LENGTH_LONG).show();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tguardarPreferences();\n\t\t\n\t\t//lanzamos un uploadService\n\t\tIntent uploadService = new Intent(getApplicationContext(),UploadUserService.class);\n\t\t\n\t\tuploadService.putExtra(\"id\", userId);\n\t\tuploadService.putExtra(\"nickname\", strNickname);\n\t\tuploadService.putExtra(\"mail\", strEmail);\n\t\tuploadService.putExtra(\"dob\", dayOfBirth);\n\t\tuploadService.putExtra(\"pass\", strPassword);\n\t\tuploadService.putExtra(\"genero\", gender);\n\t\tuploadService.putExtra(\"avatar\", strAvatar);\n\t\t\n\t\tstartService(uploadService);\n\t}", "private void editUser(){\n getDeviceLocation();\n ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser);\n ServerManager.editUserProfile(userManager,callback);\n }", "public alterarSenhaCliente() {\n }", "private void crearUsuarioWS(RequestParams params){\n prgDialog.show();\n AsyncHttpClient client = new AsyncHttpClient();\n client.post(ws.urlservice+\"registroCliente\", params, new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n prgDialog.dismiss();\n if(statusCode==201){\n //Toast.makeText(getApplicationContext(), \"Registro con Exito!\", Toast.LENGTH_SHORT).show();\n AlertDialog.Builder builder = new AlertDialog.Builder(RegisterActivity.this);\n builder.setTitle(\"Registro con Exito!\");\n builder.setMessage(\"Por favor revise su correo electrónico para verificar su cuenta.\").setPositiveButton(\"ACEPTAR\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n AlertDialog alert = builder.create();\n alert.setCancelable(false);\n alert.show();\n }else{\n Toast.makeText(getApplicationContext(), \"No se pudo guardar el registro!\", Toast.LENGTH_SHORT).show();\n }\n }\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n prgDialog.dismiss();\n Toast.makeText(getApplicationContext(), \"Ocurrio un error con el servidor\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public static void update_TbUser() {\n builder = new Uri.Builder();\n builder.appendQueryParameter(\"username\", Server.owner.get_username());\n builder.appendQueryParameter(\"email\", Server.owner.get_Email());\n builder.appendQueryParameter(\"birthday\", Server.owner.get_Birthday().toString());\n builder.appendQueryParameter(\"gender\", Server.owner.get_gender() ? \"1\" : \"0\");\n builder.appendQueryParameter(\"phone\", Server.owner.get_Phone());\n builder.appendQueryParameter(\"image_source\", Server.owner.get_imageSource());\n builder.appendQueryParameter(\"conversations\", Server.owner.get_AllConversation());\n\n String url = Constant.M_HOST + Constant.M_UPDATE_USER_WITHOUT_PASS;\n String a = uService.execute(builder, url);\n }", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tUsuarioPojo user = null;\r\n\t\t\t\tUsuarioPersistencia up = new UsuarioPersistencia();\r\n\r\n\t\t\t\t//int id = up.obtenerIdEmple();\r\n\t\t\t\tString usuarioMail = txtUsuario.getText();\r\n\t\t\t\tString password = new String(pwdPass.getPassword()); // DNI de momento\r\n\t\t\t\tString passwordC = new String(pwdConfPass.getPassword());\r\n\t\t\t\tString apenom = txtApenom.getText();\r\n\t\t\t\tString dni = txtDni.getText();\r\n\t\t\t\tint numSS = Integer.parseInt(txtSegSoc.getText());\r\n\t\t\t\tString cuenta = txtCuenta.getText();\r\n\r\n\t\t\t\tif (password.equals(passwordC)) {\r\n\t\t\t\t\t// creamos un objeto usuario si coinciden las contraseñas\r\n\t\t\t\t\tuser = new UsuarioPojo(apenom, numSS, cuenta, dni, usuarioMail, password);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (user != null) {\r\n\t\t\t\t\t// insertaremos el usuario si coinciden las contraseñas\r\n\t\t\t\t\tup = new UsuarioPersistencia();\r\n\t\t\t\t\tint res = up.insertarUser(user);\r\n\r\n\t\t\t\t\tif (res == 1) { // se habrá registrado al usuario\r\n\t\t\t\t\t\tSystem.out.println(\"Insertado correctamente\");\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Registro insertado correctamente\",\r\n\t\t\t\t\t\t\t\t\"Resultado del Registro\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\tdispose(); // dispose cierra ventana actual, System.exit(0) sale del programa\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// mostramos msg si no coinciden las contraseñas, manteniendo el control en dreg\r\n\t\t\t\t\tSystem.out.println(\"No insertado\");\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Contraseñas introducidas no coinciden\", \"Error de contraseña\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\t// limpiamos campos de contraseña\r\n\t\t\t\t}\r\n\t\t\t}", "public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "private void actualizarUsuario() {\n\n\n if (!altura_et.getText().toString().isEmpty() && !peso_et.getText().toString().isEmpty() &&\n !email_et.getText().toString().isEmpty() && !nombreUO_et.getText().toString().isEmpty()) {\n\n user.setAltura(Integer.parseInt(altura_et.getText().toString()));\n user.setPeso(Integer.parseInt(peso_et.getText().toString()));\n user.setCorreo(email_et.getText().toString());\n user.setUserID(nombreUO_et.getText().toString());\n\n\n }else\n Toast.makeText(this,\"Comprueba los datos\", Toast.LENGTH_LONG).show();\n\n }", "@OnWebSocketConnect\n public void conectando(Session usuario){\n System.out.println(\"Conectando Usuario: \"+usuario.getLocalAddress().getAddress().toString());\n usuariosConectados.add(usuario);\n }", "@Test\n public void testUsernameChange() {\n final String username = \"[email protected]\";\n // There was a bug related to the Changing of Username, as it failed if\n // the password contained upper/lower case letters. Since IWS followed\n // the rule from IW3 and only looked at Passwords case insensitive.\n final String password = \"Harvey's password which is SUPER secret.\";\n final CreateUserRequest createRequest = new CreateUserRequest(username, password, \"Harvey\", \"Rabbit\");\n final CreateUserResponse createResponse = administration.createUser(token, createRequest);\n assertThat(createResponse.isOk(), is(true));\n\n // To ensure that we can use the account, we have to activate it. Once\n // it is activated, we can move on to the actual test.\n final String activationCode = readCode(NotificationType.ACTIVATE_NEW_USER);\n final Response activateResponse = administration.activateUser(activationCode);\n assertThat(activateResponse.isOk(), is(true));\n\n // Now we have a fresh new account which is active. So we can now try to\n // change the Username. To do this, we have to log in as the user, since\n // only a user may change his/her own username.\n final String newUsername = \"[email protected]\";\n final AuthenticationToken myToken = login(username, password);\n // We're building the request with the user itself as User Object\n final UserRequest updateRequest = new UserRequest(createResponse.getUser());\n // We're setting a new username here, which we can use.\n updateRequest.setNewUsername(newUsername);\n // To update the username, we need to provide some credentials,\n // otherwise the IWS will reject the request. This is needed to ensure\n // that nobody is attempting to hijack an active account.\n updateRequest.setPassword(password);\n // Let's just clear the Spy before we're using it :-)\n final Response updateResponse = administration.controlUserAccount(myToken, updateRequest);\n assertThat(updateResponse.isOk(), is(true));\n // Changing username must work without being logged in, well actually\n // it doesn't matter. As it doesn't use the current Session.\n logout(myToken);\n // Now, we can read out the update Code from the Notifications, which\n // is a cheap way of reading the value from the e-mail that is send.\n final String updateCode = readCode(NotificationType.UPDATE_USERNAME);\n final Response resetResponse = administration.updateUsername(updateCode);\n assertThat(resetResponse.isOk(), is(true));\n\n // Final part of the test, login with the new username, and ensure that\n // the UserId we're getting is the same as the previous Id.\n final AuthenticationToken newToken = login(newUsername, password);\n assertThat(newToken, is(not(nullValue())));\n final FetchPermissionResponse permissionResponse = access.fetchPermissions(newToken);\n assertThat(permissionResponse.isOk(), is(true));\n assertThat(permissionResponse.getAuthorizations().get(0).getUserGroup().getUser().getUserId(), is(createResponse.getUser().getUserId()));\n logout(newToken);\n // And done - Long test, but worth it :-)\n }", "private static void updateUser() {\n\t currentUser = Structure.User(currentUser);\n\t CRUDUsers.compareWithRemote(currentUser).subscribe(new SingleSubscriber<User>() {\n\t\t @Override\n\t\t public void onSuccess(User value) {\n\t\t\t\tConnection.logIn(value);\n\t\t }\n\t\t\n\t\t @Override\n\t\t public void onError(Throwable error) {\n\t\t\t logOff();\n\t\t\t App.showMessage(error.getMessage());\n\t\t }\n\t });\n }", "public void ponerUsuarioInactivo(String idUsuario);", "public void logOut() {\r\n\t\tthis.modoAdmin = false;\r\n\t\tthis.usuarioConectado = null;\r\n\t}", "@Ignore(\"Test is not done yet\")\n @Test\n public void testChangingUsernameToExisting() {\n final UserRequest request = new UserRequest();\n // We're currently logged in as Austria, so we're trying to change the\n // username to Germany.\n request.setNewUsername(\"[email protected]\");\n final Response response = administration.controlUserAccount(token, request);\n assertThat(response.getError(), is(IWSErrors.FATAL));\n }", "public void resetUsuario()\r\n {\r\n this.usuario = null;\r\n }", "private void atualizarUsuario(HttpServletRequest request, HttpServletResponse response) throws SQLException, IOException {\n\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\n\t\tString nome = request.getParameter(\"nome\");\n\t\tString email = request.getParameter(\"email\");\n\t\tint telefone = Integer.parseInt (request.getParameter(\"telefone\"));\n\t\tString nacionalidade = request.getParameter(\"nacionalidade\");\n\n\t\tUsuario book = new Usuario(id, nome, email, telefone, nacionalidade);\n\t\tdao.atualizarUsuario(book);\n\t\tresponse.sendRedirect(\"lista\");\n\t\t\n\t}", "public void registrarAdministrador() throws IOException {\n\n //asignamos al usuario la imagen de perfil default\n usuarioView.setUsuarioFotoRuta(getPathDefaultUsuario());\n usuarioView.setUsuarioFotoNombre(getNameDefaultUsuario());\n\n //Se genera un login y un pass aleatorio que se le envia al proveedor\n MD5 md = new MD5();\n GenerarPassword pass = new GenerarPassword();\n SendEmail email = new SendEmail();\n\n password = pass.generarPass(6);//Generamos pass aleatorio\n\n //Encriptamos las contraseñas\n usuarioView.setUsuarioPassword(md.getMD5(password));//Se encripta la contreseña\n usuarioView.setUsuarioRememberToken(md.getMD5(password));\n\n //el metodo recibe los atributos, agrega al atributo ciudad del objeto usuario un objeto correspondiente, \n //de la misma forma comprueba el rol y lo asocia, por ultimo persiste el usuario en la base de datos\n usuarioView.setSmsCiudad(ciudadDao.consultarCiudad(usuarioView.getSmsCiudad()));//Asociamos una ciudad a un usuario\n usuarioView.setSmsRol(rolDao.consultarRol(usuarioView.getSmsRol()));//Asociamos un rol a un usuario\n usuarioView.setUsuarioEstadoUsuario(1);//Asignamos un estado de cuenta\n usuarioView.setSmsNacionalidad(nacionalidadDao.consultarNacionalidad(usuarioView.getSmsNacionalidad()));\n\n //registramos el usuario y recargamos la lista de clientes\n usuarioDao.registrarUsuario(usuarioView);\n usuariosListView = adminDao.consultarUsuariosAdministradores();\n\n //Enviar correo\n email.sendEmailAdministradorBienvenida(usuarioView, password);\n\n //limpiamos objetos\n usuarioView = new SmsUsuario();\n password = \"\";\n }", "public void zmienDaneUzytkownika() throws SQLException {\n String noweImie = userEdycjaNoweImie.getText().trim();\n String noweNazwisko = userEdycjaNoweNazwisko.getText().trim();\n String nowyEmail = userEdycjaNoweAdresEmail.getText().trim();\n String nowyNumerKontaktowy = userEdycjaNowyNumerKontaktowy.getText().trim();\n\n Driver.editUser(noweImie, noweNazwisko, nowyNumerKontaktowy, nowyEmail);\n }", "@FXML\n\tpublic void register (ActionEvent e) {\n\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", TRUSTTORE_LOCATION);\n\t\tSSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault();\n\t\ttry {\n\t\t\tString email = txtNewEmail.getText();\n\t\t\tString nick = txtNickName.getText();\n\t\t\tString pass1 = passFirstPass.getText();\n\t\t\tString pass2 = passSecondPass.getText();\n\t\t\tif (!pass1.equals(pass2)) {\n\t\t\t\tAlert al = new Alert(AlertType.WARNING);\n\t\t\t\tal.setTitle(\"Contraseña erronea\");\n\t\t\t\tal.setContentText(\"Las contraseñas no coinciden\");\n\t\t\t\tal.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif (email.equals(\"\") || nick.equals(\"\") || pass1.equals(\"\") ) {\n\t\t\t\tAlert al = new Alert(AlertType.WARNING);\n\t\t\t\tal.setTitle(\"Datos en blanco\");\n\t\t\t\tal.setContentText(\"Por favor no deje datos en blanco\");\n\t\t\t\tal.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tsocketToLoginSystem = sf.createSocket(IP_DIRECTION, Server.PORT_RECEIVE);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(socketToLoginSystem.getInputStream()));\n\t\t\tPrintWriter out = new PrintWriter(socketToLoginSystem.getOutputStream(), true);\n\t\t\tout.println(ClientAttendant.REGISTER);\n\t\t\tout.println(email);\n\t\t\tout.println(nick);\n\t\t\tout.println(pass1);\n\t\t\t\n\t\t\tString ans = br.readLine();\n\t\t\tif (ans.equals(ClientAttendant.ACCEPTED)) {\n\t\t\t\tAlert al = new Alert(AlertType.CONFIRMATION);\n\t\t\t\tal.setTitle(\"Usuario registrado exitosamente\");\n\t\t\t\tal.setContentText(\"Se ha creado el usuario con las credenciales indicadas.\");\n\t\t\t\tal.showAndWait();\n\t\t\t} else if (ans.equals(ClientAttendant.ERROR)) {\n\t\t\t\tAlert al = new Alert(AlertType.WARNING);\n\t\t\t\tal.setTitle(\"Error al registrar usuario\");\n\t\t\t\tal.setHeaderText(\"No se puede crear el usuario\");\n\t\t\t\tal.setContentText(br.readLine());\n\t\t\t\tal.showAndWait();\n\t\t\t}\n\t\t} catch (IOException e1) {\n\t\t\tAlert al = new Alert(AlertType.ERROR);\n\t\t\tal.setTitle(\"Error en la conexión\");\n\t\t\tal.setHeaderText(\"Problemas con el servidor\");\n\t\t\tal.setContentText(\"No se ha podido establecer conexión con el servidor de logueo.\");\n\t\t\tal.showAndWait();\n\t\t}\n\t}", "public void updateUsuario(Usuario usuario) {\n\t\t\n\t}", "@Test\n public void t01_buscaAdmin() throws Exception {\n Usuario admin;\n admin = usuarioServico.login(\"administrador\", \".Ae12345\");\n assertNotNull(admin);\n }", "public void actualizarUsuario(UsuarioDto dto){\n\t\tUsuario usuario = usuarioDao.load(dto.getId());\n\t\t\n\t\t// Seteo los valores a actualizar\n\t\tusuario.setNombre(dto.getNombre());\n\t\tusuario.setApellido(dto.getApellido());\n\t\t\n\t\t// Actualizo en la db\n\t\tusuarioDao.update(usuario);\n\t\t\n\t\tlog.info(\"Se actualizo el producto: \" + dto.getId());\n\t}", "public void modificarUsuario(OwlUserVO usuario, boolean pass, List<String> errores) {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tOwlUserDAO OwlDAO = new OwlUserDAO();\n\t\t\tif (pass) {\n\t\t\t\tErrorsStrings.compruebaDatos(usuario, errores);\n\t\t\t\tif (errores.isEmpty()) {\n\t\t\t\t\tPasswordAuthentication passauth = new PasswordAuthentication();\n\t\t\t\t\tString hashpass = passauth.hash(usuario.getPassword());\n\t\t\t\t\tusuario.setPassword(hashpass);\n\t\t\t\t\tOwlDAO.actualizarUsuario(usuario, mysql);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tErrorsStrings.compruebaDatos(usuario, errores);\n\t\t\t\tif (errores.isEmpty()) {\n\t\t\t\t\tOwlDAO.actualizarUsuario(usuario, mysql);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmysql.disconnect();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\n\t}", "public void altaUsuario();", "public void actualizarUsuario(Long idUsr,String nick,String nombres,String pass){\n\t\t\t\t\t //buscamos el objeto que debe ser actualizado:\n\t\t\t\t\t Usuario u = findbyIdUsuario(idUsr);\n\t\t\t\t\t em.getTransaction().begin();\n\t\t\t\t\t // no se actualiza la clave primaria, en este caso solo la descripcion\n\t\t\t\t\t u.setNick(nick);\n\t\t\t\t\t u.setNombres(nombres);\n\t\t\t\t\t u.setPass(pass);\n\t\t\t\t\t em.merge(u);\n\t\t\t\t\t em.getTransaction().commit();\n\t\t\t\t }", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "public void effacerUtilisateur() {\r\n this.modele.effacerUtilisateur(this.modele);\r\n this.modele = new Utilisateurs();\r\n }", "@Override\r\n\tpublic void analizarUsuario() {\n\t\tfor(IAsesoria ia : usuarios) {\r\n\t\t\tia.analizarUsuario();\r\n\t\t}\t\r\n\t}", "private void LoginUsuario(){\n String url=maya.buscarUrlServidor()+\"/app/servicesREST/ws_login.php\";\n Log.d(\"URL Sesion \", url);\n Log.d(\"SESION \", _etNombreUsuario.getEditText().getText().toString().trim()+\" / \"+_etcontrasenia.getEditText().getText().toString().trim());\n\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n try {\n Log.e(\"JSON Usuario\",response);\n JSONObject jsonUsuario = new JSONObject(response);\n //maya.Toast(\"tam \"+jsonUsuario.length());\n if(jsonUsuario.length() > 0){\n //Preguntamos que usuario es el logeado\n switch (Integer.parseInt(jsonUsuario.optString(\"id_rol\"))){\n case 2:\n manejaBD = new HandlerBasedeDatos(getApplicationContext());\n manejaBD.addUsuario(Integer.parseInt(jsonUsuario.optString(\"id_user\")),jsonUsuario.optString(\"id_rol\"),jsonUsuario.optString(\"rol\"),jsonUsuario.optString(\"id_objeto\"),jsonUsuario.optString(\"nombre\")+\" \"+jsonUsuario.optString(\"ap_paterno\")+\" \"+jsonUsuario.optString(\"ap_materno\"),\"https://cdn.pixabay.com/photo/2016/08/08/09/17/avatar-1577909_960_720.png\",_etNombreUsuario.getEditText().getText().toString().trim(),_etcontrasenia.getEditText().getText().toString().trim());\n Intent ma = new Intent(getApplicationContext(),MenuPrincipalActivity.class);\n startActivity(ma);\n break;\n case 3:\n manejaBD = new HandlerBasedeDatos(getApplicationContext());\n manejaBD.addUsuario(Integer.parseInt(jsonUsuario.optString(\"id_user\")),jsonUsuario.optString(\"id_rol\"),jsonUsuario.optString(\"rol\"),jsonUsuario.optString(\"id_objeto\"),jsonUsuario.optString(\"nombre\")+\" \"+jsonUsuario.optString(\"ap_paterno\")+\" \"+jsonUsuario.optString(\"ap_materno\"),\"https://cdn.pixabay.com/photo/2016/08/08/09/17/avatar-1577909_960_720.png\",_etNombreUsuario.getEditText().getText().toString().trim(),_etcontrasenia.getEditText().getText().toString().trim());\n Intent mat = new Intent(getApplicationContext(),MenuTutorActivity.class);\n startActivity(mat);\n break;\n case 4:\n manejaBD = new HandlerBasedeDatos(getApplicationContext());\n manejaBD.addUsuario(Integer.parseInt(jsonUsuario.optString(\"id_user\")),jsonUsuario.optString(\"id_rol\"),jsonUsuario.optString(\"rol\"),jsonUsuario.optString(\"id_objeto\"),jsonUsuario.optString(\"nombre\")+\" \"+jsonUsuario.optString(\"ap_paterno\")+\" \"+jsonUsuario.optString(\"ap_materno\"),\"https://cdn.pixabay.com/photo/2016/08/08/09/17/avatar-1577909_960_720.png\",_etNombreUsuario.getEditText().getText().toString().trim(),_etcontrasenia.getEditText().getText().toString().trim());\n Intent me = new Intent(getApplicationContext(),MenuEstudianteActivity.class);\n startActivity(me);\n break;\n }\n finish();\n }else{\n maya.Toast(\"Comuniquese con su administrador :(\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n maya.toastError(\"No existe respuesta correcta a la peticion\");\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"URLLogin \", error+\"\");\n //maya.Toast(error+\"\");\n maya.toastInfo(\"No existe respuesta para continuar\");\n }\n }){\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String,String> params = new HashMap<String, String>();\n params.put(\"user\",_etNombreUsuario.getEditText().getText().toString().trim());\n params.put(\"password\",_etcontrasenia.getEditText().getText().toString().trim());\n params.put(\"token\", Variables.TOKEN);\n //params.put(\"token\", \"LUIS MIGUEL\");\n return params;\n }\n };\n requestQueue.add(stringRequest);\n }", "@Override\n\tpublic void update(Usuario bean) {\n\t\tif (bean.getSenha().length()<30){\n\t\t\tbean.setSenha(CriptografiaUtil.criptografaString(bean.getSenha()));\n\t\t}\n\t\tsuper.update(bean);\n\t}", "public void wsupdate_user(UserWS user) throws HibernateException \r\n\t\t\t\t{ \r\n\t\t\t\t\tUser user_update = null; \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t try \r\n\t\t\t\t\t { \r\n\t\t\t\t\t iniciaOperacion(); \r\n\t\t\t\t\t user_update = (User) sesion.get(User.class,user.getId_user()); \r\n\t\t\t\t\t \r\n\t\t\t\t\t \r\n\t\t\t\t\t //actualizo los camps de la tabla\r\n\t\t\t\t\t user_update.setLogin(user.getLogin());\r\n\t\t\t\t\t user_update.setMail(user.getLogin());\r\n\t\t\t\t\t user_update.setName(user.getName());\r\n\t\t\t\t\t user_update.setPassword(user.getPassword());;\r\n\t\t\t\t\t user_update.setPhone(user.getPhone());\r\n\t\t\t\t\t user_update.setRole(user.getRole());\r\n\t\t\t\t\t user_update.setDepartment(user.getDepartment());\r\n\t\t\t\t\t \r\n\t\t\t\t\t sesion.update(user_update); //le pasamos todo el objeto a modificar\r\n\t\t\t\t\t tx.commit(); \r\n\t\t\t\t\t } catch (HibernateException he) \r\n\t\t\t\t\t { \r\n\t\t\t\t\t manejaExcepcion(he); \r\n\t\t\t\t\t throw he; \r\n\t\t\t\t\t } finally \r\n\t\t\t\t\t { \r\n\t\t\t\t\t sesion.close(); \r\n\t\t\t\t\t } \r\n\t\t\t\t\t }", "static void effacerEnregistrer(){\n users.clear();\n }", "protected void proccesValues() {\n Users user = new Users();\n user.setName(bean.getName());\n user.setSurname(bean.getSurname());\n user.setUsername(bean.getUsername());\n StrongPasswordEncryptor passwordEncryptor = new StrongPasswordEncryptor();\n String encryptedPassword = passwordEncryptor.encryptPassword(bean.getPassword());\n user.setPassword(encryptedPassword);\n \n usersService.persist(user);\n Notification.show(msgs.getMessage(INFO_REGISTERED), Notification.Type.ERROR_MESSAGE);\n resetValues();\n UI.getCurrent().getNavigator().navigateTo(ViewLogin.NAME);\n }", "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 }", "@FXML\n\tvoid login(ActionEvent event) throws IOException {\n\t\tMessage messageToServer = new Message();\n\t\tString userName = txtUserName.getText();\n\t\tString password = txtPassword.getText();\n\t\t// check that user put details\n\t\tif (userName.trim().isEmpty() || password.trim().isEmpty())\n\t\t\tlblErr.setText(\"User Name or Password is missing\");\n\t\telse {\n\t\t\tlblErr.setText(\"\");\n\t\t\t// create new Message object with the request\n\t\t\tmessageToServer.setMsg(userName + \" \" + password);\n\t\t\tmessageToServer.setOperation(\"isUserExists\");\n\t\t\tmessageToServer.setControllerName(\"UserController\");\n\t\t\t// the result User instance\n\t\t\tuser = (User) ClientUI.client.handleMessageFromClientUI(messageToServer);\n\t\t\t// user isn't exists in DB\n\t\t\tif (user == null) { // create pop up alert\n\t\t\t\tlblErr.setText(\"User Name or Password is incorrect\");\n\t\t\t}\n\t\t\t// user already log in\n\t\t\telse if (user.isLogedIN() == true) { // create pop up alert\n\t\t\t\tlblErr.setText(\"User already logged in\");\n\t\t\t} else { // user logged in successfully\n\t\t\t\tmessageToServer.setMsg(userName);\n\t\t\t\tmessageToServer.setOperation(\"updateConnectionStatus\");\n\t\t\t\tmessageToServer.setControllerName(\"UserController\");\n\t\t\t\t// update the user's connection status\n\t\t\t\tClientUI.client.handleMessageFromClientUI(messageToServer);\n\t\t\t\t// navigate user to the right home page, by his permission\n\t\t\t\tswitch (user.getUserType()) {\n\t\t\t\tcase STUDENT:\n\t\t\t\t\tNavigator.instance().navigate(\"StudentHomeForm\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase TEACHER:\n\t\t\t\t\tNavigator.instance().navigate(\"TeacherHomeForm\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase PRINCIPAL:\n\t\t\t\t\tNavigator.instance().navigate(\"PrincipalHomeForm\");\n\t\t\t\t\tbreak;\n\t\t\t\t} // end switch case\n\t\t\t}\n\t\t}\n\t}", "@FXML private void setToNewUser(){\n\t\tshowPassword();\n\t\tclearFields();\n\t\thideLackMessages();\n\t\tchangeCancelButton.setText(\"Anuluj\");\n\t\tnewUser = true;\n\t}", "public long wsadd_user( UserWS user)\r\n\t\t{ \r\n\t\t\t\r\n\t\t\tlong id = 0; //id de la tabla user (único) \r\n\t\t\t\r\n\t\t \r\n\t\t User userH = new User(user.getLogin(),user.getPassword(),user.getRole(),user.getName(),user.getPhone(),user.getDepartment());\r\n\t\t \r\n\t\t //User cliente1 = new User(\"[email protected]\", \"gutie33\", 1, \"Luis\",\"677899876\", \"Informatica\"); \r\n\t\t \r\n\t\t try \r\n\t\t { \r\n\t\t iniciaOperacion(); \r\n\t\t \r\n\t\t id= (Long) sesion.createQuery(\"SELECT u.id_company FROM Company u WHERE u.company_name ='\"+user.getName_company()+\"'\").uniqueResult();\r\n\t\t Company x = (Company) sesion.load(Company.class, id);\r\n\t\t x.addUsuario(userH);\r\n\t\t \r\n\t\t\t userH.setCompany(x);\r\n\t\t \r\n\t\t //sesion.update(compx);\r\n\t\t \r\n\t\t \r\n\t\t //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t\t tx.commit(); \r\n\t\t }catch(HibernateException he) \r\n\t\t { \r\n\t\t manejaExcepcion(he);\r\n\t\t throw he; \r\n\t\t }finally \r\n\t\t { \r\n\t\t \t//Busqueda del id con qu elo ha introducido a la BBDD\r\n\t\t \tid= (Long) sesion.createQuery(\"SELECT u.id_user FROM User u WHERE u.mail ='\"+user.getLogin()+\"'\").uniqueResult();\r\n\t\t sesion.close(); \r\n\t\t } \r\n\t\t return id; \r\n\t\t}", "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 }", "private void actualitzaPasswd(String nou){\n user.setPasswd(nou);\n try{\n helperU.actualitzar(user, false);\n \n info(\"Contrasenya actualitzada!\");\n }catch(Exception ex){\n avis(\"Error al actualitzar la contrasenya!\");\n }\n }", "@RequestMapping(value = \"/modificarusuarioisoft\", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)\n public CommonsResponse modifyuser(@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 /*Log.getInstance().debug(ModulesIsoft.ISOFT_PROFILE.getCodigo(), mapConfiguration.get(MAP_USER_TRANSACTION), \"Se validan los parametros de entrada.\");\n GatewayBaseBean.validarParametrosGenericos(request.getUsuario(), request.getNombres());\n GatewayBaseBean.validarEmail(request.getCorreo());\n Usuarios user = GatewayBaseBean.clonUsersRequest(request);*/\n\n userServices.modifyUser(mapConfiguration, new Usuarios());\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 [modificarusuarioisoft], 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 [modificarusuarioisoft].\", ex);\n return response;\n }\n catch (Exception ex)\n {\n logger.warn(\"Error Generico en WS [modificarusuarioisoft].\", ex);\n GatewayBaseBean.matchToResponses(response);\n return response;\n }\n logger.info(\"Se retorna respuesta efectiva del WS [modificarusuarioisoft].\");\n return response.toOk();\n }", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "@Listen(\"onChange = #txtUsuario; onOK = #txtUsuario\")\r\n\tpublic void buscarPorLogin() {\r\n\t\tUsuario usuario = servicioUsuario.buscarPorLogin(txtUsuario.getValue());\r\n\t\tif (usuario != null)\r\n\t\t\tllenarCamposUser(usuario);\r\n\t\telse {\r\n\t\t\tmsj.mensajeAlerta(Mensaje.noHayRegistros);\r\n\t\t\tidUser = \"TODOS\";\r\n\t\t\ttxtUsuario.setValue(\"TODOS\");\r\n\t\t\tlblUsuario.setValue(\"TODOS\");\r\n\t\t\ttxtUsuario.setFocus(true);\r\n\t\t}\r\n\t}", "@Override\n\tpublic Usuario modificar() {\n\t\tLOG.info(\"Se modifico el usuario de la bd\");\n\t\treturn usuario;\n\t}", "public void createUtilisateur(UtilisateurBean u) {\n\t}", "private void action_login_utente(HttpServletRequest request, HttpServletResponse response) throws IOException{\n //recupero credenziali di login\n String email = SecurityLayer.addSlashes(request.getParameter(\"email\").toLowerCase());\n email = SecurityLayer.sanitizeHTMLOutput(email);\n String password = SecurityLayer.addSlashes(request.getParameter(\"password\"));\n password = SecurityLayer.sanitizeHTMLOutput(password);\n if(!email.isEmpty() && !password.isEmpty()){\n try {\n //recupero utente dal db\n Utente u = ((PollwebDataLayer)request.getAttribute(\"datalayer\")).getUtenteDAO().getUtenteByEmail(email);\n //controllo che l'utente esista\n if(u != null){\n //controllo i parametri\n if(u.getEmail().equalsIgnoreCase(email) && new BasicPasswordEncryptor().checkPassword(password, u.getPassword())){\n //se l'utente esiste ed è lui\n\n request.setAttribute(\"userName\", u.getNome());\n request.setAttribute(\"user_id\", u.getId());\n System.out.println(u.getId());\n\n SecurityLayer.createSession(request, u.getId());\n\n if (request.getParameter(\"referrer\") != null) {\n response.sendRedirect(request.getParameter(\"referrer\"));\n } else {\n response.sendRedirect(\"/home\");\n }\n }else{\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n request.setAttribute(\"error\", \"Credenziali errate\");\n response.sendRedirect(\"/login?error=100\");\n }\n }\n\n }else{\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login&error=102\");\n }\n }\n }catch (DataException ex) {\n //TODO Handle Exception\n\n }\n } else {\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login?error=101\");\n }\n }\n }", "private void LoginOwner() {\n Transaksi.setEnabled(false);\n Transaksi.setVisible(false);\n }", "@Override\r\n public void modificarUsuario(User u) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "private void serchUser() {\n if (!userNameTextField.getText().isEmpty() && !passwordPasswordField.getText().isEmpty()) {\n try {\n User user = UserController.searchUserByUserName(userNameTextField.getText());\n if (user != null) {\n if (passwordPasswordField.getText().equals(user.getPassword())) {\n closeFadeOut();\n Hi hi = new Hi();\n hi.setUser(user);\n hi.setVisible(true);\n dispose();\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect username or password !\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect username or password !\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n\n } catch (ClassNotFoundException ex) {\n ex.printStackTrace();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Please enter username and password\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n\n }", "public Login() {\n initComponents();\n this.setTitle(\"Login\");\n this.setLocationRelativeTo(null);\n this.pack();\n // Asignanado objecto\n adminUsers = new usuarioAdmin();\n \n // No hay inicializacion de usuarios\n sys.us[0] = new Usuario();\n sys.us[0].setId(\"admin\");\n sys.us[0].setNombre(\"admin\");\n sys.us[0].setApellido(\"admin\");\n sys.us[0].setUser(\"admin\");\n sys.us[0].setPassword(\"admin\");\n sys.us[0].setRol(\"admin\");\n }", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n \r\n }", "public void inicializar() {\r\n\t\ttry {\r\n\t\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\t\tUIManager.setLookAndFeel(\"com.jtattoo.plaf.hifi.HiFiLookAndFeel\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tgetContentPane().setLayout(null);\r\n\r\n\t\tlblUsuario = new JLabel(\"Mail Empleado:\");\r\n\t\tlblUsuario.setBounds(40, 40, 124, 20);\r\n\t\tgetContentPane().add(lblUsuario);\r\n\r\n\t\tlblPass = new JLabel(\"Contraseña:\");\r\n\t\tlblPass.setBounds(40, 72, 124, 20);\r\n\t\tgetContentPane().add(lblPass);\r\n\r\n\t\tlblConfPass = new JLabel(\"Confirmación Contraseña:\");\r\n\t\tlblConfPass.setBounds(40, 104, 220, 20);\r\n\t\tgetContentPane().add(lblConfPass);\r\n\r\n\t\ttxtUsuario = new JTextField();\r\n\t\ttxtUsuario.setBounds(275, 40, 138, 20);\r\n\t\tgetContentPane().add(txtUsuario);\r\n\t\ttxtUsuario.setColumns(10);\r\n\r\n\t\tpwdPass = new JPasswordField();\r\n\t\tpwdPass.setEchoChar('*'); // quitamos valor\r\n\t\tpwdPass.setBounds(275, 72, 138, 20);\r\n\t\tgetContentPane().add(pwdPass);\r\n\r\n\t\tpwdConfPass = new JPasswordField();\r\n\t\tpwdConfPass.setEchoChar('*');\r\n\t\tpwdConfPass.setBounds(275, 104, 138, 20);\r\n\t\tgetContentPane().add(pwdConfPass);\r\n\r\n\t\tbtnRegistrar = new JButton(\"Registrar\");\r\n\t\tbtnRegistrar.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t// recuperamos los datos introducidos y los volcamos en BD\r\n\t\t\t\tUsuarioPojo user = null;\r\n\t\t\t\tUsuarioPersistencia up = new UsuarioPersistencia();\r\n\r\n\t\t\t\t//int id = up.obtenerIdEmple();\r\n\t\t\t\tString usuarioMail = txtUsuario.getText();\r\n\t\t\t\tString password = new String(pwdPass.getPassword()); // DNI de momento\r\n\t\t\t\tString passwordC = new String(pwdConfPass.getPassword());\r\n\t\t\t\tString apenom = txtApenom.getText();\r\n\t\t\t\tString dni = txtDni.getText();\r\n\t\t\t\tint numSS = Integer.parseInt(txtSegSoc.getText());\r\n\t\t\t\tString cuenta = txtCuenta.getText();\r\n\r\n\t\t\t\tif (password.equals(passwordC)) {\r\n\t\t\t\t\t// creamos un objeto usuario si coinciden las contraseñas\r\n\t\t\t\t\tuser = new UsuarioPojo(apenom, numSS, cuenta, dni, usuarioMail, password);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (user != null) {\r\n\t\t\t\t\t// insertaremos el usuario si coinciden las contraseñas\r\n\t\t\t\t\tup = new UsuarioPersistencia();\r\n\t\t\t\t\tint res = up.insertarUser(user);\r\n\r\n\t\t\t\t\tif (res == 1) { // se habrá registrado al usuario\r\n\t\t\t\t\t\tSystem.out.println(\"Insertado correctamente\");\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Registro insertado correctamente\",\r\n\t\t\t\t\t\t\t\t\"Resultado del Registro\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\tdispose(); // dispose cierra ventana actual, System.exit(0) sale del programa\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// mostramos msg si no coinciden las contraseñas, manteniendo el control en dreg\r\n\t\t\t\t\tSystem.out.println(\"No insertado\");\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Contraseñas introducidas no coinciden\", \"Error de contraseña\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\t// limpiamos campos de contraseña\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnRegistrar.setBounds(305, 285, 90, 23);\r\n\t\tgetContentPane().add(btnRegistrar);\r\n\r\n\t\tchckbxMostrarPass1 = new JCheckBox(\"Mostrar contraseña\");\r\n\t\tchckbxMostrarPass1.setBounds(470, 71, 175, 23);\r\n\t\t// añadimos un listener para poder mostrar la contraseña como texto\r\n\t\tchckbxMostrarPass1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (chckbxMostrarPass1.isSelected()) {\r\n\t\t\t\t\tpwdPass.setEchoChar((char) 0);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpwdPass.setEchoChar('*');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tgetContentPane().add(chckbxMostrarPass1);\r\n\r\n\t\tchckbxMostrarPass2 = new JCheckBox(\"Mostrar contraseña\");\r\n\t\tchckbxMostrarPass2.setBounds(470, 103, 175, 23);\r\n\t\tchckbxMostrarPass2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (chckbxMostrarPass2.isSelected()) {\r\n\t\t\t\t\tpwdConfPass.setEchoChar((char) 0);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpwdConfPass.setEchoChar('*');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tgetContentPane().add(chckbxMostrarPass2);\r\n\r\n\t\tlblApenom = new JLabel(\"Nombre y Apellidos:\");\r\n\t\tlblApenom.setBounds(40, 136, 220, 20);\r\n\t\tgetContentPane().add(lblApenom);\r\n\r\n\t\ttxtApenom = new JTextField();\r\n\t\ttxtApenom.setBounds(275, 136, 270, 20);\r\n\t\tgetContentPane().add(txtApenom);\r\n\t\ttxtApenom.setColumns(10);\r\n\r\n\t\tlblSegSoc = new JLabel(\"Nº Seguridad Social:\");\r\n\t\tlblSegSoc.setBounds(40, 200, 220, 20);\r\n\t\tgetContentPane().add(lblSegSoc);\r\n\r\n\t\ttxtSegSoc = new JTextField();\r\n\t\ttxtSegSoc.setBounds(275, 200, 138, 20);\r\n\t\tgetContentPane().add(txtSegSoc);\r\n\t\ttxtSegSoc.setColumns(10);\r\n\r\n\t\tlblCuenta = new JLabel(\"Nº Cuenta Bancaria:\");\r\n\t\tlblCuenta.setBounds(40, 232, 200, 20);\r\n\t\tgetContentPane().add(lblCuenta);\r\n\r\n\t\ttxtCuenta = new JTextField();\r\n\t\ttxtCuenta.setBounds(275, 232, 138, 20);\r\n\t\tgetContentPane().add(txtCuenta);\r\n\t\ttxtCuenta.setColumns(10);\r\n\r\n\t\tlblDniUser = new JLabel(\"DNI:\");\r\n\t\tlblDniUser.setBounds(40, 168, 124, 20);\r\n\t\tgetContentPane().add(lblDniUser);\r\n\r\n\t\ttxtDni = new JTextField();\r\n\t\ttxtDni.setColumns(10);\r\n\t\ttxtDni.setBounds(275, 168, 138, 20);\r\n\t\tgetContentPane().add(txtDni);\r\n\r\n\t\t// cambiamos EXIT por DISPOSE, porque solo queremos que cierre esta ventana, no\r\n\t\t// que me salga del programa definitivamente\r\n\t\tsetDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\r\n\t\tsetBounds(250, 250, 700, 380);\r\n\t\tthis.setLocationRelativeTo(null); // para que centre en pantalla\r\n\t}", "public boolean verificarUsuario(){\n boolean estado = false;\n try{\n this.usuarioBean = (Dr_siseg_usuarioBean) this.manejoFacesContext.obtenerObjetoSession(\"usuario\");\n if(this.usuarioBean != null){\n estado = true;\n if (this.usuarioBean.getRoll().equals(\"GRP_SERVAGTMII_ADMIN\")){\n modoAdministrador=true;\n// this.usuarioRoll=\"ADMIN\";\n// this.disableBotonFinalizar=\"false\";\n// this.visibleImprimirComprobanteEncargado=\"true\";\n// this.visibleImprimirComprobanteEstudiante=\"true\";\n \n\n }else{\n if (this.usuarioBean.getRoll().equals(\"GRP_SERVAGTMII_PF1\")){\n modoAdministrador=true;\n// this.usuarioRoll=\"PF1\";\n// this.disableBotonFinalizar=\"true\";\n// this.visibleImprimirComprobanteEncargado=\"false\";\n// this.visibleImprimirComprobanteEstudiante=\"true\";\n \n }\n }\n\n }else{\n this.manejoFacesContext.redireccionarFlujoWeb(\"/WebAppSLATE/LogoutServlet\" );\n }\n }catch(Exception ex){\n this.manejoFacesContext.redireccionarFlujoWeb(\"/WebAppSLATE/LogoutServlet\" );\n // this.manejoFacesContext.redireccionarFlujoWeb(\"/WebAppMADEB/cr.ac.una.reg.info.contenido/moduloFuncionario/estudiante/e_editarDireccion.jspx\");\n }//\n return estado;\n }", "protected void changeUser(String username) throws Exception {\n if(username == null) {\n username = TestConfig.getUsername();\n }\n configuration.setUserName(username);\n client = createDefaultClient();\n }", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "public void setUsuario(java.lang.String newUsuario);", "private void metodoSalvarUsuarioFirebase(final Usuarios variavelClasseUsuarios) {\n\n refAutenticacaofb = ConfiguracaoFirebase.metodoAutenticacaoFirebase();\n refAutenticacaofb.createUserWithEmailAndPassword(variavelClasseUsuarios.getEmail(),\n variavelClasseUsuarios.getSenha()).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if(task.isSuccessful()){\n\n idUsuario = task.getResult().getUser().getUid();\n variavelClasseUsuarios.setId(idUsuario);\n variavelClasseUsuarios.salvarUsuario();\n\n if(pegarTipoUsuarioSwitch() == \"Cliente\"){\n\n startActivity(new Intent(CadastroUsuario.this, Home.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Usuário salvo com sucesso\", Toast.LENGTH_LONG).show();\n }else{\n\n startActivity(new Intent(CadastroUsuario.this, PainelEmpresa.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Empresa inserida com sucesso!\", Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n\n\n }\n });\n\n }", "@FXML\n\tprivate void handleConnection() {\n\t\tString pseudo = this.nickName.getText();\n\t\tif (pseudo != null && !pseudo.equals(\"\")) {\n\t\t\tUser user = new User(pseudo);\n\t\t\tthis.mainApp.setUser(user);\n\t\t\t//Un fois que l'utilisateur a été créé dans la main ap, on peut appeler la méthode de connection\n\t\t\tthis.mainApp.connect();\n\t\t}\n\t\telse {\n\t\t\t\n\t\t}\n\t}", "private void entrar() {\n\n Connection con = Conexao.abrirConexao();\n UsuarioDAO ud = new UsuarioDAO(con);\n String login = txtLOGIN.getText();\n String senha = txtSENHA.getText();\n String nome;\n\n if (txtLOGIN.getText().equals(\"admin\")) {\n nome = \"Administrador\";\n } else {\n nome = ud.retornarUsuario(login);\n }\n\n if (/*ud.logar(login, senha) == 0 ||*/ login.equals(\"admin\") && senha.equals(\"admin\")) {\n lblERRO.setText(\"\");\n JFrame principal = new frm_PRINCIPAL(login, nome);\n this.dispose();\n principal.setVisible(true);\n\n } else {\n\n lblERRO.setText(\"Usuário e/ou Senha Inválidos!\");\n }\n Conexao.fecharConexao(con);\n }", "public void updateName() {\n try {\n userFound = clientefacadelocal.find(this.idcliente);\n if (userFound != null) {\n userFound.setNombre(objcliente.getNombre());\n clientefacadelocal.edit(userFound);\n objcliente = new Cliente();\n mensaje = \"sia\";\n } else {\n mensaje = \"noa\";\n System.out.println(\"Usuario No Encontrado\");\n }\n } catch (Exception e) {\n mensaje = \"noa\";\n System.out.println(\"El error al actualizar el nombre es \" + e);\n }\n }", "public String updateUser(){\n\t\tusersservice.update(usersId, username, password, department, role, post, positionId);\n\t\treturn \"Success\";\n\t}", "public void registrar() {\n try {\r\n do {\r\n //totalUsuarios = this.registraUnUsuario(totalUsuarios);\r\n this.registraUnUsuario();\r\n } while (!this.salir());\r\n } catch (IOException e) {\r\n flujoSalida.println(\"Error de entrada/salida, finalizará la aplicación.\");\r\n }\r\n flujoSalida.println(\"Total usuarios registrados: \"+totalUsuarios);\r\n }", "private void setUsuario(Element element) {\r\n\t\tUsuario user = (Usuario)Contexts.getSessionContext().get(\"user\");\r\n\t\t\r\n\t\tElement usuario = new Element(\"N_UsuarioAlta\");\r\n\t\tElement uniqueKey = new Element(\"uniqueKey\");\r\n\t\tuniqueKey.setAttribute(\"login_name\", user.getUsername());\r\n\t\tuniqueKey.setAttribute(\"campoCQ\", \"login_name\");\r\n\t\tuniqueKey.setAttribute(\"entidadCQ\", \"users\");\r\n\t\tusuario.addContent(uniqueKey);\r\n\t\telement.addContent(usuario);\r\n\t}", "@POST(\"/Reset\")\n\tint resetUser();", "public adminUsuarios() {\n initComponents();\n showUsuarios();\n }", "public Usuario() {\n initComponents();\n setLocationRelativeTo(null);\n refrescar();\n }", "public void save() {\r\n\t\tString checkQuery = \"SELECT * FROM users WHERE id = \" + this.id;\r\n\t\tStatement stm;\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\tconnection = DBConnection.getConnection();\r\n\t\t\tstm = connection.createStatement();\r\n\t\t\trs = stm.executeQuery(checkQuery);\r\n\t\t\t// istnieje już ten obiekt - update\r\n\t\t\tif (rs.first()) {\r\n\t\t\t\tString query = \"UPDATE users SET name = \" + toStringOrNULL(name)\r\n\t\t\t\t\t\t+ \", password = \" + toStringOrNULL(password)\r\n\t\t\t\t\t\t+ \", is_admin = \" + isAdmin \r\n\t\t\t\t\t\t+ \", removed_at = \" + toStringOrNULL(removedAt) \r\n\t\t\t\t\t\t+ \" WHERE id = \" + getId();\r\n\t\t\t\texecuteNonReturningQuery(query);\r\n\t\t\t}\r\n\t\t\t// jeszcze go nie ma - zapis nowego\r\n\t\t\telse {\r\n\t\t\t\tString query = \"INSERT INTO users (name, password, removed_at, is_admin) VALUES (\"\r\n\t\t\t\t\t\t+ toStringOrNULL(name) + \", \"\r\n\t\t\t\t\t\t+ toStringOrNULL(password) + \", \"\r\n\t\t\t\t\t\t+ toStringOrNULL(removedAt) + \", \"\r\n\t\t\t\t\t\t+ isAdmin + \")\";\r\n\t\t\t\texecuteNonReturningQuery(query);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tconnection.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static void updateUserTest(Connection conn) {\n\t\t\n\t\ttry {\n\t\t\tUser existingUser = User.loadUserById(conn, 3); // User user = User.loadUserById(conn, 3);\n\t\t\t// the same id is preserved\n\t\t\texistingUser.setUsername(\"jo\");\n\t\t\texistingUser.setEmail(\"[email protected]\");\n\t\t\texistingUser.setUserGroupId(2);\n\t\t\texistingUser.saveToDB(conn);\n\t\t\t\n\t\t\t/*Następnie\tnależy\tsprawdzić,\tczy:\n\t\t\t\t1.\t Czy\twpis\tw\tbazie\tdanych\tma\twszystkie\n\t\t\t\tdane\todpowiednio\tponastawiane?\n\t\t\t\t2.\t Czy\tobiekt\tma\tnastawione\tpoprawne\tid? - czyli niezmienione, bo nie mamy settera dla id\n\t\t\t\t3.\t Czy\tnie\tdodał\tsię\tnowy\twpis\tw\tbazie?*/\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}", "public void enviaMensaje(Usuario usuario, Usuario acusado,\n Comentario c, Puesto pst) {\n /* La cuenta que se usa para autenticarse en el servidor de correo. */\n try {\n LinkedList<Usuario> us = new LinkedList<Usuario>(\n new FabricaControladorJpa().obtenerControladorJpaUsuario()\n .findUsuarioEntities());\n Usuario admin = null;\n for (Usuario u : us) {\n if (u.getEsAdministrador()) {\n admin = u;\n break;\n }\n }\n final String usuarioCorreo;\n final String contrasena;\n String direccion;\n Session sesionEmail;\n String nombre;\n String archivoPropiedadesAutenticacion =\n \"WEB-INF/autenticacion-correo.properties\";\n FacesContext facesContext = FacesContext.getCurrentInstance();\n ExternalContext externalContext = facesContext.getExternalContext();\n try (InputStream is = externalContext\n .getResourceAsStream(archivoPropiedadesAutenticacion)) {\n Properties prop = new Properties();\n prop.load(is);\n\n usuarioCorreo = prop.getProperty(\"usuario\");\n contrasena = prop.getProperty(\"contrasena\");\n nombre = prop.getProperty(\"nombre\");\n direccion = prop.getProperty(\"correo\");\n }\n\n String archivoPropiedadesCorreo = \"WEB-INF/correo.properties\";\n try (InputStream is = externalContext\n .getResourceAsStream(archivoPropiedadesCorreo)) {\n Properties prop = new Properties();\n prop.load(is);\n Authenticator autenticador =\n new Authenticator() {\n @Override\n protected PasswordAuthentication\n getPasswordAuthentication() {\n PasswordAuthentication pa\n = new PasswordAuthentication(usuarioCorreo,\n contrasena);\n return pa;\n }\n };\n sesionEmail = Session.getInstance(prop, autenticador);\n }\n\n MimeMessage mensaje = new MimeMessage(sesionEmail);\n\n String remitente = String.format(\"%s <%s>\",\n \"Administracion-auto\", direccion);\n String recipiente = String.format(\"%s <%s>\",\n \"Administracion-auto\",\n admin.getCorreoElectronico() + \"ciencias.unam.mx\");\n mensaje.setFrom(remitente);\n mensaje.addRecipients(Message.RecipientType.TO, recipiente);\n mensaje.setSubject(\"SCPFC - Comentario inapropiado u ofensivo\");\n\n String textoMensaje = \"El mensaje con id <\"\n + c.getId()\n + \"> de fecha <\"\n + c.getFecha()\n + \"> del usuario <\"\n + acusado.getNombre()\n + \"> ha sido considerado ofensivo por el usuario <\"\n + usuario.getNombre()\n + \">\\n\\nREVISA EL COMENTARIO\\n\";\n String uri = ((HttpServletRequest) externalContext.getRequest())\n .getRequestURI();\n mensaje.setText(textoMensaje\n + obtenerDireccionBase()\n + uri\n + \"?id=\"\n + pst.getId());\n Transport.send(mensaje);\n FacesMessage facesMessage\n = new FacesMessage(FacesMessage.SEVERITY_INFO,\n \"REPORTE ENVIADO\", \"\");\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\n } catch (MessagingException e) {\n FacesMessage facesMessage\n = new FacesMessage(FacesMessage.SEVERITY_ERROR,\n \"ERROR GRAVE\", e.getMessage());\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\n } catch (Exception k) {\n FacesMessage facesMessage\n = new FacesMessage(FacesMessage.SEVERITY_ERROR,\n \"ERROR GRAVE\", k.getMessage());\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\n }\n }", "@Override\n\tpublic int update(Usuario us) {\n\t\tString SQL =\"update user set nomuser = ?, passuser =?\";\n\t\treturn jdbc.update(SQL, us.getUsername(), us.getPassword());\n\t}", "public void Usuarios() {\n\t\r\n}", "public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n }", "public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n }", "public abstract void setUsuario(\n\t\tco.com.telefonica.atiempo.ejb.eb.UsuarioLocal anUsuario);", "public void logout() {\n\n if (WarehouseHelper.warehouse_reserv_context.getUser().getId() != null) {\n //Save authentication line in HisLogin table\n HisLogin his_login = new HisLogin(\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName()\n + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + WarehouseHelper.warehouse_reserv_context.getUser().getLogin(),\n GlobalVars.APP_HOSTNAME, GlobalMethods.getStrTimeStamp()));\n his_login.setCreateId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n his_login.setWriteId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n\n String str = String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName() + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + PackagingVars.context.getUser().getLogin(), GlobalVars.APP_HOSTNAME,\n GlobalMethods.getStrTimeStamp());\n his_login.setMessage(str);\n\n str = \"\";\n his_login.create(his_login);\n\n //Reset the state\n state = new S001_ReservPalletNumberScan();\n\n this.clearContextSessionVals();\n\n connectedUserName_label.setText(\"\");\n }\n\n }", "public void enviaMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=4\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}", "private void NuevoUsuario(String IDFacebook, Usuarios nuevo)\n {\n final String szIDFacebook = IDFacebook;\n\n // Guardamos los datos del nombre del usuario\n Helpers.setNombre(getActivity(), nuevo.NOMBRE);\n\n // Datos de la solicitud\n cliente.post(getActivity(), Helpers.URLApi(\"nuevousuario\"), Usuarios.ToStringEntity(nuevo), \"application/json\", new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n super.onSuccess(statusCode, headers, responseBody);\n\n try\n {\n // Obtenemos el objeto JSON\n JSONObject objeto = Helpers.ResponseBodyToJSON(responseBody);\n\n // Si está OK\n if (objeto.isNull(\"Error\"))\n {\n // Guardamos el token del usuario\n Helpers.setTokenAcceso(getActivity(), objeto.getJSONObject(\"usuario\").getString(\"token\"));\n\n // Guardamos el nombre del usuario\n Helpers.setNombre(getActivity(), objeto.getJSONObject(\"usuario\").getString(\"nombre\"));\n\n // Subimos la foto del usuario\n GetPictureFacebook(szIDFacebook, objeto.getJSONObject(\"usuario\").getString(\"imagen\"));\n }\n else\n {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), objeto.getString(\"Error\"));\n }\n } catch (JSONException ex) {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), getString(R.string.notcreateuser));\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), getString(R.string.notcreateuser));\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 }", "private void updateUserWithoutPassword() throws ClassNotFoundException, NoSuchAlgorithmException{\n\t\tint currentPositionInTableView = usersTable.getSelectionModel().getSelectedIndex(); // zapamiętaj bieżące podświetlenie w tabeli\n\t\tif ((isAllFieldsAreFull()) \n\t\t\t\t&& (isLoginUnique(usersTable.getSelectionModel().getSelectedItem().getId()))){\t\n\t\t\t\t\tMain.getMMUser().update(\t\t\t\t \n\t\t\t\t\t\t\tnew User(\n\t\t\t\t\t\t\t\t\tusersTable.getSelectionModel().getSelectedItem().getId(),\n\t\t\t\t\t\t\t\t\tuserLoginField.getText(), \n\t\t\t\t\t\t\t\t\tusersTable.getSelectionModel().getSelectedItem().getPassword(), \n\t\t\t\t\t\t\t\t\tuserNameField.getText(), \n\t\t\t\t\t\t\t\t\tuserLastNameField.getText(), \n\t\t\t\t\t\t\t\t\tpermission,\n\t\t\t\t\t\t\t\t\teditingCheck.isSelected(),\n\t\t\t\t\t\t\t\t\treminderCheck.isSelected()));\n\t\t\t\t\t// pokaż aktualny stan bazy pracowników\n\t\t\t\t\treadUsers();\n\t\t\t\t\tshowUsers();\n\t\t\t\t\tusersTable.getSelectionModel().select(currentPositionInTableView); // ustaw podswietlenie na bieżący wiersz\n\t\t\t\t\tnew AlertDialog(\"Operacja zakończona\", \"Zaktualizowano dane\", AlertType.INFORMATION);\n\t\t}\n\t}", "public void UserServiceTest_Edit()\r\n {\r\n User user = new User();\r\n user.setId(\"1234\");\r\n user.setName(\"ABCEdited\");\r\n user.setPassword(\"123edited\");\r\n ArrayList<Role> roles = new ArrayList<>();\r\n roles.add(new Role(\"statio manager\"));\r\n user.setRoles(roles);\r\n \r\n UserService service = new UserService(); \r\n try {\r\n service.updateUser(user);\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n }catch (NotFoundException e) {\r\n fail();\r\n System.out.println(e);\r\n }\r\n }", "public String modificarUsuario() {\n\t\tString stringIdUsuario = session.getAttribute(\"id\").toString();\n\t\tInteger intIdUsuario = Integer.parseInt(stringIdUsuario);\n\t\t\n\t\tFacesContext con = FacesContext.getCurrentInstance();\n\t\tHttpServletRequest request = (HttpServletRequest) con.getExternalContext().getRequest();\n\t\tString cambioDeTexto = request.getParameter(\"myForm:texto\");\n\t\tString passwordViejo = request.getParameter(\"myForm:password\");\n\t\tString passwordNuevo = request.getParameter(\"myForm:passwordNuevo\");\n\t\tUsuario usuarioDb = usuarioService.buscarUsuarioPorId(intIdUsuario);\n\t\tif (usuarioDb != null) {\n\t\t\tif(usuarioService.validarNoCaracteresEspeciales(cambioDeTexto)==true) {\n\t\t\t\tString accion = \"Usuario \"+ usuarioDb.getEmail() + \" error al modificar texto.\";\n\t\t\t\tauditoriaService.registrarAuditoria(usuarioDb,accion);\n\t\t\t\terror =\"Campo texto no permitido\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror = usuarioService.usuarioModificaPasswordyTexto(cambioDeTexto, passwordViejo, passwordNuevo, intIdUsuario);\n\t\t\t}\n\t\t}\n\t\treturn \"home\";\n\t\t\n\t}", "public void updateUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk updateUser\");\r\n\t}", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "@PostConstruct\n public void update() {\n\tif(userBean != null && userBean.isLoggedIn()) {\n\t return;\n\t}\n\t \n\ttry {\n\t HttpURLConnection con = (HttpURLConnection)\n\t\tnew URL(AemsUtils.CONFIG.getApiUrl()).openConnection();\n\t con.setReadTimeout(AemsUtils.CONFIG.getConnectTestTimeout());\n\t con.setConnectTimeout(AemsUtils.CONFIG.getConnectTestTimeout());\n\t con.connect();\n\t \n\t // this will trigger a SocketTimeoutException if no connection\n\t // could be established!\n\t con.getResponseCode();\n\t \n\t} catch(Exception e) {\n\t message = \"Die AEMS-API scheint offline zu sein. Versuchen Sie es später erneut. (\" + e.getClass().getSimpleName() + \")\";\n\t Logger.getLogger(ConnectionTestBean.class.getName()).log(Level.INFO, \"No connection to API: {0}\", e);\n\t}\n\t// Everything went well\n }", "private void salvarXML(){\r\n\t\tarquivo.setLista(listaDeUsuarios);\r\n\t\tarquivo.finalizarXML();\r\n\t}", "public Login() {\n inicializarUsuarios();\n }", "public void actionPerformed(ActionEvent arg0) {\n\r\n try {\r\n // Aplicacion Comprador\r\n if (ac != null) {\r\n System.out.println(\"Obteniendo ServiciosCompradorModelo\");\r\n sm = (ServiciosCompradorModelo) ac.getSm();\r\n System.out.println(\"Realizando login\");\r\n sm = (ServiciosCompradorModelo) sm.login((pl.getTxtCUsuario())\r\n .getText(), (pl.getTxtPassword()).getText(), true);\r\n \r\n ac.setSm((ServiciosCompradorRegistradoModelo)sm);\r\n \r\n System.out.println(\"Mostrando menu de usuario registrado\");\r\n ac.setMenuRegistrado();\r\n\r\n } else {\r\n System.out.println(\"***\\nObteniendo serviciosAccesoModelo\");\r\n \r\n sm = (ServiciosAccesoModelo) ae.getSm();\r\n System.out.println(\"Realizando login\");\r\n sm = (ServiciosAccesoModelo) sm.login((pl.getTxtCUsuario()).getText(),\r\n (pl.getTxtPassword()).getText(), false);\r\n \r\n if (sm instanceof ServiciosAdAuxModelo) {\r\n\t\t\t\t\tae.setMenuAdAux();\r\n\t\t}else if(sm instanceof ServiciosCocinaModelo) {\r\n\t\t\tae.setMenuCocina();\t\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Que servicios tenemos?\");\r\n\t\t}\r\n \r\n ae.setSm(sm);\r\n }\r\n\r\n // Actualizamos los servicios de la aplicacion a cliente registrado\r\n pl.setVisible(false);\r\n\r\n } catch (MalformedURLException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (RemoteException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (errorConexionBD e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (errorSQL e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (NotBoundException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n }", "@FXML\n void handlerModifyProfile(){\n //Checks if any field is empty so it can show an alert to the user.\n if(tfName.getText().equals(\"\")||tfFirstSurName.getText().equals(\"\")||\n tfSecondSurName.getText().equals(\"\")||tfDirection.getText().equals(\"\")||\n tfEmail.getText().equals(\"\")){\n //Alert that notice the user that at least oen field is empty\n Alert alert = new Alert(javafx.scene.control.Alert.AlertType.INFORMATION, \"Please write your email before\");\n alert.showAndWait();\n }else{\n try {\n //Checks if the email is correct\n if(new EmailValidator().validate(tfEmail.getText())){\n Alert alert;\n //load a UserDTO class with the current information in the fields\n UserDTO user= new UserDTO(tfUserName.getText(),tfName.getText(),\n tfFirstSurName.getText()+\"%\"+tfSecondSurName.getText(),\n tfEmail.getText(), tfDirection.getText());\n //Call to the DB to change the user information\n userManager.updateUser(user);\n logger.info(tfUserName.getText() + \" user updated\");\n //load password pattern\n String pattern = \"((?=.*[a-z])(?=.*\\\\d)(?=.*[A-Z])(?=.*[@#$%!*.,+-;&]).{8,40})\";\n //Checks that the fields are not empty, have same value and matches with pattern,\n if((!(tfPassword.getText().equals(\"\")||tfRepeatPassword.getText().equals(\"\"))) &&\n tfPassword.getText().equals(tfRepeatPassword.getText()) &&\n tfPassword.getText().matches(pattern)){\n //Update user password\n userManager.changePassword(tfUserName.getText(),EncrypterUtil.encrypt(tfPassword.getText()));\n System.out.println(tfPassword.getText());\n System.out.println(EncrypterUtil.encrypt(tfPassword.getText()));\n alert = new Alert(javafx.scene.control.Alert.AlertType.INFORMATION, \"Credentials updated\");\n alert.showAndWait();\n logger.info(tfUserName.getText() + \" password changed\");\n //Send an email to the user saying that the password has been changed\n MailUtil.sendEmail(tfEmail.getText(), \"Password changed\", \"Your password have changed, if you didn´t do it\"\n + \" put in contact with our customer service.\");\n //Check that passwords got same value\n }else if(!tfPassword.getText().equals(tfRepeatPassword.getText())){\n alert = new Alert(javafx.scene.control.Alert.AlertType.INFORMATION, \"Please write same password\");\n alert.showAndWait();\n //Password are the same but dont match with pattern\n }else if (!tfPassword.getText().matches(pattern) && !(tfPassword.getText().equals(\"\") && tfRepeatPassword.getText().equals(\"\"))){\n alert = new Alert(AlertType.WARNING, \"Pasword has to be valid. A valid pasword contains at least :\\n-8 characters\\n-one capital letter\"\n + \"\\n-one small letter\\n-one number and one symbol\");\n alert.showAndWait();\n }else if(tfPassword.getText().equals(\"\")&&tfRepeatPassword.getText().equals(\"\")){\n //In case the user just changed his/her information.\n MobileApplication.getInstance().showMessage(\"Data saved\");\n }\n \n }\n } catch (UserUpdateException ex) {\n //Put in the logger the information of the error\n logger.severe(ex.getMessage());\n //Alert with the current error\n Alert alert = new Alert(javafx.scene.control.Alert.AlertType.ERROR, ex.getMessage());\n alert.showAndWait();\n }\n }\n }", "public synchronized void agregarUsuario(int idUsuario, ISesion sesion) {\n SessionFactory sf = null;\n try {\n sf = HibernateUtil.getSESSIONFACTORY();\n sf.getCurrentSession().beginTransaction();\n Usuario u;\n if (usuariosConectados.containsKey(idUsuario)) {\n LOGGER.debug(\"El usuario ya posee una sesion. Creando otra.\");\n u = usuariosConectados.get(idUsuario);\n u.agregarSesion(sesion);\n } else {\n LOGGER.debug(\"Creando sesion.\");\n IControladorUsuario controladorUsuario = new ControladorUsuario();\n u = controladorUsuario.getUsuario(idUsuario);\n u.agregarSesion(sesion);\n usuariosConectados.put(idUsuario, u);\n }\n u.exitoAlLogear(sesion.getKey());\n } catch (Exception e) {\n sesion.notificarError(\"Se produjo un error al intentar logear el usuario con el websocket.\");\n LOGGER.error(\"Error al iniciar sesion WebSocket\", e);\n } finally {\n try {\n sf.getCurrentSession().getTransaction().commit();\n } catch (Exception e2) {\n LOGGER.error(\"Error al cerrar sesion sesion\", e2);\n }\n }\n }", "private void invokeChangePasswordWebService(String mobileNo, String password, String confirmPassword, String otp) {\n dialogManager.showDialog();\n RequestParams params = new RequestParams();\n try {\n params.put(\"mobileNo\", mobileNo);\n params.put(\"password\", password);\n params.put(\"confirmpassword\", confirmPassword);\n params.put(\"otp\", otp);\n } catch (Exception e) {\n e.printStackTrace();\n }\n AsyncHttpClient client = new AsyncHttpClient();\n client.setTimeout(30000);\n client.addHeader(\"apikey\", Constants.API_KEY);\n client.addHeader(\"accesstoken\", loginSessionManger.getKeyAccesstoken());\n client.post(Constants.CHANGE_PASSWORD, params, new JsonHttpResponseHandler() {\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n dialogManager.hideDialog();\n showInfoDialog(\"Error\", responseString);\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable,\n JSONObject errorResponse) {\n dialogManager.hideDialog();\n try {\n showInfoDialog(\"Error\", errorResponse.getString(\"message\"));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n dialogManager.hideDialog();\n try {\n String status = response.getString(\"status\");\n if (status.equalsIgnoreCase(\"200\")) {\n showInfoDialog(\"Success\", response.getString(\"message\"));\n Toast.makeText(mContext, response.getString(\"otp\"), Toast.LENGTH_SHORT).show();\n Log.e(\"OTP\", response.getString(\"otp\"));\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(new Intent(mContext, MainActivity.class));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }", "public boolean actualizarUsuario(Usuario usuario) {\n \n //este usuario le mandamos al dao\n boolean cent = usuarioDAO.update(usuario);\n return cent;\n\n }" ]
[ "0.67615485", "0.6348", "0.6183261", "0.6149792", "0.61032903", "0.6046915", "0.6021127", "0.5992458", "0.5988718", "0.58947444", "0.58705795", "0.5849584", "0.5849503", "0.57958376", "0.5792423", "0.57623446", "0.5747915", "0.57264197", "0.57259464", "0.5716518", "0.5684086", "0.5682669", "0.567871", "0.56760764", "0.56725746", "0.5662429", "0.56603515", "0.5650408", "0.562602", "0.56210387", "0.5619495", "0.5619412", "0.56117964", "0.56105393", "0.56104964", "0.5586918", "0.5569943", "0.5560135", "0.55595404", "0.5548693", "0.5537329", "0.5537168", "0.5536324", "0.55340546", "0.5531523", "0.551685", "0.5511319", "0.5504561", "0.5499187", "0.5495989", "0.54945594", "0.5485982", "0.54799855", "0.5468131", "0.5463118", "0.54591626", "0.5459128", "0.5455212", "0.5446466", "0.54294187", "0.5423997", "0.5423683", "0.54236317", "0.54164535", "0.5410189", "0.54030097", "0.5401959", "0.53958094", "0.5391774", "0.5385998", "0.5383666", "0.538074", "0.5379493", "0.53752285", "0.5360706", "0.5360342", "0.5351001", "0.535098", "0.5342744", "0.5340457", "0.5338611", "0.5336612", "0.5336612", "0.53280866", "0.5327659", "0.5324031", "0.53185374", "0.53158045", "0.5315037", "0.53129697", "0.5310436", "0.5308071", "0.53018045", "0.5293218", "0.5290882", "0.5288915", "0.52846056", "0.528029", "0.5279511", "0.52784854", "0.5269084" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Par1 obj1 = new Par1(); Son1 obj2 = new Son1(); Par1 obj3 = new Son1(); //업캐스팅 obj3.method1(); //하위클래스에서 재정의된 Method1()사용 //추상클래스 //par2 obj4 = new par2 ();//추상 클래스로는 객체 생성이 불가능 Son2 obj5 = new Son2(); // 추상매서드를 재정의한 자식클래스는 객체생성가능 Par2 obj6 = new Son2(); //업캐스팅 obj3.method1(); }
{ "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
Sets up the view
private void setUp() { this.setLayout(new BorderLayout()); setupMessagePanel(); setupHomeButtonPanel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void initViewSetup() {\n }", "protected void viewSetup() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n\tprotected void initView()\n\t{\n\n\t}", "private void initView() {\n\n }", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "@Override\n\tpublic void InitView() {\n\t\t\n\t}", "public void initView() {\n\t\t view.initView(model);\t \n\t }", "@Override\n protected void initView() {\n }", "@Override\n protected void initView() {\n }", "@Override\n\tpublic void initView() {\n\t\t\n\t}", "private void initViews() {\n\n\t}", "protected abstract void initView();", "private void viewInit() {\n }", "void initView();", "protected abstract void initializeView();", "private void initViews() {\n\n }", "protected abstract void initViews();", "@Override\n public void initView() {\n }", "public MainView() {\r\n\t\tinitialize();\r\n\t}", "public void initView(){}", "public abstract void initViews();", "public abstract void initView();", "protected void setUpView() throws Exception\n {\n UIViewRoot root = new UIViewRoot();\n root.setViewId(\"/viewId\");\n root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT);\n facesContext.setViewRoot(root);\n }", "private void setupView() {\n view.setName(advertisement.getTitle());\n view.setPrice(advertisement.getPrice());\n view.setDescription(advertisement.getDescription());\n view.setDate(advertisement.getDatePublished());\n view.setTags(advertisement.getTags());\n setCondition();\n if (advertisement.getImageUrl() != null) { //the url here is null right after upload\n view.setImageUrl(advertisement.getImageUrl());\n }\n }", "public void initViews(){\n }", "@Override\n public void initView() {\n\n }", "public MainView() {\n initComponents();\n \n }", "private void setUpViews() {\n\n updateFooterCarInfo();\n updateFooterUsrInfo();\n\n\n setResultActionListener(new ResultActionListener() {\n @Override\n public void onResultAction(AppService.ActionType actionType) {\n if (ModelManager.getInstance().getGlobalInfo() != null) {\n GlobalInfo globalInfo = ModelManager.getInstance().getGlobalInfo();\n\n switch (actionType) {\n case CarInfo:\n updateFooterCarInfo();\n break;\n case UsrInfo:\n updateFooterUsrInfo();\n break;\n case Charger:\n updateChargeStationList();\n break;\n }\n }\n }\n });\n }", "public viewOpe() {\n initComponents();\n }", "public ManipularView() {\n initComponents();\n }", "public View() {\n initComponents();\n }", "@Override\n public void Create() {\n\n initView();\n }", "private void setViews() {\n\n }", "void initializeView() {\n displayProjectFilter();\n displayTimeFrameFilter();\n\n setUsersIntoComboBox();\n setClientsIntoComboBox();\n setProjectsIntoComboBox();\n setDateRestrictions();\n setValidators();\n setTable();\n\n selectUser();\n selectClient();\n selectProject();\n listenDatePickerStart();\n listenDatePickerEnd();\n\n removeUserFilter();\n removeProjectFilter();\n removeTimeFrameFilter();\n clearAllFilters();\n\n // this is important for hiding user combo box and stuff\n setUpUserRules();\n\n //vBox.translateXProperty().bind((scrollPane.widthProperty().subtract(vBox.widthProperty())).divide(2));\n scrollPane.widthProperty().addListener((observable, oldValue, newValue) -> {\n if (newValue != null) {\n grid.setPrefWidth(newValue.doubleValue() - (oldValue.doubleValue() - scrollPane.getViewportBounds().getWidth()));\n }\n });\n\n //TODO: Refactor this.\n setUpBarChart();\n tbvTasks.getItems().addListener((ListChangeListener.Change<? extends TaskConcrete2> c) -> {\n setUpBarChart();\n });\n\n setToolTipsForButtons();\n changeTableSize();\n }", "public HomeView() {\n initComponents();\n }", "private void initView() {\n TIMManager.getInstance().addMessageListener(this);\n initAdapter();\n initRefresh();\n }", "protected abstract void setupMvpView();", "public ViewSinFaltante() {\n initComponents();\n }", "public MainView() {\n initComponents();\n }", "public MainView() {\n initComponents();\n }", "private void setUpView()\n {\n view = new DefaultDrawingView();\n DrawingEditorProxy editor = new DrawingEditorProxy();\n editor.setTarget(new DefaultDrawingEditor());\n view.addNotify(editor);\n for (Handle h : handles)\n h.setView(view);\n }", "public ViewInit() {\n initComponents();\n }", "public ViewClass() {\n\t\tcreateGUI();\n\t\taddComponentsToFrame();\n\t\taddActionListeners();\n\t}", "@Override\n public void init() // set up GUI\n {\n setLayout(new FlowLayout());\n\n customerView = new CustomerView(); // initialize customerView\n \n add(customerView); // add customerView to the GUI\n }", "private void init() {\n //set view to presenter\n presenter.setView(this, service);\n\n setupView();\n }", "private void initView() {\n\t\tsna_viewpager = (ViewPager) findViewById(R.id.sna_viewpager);\r\n\t\thost_bt = (Button) findViewById(R.id.host_bt);\r\n\t\tcomment_bt = (Button) findViewById(R.id.comment_bt);\r\n\t\tback_iv = (ImageView) findViewById(R.id.back_iv);\r\n\t\trelativeLayout_project = (RelativeLayout) findViewById(R.id.relativeLayout_project);\r\n\t\trelativeLayout_addr = (RelativeLayout) findViewById(R.id.relativeLayout_addr);\r\n\t\trelativeLayout_activity = (RelativeLayout) findViewById(R.id.relativeLayout_activity);\r\n\t\trelativeLayout_host = (RelativeLayout) findViewById(R.id.relativeLayout_host);\r\n\t\trelativeLayout_comment = (RelativeLayout) findViewById(R.id.relativeLayout_comment);\r\n\t\tll_point = (LinearLayout) findViewById(R.id.ll_point);\r\n\t\tstoyrName = (TextView) findViewById(R.id.stoyrName);\r\n\t\tstory_addr = (TextView) findViewById(R.id.story_addr);\r\n\t\t\r\n\t}", "public void setUpView() {\n\n\n\t\t//Make the components\n\t\tinputAnswer = new Button(\"Submit\");\n\t\tbegin\t\t= new Button(\"Begin level \" + gameLevel);\n\t\tblueButt\t= new Button();\n\t\tredButt = new Button();\n\t\tgreenButt = new Button();\n\t\tyellowButt = new Button();\n\t\tclear = new Button(\"Clear\");\n\t\tguessArea = new TextArea();\n\t\ttopPan = new Panel();\n\t\tinstructLab = new Label(\"Welcome to the great guessing game. Try and finish it, its fun honest!\");\n\t\treset = new Button(\"Start again?\");\n\t\tpointsLab = new Label(\"Points: \" + points);\n\t\t\n\t\t//Change the font\n\t\tFont font = new Font(\"Verdana\", Font.BOLD, 18);\n\t\tinstructLab.setFont(font);\n\t\t\n\t\t//Add the label to the top panel\n\t\ttopPan.add(instructLab);\n\t\t\n\t\t//Set layout\n\t\tsetLayout(new MigLayout());\n\t\n\t\t//Set the size of the components\n\t\tblueButt.setPreferredSize (new Dimension(60, 50));\n\t\tredButt.setPreferredSize (new Dimension(60, 50));\n\t\tgreenButt.setPreferredSize (new Dimension(60, 50));\n\t\tyellowButt.setPreferredSize(new Dimension(60, 50));\n\t\tguessArea.setPreferredSize (new Dimension(50, 10));\n\t\tpointsLab.setPreferredSize (new Dimension(100, 30));\n\t\t\n\t\t//Turn the submit button of until there is something to submit\n\t\tinputAnswer.setEnabled(false);\n\n\t\t//Set the button colour\n\t\tblueButt.setBackground (Color.blue);\n\t\tredButt.setBackground (Color.red);\n\t\tgreenButt.setBackground (Color.green);\n\t\tyellowButt.setBackground(Color.yellow);\n\t\t\n\t\t//Hide the reset button until it is needed\n\t\treset.setVisible(false);\n\n\t\t//Add the components to the applet\n\t\tadd(topPan, \"wrap\");\n\t\tadd(redButt, \"cell 0 1\");\n\t\tadd(blueButt, \"cell 0 1\");\t\t\n\t\tadd(greenButt, \"cell 0 1\");\n\t\tadd(yellowButt, \"cell 0 1\");\n\t\tadd(begin, \"wrap\");\n\t\tadd(guessArea, \"wrap\");\n\t\tadd(inputAnswer,\"split 2\");\t\n\t\tadd(clear, \"gap left 340, cell 0 2, wrap\");\n\t\tadd(reset, \t\t\"wrap\");\n\t\tadd(pointsLab);\n\n\n\n\t\t//If the status bar is present show the user there level\n\t\tshowStatus(\"You are on level: \" + gameLevel);\n\n\n\t\t//Set the size of the applet\n\t\tsetSize(new Dimension(1000, 1000));\n\n\t}", "@Override\r\n\tprotected void initViews(Bundle savedInstanceState) {\n\t\t\r\n\t}", "private void setupUIViews() {\n toolbar = (Toolbar)findViewById(R.id.ToolbarMain);\n listview = (ListView)findViewById(R.id.lvMain);\n }", "@Override\r\n protected void setupViews(Bundle bundle) {\n initPersonalInfo();\r\n }", "private void initView() {\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerKapfenberg.refresh(true);\r\n\t\tviewerLeoben.refresh(true);\r\n\t\tviewerMariazell.refresh(true);\r\n\t\tviewerWien.refresh(true);\r\n\t}", "private void initView() {\n mRetrofit = new Retrofit.Builder()\n .baseUrl(Challenge1Activity.MY_BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n mTextViewDisplayTopRated = findViewById(R.id.text_view_display_toprated_movies);\n\n mTextViewPrev = findViewById(R.id.text_view_prev);\n mTextViewCurrentAndMaxPage = findViewById(R.id.text_view_current_and_max_page);\n mTextViewNext = findViewById(R.id.text_view_next);\n }", "public SchemaViewController( SchemaView view )\n {\n this.view = view;\n viewer = view.getViewer();\n \n initActions();\n initToolbar();\n initMenu();\n initContextMenu();\n initProjectsHandlerListener();\n initDoubleClickListener();\n initAuthorizedPrefs();\n initPreferencesListener();\n }", "public void initView() {\n JPanel pane= new JPanel();\n panel = new JPanel();\n this.getFile(pane);\n JScrollPane scp = new JScrollPane(pane);\n scp.setPreferredSize(new Dimension(500, 280));\n scp.setVisible(true);\n enter.setPreferredSize(new Dimension(100, 50));\n enter.setVisible(true);\n enter.setActionCommand(\"enter\");\n enter.addActionListener(this);\n send.setPreferredSize(new Dimension(80, 50));\n send.setVisible(true);\n send.setActionCommand(\"sendOptions\");\n send.addActionListener(this);\n send.setEnabled(true);\n back.setVisible(true);\n back.setActionCommand(\"back\");\n back.addActionListener(this);\n back.setPreferredSize(new Dimension(80, 50));\n \n panel.add(scp);\n panel.add(send);\n panel.add(enter);\n panel.add(back);\n Launch.frame.add(panel);\n }", "@Override \n protected void startup() {\n GretellaView view = new GretellaView(this);\n show( view );\n view.initView(); \n }", "@Override\n\tprotected void initViews(View view) {\n\t\tsuper.initViews(view);\n//\t\tsendRequestData();\n\t}", "private void setUpVC() {\n\t\tinitializePackageModel();\n\t\tinitializeRootLayout();\n\t\tinitializeStepCountView();\n\t\tinitializeButtonToScanForBluetoothDevices();\n\t\tinitializeButtonToSendCommands();\n\t\taddAllViewsToRootLayout();\n\t\tinitializeUARTControlFragmentInterface();\n\t\tsetListenerOnLaunchScanForBluetoothDevices();\n\t\tsetListenerOnButtonToSendCommands();\n\t}", "public NapakalakiView() {\n initComponents();\n }", "public myView() {\n initComponents();\n CreatMenu();\n }", "public void setupView() {\n PagerAdapter mPagerAdapter = new ScreenSlidePagerAdapter(getSupportFragmentManager());\n viewPager.setAdapter(mPagerAdapter);\n viewPager.setCurrentItem(0);\n\n }", "private void setupView() {\n refresh();\n if (isEmpty(movies)) {\n // Ok. so we have no movies. THat means one of two things. Either\n // we're trying to download the movies, or we tried and failed to\n // download them. In the former case just wait. We'll get a\n // notification when they're done. In the latter case, let the user\n // know.\n if (!isNullOrEmpty(getService().getUserAddress()) && getService().getDataProviderState() == DataProvider.State.Finished) {\n showNoInformationFoundDialog();\n }\n } else {\n setupMovieGrid();\n }\n }", "public LetterSettingView() {\r\n initComponents();\r\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tViewUtils.inject(this);\n\t\tsetView();\n\t}", "@Override\r\n\tpublic void setupView() {\n\t\ttv = (TextView) findViewById(R.id.mjson_layout_text);\r\n\t}", "private void initView(){\n\t\tinitSize();\n\t\tinitText();\n\t\tinitBackground();\n\t\tthis.setOnClickListener(this);\n\t\tthis.setOnLongClickListener(this);\n\t}", "private void initializePresentation() {\r\n viewRankingAttemptFX = new ViewRankingAttemptFX(this);\r\n viewRankingPlayerFX = new ViewRankingPlayerFX(this);\r\n viewLoginFX = new ViewLoginFX(this);\r\n viewRegisterFX = new ViewRegisterFX(this);\r\n viewProblemListFX = new ViewProblemListFX(this);\r\n viewLoginFX = new ViewLoginFX(this);\r\n viewRegisterFX = new ViewRegisterFX(this);\r\n viewMenuFX = new ViewMenuFX(this);\r\n viewSettingsFX = new ViewSettingsFX(this);\r\n viewGenerateFX = new ViewGenerateFX(this);\r\n viewAttemptFX = new ViewAttemptFX(this);\r\n viewAttemptListFX = new ViewAttemptListFX(this);\r\n\r\n viewsFX.add(viewLoginFX);\r\n viewsFX.add(viewRankingAttemptFX);\r\n viewsFX.add(viewRankingPlayerFX);\r\n viewsFX.add(viewRegisterFX);\r\n viewsFX.add(viewProblemListFX);\r\n viewsFX.add(viewMenuFX);\r\n viewsFX.add(viewSettingsFX);\r\n viewsFX.add(viewGenerateFX);\r\n viewsFX.add(viewAttemptFX);\r\n viewsFX.add(viewAttemptListFX);\r\n\r\n }", "@Override\n\tprotected void initView() {\n\t\tsetContentView(R.layout.activity_money_manage);\n\t\t\n\t\tfindViewById(R.id.bt_title_left).setOnClickListener(this);\n\t\tfindViewById(R.id.bt_ok).setOnClickListener(this);\n\t}", "public VendaView() {\n initComponents();\n }", "public VentaMainView() {\n initComponents();\n controlador = new VentaController();\n this.setLocationRelativeTo(null);\n cargarCategorias();\n cargarArticulos();\n }", "public TreasureView() {\n initComponents();\n }", "public TreasureView() {\n initComponents();\n }", "private void setupView()\n {\n mPullToRefreshView = (PullToRefreshView)\n findViewById(R.id.main_pull_refresh_view);\n\n mListView = (ListView) findViewById(R.id.xlistView);\n\n }", "@Override\n\tprotected void initContentView() {\n\t\t\n\t}", "public ViewProperty() {\n initComponents();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initView();\n }", "@Override\n public void prepareView() {\n }", "private void initializeViewAndControls() {\r\n txtEmail.setText(\"Email - \"+ AppConstants.ADMIN_EMAIL);\r\n txtCustomerCarePhone.setText(\"Customer Care - \"+ AppConstants.CUSTOMER_CARE_NUMBER);\r\n txtTollFreePhone.setText(\"Toll Free - \"+ AppConstants.TOLL_FREE_NUMBER);\r\n }", "public AulaView() {\n initComponents();\n }", "public PromedioView() {\n initComponents();\n }", "private void registerViews() {\n\t}", "public seViewAnswerUI() {\n initComponents();\n }", "protected void setupUI() {\n textView = (TextView) findViewById(R.id.textView);\n viewGradeButton = (Button) findViewById(R.id.viewAllBillsButton);\n viewDash = (Button) findViewById(R.id.viewDash);\n\n //Listen if the buttons is clicked\n viewGradeButton.setOnClickListener(onClickViewGradeButton);\n viewDash.setOnClickListener(onClickViewDash);\n\n }", "protected void setupViewControllers() {\r\n\t\tViewControlsLayer viewControlsLayer = new ViewControlsLayer();\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tToolTipController toolTipController = new ToolTipController(getWWD(),\r\n\t\t\t\tAVKey.DISPLAY_NAME, null);\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tHighlightController highlightController = new HighlightController(getWWD(),\r\n\t\t\t\tSelectEvent.ROLLOVER);\r\n\r\n\t\tinsertBeforeCompass(viewControlsLayer);\r\n\t\tgetWWD().addSelectListener(new ViewControlsSelectListener(getWWD(),\r\n\t\t\t\tviewControlsLayer));\r\n\t}", "@Override\n protected void initView()\n {\n ed_name = findView(R.id.ed_name);\n ed_bank = findView(R.id.ed_bank);\n ed_bank_card = findView(R.id.ed_bank_card);\n ed_bank_name = findView(R.id.ed_bank_name);\n btn_submit = findView(R.id.btn_submit);\n findView(R.id.ib_back).setOnClickListener(this);\n Toolbar toolbar = findView(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n }", "private void initView() {\n sdf = SimpleDateFormat.getInstance();\n\n /**\n * 自定义设置相关\n */\n MNCalendarVerticalConfig mnCalendarVerticalConfig = new MNCalendarVerticalConfig.Builder()\n .setMnCalendar_showWeek(true) //是否显示星期栏\n .setMnCalendar_showLunar(true) //是否显示阴历\n .setMnCalendar_colorWeek(\"#000000\") //星期栏的颜色\n .setMnCalendar_titleFormat(\"yyyy-MM\") //每个月的标题样式\n .setMnCalendar_colorTitle(\"#000000\") //每个月标题的颜色\n .setMnCalendar_colorSolar(\"#000000\") //阳历的颜色\n .setMnCalendar_colorLunar(\"#dcdcdc\") //阴历的颜色\n .setMnCalendar_colorBeforeToday(\"#dcdcdc\") //今天之前的日期的颜色\n .setMnCalendar_colorRangeBg(\"#A0E0BE\") //区间中间的背景颜色\n .setMnCalendar_colorRangeText(\"#FFFFFF\") //区间文字的颜色\n .setMnCalendar_colorStartAndEndBg(\"#5DC381\") //开始结束的背景颜色\n .setMnCalendar_countMonth(6) //显示多少月(默认6个月)\n .build();\n mnCalendar.setConfig(mnCalendarVerticalConfig);\n //设置导航图标要在setSupportActionBar方法之后\n setSupportActionBar(mToolbar);\n }", "public void init() {\n\t\tdropViewCollections();\n\t\tbuildViewCollections();\n\t\tthis.populateViewCollections();\n\t}", "private void initialiseViews() {\n setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);\n bindings = DataBindingUtil.setContentView(this, R.layout.activity_catalog_product);\n bindings.activityCatalogProductPb.setVisibility(View.GONE);\n\n bindings.activityCatalogProductFab.setOnClickListener(v -> {\n\n Intent addProductIntent = new Intent(ProductCatalogMain.this,\n ProductEditor.class);\n startActivity(addProductIntent);\n\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n\n });\n\n setSupportActionBar(bindings.activityCatalogProductToolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n tabPageAdapter = new ProductCatalogFragmentPageAdapter(getSupportFragmentManager());\n tabViewPager = bindings.activityCatalogProductVp;\n tabViewPager.setAdapter(tabPageAdapter);\n\n if (bindings.activityCatalogProductVp != null) {\n setupViewPager(bindings.activityCatalogProductVp);\n }\n\n // Sets up the Tab's and their titles.\n bindings.activityCatalogProductTl.setupWithViewPager(bindings.activityCatalogProductVp);\n\n }", "public StartSettingsView() {\n\n super();\n super.setTitle(\"Settings\");\n\n this.createPatientsComboBox();\n this.createButtons();\n\n super.setLayouts(0.2f, 0.2f,0,0.6f);\n\n\t}", "public HomeView() {\n overdueSkinTests = new HashMap<>();\n }", "protected void setupUI() {\n\n }", "private void initView() {\n initRefreshListView(mListview);\n }", "public PhanQuyen_View() {\n initComponents();\n }", "private void setupUI(View rootView) {\n MainActivity.tvHeader.setText(Constants.CATEGORY);\n rvCategories = rootView.findViewById(R.id.rv_categories);\n ivAddNewCategory = rootView.findViewById(R.id.iv_add_new_category);\n }" ]
[ "0.80654305", "0.7973215", "0.7815478", "0.7815478", "0.78072405", "0.78020483", "0.78020483", "0.774571", "0.76517314", "0.76502633", "0.76502633", "0.76471424", "0.76471424", "0.7642467", "0.7638813", "0.7623444", "0.7623444", "0.762187", "0.7611371", "0.7580762", "0.7556859", "0.7546599", "0.7537128", "0.74949354", "0.7465433", "0.7455039", "0.74341303", "0.74160284", "0.74066347", "0.73960257", "0.735997", "0.7352445", "0.7318839", "0.7317209", "0.7269669", "0.723058", "0.72095376", "0.7140631", "0.71239626", "0.70917934", "0.7073862", "0.7071024", "0.7061992", "0.70524824", "0.70519525", "0.7042747", "0.7004964", "0.7004964", "0.6980697", "0.697727", "0.6951057", "0.6949038", "0.69181025", "0.69130844", "0.6888108", "0.6874556", "0.6857615", "0.68444854", "0.6822006", "0.6817526", "0.68118846", "0.6811145", "0.6803991", "0.6788334", "0.67832136", "0.67827064", "0.6781271", "0.6779529", "0.6757071", "0.67256385", "0.6722565", "0.67218435", "0.6708005", "0.6703124", "0.67026716", "0.67012995", "0.66968095", "0.66929454", "0.66929454", "0.66919404", "0.66881835", "0.66877043", "0.6684105", "0.66838443", "0.66796285", "0.6672685", "0.66636854", "0.6659564", "0.66536695", "0.66472864", "0.6642695", "0.66287845", "0.6624603", "0.6624475", "0.6620086", "0.6615065", "0.6607732", "0.6605813", "0.65955347", "0.65813553", "0.65767795" ]
0.0
-1
Set up the home button
private void setupHomeButtonPanel() { JPanel homeButtonPanel = new JPanel(); this.home = new JButton("Log Off"); this.home.setActionCommand("HOME"); homeButtonPanel.add(home); this.add(homeButtonPanel, BorderLayout.SOUTH); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void pressHomeButton() {\n System.out.println(\"TV is already on the home screen\\n\");\n }", "private void setUpHomeButton() {\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n ActionBar actionBar = this.getSupportActionBar();\n if(actionBar != null){\n actionBar.setDisplayHomeAsUpEnabled(true);\n }\n }", "@Override\n public void pressHomeButton() {\n System.out.println(\"TV is already on the home screen\\n\");\n tv.setState(tv.getHomeState());\n }", "public void home() {\n\t\tUserUI ui = new UserUI();\n\t\tui.start();\n\t}", "private void initHomeBtn() throws IOException{\n\t\thomeBtn = HomeButtonMaker.getContentPane();\n\t\tmainWindow.addLayer(homeBtn, BUTTON_LAYER, HomeButtonMaker.getXDefault(), HomeButtonMaker.getYDefault());\n\t\thomeBtn.registerObserver(this);\n\t}", "default public void clickHome() {\n\t\tremoteControlAction(RemoteControlKeyword.HOME);\n\t}", "public void gotoHome(){ application.gotoHome(); }", "public void homeClicked() {\r\n Pane newRoot = loadFxmlFile(Home.getHomePage());\r\n Home.getScene().setRoot(newRoot);\r\n }", "public void switchToHomeScreen() {\n Intent startMain = new Intent(Intent.ACTION_MAIN);\n startMain.addCategory(Intent.CATEGORY_HOME);\n startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(startMain);\n }", "public void navigateToHomePage()\n\t {\n\t if(getAdvertisementbtn().isPresent())\n\t getAdvertisementbtn().click();\n\t }", "public Home() {\n initComponents();\n ShowLauncher();\n }", "@FXML\r\n public void handleOnHomeButtonClick ()\r\n {\r\n mainApp.showMainScreen();\r\n }", "public void homeButtonClicked(ActionEvent event) throws IOException {\n\t\tSystem.out.println(\"Loading Home...\");\n\t\tAnchorPane pane = FXMLLoader.load(getClass().getResource(\"HomeFXML.fxml\"));\n\t\trootPane.getChildren().setAll(pane);\n\t\t\n\t}", "void showHome() {\n\t\tsetContentView(R.layout.home);\r\n\t\tView homeView = findViewById(R.id.home_image);\r\n\t\thomeView.setOnClickListener(new View.OnClickListener() {\r\n\t\t public void onClick(View v) {\r\n\t\t \tstartGame();\r\n\t\t }\r\n\t\t});\r\n\t}", "private void openHome() {\n Intent intent = new Intent(this, WelcomeActivity.class);\n startActivity(intent);\n\n finish();\n }", "protected void setupActionBar() {\n setTitle();\n setSutTitle();\n setIcon();\n setHomeAsUp(mCallback.getHomeButtonStyle() == HomeButtonStyle.SHOW_HOME_AS_UP);\n }", "@Override\n\tpublic void setDisplayShowHomeEnabled(boolean showHome) {\n\t\t\n\t}", "public home() {\n initComponents();\n }", "public home() {\n initComponents();\n }", "public home() {\n initComponents();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n Intent intent = new Intent(\n Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }", "@Override\n\tpublic void setDisplayHomeAsUpEnabled(boolean showHomeAsUp) {\n\t\t\n\t}", "public void homeButtonClicked(ActionEvent event) throws IOException {\n Parent homeParent = FXMLLoader.load(getClass().getResource(\"Home.fxml\"));\n Scene homeScene = new Scene(homeParent, 1800, 700);\n\n //gets stage information\n Stage window = (Stage) ((Node) event.getSource()).getScene().getWindow();\n window.setTitle(\"Home Page\");\n window.setScene(homeScene);\n window.show();\n }", "public void goHome();", "private void launchHomeScreen(){\n\n prefManager.setFirstTimeLaunch(false);\n Intent i = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(i);\n }", "public void btnHomeClicked(ActionEvent actionEvent) throws Exception {\n }", "private JButton getBtnHome() {\r\n\t\tif (btnHome == null) {\r\n\t\t\tbtnHome = new JButton();\r\n\t\t\tbtnHome.setText(\"Home\");\r\n\t\t\tbtnHome.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tgoTo(homeAddress);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn btnHome;\r\n\t}", "private FXHome() {}", "public void transitionToHome() throws RemoteException{\n removeAll();\n mainPanel = new MainPanel(contr);\n add(mainPanel, \"span 1\");\n }", "protected void callHome() {\n\t\tIntent intent = new Intent(this, AdminHome.class);\r\n\t\tstartActivity(intent);\r\n\t}", "public void displayHome() {\n\t\tclearBackStack();\n\t\tselectItemById(KestrelWeatherDrawerFactory.MAP_OVERVIEW, getLeftDrawerList());\n\t}", "private void returnHome() {\n parentPane.getChildren().clear();\n parentPane.setTop(mainMenu);\n parentPane.setCenter(imgHome);\n }", "public void navigateToHome() {\n Intent intent = new Intent(this, MainMenu.class);\n startActivity(intent);\n finish();\n }", "void keyHome();", "public void run() {\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}", "public void run() {\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}", "public void clickOnMyTraderHomeIcon() {\r\n\t\tprint(\"Click on My Trader Home Icon\");\r\n\t\tlocator = Locator.MyTrader.MyTrader_Home.value;\r\n\t\tclickOn(locator);\r\n\t}", "public void goHome() {\r\n\t\tif (mActivity instanceof DashboardActivity) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfinal Intent intent = new Intent(mActivity, DashboardActivity.class);\r\n\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\tmActivity.startActivity(intent);\r\n\r\n\t}", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_MAIN);\n \t\tintent.addCategory(Intent.CATEGORY_HOME);\n \t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n \t\tstartActivity(intent);\n//========================================================================================================================= \t\t\n\t\t\t}", "public void onClickHome (View v)\n\t{\n\t\tgoHome (this);\n\t}", "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null); \n btnHome.setBackground(Color.CYAN);\n btnHome.setSelected(rootPaneCheckingEnabled);\n }", "private void setupBack() {\n\t\tmakeButton(\"Back\", (ActionEvent e) -> {\n\t\t\tchangeView(\"login\");\n\t\t});\n\t}", "public void openHomePage() {\n\t\tlogger.info(\"Opening Home Page\");\n\t\tdriver.get(ReadPropertyFile.getConfigPropertyVal(\"homePageURL\"));\n\t\t\n\t}", "@FXML\n void ShowHomePane()\n {\n HomePane.setVisible(true);\n ShearPane.setVisible(false);\n ChatsPane.setVisible(false);\n\n homeIcon.setFill(Paint.valueOf(\"#151928\"));\n homeBtn.getStyleClass().removeAll(\"btn\");\n homeBtn.getStyleClass().add(\"btn\") ;\n\n shearicon.setFill(Paint.valueOf(\"#ffffff\"));\n shearBtn.getStyleClass().removeAll(\"btn\");\n\n imageMessanger.setImage(new Image(\"Ressources/messenger.png\"));\n mssengerBtn.getStyleClass().removeAll (\"btn-not\");\n }", "public void openHome() {\n connectionProgressDialog.dismiss();\n Intent i = new Intent(this, ZulipActivity.class);\n startActivity(i);\n finish();\n }", "public Home() {\n initComponents();\n setTitle(\"Home\");\n setResizable(false);\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width / 2 - this.getSize().width / 2, dim.height / 2 - this.getSize().height / 2);\n adminButton.setVisible(Login.isAdmin());\n\n String info = null;\n try {\n info = DataBase.showAccDet(Login.getIDAcc());\n } catch (SQLException ex) {\n Logger.getLogger(Home.class.getName()).log(Level.SEVERE, null, ex);\n }\n String[] cuv = info.split(\" \");\n welcomeLabel.setText(\"Welcome back, \" + cuv[1] + \"!\");\n\n }", "public void goToHome() {\n Intent intent = new Intent(this, MainActivity_3.class);\n startActivity(intent);\n }", "@FXML\r\n private void goHomeScreen(ActionEvent event) {\n Stage stage = (Stage) mainGridPane.getScene().getWindow();\r\n\r\n //load up WelcomeScene FXML document\r\n Parent root = null;\r\n try {\r\n root = FXMLLoader.load(getClass().getResource(\"WelcomeChipScene.fxml\"));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n Scene scene = new Scene(root, 1024, 720);\r\n stage.setTitle(\"Restaurant Reservation System\");\r\n stage.setScene(scene);\r\n stage.show();\r\n }", "public void home(){\n Intent intent = new Intent(getApplicationContext(), TouchController.class);\n intent.setAction(Constant.ACTION_NOTIFICATION);\n startService(intent);\n }", "public void setHome(int home) {\n m_home = home;\n }", "public void setupButton() {\n\t\tHBox buttonPane = new HBox();\n\t\tbuttonPane.setPrefHeight(20);\n\t\t_root.setBottom(buttonPane);\n\t\tButton b1 = new Button(\"Quit\");\t\n\t buttonPane.getChildren().addAll(b1);\n\t b1.setOnAction(new QuitHandler()); // register the button with QuitHandler\n\t buttonPane.setAlignment(Pos.CENTER);\n\t buttonPane.setFocusTraversable(false);\n\t\tbuttonPane.setStyle(\"-fx-background-color: darkblue;\");\n\n\t\n\t}", "@Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\n Intent intent = new Intent(Intent.ACTION_MAIN);\r\n intent.addCategory(Intent.CATEGORY_HOME);\r\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n startActivity(intent);\r\n }", "public HomePanel() {\r\n\t\tinitialisation();\r\n initComponents();\r\n\t\tpostInit();\r\n }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tresetHomeScreen();\n\t\t\t\t}", "public void goHome() {\n shouldWork = false;\n }", "public Home clickonHome()\n\t{\n\t\tdriver.findElement(By.xpath(home_xpath)).click();\n\t\treturn new Home(driver);\n\t}", "public HomeScreen() {\n initComponents();\n }", "public void showHomeScreen() {\n try {\n FXMLLoader loader1 = new FXMLLoader();\n loader1.setLocation(MainApplication.class.getResource(\"view/HomeScreen.fxml\"));\n AnchorPane anchorPane = (AnchorPane) loader1.load();\n rootLayout.setCenter(anchorPane);\n HomeScreenController controller = loader1.getController();\n controller.setMainApp(this);\n } catch (IOException e) {\n \t\te.printStackTrace();\n \t }\n }", "public Home () {\n\t\t\n\t\tthis.isActiveListing = true;\n\t}", "private void configureButtons() {\n\n backToMenu = new JButton(\"Menu\");\n if(isWatching){\n backToMenu.setBounds(575, 270, 100, 50);\n }\n else{\n backToMenu.setBounds(30, 800, 100, 50);\n }\n backToMenu.setFont(new Font(\"Broadway\", Font.PLAIN, 20));\n backToMenu.setBackground(Color.RED);\n backToMenu.setFocusable(false);\n backToMenu.addActionListener(this);\n add(backToMenu);\n }", "public void goHome() throws ManipulatorException;", "public void launchHomePage() {\n Intent intent = new Intent(LoginActivity.this, HomeActivity.class);\n startActivity(intent);\n }", "private void configureBackButton() {\n LinearLayout layoutTop = (LinearLayout) findViewById(R.id.title);\n layoutTop.bringToFront();\n\n Button button = (Button) findViewById(R.id.backButton);\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n finish();\n }\n });\n }", "public void clickOnHome() {\n\t\twait.waitForStableDom(250);\n\t\tisElementDisplayed(\"link_home\");\n\t\twait.waitForElementToBeClickable(element(\"link_home\"));\n\t\texecuteJavascript(\"document.getElementById('doctor-home').getElementsByTagName('i')[0].click();\");\n//\t\t element(\"link_home\").click();\n\t\tlogMessage(\"user clicks on Home\");\n\t}", "@Override\n public void onFinishButtonPressed() {\n Intent intent = new Intent(getApplicationContext(), HomeActivity.class);\n startActivity(intent);\n }", "private void backButtonAction() {\n CurrentUI.changeScene(SceneNames.LOGIN);\n }", "@Override\n\tpublic void onBackPressed() {\n \t//Reference: http://stackoverflow.com/questions/11495188/how-to-put-application-to-background\n \t//; last accessed: 14 April 2015, answer by: JavaCoderEx\n \tIntent i = new Intent(Intent.ACTION_MAIN);\n i.addCategory(Intent.CATEGORY_HOME);\n startActivity(i); \n }", "public void onHomeClick(View v) {\n UIUtils.goHome(this);\n }", "public homeScreen() throws Exception {\n\t\tinitialize();\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "protected boolean isHomeAsUpEnabled() {\n return true;\n }", "public Home() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent homeIntent = new Intent();\n homeIntent.setAction(Intent.ACTION_MAIN);\n homeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n homeIntent.addCategory(Intent.CATEGORY_HOME);\n getApplicationContext().startActivity(homeIntent);\n\n dialog.dismiss();\n }", "public javax.swing.JButton getBtnHome() {\n return btnHome;\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tIntent homeIntent = new Intent(Intent.ACTION_MAIN);\n\t\thomeIntent.addCategory(Intent.CATEGORY_HOME);\n\t\thomeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tstartActivity(homeIntent);\n\t}", "public void goToHome() {\n navController.navigate(R.id.nav_home);\n }", "public ifrmHomePage() {\n initComponents();\n }", "private void startHomeActivity() {\n startActivity(new Intent(SettingsActivity.this, HomeActivity.class));\n finish();\n }", "@FXML\n private void switchHome(ActionEvent event) {\n setNode(mainForm);\n }", "public void initMenu() {\n\t\t\r\n\t\treturnToGame = new JButton(\"Return to Game\");\r\n\t\treturnToGame.setBounds(900, 900, 0, 0);\r\n\t\treturnToGame.setBackground(Color.BLACK);\r\n\t\treturnToGame.setForeground(Color.WHITE);\r\n\t\treturnToGame.setVisible(false);\r\n\t\treturnToGame.addActionListener(this);\r\n\t\t\r\n\t\treturnToStart = new JButton(\"Main Menu\");\r\n\t\treturnToStart.setBounds(900, 900, 0, 0);\r\n\t\treturnToStart.setBackground(Color.BLACK);\r\n\t\treturnToStart.setForeground(Color.WHITE);\r\n\t\treturnToStart.setVisible(false);\r\n\t\treturnToStart.addActionListener(this);\r\n\t\t\r\n\t\t//add(menubackground);\r\n\t\tadd(returnToGame);\r\n\t\tadd(returnToStart);\r\n\t}", "public Home() {\n this.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent e) {\n endMainloop();\n System.out.println(\"Closed\");\n e.getWindow().dispose();\n }\n });\n initComponents();\n }", "protected void setContents() {\n\tactionBar.setHomeAction(homeAction);\r\n\tactionBar.setDisplayHomeAsUpEnabled(true);\r\n\tactionBar.addAction(shareAction);\r\n\tactionBar.addAction(otherAction);\r\n }", "public void pressMainMenu() {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(Akun.this, Home.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}", "@FXML\n\tvoid backHome(MouseEvent event) throws IOException {\n\n\t\tMainAllControllers.setWindowVar(\"userHome\");\n\t\tMainAllControllers.changeWin();\n\t}", "private void goToHome() {\n finish();\n Intent onPropertyView = new Intent(ChatMessage.this, MainActivity.class);\n startActivity(onPropertyView);\n }", "public Homepage() {\n initComponents();\n }", "public HomePageGUI() {\n initComponents();\n }", "private void prepareAndShowHomeScreen() {\n\t\tFraHeader header = FraHeader.newInstance(true);\n\t\theader.showBackButton(false);\n\t\tFraHomeContent homeContent = FraHomeContent.newInstance();\n\t\tFraFooter footer = FraFooter.newInstance(FooterIcons.TOP10);\n\t\tFraSearch search = FraSearch.newInstance();\n\t\tFraFont font = FraFont.newInstance();\n\t\tFraShare share = FraShare.newInstance();\n\n\t\treplaceScreenWithNavBarContentAndMenu(header, FraHeader.TAG,\n\t\t\t\thomeContent, FraHomeContent.TAG, footer, FraFooter.TAG,\n\t\t\t\tFraMenu.newInstance(), FraMenu.TAG, search, FraSearch.TAG,\n\t\t\t\tfont, FraFont.TAG, share, FraShare.TAG, false);\n\t\tprepareAndShowHomeScreen(false);\n\t\t/*\n\t\t * replaceScreenWithNavBarContentAndFooter(homeContent,\n\t\t * FraHomeContent.TAG, footer, FraFooter.TAG, false);\n\t\t */\n\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_MAIN);\n\t\t\t\t\t\t\ti.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\t\t\ti.addCategory(Intent.CATEGORY_HOME);\n\t\t\t\t\t\t\tstartActivity(i);\n\n\t\t\t\t\t\t}", "@Test\n\t@When(\"^I click on home_button$\")\n\tpublic void b_i_click_on_home_button() {\n\t\t\n\t\n\n\t\t driver.findElement(By.xpath(\"//*[contains(text(),'Home')]\")).click();\n\t}", "@Override\n public void onBackPressed() {\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }", "@Override\n public void onBackPressed() {\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }", "public String home()\n\t{\n\t\treturn SUCCESS;\n\t}", "public void setHome(Location home) {\n this.home = home;\n }", "public Home() {\n initComponents();\n \n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_MAIN);\n\t\t\t\t\t\tintent.addCategory(Intent.CATEGORY_HOME);\n\t\t\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\t\t_context.startActivity(intent);\n\t\t\t\t\t\t// System.exit(0);\n\t\t\t\t\t}", "private void displayBackButton() {\n RegularButton backButton = new RegularButton(\"BACK\", 200, 600);\n\n backButton.setOnAction(e -> backButtonAction());\n\n sceneNodes.getChildren().add(backButton);\n }", "@Override\n public void pressTVButton() {\n System.out.println(\"Home: You must pick an app to show tv shows.\");\n }", "public void initExitBtn(){\n FontIcon homeIcon = new FontIcon(\"fa-sign-out\");\n homeIcon.setIconSize(30);\n homeIcon.setIconColor(new Color(1,1,1,1));\n signOutBtn.setGraphic(homeIcon);\n signOutBtn.setOnMouseEntered(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n homeIcon.setIconColor(Color.web(\"#dcd7d7\"));\n }\n });\n signOutBtn.setOnMousePressed(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n homeIcon.setIconColor(Color.web(\"#a59d9d\"));\n }\n });\n signOutBtn.setOnMouseExited(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n homeIcon.setIconColor(Color.web(\"#ffffff\"));\n }\n });\n }" ]
[ "0.7864045", "0.76256543", "0.7599914", "0.75856465", "0.75313157", "0.7505298", "0.73491395", "0.7257957", "0.7146371", "0.70705265", "0.7023329", "0.69305766", "0.6910967", "0.6902516", "0.676539", "0.676202", "0.6759042", "0.67507863", "0.67507863", "0.67507863", "0.674834", "0.6738758", "0.67345726", "0.67276174", "0.6718015", "0.668437", "0.66741174", "0.6662291", "0.6652025", "0.66467327", "0.6618933", "0.66086614", "0.66020006", "0.65988266", "0.6574794", "0.6574794", "0.6566201", "0.6564473", "0.6564223", "0.65593773", "0.6557802", "0.654862", "0.6540825", "0.65382594", "0.6524266", "0.65241224", "0.65240604", "0.6496684", "0.6496175", "0.6493594", "0.64905363", "0.6489753", "0.64743555", "0.64607304", "0.6454575", "0.645301", "0.644131", "0.6439349", "0.6437248", "0.6424722", "0.6423144", "0.64214486", "0.64117944", "0.64116514", "0.64090675", "0.63948166", "0.6387978", "0.6375618", "0.63748175", "0.6372739", "0.63665575", "0.6360717", "0.6358401", "0.6339636", "0.6338899", "0.6337924", "0.63304156", "0.6323708", "0.632326", "0.6322041", "0.63048995", "0.63002706", "0.6296482", "0.6292163", "0.62907773", "0.62812525", "0.6280617", "0.62771815", "0.6269135", "0.6268234", "0.62657446", "0.6264036", "0.6264036", "0.62623", "0.62613994", "0.62597674", "0.6248716", "0.62232053", "0.62200344", "0.6219308" ]
0.7871876
0
Set up the message panel advising the user that registration is complete
private void setupMessagePanel() { JPanel messagePanel = new JPanel(); this.message = new JTextArea(); this.message.setText("Registration Phase Completed. \n\nClick on the Log Off button below to \nreturn to the main menu"); this.message.setEditable(false); this.message.setColumns(20); this.message.setLineWrap(true); messagePanel.add(message); this.add(messagePanel, BorderLayout.CENTER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void register() {\n if (registerView.getFirstName().length() == 0 || registerView.getLastName().length() == 0 || registerView.getUsername().length() == 0 || registerView.getPassword().length() == 0) {\n IDialog invalidRegistrationDialog\n = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Fields must be non-empty!\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n } else {\n if (userController.registerUser(registerView.getFirstName(), registerView.getLastName(), registerView.getUsername(), registerView.getPassword()) != null) {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.MAIN_MENU));\n } else {\n IDialog invalidRegistrationDialog = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Username is already taken\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n }\n }\n }", "private void signUpEvt() {\n String emailRegex = \"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21-\\\\x5a\\\\x53-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])+)\\\\])\";\n // Get User Details\n String fullname = this.view.getWelcomePanel().getSignUpPanel().getFullnameText().getText().trim();\n String email = this.view.getWelcomePanel().getSignUpPanel().getEmailText().getText().trim();\n String password = new String(this.view.getWelcomePanel().getSignUpPanel().getPasswordText().getPassword()).trim();\n\n if (!fullname.equals(\"\") && !email.equals(\"\") && !password.equals(\"\")) {\n if (email.matches(emailRegex)) {\n if (model.getSudokuDB().registerUser(fullname, email, password)) {\n view.getWelcomePanel().getCardLayoutManager().next(view.getWelcomePanel().getSlider());\n // Clear Fields\n view.getWelcomePanel().getSignUpPanel().clear();\n Object[] options = {\"OK\"};\n JOptionPane.showOptionDialog(this, \"Your registration was successful!\\n You can now sign in to your account.\", \"Successful Registration\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n } else {\n Object[] options = {\"Let me try again\"};\n JOptionPane.showOptionDialog(this, \"Your registration was unsuccessful!\\nBe sure not to create a duplicate account.\", \"Unsuccessful Registration\", JOptionPane.OK_OPTION, JOptionPane.ERROR_MESSAGE, null, options, null);\n }\n } else {\n // Email doesn't meet requirement\n Object[] options = {\"I will correct that\"};\n JOptionPane.showOptionDialog(this, \"You must provide a valid email address.\", \"Invalid Email Address\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n } else {\n // Empty Fields\n Object[] options = {\"Alright\"};\n JOptionPane.showOptionDialog(this, \"In order to register, all fields must be filled out.\", \"Empty Fields\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n }", "private final static void onRegister(TextField username, TextField email, PasswordField password, PasswordField passwordAgain)\n\t{\n\t\t// TODO no password = passwordAgain check\n\t\t// TODO check if username exists\n\t\t// TODO check if email exists\n\n\t\tint id = ProfileManipulation.getHighestId(\"Profile\", true);\n\t\tProfileManipulation.registerUser(id, username.getText(), email.getText(),\n\t\t\t\tpassword.getText());\n\t\tPartylize.setUsername(username.getText());\n\t\tPartylize.showMainScene();\n\t}", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "public void processRegistration() {\n try {\n System.out.println(\"Processing Registration\");\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"register.xhtml\");\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "private void sendRegisterMessage() {\n Message initMessage = new Message(\"register\");\n initMessage.name = name;\n sendMessage(initMessage);\n\n log(\"sent init. message:\" + initMessage);\n }", "private void registrationView() {\n String login;\n String email;\n String password;\n\n try {\n while (true) {\n printLine();\n print(\"\\tВведите логин\\n\");\n print(\"\\t>>>>> \");\n login = readStringFromConsole();\n\n print(\"\\tВведите email\\n\");\n print(\"\\t>>>>> \");\n try {\n email = valid.emailValidation(readStringFromConsole());\n } catch (NotValidDataException e) {\n printErr(\"\\tнекорректный email\");\n continue;\n }\n\n print(\"\\tВведите пароль\\n\");\n print(\"\\t>>>>> \");\n try {\n password = valid.passwordValidation(readStringFromConsole());\n } catch (NotValidDataException e) {\n printErr(\"\\tнекорректный password\");\n continue;\n }\n break;\n }\n\n try {\n\n serviceAuthorizationService.registration(new UserDto()\n .withUsername(login)\n .withEmail(email)\n .withPassword(password));\n setStatus(REGISTERED);\n printLine();\n print(\"\\tВы успешно зарегистрировались\");\n } catch (AlreadyExistsException e) {\n e.showMessage();\n registrationView();\n }\n } catch (IOException e) {\n registrationView();\n }\n }", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "public void welcomeMsg(){\r\n\t\tdisplay(\"***************************\");\r\n\t\tdisplay(\"Hi you and welcome on STYF!\");\r\n\t\tdisplay(\"Are you already registred(Y/N)?\");\r\n\t}", "public void onSignUpClick() {\n\t\tString uid = regview.getUsername();\n\t\tString pw = regview.getPassword();\n\t\tString na = regview.getName();\n\t\tString em = regview.getEmail();\n\t\tString text = \"\";\n\t\tif(uid.equals(\"\") || pw.equals(\"\") || na.equals(\"\")|| em.equals(\"\")){\n\t\t\ttext = \"Please fill out all fields!\";\n\t\t} else if(regview.findUser(uid)!=User.NULL_USER){\n\t\t\ttext = \"The username already exsit, please try another one!\";\n\t\t} else {\n\t\t\tregview.addUser(new User(uid,pw,na,em));\n\t\t\tregview.goLoginPage();\n\t\t}\n\t\tregview.setRegisterText(text);\n\t}", "public void handleRegister() {\n\t\tmainApp.showRegistrationPage();\n\t}", "public void UserHasBeenRegistered() {\r\n\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"User has been registered\",\"\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\tNameTF.setText(\"\");\r\n\t\t\tSurnameTF.setText(\"\");\r\n\t\t\tUsernameTF.setText(\"\");\r\n\t\t\tPasswordTF.setText(\"\");\r\n\t\t\tEmailTF.setText(\"\");\r\n\t\t\tAddressTF.setText(\"\");\r\n\t\t\tCardNTF.setValue(null);\r\n\t\t}", "public Successful_Registration() {\n initComponents();\n }", "public void RegisterUser() {\n try {\n reg = new Registration();\n reg.setFirstName(FName);\n reg.setLastName(LName);\n reg.setCompanyName(CompanyName);\n reg.setEmail(Email);\n reg.setMobile(mobile);\n ValidateRegistration validator = new ValidateRegistration();\n boolean legitmail = validator.validateEmail(reg);\n if ( legitmail == false ) {\n System.out.println(\"Not a legitimate Email\");\n FacesContext c = FacesContext.getCurrentInstance();\n FacesMessage m = new FacesMessage(\"Invalid Email\", \"The email provided is not correct\");\n c.addMessage(null, m);\n } else {\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"mainpage.xhtml\");\n }\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "private void register(UserAuthenticationMessage uaMessage) {\n\t\tinitialize();\n\t\tUser newUser = uaMessage.getUser();\n\t\tHashMap<String, Boolean> dbInfo = DatabaseRequests.registerNewUser(newUser);\n\t\tcreateRegistrationAnswer(dbInfo.get(MIDs.EMAIL_EXISTS), dbInfo.get(MIDs.USER_EXISTS), dbInfo.get(MIDs.AUTHENTICATE));\n\t}", "public SignUp() {\n Logger.log(\"SHOWING SIGN-UP PAGE\");\n\n displaySurnameFields();\n displayNameFields();\n displayNicknameFields();\n displayEmailFields();\n displayPasswordFields();\n displayConfirmPassword();\n displayBirthdayFields();\n displayCountryFields();\n\n displayBackButton();\n displaySubmitButton();\n\n setSceneMusic(\"pallet_town.mp3\");\n }", "void onSignUpEmailRegistered();", "public signup() {\n initComponents();\n }", "public void signUp() {\n presenter.signup(username.getText().toString(), password.getText().toString());\n }", "private void success() {\n showMessage(\"Congratulations!\", \"success\");\n }", "public Register() {\n setTitle(\"Register\"); //sets its title name which appears on top the frame\n setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); //optional, what happens when the frame closes\n addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n windowListener.handleClosing();\n }\n });\n\n setBounds(150, 150, 400, 200); //Explicitly defining the frame size and also frame location\n contentPane = new JPanel(); // Creating a new jpanel\n contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); // specifies added component's position within the panel\n setContentPane(contentPane); //Adding components to the Content Pane\n contentPane.setLayout(null); //sets the layout manager as null\n\n JLabel lblUsername = new JLabel(\"Username\"); // Creates a label with default value Username\n lblUsername.setBounds(91, 14, 66, 14); // sets the label size and location\n contentPane.add(lblUsername); // Adds the label to the content pane\n\n JLabel lblEmail = new JLabel(\"Email\"); // Creates a label with default value Email\n lblEmail.setBounds(91, 39, 66, 14); // sets the label size and location\n contentPane.add(lblEmail); // Adds the label to the content pane\n\n JLabel lblPassword = new JLabel(\"Password\"); // Creates a label with default value Password\n lblPassword.setBounds(91, 64, 66, 14); // sets the label size and location\n contentPane.add(lblPassword); // Adds the label to the content pane\n\n txtLogin = new JTextField(); // creates empty Login text field\n txtLogin.setBounds(179, 11, 120, 20); //Defines the text field size and location\n contentPane.add(txtLogin); // Adds the dreated email text field to the contentpane\n txtLogin.setColumns(10); // creates JTextField with default number of columns\n\n txtEmail = new JTextField();// creates empty email text field \n txtEmail.setBounds(179, 36, 120, 20); //Defines the text field size and location\n contentPane.add(txtEmail); // Adds the dreated email text field to the contentpane\n txtLogin.setColumns(10); // creates JTextField with default number of columns\n\n passwordField = new JPasswordField(); // create empty password field\n passwordField.setToolTipText(\"\"); // shows nothing when you hover curser over the password field\n passwordField.setBounds(179, 61, 120, 20); // Defines the password field size and location\n contentPane.add(passwordField); // Adds the password field to the Content Pane\n\n JLabel lblConfirmPassword = new JLabel(\"Confirm Password\"); // Creates a label with default value Confirm Password\n lblConfirmPassword.setBounds(65, 95, 108, 14); // sets the label size and location\n contentPane.add(lblConfirmPassword); // Adds the label to the content pane\n\n // add new user and password to txt file \n JButton btnSignUp = new JButton(\"Sign Up\"); // Creates Sign Up button and gives it default name Sign Up\n btnSignUp.addActionListener(new ActionListener() {//Adds onClick listener to the button\n public void actionPerformed(ActionEvent arg0) { // method called when the button is clicked\n\n FileWriter fw; // create variable for the FileWriter which writes to the file\n //catch for empty unfilled textfields\n if (!txtLogin.getText().isEmpty() || !passwordField.getText().isEmpty() || !confirmPasswordField.getText().isEmpty() || !txtEmail.getText().isEmpty()) {\n if (passwordField.getText().equals(confirmPasswordField.getText())) {\n Pattern p = Pattern.compile(\"^[_A-Za-z0-9-\\\\+]+(\\\\.[_A-Za-z0-9-]+)*@\"\n + \"[A-Za-z0-9-]+(\\\\.[A-Za-z0-9]+)*(\\\\.[A-Za-z]{2,})$\"); // Rejex which checks for a valid email address\n Matcher m = p.matcher(txtEmail.getText()); //Tries to match the input email to check whether it is a valid email coapturing all required aspects\n\n if (m.find()) { // when mathcer finds the email valid proceed below\n try {\n fw = new FileWriter(\"src//SandwichShop//users.txt\", true); // Assign the FileWriter fw to a file\n fw.write(txtLogin.getText() + \" \" + passwordField.getText() + \" \" + txtEmail.getText() + \" \\r\\n\"); // Write user details to the file\n fw.close(); //close the FileWriter\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n JOptionPane.showMessageDialog(null, \"Registration completed successfully!\");\n } else {\n JOptionPane.showMessageDialog(null, \"Enter correct E-mail, please.\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"\\\"Password\\\" field and \\\"Confirm Password\\\" field not match\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"One or more fields are empty!\");\n }\n }\n });\n btnSignUp.setBounds(16, 125, 350, 23); // set size and location of the Sign Up button\n contentPane.add(btnSignUp); // Add the button to the content pane\n\n confirmPasswordField = new JPasswordField(); // create confirmPassword field\n confirmPasswordField.setToolTipText(\"\"); // shows nothing when you hover curser over the password field\n confirmPasswordField.setBounds(179, 92, 120, 20); // set size and location of the password field\n contentPane.add(confirmPasswordField); // add the confirm password field to the content pane\n }", "private void submitForm() {\n Toast.makeText(this, \"Registering...\", Toast.LENGTH_LONG).show();\n }", "public void signup(){\n\t\tboolean result = SignUpForm.display(\"Chocolate Chiptunes - Sign Up\", \"Sign-Up Form\");\n\t\tSystem.out.println(result);\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\ttextUser.setText(\"\");\n\t\t\t\ttextPass.setText(\"\");\n\t\t\t\t//Next JPanel in this case is RegisterPanel\n\t\t\t\tv.setPantallaRegistro();\n\t\t\t}", "public static void signUp(String username, String password, String alternativeEmail, String firstName, String lastName) {\n click(REGISTRATION_LINK);\n type(REG_FLOW_USERNAME_FIELD, username);\n click(REG_FLOW_CHECK_BUTTON);\n// if (!REG_FLOW_USERNAME_FREE_MESSAGE.toString().contains(\"Потребителското име е свободно\")) {\n// System.out.println(\"Try another username - the entered one is already in use\");\n// }\n type(REG_FLOW_PASSWORD_FIELD, password);\n type(REG_FLOW_PASSWORD_REENTER_FIELD, password);\n WebElement phoneCheckbox = Browser.driver.findElement(REG_FLOW_PHONE_CHECKBOX);\n if (phoneCheckbox.isEnabled()) {\n phoneCheckbox.click(); //that's how we disable it\n }\n type(REG_FLOW_ALTERNATIVE_EMAIL_FIELD, alternativeEmail);\n type(REG_FLOW_QUESTION_FIELD, \"To be or not to be?\");\n type(REG_FLOW_ANSWER_FIELD, \"To beeee.\");\n type(REG_FLOW_FNAME_FIELD, firstName);\n type(REG_FLOW_LNAME_FIELD, lastName);\n Browser.driver.switchTo().frame(\"abv-GDPR-frame\").manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n // Manually to tap ACCEPT on the GDPR window\n Browser.driver.switchTo().defaultContent();\n click(REG_FLOW_GENDER_RADIOBUTTON); //to choose male\n click(REG_FLOW_DAY_DROPDOWN);\n click(REG_FLOW_DAY_3); // to choose 3th\n click(REG_FLOW_MONTH_DROPDOWN);\n click(REG_FLOW_MONTH_5); // to choose May\n click(REG_FLOW_YEAR_DROPDOWN);\n click(REG_FLOW_YEAR_1998); // to choose 1998\n\n findElement(REG_FLOW_CAPTCHA_FIELD);\n click(REG_FLOW_CAPTCHA_FIELD);\n // Timeout to enter the CAPTCHA manually\n // EXPLICIT WAIT DA MU TURYA\n click(REG_FLOW_CREATE_BUTTON);\n String successfulRegMessage = Browser.driver.findElement(REG_SUCCESS_MESSAGE).getText().trim();\n assertTrue(successfulRegMessage.contains(\"Успешна регистрация.\"), \"No SUCCESS message\");\n click(LOGIN_TO_YOUR_EMAIL_BUTTON);\n }", "public SignUp() {\n initComponents();\n }", "public SignUp() {\n initComponents();\n }", "public String registration() {\n if (name != null) {\n int createdUsers = DBUtils.addUser(name, password, email);\n if (createdUsers > 0) {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/index?faces-redirect=true\";\n }\n }\n return \"/pages/register.xhtml?faces-redirect=true\";\n }", "@Override\n public void onRegistrationAccomplished() {\n Prefs.setSignedIn(true);\n // Proceed to Main\n proceedToMainActivityAndFinish();\n }", "private void initSignUpButton() {\n TextButton signUpButton = new TextButton(\"Sign up\", skin);\n signUpButton.setPosition(320, 125);\n signUpButton.addListener(new InputListener() {\n @Override\n public void touchUp(InputEvent event, float x, float y, int pointer, int button) {\n AuthService authService = new AuthService();\n RegistrationResponse response\n = authService.register(usernameField.getText(), passwordField.getText());\n switch (response) {\n case OCCUPIED_NAME:\n usernameTakenDialog();\n break;\n case SHORT_PASSWORD:\n passwordTooShortDialog();\n break;\n case SUCCESS:\n stateManager.setState(new LoginState(stateManager));\n break;\n default:\n }\n }\n\n @Override\n public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n System.out.println(\"pressed sign up\");\n return true;\n }\n });\n stage.addActor(signUpButton);\n }", "public String register() {\r\n\t\tif (password.equals(passwordConfirm)) {\r\n\t\t\tUser newUser = new User(username, password);\r\n\t\t\t\r\n\t\t\tif (dataManager.addUser(newUser)) {\r\n\t\t\t\tFacesMessage message = new FacesMessage(\"User has been registered successfully.\");\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null, message);\r\n\t\t\t\tlogger.info(\"New user has been registered.\");\r\n\t\t\t\treturn \"login.xhtml\";\r\n\t\t\t\t\r\n\t\t\t}\t\t\t\r\n\t\t\tFacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, \"\", \"A user with the same username already exists.\");\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(\"registration_form:username\", message);\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tFacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, \"\", \"Password confirmation is incorrect.\");\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(\"registration_form:password_confirm\", message);\t\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Test(priority = 1, alwaysRun = true)\n\n\tpublic void usercanregistersuccessfully() {\n\t\thomeobject = new HomePage(driver);\n\t\thomeobject.openregisterpage();\n\t\t// take object mn el method elmowgoda fy home page\n\t\tregistrationobject = new UserRegisteration(driver);\n\t\tregistrationobject.userregisteration( firstname, lastname, email, password);\n\n\t\t// validate the scenario\n\t\tAssert.assertTrue(registrationobject.successmessage.getText().contains(\"Your registration completed\"));\n\t}", "@Override\n public void onRegistrationSuccess() {\n listener.onUsernameAvailabilityChecked(false);\n }", "public Admin_SignUp() {\n initComponents();\n }", "@FXML\n\tpublic void register (ActionEvent e) {\n\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", TRUSTTORE_LOCATION);\n\t\tSSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault();\n\t\ttry {\n\t\t\tString email = txtNewEmail.getText();\n\t\t\tString nick = txtNickName.getText();\n\t\t\tString pass1 = passFirstPass.getText();\n\t\t\tString pass2 = passSecondPass.getText();\n\t\t\tif (!pass1.equals(pass2)) {\n\t\t\t\tAlert al = new Alert(AlertType.WARNING);\n\t\t\t\tal.setTitle(\"Contraseña erronea\");\n\t\t\t\tal.setContentText(\"Las contraseñas no coinciden\");\n\t\t\t\tal.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif (email.equals(\"\") || nick.equals(\"\") || pass1.equals(\"\") ) {\n\t\t\t\tAlert al = new Alert(AlertType.WARNING);\n\t\t\t\tal.setTitle(\"Datos en blanco\");\n\t\t\t\tal.setContentText(\"Por favor no deje datos en blanco\");\n\t\t\t\tal.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tsocketToLoginSystem = sf.createSocket(IP_DIRECTION, Server.PORT_RECEIVE);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(socketToLoginSystem.getInputStream()));\n\t\t\tPrintWriter out = new PrintWriter(socketToLoginSystem.getOutputStream(), true);\n\t\t\tout.println(ClientAttendant.REGISTER);\n\t\t\tout.println(email);\n\t\t\tout.println(nick);\n\t\t\tout.println(pass1);\n\t\t\t\n\t\t\tString ans = br.readLine();\n\t\t\tif (ans.equals(ClientAttendant.ACCEPTED)) {\n\t\t\t\tAlert al = new Alert(AlertType.CONFIRMATION);\n\t\t\t\tal.setTitle(\"Usuario registrado exitosamente\");\n\t\t\t\tal.setContentText(\"Se ha creado el usuario con las credenciales indicadas.\");\n\t\t\t\tal.showAndWait();\n\t\t\t} else if (ans.equals(ClientAttendant.ERROR)) {\n\t\t\t\tAlert al = new Alert(AlertType.WARNING);\n\t\t\t\tal.setTitle(\"Error al registrar usuario\");\n\t\t\t\tal.setHeaderText(\"No se puede crear el usuario\");\n\t\t\t\tal.setContentText(br.readLine());\n\t\t\t\tal.showAndWait();\n\t\t\t}\n\t\t} catch (IOException e1) {\n\t\t\tAlert al = new Alert(AlertType.ERROR);\n\t\t\tal.setTitle(\"Error en la conexión\");\n\t\t\tal.setHeaderText(\"Problemas con el servidor\");\n\t\t\tal.setContentText(\"No se ha podido establecer conexión con el servidor de logueo.\");\n\t\t\tal.showAndWait();\n\t\t}\n\t}", "public sign_up_page() {\n initComponents();\n }", "public ClientSignUp() {\n\t\tsetTitle(\"Sign Up\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(100, 100, 400, 330);\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\t// Chatter Label\n\t\tJLabel lblClient = new JLabel(\"Chatter\");\n\t\tlblClient.setFont(new Font(\"Arial Black\", Font.BOLD, 34));\n\t\tlblClient.setBounds(100, 30, 171, 54);\n\t\tcontentPane.add(lblClient);\n\t\t\n\t\t// Name:\n\t\tJLabel nameLabel = new JLabel(\"Name:\");\n\t\tnameLabel.setFont(new Font(\"Times New Roman\", Font.PLAIN, 22));\n\t\tnameLabel.setBounds(10, 85, 197, 38);\n\t\tcontentPane.add(nameLabel);\n\t\t\n\t\t// Name field\n\t\tname = new JTextField();\n\t\tname.setBounds(105, 95, 171, 25);\n\t\tcontentPane.add(name);\n\t\tname.setColumns(10);\n\t\t\n\t\t// Email:\n\t\tJLabel userLabel = new JLabel(\"Email:\");\n\t\tuserLabel.setFont(new Font(\"Times New Roman\", Font.PLAIN, 22));\n\t\tuserLabel.setBounds(10, 118, 197, 38);\n\t\tcontentPane.add(userLabel);\n\t\t\n\t\t// Email field\n\t\temail = new JTextField();\n\t\temail.setBounds(105, 127, 171, 25);\n\t\tcontentPane.add(email);\n\t\temail.setColumns(10);\n\t\t\n\t\t// Password:\n\t\tJLabel passLabel = new JLabel(\"Password:\");\n\t\tpassLabel.setFont(new Font(\"Times New Roman\", Font.PLAIN, 22));\n\t\tpassLabel.setBounds(10, 150, 197, 38);\n\t\tcontentPane.add(passLabel);\n\t\t\n\t\t// Password field\n\t\tpassword = new JPasswordField();\n\t\tpassword.setBounds(105, 159, 171, 25);\n\t\tcontentPane.add(password);\n\t\tpassword.setColumns(10);\n\t\t\n\t\t// Password field\n\t\tpasswordCheck = new JPasswordField();\n\t\tpasswordCheck.setBounds(105, 190, 171, 25);\n\t\tcontentPane.add(passwordCheck);\n\t\tpasswordCheck.setColumns(10);\n\t\t\n\t\t// Register button\n\t\tJButton btnRegister = new JButton(\"Register\");\n\t\tbtnRegister.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString pass = Integer.toString(String.valueOf(password.getPassword()).hashCode());\n\t\t\t\tString pass2 = Integer.toString(String.valueOf(passwordCheck.getPassword()).hashCode());\n\t\t\t\tSystem.out.println(pass.equals(pass2));\n\t\t\t\tif (pass.equals(pass2)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// Socket below is used for remote server\n\t\t\t\t\t\t// Socket signup = new Socket(\"carteetest4.misc.iastate.edu\", PORT);\n\t\t\t\t\t\t// For localhost hosting on port 4444\n\t\t\t\t\t\tSocket signup = new Socket(\"localhost\", PORT);\n\t\t\t\t\t\t// input stream not needed\n\t\t\t\t\t\tTimeUnit.SECONDS.sleep(1);\n\t\t\t\t\t\tPrintWriter out = new PrintWriter(signup.getOutputStream());\n\t\t\t\t\t\t// template: \"REGISTER <email> <name> <password>\"\n\t\t\t\t\t\tString register = \"REGISTER \" + email.getText() + \" \" + name.getText() + \" \" + pass;\n\t\t\t\t\t\tbyte[] creds = Crypto.encrypt(register);\n\t\t\t\t\t\tString bytecreds = \"\";\n\t\t\t\t\t\tfor (byte b : creds)\n\t\t\t\t\t\t\tbytecreds += b + \" \";\n\t\t\t\t\t\tout.println(bytecreds);\n\t\t\t\t\t\tout.flush();\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t} catch (IOException | InterruptedException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tbtnRegister.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tbtnRegister.setBounds(135, 220, 89, 23);\n\t\tcontentPane.add(btnRegister);\n\t\t\n\t\t// Enter default to Register\n\t\tJRootPane rootPane = SwingUtilities.getRootPane(btnRegister); \n\t\trootPane.setDefaultButton(btnRegister);\n\t\t\n\t}", "public SignUP() {\n initComponents();\n }", "public void register()\n {\n menu.registerDisplay();\n chooseRole();\n }", "public void register() {\n int index = requestFromList(getUserTypes(), true);\n if (index == -1) {\n guestPresenter.returnToMainMenu();\n return;\n }\n UserManager.UserType type;\n if (index == 0) {\n type = UserManager.UserType.ATTENDEE;\n } else if (index == 1) {\n type = UserManager.UserType.ORGANIZER;\n } else {\n type = UserManager.UserType.SPEAKER;\n }\n String name = requestString(\"name\");\n char[] password = requestString(\"password\").toCharArray();\n boolean vip = false;\n if(type == UserManager.UserType.ATTENDEE) {\n vip = requestBoolean(\"vip\");\n }\n List<Object> list = guestManager.register(type, name, password, vip);\n int id = (int)list.get(0);\n updater.addCredentials((byte[])list.get(1), (byte[])list.get(2));\n updater.addUser(id, type, name, vip);\n guestPresenter.printSuccessRegistration(id);\n }", "private ManualMessage() {\n initFields();\n }", "public Sign_Up() {\n initComponents();\n }", "@FXML\n\tpublic void createUser(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString name = txtUserNames.getText();\n\t\tString lastName = txtUserSurnames.getText();\n\t\tString id = txtUserId.getText();\n\t\tString username = txtUserUsername.getText();\n\t\tString password = PfUserPassword.getText();\n\n\t\tif (!name.equals(empty) && !lastName.equals(empty) && !id.equals(empty) && !username.equals(empty)\n\t\t\t\t&& !password.equals(empty)) {\n\t\t\tcreateSystemUser(name, lastName, id, username, password);\n\t\t\ttxtUserNames.setText(\"\");\n\t\t\ttxtUserSurnames.setText(\"\");\n\t\t\ttxtUserId.setText(\"\");\n\t\t\ttxtUserUsername.setText(\"\");\n\t\t\tPfUserPassword.setText(\"\");\n\t\t\t// labelUserMessage.setText(\"The user has been created\");\n\t\t} else if (name.equals(empty) && lastName.equals(empty) && id.equals(empty) && username.equals(empty)\n\t\t\t\t&& password.equals(empty)) {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.setContentText(\"Todos los campos de texto deben ser llenados\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "public Registration() {\n initComponents();\n managerpassword_label.setVisible(false);\n managerpassword_passfield.setVisible(false);\n \n }", "public void setupTask() {\n\t\tif (!hasInternetConnection()) {\n\t\t\tdlgNoInet.show();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tsetupMessageHandler();\n\t\t\n\t\t// Activate text box if user is logged in.\n\t\tString userid = checkLogin();\n\t\tLog.d(\"TIMER\", \"User logged in: \" + userid);\n\t\tif (userid != null && userid.length() > 0 && etMessage != null) {\n\t\t\tsetupSendMessageListener();\n\t\t\tetMessage.setEnabled(true);\n\t\t\thideVirtualKeyboard();\n\t\t}\n\t\t\n\t\t// Setup the message cursor object.\n\t\tsetupMessageCursor();\n\n\t\t// Start message listener if base url is set.\n\t\tstartMessageListener();\n\t}", "private void createGuestProfile() {\n saveData();\n signupDelegate.enableNextButton(Boolean.FALSE);\n SwingUtil.setCursor(this, java.awt.Cursor.WAIT_CURSOR);\n errorMessageJLabel.setText(getString(\"SigningUp\"));\n errorMessageJLabel.paintImmediately(0, 0, errorMessageJLabel.getWidth(),\n errorMessageJLabel.getHeight());\n try {\n getSignupHelper().createGuestProfile();\n } catch (final OfflineException ox) {\n logger.logError(ox, \"An offline error has occured.\");\n addInputError(getSharedString(\"ErrorOffline\"));\n } catch (final ReservationExpiredException rex) {\n logger.logWarning(rex, \"The username/e-mail reservation has expired.\");\n addInputError(getString(\"ErrorReservationExpired\"));\n } catch (final Throwable t) {\n logger.logFatal(t, \"An unexpected error has occured.\");\n addInputError(getSharedString(\"ErrorUnexpected\"));\n } finally {\n errorMessageJLabel.setText(\" \");\n }\n }", "public void registrarUsuarioFinal(){\r\n Usuario nuevoUsuario= new Usuario();\r\n nuevoUsuario.setNombreUsuario(nuevoNombreUsuario);\r\n nuevoUsuario.setPassword(nuevoPasswordUsuario);\r\n nuevoUsuario.setTipoUsuario(\"final\");\r\n \r\n IUsuarioDAO iusuarioDAO = new UsuarioDAOImp();\r\n iusuarioDAO.agregarUsuario(nuevoUsuario);\r\n FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Usuario registrado\", \"Usuario registrado exitosamente\");\r\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\r\n\r\n }", "private void registerEmailAddr() {\r\n\t\t\t\tWindow.setTitle(Common.APPNAME);\r\n\t\t\t\tmanualRegisterBtn.setEnabled(false);\r\n\t\t\t\tfinal String emailAddrProvided = emailAddrField.getText();\r\n\t\t\t\tserverResponseLabel.setText(\"\");\r\n\t\t\t\tregisterService.manualRegister(emailAddrProvided,\r\n\t\t\t\t\tnew AsyncCallback<String>() {\r\n\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t\t\t\t// Show the RPC error message to the user\r\n\t\t\t\t\t\t\tdialogBox.setText(\"Email Address Registration - Failure\");\r\n\t\t\t\t\t\t\tdialogBox.center();\r\n\t\t\t\t\t\t\tcloseButton.setFocus(true);\r\n\t\t\t\t\t\t\tdialogBox.show();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tpublic void onSuccess(String result) {\r\n\t\t\t\t\t\t\tif (\"Verified\".equalsIgnoreCase(result)) {\r\n\t\t\t\t\t\t\t\tString registerReturnUri = GWT.getHostPageBaseURL() + REGISTER_RETURN_URI;\r\n\t\t\t\t\t\t\t\tWindow.open(registerReturnUri, \"_self\", \"\"); \r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\temailAddrField.setText(\"\");\r\n\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\tWindow.alert(result);\r\n\t\t\t\t\t\t\t\t*/\r\n\t\t\t\t\t\t\t\tdialogBox.center();\r\n\t\t\t\t\t\t\t\tdialogBox.setAnimationEnabled(true);\r\n\t\t\t\t\t\t\t\tdialogBox.setWidth(\"320px\");\r\n\t\t\t\t\t\t\t\tdialogBox.setText(result);\r\n\t\t\t\t\t\t\t\tcloseButton.setFocus(true);\r\n\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\tmanualRegisterBtn.setEnabled(true);\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}\r\n\t\t\t\t);\r\n\t\t\t}", "public SendChequeJFrame(EChequeRegistration registerdUser) { \n initComponents();\n eChequeRegisterdUser = registerdUser;\n }", "public void register()\n {\n String n = nameProperty.getValue();\n if (n == null || n.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String p = passwordProperty.getValue();\n if (p == null || p.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String e = emailProperty.getValue();\n if (e == null || e.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String ph = phoneProperty.getValue();\n if (ph == null || ph.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (ph.length() != 8)\n {\n throw new IllegalArgumentException(\"Invalid phone number\");\n }\n try\n {\n Integer.parseInt(ph);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid phone number\", ex);\n }\n String t = titleProperty.getValue();\n if (t == null || t.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String a = authorProperty.getValue();\n if (a == null || a.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String y = yearProperty.getValue();\n if (y == null || y.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (y.length() != 4)\n {\n throw new IllegalArgumentException(\"Invalid year\");\n }\n try\n {\n Integer.parseInt(y);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid year\", ex);\n }\n\n try\n {\n\n model.registerUser(n, p, e, ph, t, a, y);\n\n }\n catch (Exception e1)\n {\n\n e1.printStackTrace();\n }\n\n }", "private void registerUserOnServer() throws IOException {\r\n\t\tdataSending.sendMessage(Server.REGISTER+\" \"+userName, Long.toString(userModel.ID));\r\n\t}", "private void SignUp(String email, String password) {\n if (TextUtils.isEmpty(email) || TextUtils.isEmpty(password) ) {\n\n }else {\n msignInDialog.setTitle(\"Creating New User\");\n msignInDialog.setMessage(\"Please wait while DevChat creates your new Account...\");\n msignInDialog.setCanceledOnTouchOutside(false);\n msignInDialog.show();\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n Toast.makeText(ActivityRegister.this, \"User Account Created!\", Toast.LENGTH_SHORT).show();\n createUser(et_username.getText().toString());\n msignInDialog.dismiss();\n Intent chatBoxIntent = new Intent(ActivityRegister.this, Chatbox_Activity.class);\n Bundle bundle = new Bundle();\n bundle.putStringArray(\"values\", values);\n chatBoxIntent.putExtras(bundle);\n startActivity(chatBoxIntent);\n } else {\n msignInDialog.dismiss();\n Toast.makeText(ActivityRegister.this, \"Error Creating New User Account!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n }", "private void attemptRegister() {\n progressGenerator = new ProgressGenerator();\n\n // Reset errors.\n inputEmail.setError(null);\n inputPasswd.setError(null);\n\n // Store values at the time of the login attempt.\n String email = inputEmail.getText().toString();\n String password = inputPasswd.getText().toString();\n String confirmPassword = inputConfirmPasswd.getText().toString();\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n inputEmail.setError(getString(R.string.error_field_required));\n inputEmail.requestFocus();\n shake();\n return;\n } else if (!isEmailValid(email)) {\n inputEmail.setError(getString(R.string.error_invalid_email));\n inputEmail.requestFocus();\n shake();\n return;\n }\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password) || !isPasswordValid(password)) {\n inputPasswd.setError(getString(R.string.error_invalid_password));\n inputPasswd.requestFocus();\n shake();\n return;\n }\n\n // Check if passwords match\n if (!confirmPassword.equals(password)) {\n inputConfirmPasswd.setError(getString(R.string.error_password_does_not_match));\n inputConfirmPasswd.requestFocus();\n shake();\n return;\n }\n\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n isRegistering = true;\n btnRegister.requestFocus();\n\n progressGenerator.start(btnRegister);\n btnRegister.setEnabled(false);\n inputEmail.setEnabled(false);\n inputPasswd.setEnabled(false);\n inputConfirmPasswd.setEnabled(false);\n\n LoginAgent.getInstance().registerInBackground(email, password);\n }", "public Signup() {\n initComponents();\n }", "public SignUpScreen(UserController userController) {\n super(userController);\n System.out.printf(\"%s%s%n%s%n\",\n Notifications.getMessage(\"PROMPT_SIGN_UP_SCREEN\"),\n Notifications.getMessage(\"MSG_LIBRARY_NAME\"),\n Notifications.getMessage(\"SEPARATOR\"));\n\n int status;\n do {\n status = signUp();\n } while(status == 1);\n }", "private void registerUser() {\n\n // Get register name\n EditText mRegisterNameField = (EditText) findViewById(R.id.register_name_field);\n String nickname = mRegisterNameField.getText().toString();\n\n // Get register email\n EditText mRegisterEmailField = (EditText) findViewById(R.id.register_email_field);\n String email = mRegisterEmailField.getText().toString();\n\n // Get register password\n EditText mRegisterPasswordField = (EditText) findViewById(R.id.register_password_field);\n String password = mRegisterPasswordField.getText().toString();\n\n AccountCredentials credentials = new AccountCredentials(email, password);\n credentials.setNickname(nickname);\n\n if (DataHolder.getInstance().isAnonymous()) {\n credentials.setOldUsername(DataHolder.getInstance().getUser().getUsername());\n }\n\n sendRegistrationRequest(credentials);\n }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t String username = t4.getText().toString();\n\t\t\t String Fullname = t.getText().toString();\n\t\t\t String Address = t1.getText().toString();\n\t\t\t String ContactNo = t3.getText().toString();\n\t\t\t String EmailId = t2.getText().toString();\n \t char pass[]= p.getPassword();\n \t String password = new String(pass);\n \t \n \t try\n \t {\n \t \t Class.forName(\"com.mysql.jdbc.Driver\");\n \t \t con = DriverManager.getConnection( \"jdbc:mysql://localhost:3306/RIT\", \"root\", \"\");\n \t stmt = con.createStatement();\n \t stmt.executeUpdate(\"insert into user values('\"+Fullname+\"','\"+Address+\"','\"+EmailId+\"','\"+ContactNo+\"','\"+username+\"','\"+password+\"')\");\n \t JOptionPane.showMessageDialog(f, \"Registered Successfully\");\n \t \n \t }\n \t catch(ClassNotFoundException e1)\n \t {\n \t \t e1.printStackTrace();\n \t } \n \t catch (SQLException 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 finally\n \t {\n \t \t try {\n\t\t\t\t\t\t\tcon.close();\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 }\n\t\t\t\t\n \t\t \n\t\t\t\t}", "@FXML protected void handleSignUpButtonAction() {\n \tboolean bexit = false;\n \tif(passwordField.getText().equals(passwordField2.getText()))\n \t{\n \t\t\n \t\tString signUpUsername = username.getText();\n \t\tString signUpPassword = passwordField.getText();\n \t\t\n if(username.getText().toString().length() >= 6 && passwordField.getText().toString().length() >= 6)\n {\n\t \t\tUser user = new User(signUpUsername, \"Unknown\", null, \"Unknown\", signUpPassword);\n\t \t\t\n\t \t\ttry {\n\t\t\t\t\tuser = client.createUser(user);\n\t \t\t\n\t \t\t} catch (WebApplicationException e) {\n\t \t\t\tLOGGER.log(Level.SEVERE, e.toString(), e);\n\t \t\t\tif (e.getResponse().getStatus() == 409) {\n\t \t\t\t\tactiontarget.setText(\"Sign up error: Username already exists\");\n\t \t\t\t} else {\n\t \t\t\t\t\n\t \t\t\t}\n\t \t\t\t\n\t \t\t} catch (JsonProcessingException e) {\n\t \t\t\tLOGGER.log(Level.SEVERE, e.toString(), e);\n\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLOGGER.log(Level.SEVERE, e.toString(), e);\n\t\t\t\t}\n\t \t\t\n\t \t\t// Go back to Login view\n\t \t\t\n\t \t\tLoginVistaNavigator.loadVista(LoginVistaNavigator.LOGIN);\n }\n else\n {\n \tactiontarget.setText(\"username/password \\nlength must be 6 number\");\n }\n \t}\n \telse\n \t{\n \t\tactiontarget.setText(\"password not consistent.\");\n \t}\n }", "private void sendToServer(User register) {\r\n RegisterServiceAsync registerServiceAsync = GWT.create(RegisterService.class);\r\n AsyncCallback<String> asyncCallback = new AsyncCallback<String>() {\r\n public void onSuccess(String result) {\r\n if (result != null) {\r\n String[] tmp = result.split(\"_\");\r\n \r\n int value = Integer.parseInt(tmp[0]);\r\n if (value == User.OK) {\r\n RootPanel.get(\"content\").clear();\r\n String[] href = Window.Location.getHref().split(\"#\");\r\n String linker = href[0].contains(\"?\") ? \"&\" : \"?\";\r\n getEntry().showDialogBox(\"ActivationLink\", href[0] + linker + \"activationCode=\" + tmp[1]);\r\n History.newItem(\"welcome\");\r\n } else {\r\n if (value >= User.PASSWORD_FAULT) {\r\n value -= User.PASSWORD_FAULT;\r\n }\r\n if (value >= User.USERNAME_FAULT) {\r\n value -= User.USERNAME_FAULT; \r\n registerInvalid(User.USERNAME_FAULT);\r\n }\r\n if (value >= User.EMAIL_FORMAT) {\r\n value -= User.EMAIL_FORMAT;\r\n registerInvalid(User.EMAIL_FORMAT);\r\n }\r\n if (value >= User.GEBURTSTAG_AGE) {\r\n value -= User.GEBURTSTAG_AGE;\r\n registerInvalid(User.GEBURTSTAG_AGE);\r\n }\r\n if (value >= User.GEBURTSTAG_FORMAT) {\r\n value -= User.GEBURTSTAG_FORMAT;\r\n registerInvalid(User.GEBURTSTAG_FORMAT);\r\n }\r\n if (value >= User.GEBURTSTAG_FAULT) {\r\n value -= User.GEBURTSTAG_FAULT;\r\n registerInvalid(User.GEBURTSTAG_FAULT);\r\n }\r\n submit.setEnabled(true);\r\n }\r\n } else {\r\n submit.setEnabled(true);\r\n }\r\n }\r\n \r\n public void onFailure(Throwable caught) {\r\n registerInvalid(0);\r\n System.out.println(caught);\r\n }\r\n };\r\n registerServiceAsync.register(register, asyncCallback);\r\n }", "public RegisterPanel() {\n initComponents();\n }", "public Sign_up() {\n initComponents();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setLocationRelativeTo(frame);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBackground(Color.LIGHT_GRAY);\r\n\t\tpanel.setBounds(10, 11, 414, 239);\r\n\t\tframe.getContentPane().add(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\t/**\r\n\t\t * Name Label\r\n\t\t */\r\n\t\tJLabel lblNewLabel = new JLabel(\"Name:\");\r\n\t\tlblNewLabel.setForeground(SystemColor.window);\r\n\t\tlblNewLabel.setFont(new Font(\"Malgun Gothic\", Font.PLAIN, 16));\r\n\t\tlblNewLabel.setBounds(20, 69, 63, 14);\r\n\t\tpanel.add(lblNewLabel);\r\n\t\t\r\n\t\t/**\r\n\t\t * Email Label\r\n\t\t */\r\n\t\tJLabel lblEmail = new JLabel(\"Email:\");\r\n\t\tlblEmail.setForeground(SystemColor.window);\r\n\t\tlblEmail.setFont(new Font(\"Malgun Gothic\", Font.PLAIN, 16));\r\n\t\tlblEmail.setBounds(20, 122, 63, 14);\r\n\t\tpanel.add(lblEmail);\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(83, 69, 263, 20);\r\n\t\tpanel.add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setColumns(10);\r\n\t\ttextField_1.setBounds(83, 122, 263, 20);\r\n\t\tpanel.add(textField_1);\r\n\t\t\r\n\t\t/**\r\n\t\t * SUBMIT BUTTON\r\n\t\t */\r\n\t\tJButton btnNewButton = new JButton(\"Submit\");\r\n\t\tbtnNewButton.setBounds(49, 178, 89, 23);\r\n\t\tpanel.add(btnNewButton);\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tString email = textField_1.getText(); \r\n\t\t\t\tString name = textField.getText();\r\n\t\t\t\t\r\n\t\t\t\tif(email.contains(\"email\") || name.contains(\"name\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tJOptionPane.showMessageDialog( btnNewButton, \"Added User To Chat\");\r\n\t\t\t\t\r\n\t\t\t\t\tJButton chat = new JButton( name.substring(0,1));\r\n\t\t\t\t\tchat.setBackground(Color.LIGHT_GRAY);\r\n\t\t\t\t\tchat.setFont(new Font(\"Malgun Gothic\", Font.PLAIN, 12));\r\n\t\t\t\t\tchat.setBounds(0, 0, 70, 60); //initialize in corner with size\r\n\t\t\t\t\tchat.setLocation(15,35+(80*mw.getNumUsers()) + userBufferSpacing); //move to position\r\n\t\t\t\t\t\r\n\t\t\t\t\tchat.addActionListener(new ActionListener() {\r\n\t\t\t\t\t public void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\t \tChat nw = new Chat();\r\n\t\t\t\t\t\t\tnw.frame.setVisible(true);\r\n\t\t\t\t\t } \r\n\t\t\t\t\t});\r\n\t\t\t\t\tframe.dispose();\r\n\t\t\t\t\tmw.frame.getContentPane().add(chat);\r\n\t\t\t\t\tmw.incUsers();\r\n\t\t\t\t\tmw.frame.setVisible(true);\t\r\n\t\t\t }\r\n\t\t\t\telse {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid User Details\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\ttextField_1.setText(null);\r\n\t\t\t\t\ttextField.setText(null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t/**\r\n\t\t * Add User to Group Label\r\n\t\t */\r\n\t\tJLabel lblAddUserTo = new JLabel(\"Add User to Group\");\r\n\t\tlblAddUserTo.setForeground(SystemColor.infoText);\r\n\t\tlblAddUserTo.setFont(new Font(\"Malgun Gothic\", Font.PLAIN, 17));\r\n\t\tlblAddUserTo.setBounds(126, 11, 162, 33);\r\n\t\tpanel.add(lblAddUserTo);\r\n\t\t\r\n\t\t/**\r\n\t\t * CANCEL BUTTON\r\n\t\t */\r\n\t\tJButton btnCancel = new JButton(\"Cancel\");\r\n\t\tbtnCancel.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tframe.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCancel.setBounds(247, 178, 89, 23);\r\n\t\tpanel.add(btnCancel);\r\n\t}", "static void logInPanelHelpAcknowledged() {\n RecordUserAction.record(\"ContextualSearch.logInPanelHelpAcknowledged\");\n }", "private void createRegistrationAnswer(boolean existEMail, boolean existUser, boolean registrationCompleted) {\n\t\tUserAuthenticationAckMessage uaaMessage = new UserAuthenticationAckMessage(MIDs.REGISTRATION);\n\t\tuaaMessage.setAuthentication(registrationCompleted);\n\t\tuaaMessage.setUserExists(existUser);\n\t\tuaaMessage.setEMailExists(existEMail);\n\t\tthis.mesController.sendMessage(uaaMessage);\n\t}", "private void attemptRegistration() {\n emailView.setError(null);\n passwordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = emailView.getText().toString();\n String password = passwordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password) || !isPasswordValid(password)) {\n passwordView.setError(getString(R.string.error_invalid_password));\n focusView = passwordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n emailView.setError(getString(R.string.error_field_required));\n focusView = emailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n emailView.setError(getString(R.string.error_invalid_email));\n focusView = emailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n createFirebaseUser();\n\n }\n }", "@FXML\n private void handleRegistration() {\n app.showRegistrationPage();\n }", "public SignUp() {\n PageFactory.initElements(webDriver, this);\n }", "@Test\n\tpublic void Authentication_02() throws InterruptedException\n\t{\n\t\tRegisterPage rp = PageFactory.initElements(driver, RegisterPage.class);\n\t\t\n\t\trp.inputField(\"wesley\", \"01\", \"[email protected]\", \"12345678\");\n\t\t\n\t\t//verify validation is displayed\n\t\tassertEquals(rp.messageValidationIsExist(\"Username already exists\"), true,\"Message validation is not displayed\");\n\t\t\n\t\trp.clickOkMessageValidationButton();\n\t\t//rp.clearField();\n\t}", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "private void subscriptionComplete(String username, String email){\n //preparo la schermata da mostrare\n TextView name = (TextView) findViewById(R.id.user_name_confirm);\n if(name!=null) name.setText(username);\n TextView description = (TextView) findViewById(R.id.new_user_description);\n String desc = getString(R.string.registration_confirmed_description);\n desc = desc.replace(\"FUCKINGMAIL\",email);\n if(description!=null) description.setText(desc);\n //eseguo lo scambio dei layout mostrati\n View first = findViewById(R.id.subscribe_first);\n View second = findViewById(R.id.subscribe_second);\n if(first!=null && second != null) {\n first.setVisibility(View.INVISIBLE);\n second.setVisibility(View.VISIBLE);\n }\n //nascondo pulsanti da toolbar\n menu.findItem(R.id.next).setVisible(false);\n\n }", "public void registerSuccessful() {\n\t\tnavigateTo(new LoginFragment(), true, null);\n\t}", "@Override\n public void onValidationSucceeded() {\n String email = mEmailField.getText().toString();\n String firstName = mFirstNameField.getText().toString();\n String lastName = mLastNameField.getText().toString();\n String password = mPasswordField.getText().toString();\n\n mSignUpInterface.onSignup(email, firstName, lastName, password);\n }", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n dbHelper.addNewUser( user );\n\n // Get new FirebaseUser\n dbHelper.fetchCurrentUser();\n\n // Add the new user to a new chat containing only the new user\n String chatID = dbHelper.getNewChildKey( dbHelper.getChatUserPath() );\n String userID = dbHelper.getAuth().getUid();\n String displayName = dbHelper.getAuthUserDisplayName();\n\n dbHelper.addToChatUser( chatID, userID, displayName );\n dbHelper.addToUserChat( userID, chatID );\n\n String messageOneID = dbHelper.getNewChildKey(dbHelper.getMessagePath());\n String timestampOne = dbHelper.getNewTimestamp();\n String messageOne = \"COUCH POTATOES:\\nWelcome to Couch Potatoes!\"\n + \"\\nEnjoy meeting new people with similar interests!\";\n\n dbHelper.addToMessage( messageOneID, userID, \"COUCH POTATOES\", chatID, timestampOne, messageOne );\n\n String messageTwoID = dbHelper.getNewChildKey(dbHelper.getMessagePath());\n String timestampTwo = dbHelper.getNewTimestamp();\n String messageTwo = \"COUCH POTATOES:\\nThis chat is your space. Feel free to experiment with the chat here.\";\n\n dbHelper.addToMessage( messageTwoID, userID, \"COUCH POTATOES\", chatID, timestampTwo, messageTwo );\n\n // Registration complete. Redirect the new user the the main activity.\n startActivity( new Intent( getApplicationContext(), MainActivity.class ) );\n finish();\n }", "private void charge_up() throws GB_Exception {\n try{\n if(PersonalDataController.getInstance().existRegistry(username)){\n putPersonalInformation();\n }else{\n putDefaultInformation();\n }\n } catch (SQLException | IOException ex) {\n LOG.error(ex);\n throw new GB_Exception(\"Error al carga informacion de usuario. Comuniquese con su administrador.\");\n }\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 jLabel1 = new javax.swing.JLabel();\n cancel = new javax.swing.JButton();\n jPasswordField1 = new javax.swing.JPasswordField();\n jLabel2 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jTextField1 = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Sign Up\");\n setMaximumSize(new java.awt.Dimension(400, 300));\n setMinimumSize(new java.awt.Dimension(400, 300));\n setPreferredSize(new java.awt.Dimension(400, 300));\n getContentPane().setLayout(null);\n\n jPanel1.setMaximumSize(new java.awt.Dimension(400, 300));\n jPanel1.setMinimumSize(new java.awt.Dimension(400, 300));\n jPanel1.setPreferredSize(new java.awt.Dimension(400, 300));\n jPanel1.setLayout(null);\n\n jButton1.setBackground(new java.awt.Color(204, 255, 102));\n jButton1.setText(\"Register\");\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton1);\n jButton1.setBounds(140, 150, 90, 32);\n\n jLabel1.setBackground(new java.awt.Color(204, 255, 102));\n jLabel1.setText(\"User Name\");\n jPanel1.add(jLabel1);\n jLabel1.setBounds(60, 60, 70, 25);\n\n cancel.setBackground(new java.awt.Color(204, 255, 102));\n cancel.setText(\"Cancel\");\n cancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelActionPerformed(evt);\n }\n });\n jPanel1.add(cancel);\n cancel.setBounds(250, 150, 88, 32);\n\n jPasswordField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jPasswordField1ActionPerformed(evt);\n }\n });\n jPanel1.add(jPasswordField1);\n jPasswordField1.setBounds(140, 110, 200, 32);\n\n jLabel2.setBackground(new java.awt.Color(204, 255, 102));\n jLabel2.setText(\"Password\");\n jPanel1.add(jLabel2);\n jLabel2.setBounds(60, 110, 63, 22);\n\n jButton3.setBackground(new java.awt.Color(204, 255, 102));\n jButton3.setText(\"main\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton3);\n jButton3.setBounds(140, 190, 90, 32);\n\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n jPanel1.add(jTextField1);\n jTextField1.setBounds(140, 60, 200, 31);\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/2013-12-05.jpg\"))); // NOI18N\n jPanel1.add(jLabel4);\n jLabel4.setBounds(0, 0, 400, 310);\n\n getContentPane().add(jPanel1);\n jPanel1.setBounds(0, -5, 400, 310);\n\n pack();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//REPLY GUI\n\t\t\t\tgui.onEvent(className, XNode.NEW_USER_CREATED, null);\n\t\t\t}", "@MessageMapping(\"/chat.register\")\n @SendTo(\"/topic/public\")\n public Message register(@Payload Message message, SimpMessageHeaderAccessor simpMessageHeaderAccessor) {\n simpMessageHeaderAccessor.getSessionAttributes().put(\"username\", message.getAuthor());\n return message;\n }", "public RegisterMsg(String account, String password/*, String repassword*/) {\n this.account = account;\n this.password = password;\n //this.repassword = repassword;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew Register();\n\t\t\t\tsetVisible(false);\n\t\t\t}", "public static void signUp() {\n\t\t//donor's full name\n\t\tboolean flag = true;\n \tdo {\n \t\ttry{\n \t\t\tfullname = JOptionPane.showInputDialog(null,\"Enter your full name: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n \t\t\tif (fullname.equals(\"null\")) {\n \t\t\t\tthrow new NullPointerException();\n \t\t\t}\n \t\t\t\tflag = false;\n \t\t} catch (InputMismatchException e) {\n \t\t\tJOptionPane.showMessageDialog(null, \"Please enter a valid name.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t\tflag = true;\n \t\t} catch (NullPointerException e) {\n \t\t\tJOptionPane.showMessageDialog(null, \"Please enter your name.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t\tflag = true;\n \t\t}\n\t\t}while (flag);\n\t\t\n //donor's username\n \tflag = true;\n \tdo {\n \t\ttry {\n \t\t\tusername = JOptionPane.showInputDialog(null,\"Enter your username: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n \t\t\tif (username.equals(\"null\")) {\n \t\t\t\tthrow new NullPointerException();\n \t }\n \t\t\tflag = false;\n \t\t} catch (NullPointerException e) {\n \t\t\tJOptionPane.showMessageDialog(null, \"Please enter a username.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t flag = true;\n \t\t}\t\n \t}while (flag);\n \t\n\t\t//donor's email\n \t \tflag = true;\n \t \tdo {\n \t \t\ttry {\n \t \t\t\temail = JOptionPane.showInputDialog(null,\"Enter your email: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n \t \t\t\tif (email.equals(\"null\")) {\n \t\t\t\tthrow new NullPointerException();\n \t\t\t}\n \t\t\tflag = false;\n \t \t\t} catch (NullPointerException e) {\n \t \t\t\tJOptionPane.showMessageDialog(null, \"Please enter your email\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t \t\t}\t\n \t}while (flag);\n\n\t \t//donor's gender\n \t \tflag = false;\n \t \tObject[] opt = {\"Male\", \"Female\"};\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tint g = JOptionPane.showOptionDialog(null,\"Choose your gender: \", \"SIGN UP\", JOptionPane.YES_NO_OPTION,JOptionPane.PLAIN_MESSAGE, null, opt, null);\n\t\t\t\tif (g == 0) {\n\t\t\t\t\tgender = \"male\";\n\t\t\t\t} else if (g == 1){\n\t\t\t\t\tgender = \"female\";\n\t\t\t\t} else {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t\tflag = true;\n\t\t\t} catch (NullPointerException e1) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please choose your gender\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t}while (flag == false);\n\t\t\t\n\t\t//donor's bloodtype\n\t\tflag = true;\n\t\twhile (flag) {\n\t\t\tbloodtype = (String) JOptionPane.showInputDialog(null, \"Choose your blood type\", \"SIGN UP\", JOptionPane.PLAIN_MESSAGE, null, bloodtypes, \"O+\" );\n\t\t\ttry {\n\t\t\t\tif (bloodtype.equals(null)) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t} else {\n\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please choose your blood type.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//donor's SSN\n\t\tflag = true;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tSSN = JOptionPane.showInputDialog(null,\"Enter your SSN: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\tif (SSN.length() == 11) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"Please enter a valid SSN (11 digits)\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t\tif (SSN.equals(null)) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter your SSN\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t}while (flag);\n\t\t\t\n\t\t//donor's region\n\t\tflag = true;\n\t\tObject[] possibilities = {\"Attica\",\"South Aegean Sea\",\"North Aegean Sea\",\"Central Greece\",\"West Greece\",\n\t\t\t \"Ionian Islands\",\"Thessaly\",\"Peloponnese\",\"Epirus\",\"Eastern Macedonia and Thrace\",\n\t\t\t \"Central Macedonia\",\"West Macedonia\",\"Crete\"};\n\t\twhile (flag) {\n\t\t\tregion = (String)JOptionPane.showInputDialog(null, \"Choose your region\", \"SIGN UP\", JOptionPane.PLAIN_MESSAGE, null, possibilities, \"Attica\" );\n\t\t\ttry {\n\t\t\t\tif (region.equals(null)) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t} else {\n\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please choose your region.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t} \n\t\t}\n\t\t\n\t\t//donor's password\n\t\tflag = true;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tpassword = JOptionPane.showInputDialog(null,\"Enter your password: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\tif (password.matches(\"^.*(?=.{4,10})(?=.*\\\\d)(?=.*[a-zA-Z]).*$\")) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your password must contain both numbers and letters.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t\tif (password.equals(null)) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter your password\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t\t\n\t\t}while(flag);\n\n\t\t//insert user's data into data base\n\t\ttry {\n\t\t\tint rs = Messages.connect().executeUpdate(\"INSERT INTO BloodDonor (B_Name, B_Username, B_email, B_password, Gender, BloodType, SSN, Region)\" + \n\t\t\t\t\"VALUES ('\" + fullname + \"', '\" + username + \"', '\" + email + \"', '\" + password + \"', '\" + gender + \"', '\" + bloodtype + \"', '\" + SSN + \"', '\" + region + \"')\");\n\t\t\tMessages.connect().close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t//insertAnswers(username);\n\t}", "@Override\n\tprotected void setup() {\n\t\t{\n\t\t\tKeyPairGenerator kpg = null;\n\t\t\ttry {\n\t\t\t\tkpg = KeyPairGenerator.getInstance(\"RSA\");\n\t\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t\te.printStackTrace(); // There is such an algorithm\n\t\t\t}\n\t\t\tkpg.initialize(GlobalPreferences.getKeysize(), new SecureRandom());\n\t\t\tkeys = kpg.genKeyPair();\n\t\t\t\n\t\t\tMLoginInitiate loginInitiate = new MLoginInitiate(keys.getPublic());\n\t\t\tputMessage(loginInitiate);\n\t\t}\n\t\t\n\t\twhile(!loginCompleted)\n\t\t{\n\t\t\ttry {\n\t\t\t\tThread.sleep(50); // Wait a bit for response\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tputMessage(new MLoginCompleted(loginSuccess, -2, \"admin\", \"admin\", false));\n\t}", "private void setupMessage() {\n \tmessage = new GLabel(\"\");\n \tmessage.setFont(\"SansSerif-12\");\n }", "private void register() {\r\n if (mName.getText().length() == 0) {\r\n mName.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mEmail.getText().length() == 0) {\r\n mEmail.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() == 0) {\r\n mPassword.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() < 6) {\r\n mPassword.setError(\"password must have at least 6 characters\");\r\n return;\r\n }\r\n\r\n\r\n final String email = mEmail.getText().toString();\r\n final String password = mPassword.getText().toString();\r\n final String name = mName.getText().toString();\r\n\r\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if (!task.isSuccessful()) {\r\n Snackbar.make(view.findViewById(R.id.layout), \"sign up error\", Snackbar.LENGTH_SHORT).show();\r\n } else {\r\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\r\n\r\n //Saves the user's info in the database\r\n Map<String, Object> mNewUserMap = new HashMap<>();\r\n mNewUserMap.put(\"email\", email);\r\n mNewUserMap.put(\"name\", name);\r\n\r\n FirebaseDatabase.getInstance().getReference().child(\"users\").child(uid).updateChildren(mNewUserMap);\r\n }\r\n }\r\n });\r\n\r\n }", "protected void initUIComponents() {\n registerButton = findViewById(R.id.signUpButton);\n\n email = findViewById(R.id.emailInput);\n password = findViewById(R.id.passwordInput);\n password2 = findViewById(R.id.passwordInput2);\n\n registerButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (checkFields()) {\n createRegistrationInfo();\n registerUser(registrationInfo);\n }\n }\n });\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = 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 userNameRegister = new javax.swing.JTextField();\n fullNameRegister = new javax.swing.JTextField();\n signUpBtn = new javax.swing.JButton();\n confirmPassRegister = new javax.swing.JPasswordField();\n passwordRegister = new javax.swing.JPasswordField();\n jLabel2 = new javax.swing.JLabel();\n\n jLabel1.setText(\"jLabel1\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(183, 215, 255));\n jPanel1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 2, true));\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n jPanel2.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));\n\n jLabel3.setFont(new java.awt.Font(\"72\", 0, 24)); // NOI18N\n jLabel3.setText(\"Full Name:\");\n\n jLabel4.setFont(new java.awt.Font(\"72\", 0, 24)); // NOI18N\n jLabel4.setText(\"Username:\");\n\n jLabel5.setFont(new java.awt.Font(\"72\", 0, 24)); // NOI18N\n jLabel5.setText(\"Confirm Password:\");\n\n jLabel6.setFont(new java.awt.Font(\"72\", 0, 24)); // NOI18N\n jLabel6.setText(\"Password:\");\n\n userNameRegister.setFont(new java.awt.Font(\"72\", 0, 18)); // NOI18N\n userNameRegister.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 2, true));\n userNameRegister.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n userNameRegisterActionPerformed(evt);\n }\n });\n\n fullNameRegister.setFont(new java.awt.Font(\"72\", 0, 18)); // NOI18N\n fullNameRegister.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 2, true));\n fullNameRegister.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n fullNameRegisterActionPerformed(evt);\n }\n });\n\n signUpBtn.setBackground(new java.awt.Color(127, 208, 255));\n signUpBtn.setFont(new java.awt.Font(\"72\", 0, 18)); // NOI18N\n signUpBtn.setText(\"Sign me up\");\n signUpBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n signUpBtnActionPerformed(evt);\n }\n });\n\n confirmPassRegister.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 2, true));\n\n passwordRegister.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 2, true));\n passwordRegister.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n passwordRegisterActionPerformed(evt);\n }\n });\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(jPanel2Layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel4)\n .addComponent(jLabel3))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(signUpBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(userNameRegister)\n .addComponent(fullNameRegister, javax.swing.GroupLayout.DEFAULT_SIZE, 341, Short.MAX_VALUE)\n .addComponent(confirmPassRegister)\n .addComponent(passwordRegister))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(76, 76, 76)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(fullNameRegister, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addComponent(jLabel4))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(userNameRegister, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(21, 21, 21)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(passwordRegister, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(24, 24, 24)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(confirmPassRegister, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(32, 32, 32)\n .addComponent(signUpBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(286, Short.MAX_VALUE))\n );\n\n jLabel2.setFont(new java.awt.Font(\"72\", 0, 36)); // NOI18N\n jLabel2.setText(\"Sign Up\");\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(293, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(281, 281, 281))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\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 .addGroup(layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(13, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jPanel1, 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 static void sendRegistrationForm(Player player)\r\n\t{\r\n\t\tList<BattleGroundTemplate> acceptedTemplates = new ArrayList<BattleGroundTemplate>(); \r\n\t\tfor(BattleGroundTemplate template : DataManager.BATTLEGROUND_DATA.getAllTemplates())\r\n\t\t{\r\n\t\t if(player.getLevel() < template.getJoinConditions().getRequiredLevel())\r\n continue;\r\n if(player.getCommonData().getBattleGroundPoints() < template.getJoinConditions().getRequiredBgPoints())\r\n continue;\r\n if(player.getLevel() > template.getJoinConditions().getMaxLevel())\r\n continue;\r\n if(player.getCommonData().getBattleGroundPoints() > template.getJoinConditions().getMaxBgPoints())\r\n continue;\r\n acceptedTemplates.add(template);\r\n\t\t}\r\n\t\t\r\n\t\tif(acceptedTemplates.size() < 1)\r\n\t\t{\r\n\t\t\tPacketSendUtility.sendMessage(player, \"No battleground available for you with your level and your battleground points.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString[] acceptedLocations = new String[acceptedTemplates.size()];\r\n\t\tfor(int i=0; i < acceptedTemplates.size(); i++)\r\n\t\t{\r\n\t\t\tacceptedLocations[i] = acceptedTemplates.get(i).getName() + \" (\" + elyosWaitList.get(acceptedTemplates.get(i).getTplId()).size() + \" - \" + asmodiansWaitList.get(acceptedTemplates.get(i).getTplId()).size() + \" / \" + acceptedTemplates.get(i).getNbPlayers() + \")\";\r\n\t\t}\r\n\t\t\r\n\t\tString html = HTMLService.HTMLTemplate(\"Register to battlegrounds\", \"You can register for the following battlegrounds :\", acceptedLocations, 0, 0);\r\n\t\tHTMLService.showHTML(player, html, 150000001);\r\n\t}", "@Test\n public void testCreateMessagePane() {\n System.out.println(\"createMessagePane\");\n String message = \"Test\";\n String title = \"TADA\";\n LoginRegister instance = new LoginRegister();\n instance.createMessagePane(message, title);\n }", "public void onMotdSent() {\r\n\t\tif (!loggedIn) {\r\n\t\t\tif (adminWindow != null) {\r\n\t\t\t\tadminWindow.setVisible(true);\r\n\t\t\t}\r\n\t\t\tdispose();\r\n\t\t\tloggedIn = true;\r\n\t\t}\r\n\t\t\r\n\t}", "void SubmitButton() {\r\n\t\tint checker = Accounts.checkUser(username.getText(), password.getText());\r\n\t\tif(checker == -1) {\r\n\t\t\tsetVisible(false);\r\n\t\t\tdispose();\r\n\t\t\tAdminScreen adminScreen = new AdminScreen();\r\n\t\t}\r\n\t\telse if(checker >= 0) {\r\n\t\t\tsetVisible(false);\r\n\t\t\tdispose();\r\n\t\t\tStudentScreen studentScreen = new StudentScreen(checker);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Error: username \"\r\n\t\t\t\t\t+ \"and/or password is incorrect.\");\r\n\t\t\tpassword.setText(\"\");\r\n\t\t\tusername.setText(\"\");\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\r\n\t\tprotected void onPostExecute(Boolean result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\tif (bIsRegisterSucceeded) {\r\n\t\t\t\tpopView.findViewById(R.id.frame_popup_window).setVisibility(\r\n\t\t\t\t\t\tView.INVISIBLE);\r\n\t\t\t\tshowToastMsg(\"Arduino registration succeeded!\");\r\n\t\t\t} else {\r\n\t\t\t\tshowToastMsg(\"Arduino registration failed!\");\r\n\t\t\t}\r\n\t\t}", "public AfterLogin() {\n initComponents();\n }", "public void messageToUser() {\n // show a message dialog - the message is an error message.\n JOptionPane.showMessageDialog(new JFrame(),\n \"You are missing some parameters in the level definitions, Please check it\", \"Error!\",\n JOptionPane.ERROR_MESSAGE);\n // exit the program\n System.exit(0);\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==btNewUser) {\n\t\t\tnew RegistrationFrame();\n\t\t\tthis.dispose();\n\t\t}\n\t\telse if(e.getSource() == btLogin) {\n\t\t\tSystem.out.println(\"you can successfully log in\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"clear\");\n\t\t}\n\t}", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tL.i(Constants.SERVICE + \" sign in \"\r\n\t\t\t\t\t\t\t\t+ Constants.SERVER_IP + \" \"\r\n\t\t\t\t\t\t\t\t+ Constants.SERVER_PORT);\r\n\t\t\t\t\t\tsmack.connect(Constants.SERVER_IP,\r\n\t\t\t\t\t\t\t\tConstants.SERVER_PORT, Constants.SERVICE);\r\n\r\n\t\t\t\t\t\tfinal String result = smack.regist(usernameStr, passwordStr);\r\n\t\t\t\t\t\tL.i(\"sign in \" + result);\r\n\t\t\t\t\t\trunOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\tloading.dismiss();\r\n\t\t\t\t\t\t\t\tif(result.equals(\"0\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this, \"Error\");\r\n\t\t\t\t\t\t\t\tif(result.equals(\"1\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this,\r\n\t\t\t\t\t\t\t\t\t\t\t\"Sign in successfully\");\r\n\t\t\t\t\t\t\t\tif(result.equals(\"2\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this, \"This user exists\");\r\n\t\t\t\t\t\t\t\tif(result.equals(\"3\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this, \"Error\");\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\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t}", "private void init()\n {\n \t// Make page stateless.\n setStatelessHint(true);\n\n // Add registration form.\n RegistrationForm registrationForm = new RegistrationForm(REGISTRATION_FORM);\n add(registrationForm);\n // AjaxFormValidatingBehavior.addToAllFormComponents(registrationForm, \"onblur\");\n }", "public ManageUser() {\r\n \t\tinitComponents();\r\n \t\taddActionListener();\r\n \t}", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "public void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(new Color(92, 255, 208));\n\t\tframe.setBounds(100, 100, 1050, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); // Dispose on close, otherwise closes all the app\n\t\tframe.setTitle(\"Creació d'usuari\");\n\t\tPreferences prefs = Preferences.userNodeForPackage(LoginForm.class);\n\t\tString token = prefs.get(\"token\", \"token\");\n\t\tframe.setTitle(\"Creació d'usuari\");\n\t\tframe.setBounds(300, 90, 500, 500);\n\n\t\t// Components for the form of creation user.\n\t\ttitle = new JLabel(\"Creació d'usuari\");\n\t\ttitle.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 25));\n\t\ttitle.setSize(235, 30);\n\t\ttitle.setLocation(150, 20);\n\t\tframe.add(title);\n\n\t\tname = new JLabel(\"Nom:\");\n\t\tname.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\tname.setSize(100, 20);\n\t\tname.setLocation(100, 80);\n\t\tframe.add(name);\n\n\t\ttname = new JTextField();\n\t\ttname.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\ttname.setSize(190, 20);\n\t\ttname.setLocation(200, 80);\n\t\tframe.add(tname);\n\n\t\tsurname = new JLabel(\"Cognom:\");\n\t\tsurname.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\tsurname.setSize(100, 20);\n\t\tsurname.setLocation(100, 120);\n\t\tframe.add(surname);\n\n\t\ttsurname = new JTextField();\n\t\ttsurname.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\ttsurname.setSize(190, 20);\n\t\ttsurname.setLocation(200, 120);\n\t\tframe.add(tsurname);\n\n\t\temail = new JLabel(\"Email:\");\n\t\temail.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\temail.setSize(100, 20);\n\t\temail.setLocation(100, 160);\n\t\tframe.add(email);\n\n\t\ttemail = new JTextField();\n\t\ttemail.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\ttemail.setSize(190, 20);\n\t\ttemail.setLocation(200, 160);\n\t\tframe.add(temail);\n\n\t\ttlf = new JLabel(\"Telèfon:\");\n\t\ttlf.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\ttlf.setSize(100, 20);\n\t\ttlf.setLocation(100, 200);\n\t\tframe.add(tlf);\n\n\t\tttlf = new JTextField();\n\t\tttlf.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tttlf.setSize(190, 20);\n\t\tttlf.setLocation(200, 200);\n\t\tframe.add(ttlf);\n\n\t\tpass = new JLabel(\"Contrasenya:\");\n\t\tpass.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\tpass.setSize(100, 20);\n\t\tpass.setLocation(100, 240);\n\t\tframe.add(pass);\n\n\t\ttpass = new JTextField();\n\t\ttpass.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\ttpass.setSize(190, 20);\n\t\ttpass.setLocation(200, 240);\n\t\tframe.add(tpass);\n\n\t\tpassc = new JLabel(\"Confirmació de Contrasenya:\");\n\t\tpassc.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\tpassc.setSize(100, 20);\n\t\tpassc.setLocation(100, 280);\n\t\tframe.add(passc);\n\n\t\ttpassc = new JTextField();\n\t\ttpassc.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\ttpassc.setSize(190, 20);\n\t\ttpassc.setLocation(200, 280);\n\t\tframe.add(tpassc);\n\n\t\trole = new JLabel(\"Rol:\");\n\t\trole.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\trole.setSize(100, 20);\n\t\trole.setLocation(100, 320);\n\t\tframe.add(role);\n\n\t\tadmin = new JRadioButton(\"Admin\");\n\t\tadmin.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\tadmin.setSelected(true);\n\t\tadmin.setSize(106, 20);\n\t\tadmin.setLocation(200, 320);\n\t\tframe.add(admin);\n\n\t\trastreator = new JRadioButton(\"Rastreator\");\n\t\trastreator.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\trastreator.setSelected(false);\n\t\trastreator.setSize(125, 20);\n\t\trastreator.setLocation(200, 350);\n\t\tframe.add(rastreator);\n\n\t\trolegp = new ButtonGroup();\n\t\trolegp.add(admin);\n\t\trolegp.add(rastreator);\n\n\t\tsub = new JButton(\"Aceptar\");\n\t\tsub.setBackground(new Color(255, 255, 255));\n\t\tsub.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\tsub.setSize(100, 20);\n\t\tsub.setLocation(130, 420);\n\t\tsub.addActionListener(this);\n\t\tframe.add(sub);\n\n\t\treset = new JButton(\"Reset\");\n\t\treset.setBackground(new Color(255, 255, 255));\n\t\treset.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\treset.setSize(100, 20);\n\t\treset.setLocation(250, 420);\n\t\treset.addActionListener(this);\n\t\tframe.add(reset);\n\n\t\tres = new JLabel(\"\");\n\t\tres.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\tres.setSize(500, 25);\n\t\tres.setLocation(100, 500);\n\t\tframe.add(res);\n\n\t\tframe.setVisible(true);\n\t}", "public static void sendRegistrationFormObs(Player player)\r\n {\r\n List<BattleGroundTemplate> acceptedBattlegrounds = new ArrayList<BattleGroundTemplate>(); \r\n for(BattleGroundTemplate template : DataManager.BATTLEGROUND_DATA.getAllTemplates())\r\n {\r\n acceptedBattlegrounds.add(template);\r\n }\r\n \r\n if(acceptedBattlegrounds.size() < 1)\r\n {\r\n PacketSendUtility.sendMessage(player, \"No battleground available.\");\r\n return;\r\n }\r\n \r\n String[] acceptedLoc = new String[acceptedBattlegrounds.size()];\r\n for(int i=0; i < acceptedBattlegrounds.size(); i++)\r\n {\r\n acceptedLoc[i] = acceptedBattlegrounds.get(i).getName() + \" (\" + elyosWaitList.get(acceptedBattlegrounds.get(i).getTplId()).size() + \" - \" + asmodiansWaitList.get(acceptedBattlegrounds.get(i).getTplId()).size() + \" / \" + acceptedBattlegrounds.get(i).getNbPlayers() + \")\";\r\n }\r\n \r\n String html = HTMLService.HTMLTemplate(\"Register to battlegrounds\", \"You can register for the following battlegrounds :\", acceptedLoc, 0, 0);\r\n HTMLService.showHTML(player, html, 151000001);\r\n }" ]
[ "0.7088603", "0.68575096", "0.668624", "0.6679028", "0.66356695", "0.6630021", "0.6625472", "0.6437758", "0.64340264", "0.643234", "0.63677794", "0.62952346", "0.6288825", "0.6278192", "0.6266007", "0.62476504", "0.62097394", "0.6090255", "0.6064812", "0.6064788", "0.59997666", "0.5992935", "0.5991481", "0.5974594", "0.59476835", "0.593772", "0.5934403", "0.5934403", "0.5932293", "0.592849", "0.5918107", "0.59173334", "0.5909053", "0.5905489", "0.5896131", "0.5854258", "0.58540905", "0.58516884", "0.58516794", "0.584817", "0.5833379", "0.5829564", "0.58288217", "0.58068055", "0.58020455", "0.58003163", "0.5791924", "0.57823014", "0.57772964", "0.57723945", "0.57696205", "0.576022", "0.57591224", "0.5757333", "0.57554096", "0.5749694", "0.57209516", "0.5719056", "0.5708395", "0.5706647", "0.57061285", "0.56995094", "0.56935316", "0.56900555", "0.5684508", "0.567062", "0.56661916", "0.565827", "0.5655348", "0.56517595", "0.5650814", "0.56496716", "0.5648281", "0.5647252", "0.564454", "0.56438416", "0.56309134", "0.5629571", "0.5626021", "0.5612223", "0.560862", "0.56062865", "0.56043255", "0.5596199", "0.5590459", "0.55887735", "0.55885226", "0.5586176", "0.55836415", "0.5580838", "0.5576853", "0.55718946", "0.5570016", "0.5568951", "0.55672246", "0.55660135", "0.55633086", "0.55632895", "0.5563216", "0.55572146" ]
0.69307923
1
Add action listeners to the interactive buttons
public void addActionListener(ActionListener listener) { this.home.addActionListener(listener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registerButtons()\n\t{\n\t\tplot.addActionListener(new ButtonListener());\n\t\tin.addActionListener(new ButtonListener(1));\n\t\tout.addActionListener(new ButtonListener(2));\n\t\t\n\t}", "public void addActionListeners() {\n\t\tbtnReadRow.addActionListener(this);\n\t\tbtnPrintRow.addActionListener(this);\n\t\tbtnReadCol.addActionListener(this);\n\t\tbtnPrintCol.addActionListener(this);\n\t}", "public void addActionListeners(){\n terugButton.addActionListener(this);\n klaarButton.addActionListener(this);\n\n }", "private void addActionListeners() {\n\t\tif(this.actionListener == null)\n\t\t\t\treturn; \n\t\t\n\t\t\n\t\t/**\n\t\t\tADD ACTION LISTENERS FOR BUTTONS HERE \n\t\t*/\n\t\tclearButton.addActionListener(this.actionListener);\n\t\tsinButton.addActionListener(this.actionListener);\n\t\tcosButton.addActionListener(this.actionListener);\n\t\ttanButton.addActionListener(this.actionListener);\n\t\tnegateButton.addActionListener(this.actionListener);\n\t\tsquareButton.addActionListener(this.actionListener);\n\t\tinverseButton.addActionListener(this.actionListener);\n\t\tsqrtButton.addActionListener(this.actionListener);\n\t\tpowerButton.addActionListener(this.actionListener);\n\t\tdivideButton.addActionListener(this.actionListener);\n\t\tmultiplyButton.addActionListener(this.actionListener);\n\t\tsubtractButton.addActionListener(this.actionListener);\n\t\taddButton.addActionListener(this.actionListener);\n\t\tpercentButton.addActionListener(this.actionListener);\n\t\t\n\t\t\n\t\tfor(int i = 0 ; i < valueButtons.length ; ++i) {\n\t\t\tvalueButtons[i].addActionListener(this.actionListener);\n\t\t}\n\t\t\n\t\t\n\t}", "public void addClickables() {\n\t\tclickable.add(button1.getBounds());\n\t\tbehaviors.put(clickable.get(0), () -> hideEscapeScreen());\n\t\tclickable.add(button3.getBounds());\n\t\tbehaviors.put(clickable.get(1), () -> Driver.getInstance().switchToScreen(new FFWorldMap()));\n\t\tclickable.add(button4.getBounds());\n\t\tbehaviors.put(clickable.get(2), () -> Driver.getInstance().switchToScreen(new FFMainMenu()));\n\t}", "protected void addEventListeners()\n {\n // Add them to the contents.\n InteractionFigure interactionLayer =\n view.getEditor().getInteractionFigure();\n\n // let mouseState handle delete key events\n interactionLayer.addKeyListener(mouseState);\n getShell().addShellListener(new ShellAdapter() {\n @Override\n public void shellDeactivated(ShellEvent e)\n {\n mouseState.cancelDynamicOperation();\n }\n });\n }", "private void addButtonListener() {\n\t\trock.addActionListener(buttonListener);\n\t\tpaper.addActionListener(buttonListener);\n\t\tscissors.addActionListener(buttonListener);\n\t}", "private void addListeners()\r\n {\r\n Actions act = new Actions();\r\n btnCountA.addActionListener(act);\r\n btnSearch.addActionListener(act);\r\n btnFindL.addActionListener(act);\r\n }", "private void setButtonListener() {\n for(CellButton[] buttonsRow : mainFrame.getButtons()) {\n for(CellButton button :buttonsRow) {\n button.addButtonListener(this);\n }\n }\n }", "private void addActionListeners() {\r\n\t\tbuttonImport.addActionListener(this);\r\n\t\tbuttonCancel.addActionListener(this);\r\n\t\tcbContainsHeader.addActionListener(this);\r\n\t\tcbEnableLenCorrect.addActionListener(this);\r\n\t\ttextfieldDelimSymbol.addKeyListener(this);\r\n\t\ttextfieldLenCorrection.addKeyListener(this);\r\n\t\ttableSelectionPD.registerSelectedProfilesListener(this);\r\n\t}", "void configureButtonListener();", "void enablButtonListener();", "private void setActions(){\n login.setOnAction(e->login());\n simulate.setOnAction(e->simulate());\n scoreBoardButton.setOnAction(e->scoreBoard());\n viewBracket.setOnAction(e->viewBracket(selectedBracket, playerMap));\n clearButton.setOnAction(e->clear());\n resetButton.setOnAction(e->reset());\n finalizeButton.setOnAction(e->finalizeBracket());\n }", "public void addPanelActionListeners() {\n\n iconBase = new IconFactory();\n\n JButton[] iconsArray = LeftPanel.getIconsArray();\n for (JButton button : iconsArray) {\n button.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n super.mouseClicked(e);\n selectedIconText = button.getText();\n }\n });\n\n button.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseReleased(MouseEvent e) {\n super.mouseReleased(e);\n int tabIndex = jTabbedPane.getSelectedIndex();\n WorkingPanel tab = (WorkingPanel) jTabbedPane.getComponent(tabIndex);\n if (tab.getMousePosition() != null) {\n addIconToTab(tab, button.getText());\n tab.repaint();\n }\n\n }\n });\n\n button.addMouseMotionListener(new MouseAdapter() {\n @Override\n public void mouseDragged(MouseEvent e) {\n super.mouseDragged(e);\n selectedIconText = button.getText();\n\n int tabIndex = jTabbedPane.getSelectedIndex();\n WorkingPanel tab = (WorkingPanel) jTabbedPane.getComponent(tabIndex);\n\n icon = iconBase.getIconObject(button.getText(), tab);\n if (icon != null) {\n icon.draw(getGraphics(), (int) (MouseInfo.getPointerInfo().getLocation().getX() - button.getWidth() / 3),\n (int) (MouseInfo.getPointerInfo().getLocation().getY() - button.getHeight() / 3));\n }\n repaint();\n }\n });\n }\n }", "private void listenersInitiation() {\n ActionSelectors listener = new ActionSelectors();\n submit.addActionListener(listener);\n goBack.addActionListener(listener);\n }", "private void init_buttons(){\r\n /**\r\n * BOTON NUEVO\r\n */\r\n im_tool1.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n botonNuevo();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON EDITAR\r\n */\r\n im_tool2.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEditar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON GUARDAR\r\n */\r\n im_tool3.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonGuardar();\r\n }\r\n }\r\n }); \r\n /**\r\n * BOTON ELIMINAR\r\n */\r\n im_tool4.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEliminar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON IMPRIMIR\r\n */\r\n im_tool5.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){ \r\n botonImprimir();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON REGRESAR\r\n */\r\n im_tool6.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON POR ASIGNAR\r\n */\r\n im_tool7.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON NOTAS DE CREDITO\r\n */\r\n im_tool8.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON DEVOLUCION\r\n */\r\n im_tool9.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON BUSCAR\r\n */\r\n im_tool12.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n switch (mouseEvent.getClickCount()){\r\n case 1:\r\n botonInicio();\r\n botonBuscar();\r\n break;\r\n case 2:\r\n Datos.setIdButton(2003041);\r\n Gui.getInstance().showBusqueda(\"Busqueda\"); \r\n break;\r\n }\r\n }\r\n });\r\n /**\r\n * SELECCION EN LA TABLA\r\n */\r\n tb_guias.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n if ((tb_guias.getItems() != null) && (!tb_guias.getItems().isEmpty()))\r\n selectedRowGuide();\r\n }\r\n }\r\n }); \r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nroguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nroguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_rela_caja(tf_nroguia.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_nroguia.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de \" + ScreenName + \" NO existe!\", \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nrorguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nrorguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n boolean booa = true; \r\n if(booa){\r\n boolean booc = Ln.getInstance().check_log_CGuias_caja(tf_nrorguia.getText()); \r\n if(booc){\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n else{\r\n for (int i = 0; i < log_guide_guia.size(); i++) {\r\n if(tf_nrorguia.getText().equals(tb_guias.getItems().get(i).getGuias())){\r\n booa = false;\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n break;\r\n }\r\n } \r\n if(booa){\r\n log_Guide_rel_inv guide_carga = new log_Guide_rel_inv();\r\n\r\n List<Fxp_Archguid_gfc> data = \r\n Ln.getList_log_Archguid_gfc(Ln.getInstance().find_Archguid_gfc(tf_nrorguia.getText()));\r\n\r\n if (data.get(0).getStat_guia().equals(\"X\")\r\n || data.get(0).getStat_guia().equals(\"C\")){\r\n guide_carga.setNumorden(String.valueOf((log_guide_guia.size() + 1)));\r\n guide_carga.setGuias(tf_nrorguia.getText());\r\n guide_carga.setNumfact(data.get(0).getNumfact());\r\n guide_carga.setNumclie(data.get(0).getNumclie());\r\n\r\n if (data.get(0).getStat_guia().equals(\"A\")){\r\n if (tipoOperacion == 1)\r\n guide_carga.setStat_guia(null);\r\n else\r\n guide_carga.setStat_guia(data.get(0).getStat_guia());\r\n }\r\n else{\r\n guide_carga.setStat_guia(null);\r\n }\r\n \r\n \r\n log_guide_guia.add(guide_carga);\r\n\r\n loadTableGuide_guias();\r\n change_im_val(200, im_checkg); \r\n\r\n numFactCarga = numFactCarga + data.get(0).getNumfact();\r\n numClieCarga = numClieCarga + data.get(0).getNumclie();\r\n\r\n tf_nrorguia.setText(\"\");\r\n }else{\r\n if (data.get(0).getStat_guia().equals(\"\")){\r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO tiene relación de Guia de Carga!\", \"A\");\r\n }\r\n else{\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n }\r\n tf_nrorguia.requestFocus();\r\n }\r\n \r\n }\r\n }\r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO existe!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n }", "Iterator actionListeners();", "@Override\n protected void hookUpActionListeners() {\n }", "private void configureButtons() {\n\n\t\t// Set button listeners\n\t\tfor(SLChannelControllerViews views : mChannelViews) {\n\t\t\tviews.getChannelButton().setOnTouchListener(new SLSeekBarOnTouchListener(views.getChannelSeekBar()));\n\t\t}\n\t}", "private void createEvents() {\n\t\taddBtn.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbuildOutput();\n\t\t\t}\n\t\t});\n\t}", "private void addListeners() {\n\t\t\n\t\tresetButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \treset();\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t\ttoggleGroup.selectedToggleProperty().addListener(\n\t\t\t (ObservableValue<? extends Toggle> ov, Toggle old_toggle, \n\t\t\t Toggle new_toggle) -> {\n\t\t\t \t\n\t\t\t \tif(rbCourse.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.getChildren().set(0, CourseSelectionBox.instance());\n\t\t \t\thbox3.setDisable(false);\n\t\t \t\t\n\t\t \t}else if(rbAuthor.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.getChildren().set(0, AuthorSelectionBox.instance());\n\t\t \t\thbox3.setDisable(false);\n\t\t \t\t\n\t\t \t}else if(rbNone.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.setDisable(true);\n\t\t \t\t\n\t\t \t}\n\t\t\t \t\n\t\t\t});\n\t\t\n\t\tapplyButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \tfilter();\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t\tsearchButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \tResult.instance().search(quizIDField.getText());\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t}", "private void setupActionButtons() {\n setupLikeActionButton();\n setupRepostActionButton();\n setupMoreActionButton();\n }", "public void addListeners()\n {\n view.addListeners(new FileButtonClick(view, this), new ViewButtonClick(view, this), new ClassClick(view, this), new RelationshipClick(view, this), new RightClickListenerFactory(view, this));\n\t}", "private void setActionListeners() {\r\n gm.getSave().addActionListener(e -> {\r\n gtm.saveChanges();\r\n this.serialize();\r\n });\r\n gm.getSaveAs().addActionListener(e -> {\r\n gtm.saveChanges();\r\n this.serializeAs();\r\n });\r\n gm.getOpen().addActionListener(e -> {\r\n if (!newFile && !path.equals(\"\")) {\r\n this.serializeBeforeOpen();\r\n }\r\n this.serializeOpen();\r\n });\r\n gm.getNewToDo().addActionListener(e -> {\r\n gtm.addToDo();\r\n });\r\n gm.getClose().addActionListener(e -> {\r\n System.exit(0);\r\n });\r\n gm.getMinimize().addActionListener(e -> {\r\n this.setState(Frame.ICONIFIED);\r\n });\r\n gm.getZoom().addActionListener(e -> {\r\n this.setExtendedState(this.getExtendedState() | JFrame.MAXIMIZED_BOTH);\r\n });\r\n }", "void addActionListener(IActionListener actionListener);", "public void createEvents(){\r\n\t\tbtnCurrent.addActionListener((ActionEvent e) -> JLabelDialog.run());\r\n\t}", "private void setupButtons() {\n final ButtonGroup btngrp = new ButtonGroup();\n\n for (final AbstractAction actn : myToolActions) {\n final JToggleButton btn = new JToggleButton(actn);\n btn.addActionListener(actn);\n btngrp.add(btn);\n add(btn);\n }\n\n btngrp.clearSelection();\n btngrp.getElements().nextElement().setSelected(true);\n\n }", "@Override\n\tpublic void setButtonAction() {\n\t}", "public void initializeButtons(){\n\t\t\tplay.setBounds(40,90,280,30);\n\t\t\tadd(play);\n\t\t\tplay.addActionListener(new PlayGame());\n\t\t\tplay.setVisible(true);\n\t\t\t\n\t\t\tenterquestion.setBounds(40,140,280,30);\n\t\t\tadd(enterquestion);\n\t\t\tenterquestion.addActionListener(new EnterQuestion());\n\t\t\tenterquestion.setVisible(true);\n\t\t\t\n\t\t\tdirections.setBounds(40,190,280,30);\n\t\t\tadd(directions);\n\t\t\tdirections.addActionListener(new Instructor());\n\t\t\tdirections.setVisible(true);\n\t\t\t\n\t\t\t\n\t\t}", "public void actionListenner()\n\t{\n\t\t// Add action Listener to each JButton.\n\t\t// WelcomePanel\n\t\tview.getFrame().add(view.getWelcomePanel().getWelcomePanel());\t\n\t\tview.getFrame().setVisible(true);\n\t\t\n\t\t// welcomeButton\n\t\tview.getWelcomePanel().getWelcomeButton().addActionListener(event -> view.getFrame().remove(view.getWelcomePanel().getWelcomePanel()));\t\t\n\t\tview.getWelcomePanel().getWelcomeButton().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\t\t\n\t\tview.getWelcomePanel().getWelcomeButton().addActionListener(event -> view.getFrame().pack());\n\n\t\t// MainPanel\n\t\t// playgameButton\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().remove(view.getMainPanel().getMainPanel()));\t\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().add(view.getPlayerPanel().getPlayerPanel()));\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t//leaderboardButton\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().remove(view.getMainPanel().getMainPanel()));\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.add(view.getLeaderboardPanel().getLeaderboardPanel()));\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t//quit\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().remove(view.getMainPanel().getMainPanel()));\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().add(view.getQuitPanel().getQuitPane()));\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// PlayerPanel\n\t\t// createButton\n\t\tview.getPlayerPanel().getCreateButton().addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tString input = view.getPlayerPanel().getInputBox().getText();\n\t\t\t\tSystem.out.println(input);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tboolean validname = gameInfo.getModel().getLeaderboard().isValidNewPlayers(input);\n\t\t\t\tSystem.out.println(validname);\n\t\t\t\t\n\t\t\t\tif(validname)\n\t\t\t\t{\n\t\t\t\t\tgameInfo.getModel().getLeaderboard().addNewPlayer(input);\n\t\t\t\t\tgameInfo.getModel().getLeaderboard().loadPlayer(input);\n\t\t\t\t\tgameInfo.getModel().getGameRule().setLevel(1);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setPlayerInGamePanel(input);\n\t\t\t\t\tview.getInGamePanel().setLabelName(input);\t\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setPlayerName(input);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setLevelLabel(Integer.toString(1));\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLevel(1);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setScoreLabel(Integer.toString(0));\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setScores(0);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\tview.getFrame().remove(view.getPlayerPanel().getPlayerPanel());\n\t\t\t\t\tview.getFrame().add(view.getInGamePanel().getInGamePanel());\n\t\t\t\t\tview.getInGamePanel().getInGamePanel().setFocusable(true);\n\t\t\t\t\tview.getInGamePanel().getInGamePanel().requestFocusInWindow();\n\t\t\t\t\tview.getFrame().pack();\n\t\t\t\t\tview.getFrame().setSize(800, 890);\n\t\t\t\t\tview.getFrame().repaint();\t\t\n\t\t\t\t\tview.getFrame().setVisible(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!validname)\n\t\t\t\t{\n\t\t\t\t\tview.getPlayerPanel().getInputBox().setText(\"INVALID NAME\");\n\t\t\t\t\tview.getPlayerPanel().getInputBox().addMouseListener(new MouseAdapter(){\n\t\t\t @Override\n\t\t\t public void mouseClicked(MouseEvent e){\n\t\t\t \tview.getPlayerPanel().getInputBox().setText(\"\");\n\t\t\t }\n\t\t\t });\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t// loadPlayer\n\t\tint numberOfLoadPlayer = view.getPlayerPanel().getExistPlayerButton().length;\n\t\tfor(int i = 0; i < numberOfLoadPlayer; i++)\n\t\t{\n\t\t\tview.getPlayerPanel().getExistPlayerButton()[i].addMouseListener(new MouseAdapter()\n\t\t\t{\n\t\t\t\tpublic void mousePressed(MouseEvent e)\n\t\t\t\t{\n\t\t\t\t\tObject o = e.getSource();\n\t\t\t\t\tJButton pressedButton = (JButton) o;\n\t\t\t\t\tString text = pressedButton.getText();\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setPlayerInGamePanel(text);\n\t\t\t\t\tview.getInGamePanel().setScoreLabel(Integer.toString(gameInfo.getModel().getGameRule().getScores()));\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setScores(gameInfo.getModel().getGameRule().getScores());\n\t\t\t\t\tview.getInGamePanel().setLabelName(text);\n\t\t\t\t\t\n\t\t\t\t\tgameInfo.getModel().getLeaderboard().loadPlayer(text);\n\t\t\t\t\t\n\t\t\t\t\tview.getPlayerPanel().setLoadPlayer(gameInfo.getModel().getLeaderboard().loadPlayer(text));\t\t\t\n\t\t\t\t\tview.setSelectLevelPanel();\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tview.getFrame().remove(view.getPlayerPanel().getPlayerPanel());\t\t\n\t\t\t\t\tview.getFrame().add(view.getSelectLevelPanel().getSelectLevelPanel());\n\t\t\t\t\tview.getFrame().repaint();\n\t\t\t\t\t//view.getFrame().pack();\n\t\t\t\t\tview.getFrame().setVisible(true);\n\t\t\t\t\t\n\t\t\t\t\t// InGamePanel\n\t\t\t\t\t//case select level unlock\n\t\t\t\t\tfor(int i = 1; i <= 5; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(gameInfo.getModel().getLeaderboard().loadPlayer(text).isLevelUnlocked(i) == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString selectLevel = Integer.toString(i);\n\t\t\t\t\t\t\tint level = i;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getBoardGamePanel().setPlayerName(gameInfo.getModel().getLeaderboard().loadPlayer(text).getName()));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getBoardGamePanel().setLevel(level));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getBoardGamePanel().setLevel(gameInfo.getModel().getGameRule().getLevel()));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> gameInfo.getModel().getGameRule().setLevel(level));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().setLevelLabel(selectLevel));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().setGameStart(true));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().remove(view.getSelectLevelPanel().getSelectLevelPanel()));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().setSize(800, 890));\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().add(view.getInGamePanel().getInGamePanel()));\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getInGamePanel().requestFocusInWindow());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getInGamePanel().setFocusable(true));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().repaint());\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().pack());\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().setVisible(true));\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\n\t\t\t\t}\t\n\t\t});\t\t\n\t\t}\n\t\t\n\t\t// back\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().remove(view.getPlayerPanel().getPlayerPanel()));\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\t\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// LeaderboardPanel\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().remove(view.getLeaderboardPanel().getLeaderboardPanel()));\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\t\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// QuitPanel\n\t\t// no\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().remove(view.getQuitPanel().getQuitPane()));\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().repaint());\t\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// yes\n\t\tview.getQuitPanel().getYes().addActionListener(event -> view.getFrame().dispatchEvent(new WindowEvent(view.getFrame(), WindowEvent.WINDOW_CLOSING)));\n\t\t\n\t\t\n\t\t// InGamePanel\n\t\tview.getInGamePanel().getInGamePanel().addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyTyped(KeyEvent e) {}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tswitch (e.getKeyCode()) {\n\n\t\t\t\t// Case press esc to pause the game\n\t\t\t\tcase KeyEvent.VK_ESCAPE:\t\n\t\t\t\t\tview.getInGamePanel().setGameStart(false);\n\t\t\t\t\tview.getFrame().remove(view.getInGamePanel().getInGamePanel());\n\t\t\t\t\tview.getFrame().add(view.getPausePanel().getPausePanel());\n\t\t\t\t\tview.getFrame().repaint();\n\t\t\t\t\tview.getFrame().setSize(600, 800);\t\n\t\t\t\t\tview.getFrame().pack();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_LEFT:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.MOVE_LEFT);\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_RIGHT:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.MOVE_RIGHT);\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_Z:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.ROTATE_LEFT);\n\t\t\t\t\t\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_SPACE:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.FASTER);\n\t\t\t\t\t\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_ENTER:\n\t\t\t\t\tif(lost)\n\t\t\t\t\t{\n\t\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLost(false);\n\t\t\t\t\t\tlost = false;\n\t\t\t\t\t\tmessage = new Message(Message.ValveResponse.RESTART);\n\t\t\t\t\t\ttry \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(winLevel)\n\t\t\t\t\t{\n\t\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setWinLevel(false);\n\t\t\t\t\t\twinLevel = false;\n\t\t\t\t\t\tmessage = new Message(Message.ValveResponse.GET_NEXTLEVEL);\n\t\t\t\t\t\ttry \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void keyReleased(KeyEvent e) {}\n\t\t});\n\t\t\n\t\t// PausePanel\n\t\t// back\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getInGamePanel().setGameStart(true));\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().remove(view.getPausePanel().getPausePanel()));\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().setSize(800, 890));\t\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().add(view.getInGamePanel().getInGamePanel()));\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().pack());\n\t\t\t\t\n\t\t// LeaderBoardInPausePanel\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().remove(view.getPausePanel().getPausePanel()));\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().add(view.getLeaderboardInPausePanel().getLeaderboardPanel()));\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// ControlsPanel\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().remove(view.getPausePanel().getPausePanel()));\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().add(view.getControlsPanel().getControlsPanel()));\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().pack());\n\t\t\t\n\t\tview.getPausePanel().getReturnToMainManuButton().addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\t\t\t\t\n\t\t\t\tmessage = new Message(Message.ValveResponse.GET_NEWGAME);\n\t\t\t\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t} \n\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\n\t\t\t\tview.getFrame().remove(view.getPausePanel().getPausePanel());\n\t\t\t\tview.getFrame().add(view.getMainPanel().getMainPanel());\t\n\t\t\t\tview.getFrame().pack();\n\t\t\t\tview.getFrame().setSize(600, 800);\t\n\t\t\t\tview.getFrame().repaint();\n\t\t\t\t\n\t\t\t\t//viewAllPanels.getFrame().pack();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t// LeaderboardInGame\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(Event -> view.getFrame().remove(view.getLeaderboardInPausePanel().getLeaderboardPanel()));\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().add(view.getPausePanel().getPausePanel()));\t\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().pack());\n\t\t\t\n\t\t// ControlPanel\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().remove(view.getControlsPanel().getControlsPanel()));\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().add(view.getPausePanel().getPausePanel()));\t\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().pack());\n\t}", "private void registerListeners() {\n\n\t\tline.addActionListener(new LineButtonListener());\n\t\trect.addActionListener(new RectButtonListener());\n\t\toval.addActionListener(new OvalButtonListener());\n\t\timage.addActionListener(new ImageButtonListener());\n\n\t\tMouseListener listener = new ListenToMouse();\n\t\tMouseMotionListener motionListener = new ListenToMouse();\n\n\t\tcanvas.addMouseMotionListener(motionListener);\n\t\tcanvas.addMouseListener(listener);\n\n\t}", "public void addListeners() {\r\n\t\tbtnLogin.addActionListener(listener);\r\n\t\tbtnChooseFile.addActionListener(listener);\r\n\t\tbtnSendMessage.addActionListener(listener);\r\n\t\tbtnRemoveImage.addActionListener(listener);\r\n\t\tbtnUpdateMessages.addActionListener(listener);\r\n\t\tbtnUpdateUsers.addActionListener(listener);\r\n\t}", "public void addActionListeners(ActionListener evt)\r\n\t{\r\n\t\tconfirmButton.addActionListener(evt);\r\n\t\tstartButton.addActionListener(evt);\r\n\t}", "private void initButtonsListener(){\n initDraw();\n initResign();\n initRedo();\n }", "private void addButtons() {\r\n\t\troot.getChildren().add(button); // creating the Easy button \r\n\t\tb1 = new Button(\"Easy\");\r\n\t\tb1.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent ke) {\r\n\t\t\t\tdiff = \"Easy\";\r\n\t\t\t}\r\n\t\t});\r\n\t\troot.getChildren().add(b1); // creating the Normal button\r\n\t\tb2 = new Button(\"Normal\");\r\n\t\tb2.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent ke) {\r\n\t\t\t\tdiff = \"Normal\";\r\n\t\t\t}\r\n\t\t});\r\n\t\tb2.setLayoutX(50);\r\n\t\troot.getChildren().add(b2); // creating the Hard button\r\n\t\tb3 = new Button(\"Hard\");\r\n\t\tb3.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent ke) {\r\n\t\t\t\tdiff = \"Hard\";\r\n\t\t\t}\r\n\t\t});\r\n\t\tb3.setLayoutX(115);\r\n\t\troot.getChildren().add(b3);\r\n\t}", "private void setupButtons() {\n\t\tsetupCreateCourse();\n\t\tsetupRemoveCourse();\n\t\tsetupCreateOffering();\n\t\tsetupRemoveOffering();\n\t\tsetupAddPreReq();\n\t\tsetupRemovePreReq();\n\t\tsetupBack();\n\t}", "void addButton_actionPerformed(ActionEvent e) {\n addButton();\n }", "private void registerEventListeners() {\n addDisposeListener(new DisposeListener() {\n @Override\n public void widgetDisposed(DisposeEvent de) {\n Display display = getDisplay();\n display.removeFilter(SWT.Move, moveFilter);\n OldFXCanvas.this.widgetDisposed(de);\n }\n });\n\n addPaintListener(pe -> {\n OldFXCanvas.this.paintControl(pe);\n });\n\n addMouseListener(new MouseListener() {\n @Override\n public void mouseDoubleClick(MouseEvent me) {\n // Clicks and double-clicks are handled in FX\n }\n @Override\n public void mouseDown(MouseEvent me) {\n // FX only supports 3 buttons so don't send the event for other buttons\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_PRESSED);\n }\n @Override\n public void mouseUp(MouseEvent me) {\n // FX only supports 3 buttons so don't send the event for other buttons\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_RELEASED);\n }\n });\n\n addMouseMoveListener(me -> {\n if ((me.stateMask & SWT.BUTTON_MASK) != 0) {\n // FX only supports 3 buttons so don't send the event for other buttons\n if ((me.stateMask & (SWT.BUTTON1 | SWT.BUTTON2 | SWT.BUTTON3)) != 0) {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_DRAGGED);\n } else {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_MOVED);\n }\n } else {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_MOVED);\n }\n });\n\n addMouseWheelListener(me -> {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_WHEEL);\n });\n\n addMouseTrackListener(new MouseTrackListener() {\n @Override\n public void mouseEnter(MouseEvent me) {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_ENTERED);\n }\n @Override\n public void mouseExit(MouseEvent me) {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_EXITED);\n }\n @Override\n public void mouseHover(MouseEvent me) {\n // No mouse hovering in FX\n }\n });\n\n addControlListener(new ControlListener() {\n @Override\n public void controlMoved(ControlEvent ce) {\n OldFXCanvas.this.sendMoveEventToFX();\n }\n @Override\n public void controlResized(ControlEvent ce) {\n OldFXCanvas.this.sendResizeEventToFX();\n }\n });\n\n addFocusListener(new FocusListener() {\n @Override\n public void focusGained(FocusEvent fe) {\n OldFXCanvas.this.sendFocusEventToFX(fe, true);\n }\n @Override\n public void focusLost(FocusEvent fe) {\n OldFXCanvas.this.sendFocusEventToFX(fe, false);\n }\n });\n\n addKeyListener(new KeyListener() {\n @Override\n public void keyPressed(KeyEvent e) {\n OldFXCanvas.this.sendKeyEventToFX(e, SWT.KeyDown);\n \n }\n @Override\n public void keyReleased(KeyEvent e) {\n OldFXCanvas.this.sendKeyEventToFX(e, SWT.KeyUp);\n }\n });\n \n addMenuDetectListener(e -> {\n Runnable r = () -> {\n if (isDisposed()) {\n return;\n }\n OldFXCanvas.this.sendMenuEventToFX(e);\n };\n // In SWT, MenuDetect comes before the equivalent mouse event\n // On Mac, the order is MenuDetect, MouseDown, MouseUp. FX\n // does not expect this order and when it gets the MouseDown,\n // it closes the menu. The fix is to defer the MenuDetect\n // notification until after the MouseDown is sent to FX.\n if (\"cocoa\".equals(SWT.getPlatform())) {\n getDisplay().asyncExec(r);\n } else {\n r.run();\n }\n });\n }", "private void registerActions() {\n // File menu :\n new NewAction();\n new LoadOIFitsAction();\n new LoadFitsImageAction();\n\n new ExportOIFitsAction();\n new ExportFitsImageAction();\n\n // Edit menu :\n new DeleteSelectionAction();\n\n // Processing menu :\n new RunAction();\n new ResampleImageAction();\n\n // Interop menu :\n // Send OIFits (SAMP) :\n new SendOIFitsAction();\n // Send Fits (SAMP) :\n new SendFitsAction();\n }", "private void setupListeners() {\n\t\tfor (int i = 0; i < _controlPoints.length; i++) {\n\t\t\taddControlPointListener(_controlPoints[i][0], i);\n\t\t\taddControlPointListener(_controlPoints[i][1], i);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < _selectionButtons.length; i++) {\n\t\t\taddPointSelectionButtonListener(i);\n\t\t}\n\t}", "public void listenButtons() {\n\n playGameButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mActivities = MyActivities.PLAY_GAME;\n startActivity();\n }\n });\n\n freePlayButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mActivities = MyActivities.FREE_PLAY;\n startActivity();\n }\n });\n\n informationIcon.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mActivities = MyActivities.POP_UP;\n startActivity();\n }\n });\n }", "private void initiateChoiceButtons() {\n\t\trock = new JButton(\"Rock\");\n\t\trock.setPreferredSize(selectionButtonSize);\n\t\tpaper = new JButton(\"Paper\");\n\t\tpaper.setPreferredSize(selectionButtonSize);\n\t\tscissors = new JButton(\"Scissors\");\n\t\tscissors.setPreferredSize(selectionButtonSize);\n\n\t\taddButtonListener();\n\t}", "public void createListeners() {\n\n addRow.addActionListener(e -> gui.addRow());\n deleteRow.addActionListener(e -> gui.deleteRow());\n }", "private void startButtonAction(){\n scoreboard.setStartAction(event->initControl());\n }", "@Override\n \tpublic void addActions() {\n \t\t\n \t}", "private void setupListeners() {\t\t\n\n\t\tnextButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t gameModel.generateGame();\n\t\t\t\t \n\t\t\t\t setGameModel(gameModel);\n\t\t\t\t \n\t\t\t\t //gameModel = new GameModel(gameModel.getList());\n\t\t\t\t \n\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\ttilePanel.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"PRESS\");\n\t\t\t}\n\t\t\t\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"RELEASED\");\n\t\t\t}\n\t\t});\n\t}", "public void buttonShowAll(ActionEvent actionEvent) {\n }", "@FXML\n void controlsClicked(ActionEvent event) {\n }", "private void buttonListener(int x, int y) {\t\n\t\tbuttons[x][y].addActionListener(event -> controller.onClick(x, y));\n\t}", "public void eventos() {\n btnAbrir.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent evt) {\n btnAbrirActionPerformed(evt);\n }\n });\n }", "private void addMenuListeners()\n\t{\n\t\texit.addActionListener (new menuListener());\n\t\treadme.addActionListener (new menuListener());\n\t\tabout.addActionListener (new menuListener());\n\t\tsettings.addActionListener (new menuListener());\n\t}", "private void createListeners() {\n btGeneralSave.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n saveGeneralData();\n }\n });\n }", "private void setupListeners()\n\t{\n\t\tequals.addMouseListener(new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent click)\n\t\t\t{\n\t\t\t\tappController.calculate();\n\t\t\t\tappController.refocus();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent onClick)\n\t\t\t{\n\t\t\t\tequals.setBackground(Color.RED.darker());\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent offClick)\n\t\t\t{\n\t\t\t\tequals.setBackground(Color.RED);\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent enter)\n\t\t\t{\n\t\t\t\tequals.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3)));\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent exit)\n\t\t\t{\n\t\t\t\tequals.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\t\t}\n\t\t});\n\t\tclear.addMouseListener(new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent click)\n\t\t\t{\n\t\t\t\tappController.clearText();\n\t\t\t\tappController.refocus();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent onClick)\n\t\t\t{\n\t\t\t\tclear.setBackground(new Color(0, 170, 100).darker());\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent offClick)\n\t\t\t{\n\t\t\t\tclear.setBackground(new Color(0, 170, 100));\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent enter)\n\t\t\t{\n\t\t\t\tclear.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3)));\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent exit)\n\t\t\t{\n\t\t\t\tclear.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\t\t}\n\t\t});\n\t\tbackspace.addMouseListener(new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent click)\n\t\t\t{\n\t\t\t\tappController.backspace();\n\t\t\t\tappController.refocus();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent onClick)\n\t\t\t{\n\t\t\t\tbackspace.setBackground(new Color(0, 170, 100).darker());\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent offClick)\n\t\t\t{\n\t\t\t\tbackspace.setBackground(new Color(0, 170, 100));\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent enter)\n\t\t\t{\n\t\t\t\tbackspace.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3)));\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent exit)\n\t\t\t{\n\t\t\t\tbackspace.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\t\t}\n\t\t});\n\t\tnegative.addMouseListener(new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent click)\n\t\t\t{\n\t\t\t\tappController.changeSign();\n\t\t\t\tappController.refocus();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent onClick)\n\t\t\t{\n\t\t\t\tnegative.setBackground(Color.GRAY.darker());\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent offClick)\n\t\t\t{\n\t\t\t\tnegative.setBackground(Color.GRAY);\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent enter)\n\t\t\t{\n\t\t\t\tnegative.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3)));\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent exit)\n\t\t\t{\n\t\t\t\tnegative.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\t\t}\n\t\t});\n\t}", "public void addActionListeners() {\n\t\tApp.sc.createListener(\"/\" + this.getID() + \"/action/sent\", new OSCListener() {\n\t\t\t@Override\n\t\t\tpublic void acceptMessage(Date time, OSCMessage message) {\n\t\t\t\tConnector actionOutConnector = getConnector(ConnectorType.ACTION_OUT);\n\t\t\t\tactionOutConnector.flashConnection();\n\t\t\t}\n\t\t});\n\t}", "private void initButtons() {\r\n\t\texitGameButton\t\t= game.screenHelper.createTextButton(BUTTON_EXIT_GAME_TEXT, BUTTON_EXIT_GAME_MOUSEOVER_TEXT, menuText);\r\n\t\tcancelExitButton\t= game.screenHelper.createTextButton(BUTTON_CANCEL_EXIT_TEXT, BUTTON_CANCEL_EXIT_MOUSEOVER_TEXT, menuText);\r\n\t\tcancelExitButton.addListener(new ChangeScreenInputListener(new MenuScreenChangeCommand()));\r\n\t\t// Event Listeners \r\n\t\t// TODO: clean up this giant piece of shitty code.\r\n\t\t\r\n\t\texitGameButton.addListener(new InputListener() {\r\n\t\t\tpublic boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {\r\n\t\t\t\texitGame();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void setClickListeners() {\n buttonSomethingWentWrong.setOnClickListener(this);\n buttonSuggestion.setOnClickListener(this);\n buttonHighlightRequest.setOnClickListener(this);\n closeButton.setOnClickListener(this);\n }", "public void setupActions() {\n getActionManager().setup(getView());\n }", "public void addListeners() {\n\n startButton.addActionListener(e -> {\n if (play) {\n gameFrame.startGame();\n } else {\n gameFrame.stopGame();\n }\n play = !play;\n setTextOfStartPause();\n });\n saveButton.addActionListener(e -> {\n gameFrame.saveGame();\n });\n loadButton.addActionListener(e -> {\n gameFrame.loadGame();\n });\n resetButton.addActionListener(e -> {\n gameFrame.clearBoard();\n play = true;\n setTextOfStartPause();\n });\n exitButton.addActionListener(e -> {\n gameFrame.exitGame();\n });\n }", "public interface ButtonListener {\n void add();\n}", "public void buttonClicked();", "@Override\n\tpublic void initListeners() {\n\t\tmClick.setOnClickListener(this);\n\t}", "public interface Buttons {\n\n\t/**\n\t * \n\t * @param btnText - the text that will be shown when looking at the button\n\t * @param tooltip - the text that will be shown when the user is mouseover the\n\t * button\n\t * @return Button - with the text btnText and a tooltip of tooltip, the rest of\n\t * the button is very basic\n\t */\n\tpublic default Button buttons(String btnText, String tooltip) {\n\t\tButton btn = new Button(btnText);\n\t\tTooltip btnTooltip = new Tooltip(tooltip);\n\t\tbtn.setTooltip(btnTooltip);\n\t\tbtn.setMinWidth(MinWidth());\n\t\tbtn.setPrefWidth(50.0);\n\t\tbtn.setMaxWidth(50.0);\n\t\tbtn.setFont(Font.font(\"Verdana\", 20));\n\t\tEventHandler<ActionEvent> buttonHandler = new EventHandler<ActionEvent>() {\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\tactionButton(btnText);\n\t\t\t\tevent.consume();\n\t\t\t}\n\n\t\t};\n\t\tbtn.setOnAction(buttonHandler);\n\t\treturn btn;\n\n\t}\n\n\t/**\n\t * all the action that will happen when the button is pressed will be defined\n\t * here\n\t * \n\t * @param text - that is on the button. \n\t */\n\tpublic void actionButton(String text);\n\n\tpublic default double MinWidth() {\n\t\treturn 50.0;\n\t}\n}", "private void setButtons()\n\t{\n\t\tstartSim = new JButton(\"Start Sim\");\n\t\tstartSim.addActionListener(this);\n\t\tpauseSim = new JButton(\"Pause Sim\");\n\t\tpauseSim.addActionListener(this);\n\t\taddEat = new JButton(\"Add Eatery\");\n\t\taddEat.addActionListener(this);\n\t\tsubEat = new JButton(\"Subtract Eatery\");\n\t\tsubEat.addActionListener(this);\n\t\taddCash = new JButton(\"Add Cashier\");\n\t\taddCash.addActionListener(this);\n\t\tsubCash = new JButton(\"Subtract Cashier\");\n\t\tsubCash.addActionListener(this);\n\t}", "@Override\n\tprotected void setOnClickForButtons() {\n\t\tthis.buttons[0].setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(getActivity(), MainScreenActivity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t\tMainFunctions.selectedOption = 1;\n\t\t\t\tdestroyServices();\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\n\t\t/* message box - onclick event */\n\t\tthis.buttons[1].setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdestroyServices();\n\t\t\t\tMainFunctions.selectedOption = 2;\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t\t\n\t\t/* one tick sound */\n\t\tfor (int i = 0; i < this.totalButtons; i++){\n\t\t\tfinal String desc = buttons[i].getTag().toString();\n\t\t\tbuttons[i].setOnFocusChangeListener(new View.OnFocusChangeListener() {\n\t\t\t\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\t\t\tif (hasFocus) {\n\t\t\t\t\t\tLog.i(TAG, \"Button \" + desc + \" was selected\");\n\t\t\t\t\t\tlogFunctions.logTextFile(\"Button \" + desc + \" was selected\");\n\t\t\t\t\t\tspeakButton(desc, 1.0f, 1.0f);\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}", "private void addListeners() {\r\n updateMethod.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n enableFieldBasedOnUpdateMethod();\r\n }\r\n });\r\n cbUseLeakyLearning.addActionListener(this);\r\n cbUseLeakyLearning.setActionCommand(\"useLeakyLearning\");\r\n }", "@Override\n protected void addButtons()\n {\n JLabel agentOptions = new JLabel(\"Client Options \", SwingConstants.CENTER);\n addComponentToGridBag(this, agentOptions, 0, 0, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n\n JButton agentSendMessage = new JButton(\"Send Message\");\n addComponentToGridBag(this, agentSendMessage, 0, 2, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentSendMessage.addActionListener((ActionEvent e) ->\n {\n String to = getTo();\n String content = getContent(to);\n sendMessage(to, content);\n });\n\n JButton agentShowPortal = new JButton(\"Show Portal\");\n addComponentToGridBag(this, agentShowPortal, 0, 3, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentShowPortal.addActionListener((ActionEvent e) ->\n {\n displayConnections();\n });\n\n JButton agentexit = new JButton(\"Exit\");\n addComponentToGridBag(this, agentexit, 0, 5, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentexit.addActionListener((ActionEvent e) ->\n {\n System.exit(0);\n });\n }", "private void addActions()\r\n\t{\n\t\tPlay.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t//Take action performed into a variable for usage\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\t//Wipes out jframe of menu\r\n\t\t\t\tdispose();\r\n\t\t\t\t//then creates new jframe for pong game\r\n\t\t\t\tGame game = new Game();\r\n\t\t\t\t\r\n\t\t\t\tgame.go();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t//quit button quits game\r\n\t\tQuit.addActionListener(new ActionListener(){\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "void onInputEvent(View view, int buttons);", "@Override\r\n\tprotected SelectionListener createAddButtonActionListener() {\r\n\t\t// the value must by initialized! (don't return new AddActionListener()) \r\n\t\tthis.addButtonListener = new EventTypeAddActionListener();\r\n\t\t\r\n\t\treturn addButtonListener;\r\n\t}", "private void initAction() {\n\t\timg_back.setOnClickListener(this);\n\t\tbtn_delete.setOnClickListener(this);\n\t\tbtn_update.setOnClickListener(this);\n\t}", "private void setOnClickListeners() {\n now_playing_previous_button.setOnClickListener(this::handleTransportControls);\n\n now_playing_play_button.setOnClickListener(this::handleTransportControls);\n\n now_playing_next_button.setOnClickListener(this::handleTransportControls);\n }", "private void initEvent() {\n\t\tmBtnPower.setOnClickListener(this);\n\t\tmBtnProfile.setOnClickListener(this);\n\t\tmBtnArea.setOnClickListener(this);\n\t\tmBtnSkipTime.setOnClickListener(this);\n\t\tmBtnFrequencyPoint.setOnClickListener(this);\n\t\tmBtnAlgorithm.setOnClickListener(this);\n\t}", "void addActionListener(ActionListener listener);", "public void addButtonListener(ActionListener l)\r\n\t{\r\n\t\tbnt_pane.addButtonListener(l);\r\n\t}", "protected void onClick() {\n for(Runnable action : onClick) action.run();\n }", "private void buttonInit() {\n panel.add(createButton);\n panel.add(editButton);\n panel.add(changeButton);\n createButton.addActionListener(this);\n editButton.addActionListener(this);\n changeButton.addActionListener(this);\n submitNewUser.addActionListener(this);\n editAccTypeBtn.addActionListener(this);\n changePassBtn.addActionListener(this);\n }", "public void actionPerformed (ActionEvent e) {\n \t\t\tfor(int i=0; i<10; i++) {//add the buttons to the frame\n \t \tfor (int j=0; j<10; j++) {\n \t \t\ttile[i][j].addActionListener(new tileClicked());\n \t \t}\n \t }\n \t\t\tSystem.out.println(\"Move Mode Selected\");\n \t\t}", "private void setButtonActions() {\n\t\tbrowseButton.setAction(new AbstractAction(\"Browse\") {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint result = fileChooser.showDialog(ImportAnalysesView.this,\n\t\t\t\t\t\t\"Import\");\n\t\t\t\tif (result == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\timportFileField.setText(fileChooser.getSelectedFile()\n\t\t\t\t\t\t\t.getAbsolutePath());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\timportButton.setAction(new AbstractAction(\"Import\") {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\timportAnalyses();\n\t\t\t}\n\t\t});\n\t\tloadButton.setAction(new AbstractAction(\"Load\") {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tloadAnalyses();\n\t\t\t}\n\t\t});\n\t\timportButton.getAction().setEnabled(false);\n\t\tloadButton.getAction().setEnabled(false);\n\t\tpathTextBoxChanged();\n\t}", "private void initListeners() {\n this.setOnMousePressed((event -> {\n this.setPressedStyle();\n }));\n\n this.setOnMouseReleased((event -> {\n this.setReleasedStyle();\n }));\n\n this.setOnMouseEntered((event -> {\n this.setEffect(new DropShadow());\n }));\n\n this.setOnMouseExited((event -> {\n this.setEffect(null);\n }));\n }", "public void actionPerformed (ActionEvent e) {\n\t \t\t\tfor(int i=0; i<10; i++) {//add the buttons to the frame\n\t \t \tfor (int j=0; j<10; j++) {\n\t \t \t\ttile[i][j].addActionListener(new tileClicked());\n\t \t \t}\n\t \t }\n\t \t\t\tSystem.out.println(\"Move Mode Selected\");\n\t \t\t}", "private void eventActions() {\n\t\t// TODO Auto-generated method stub\n\t\tlblGradesSubj.addClickHandler(new GradeandSubjectFilter());\n\t\tlblStandards.addClickHandler(new StandardsFilter());\n\t\tlblGradesSubj.getElement().setAttribute(\"style\", \"background: #e5e5e5;\");\n\t\tstandardsPanel.setVisible(false);\n\t}", "public void addMenuItems()\n\t{\n\t\tstartButton = new JButton(\"Start\");\n\t\tstartButton.setLayout(null);\n\t\tstartButton.setBounds(350, 225, 100, 50);\n\t\t\n\t\toptionsButton = new JButton(\"Options\");\n\t\toptionsButton.setLayout(null);\n\t\toptionsButton.setBounds(350, 275, 100, 50);\n\t\t\n\t\texitButton = new JButton(\"Exit\");\n\t\texitButton.setLayout(null);\n\t\texitButton.setBounds(350, 375, 100, 50);\n\t\texitButton.setActionCommand(\"exit\");\n\t\texitButton.addActionListener((ActionListener) this);\n\t\t\n\t\tmainMenuPanel.add(startButton);\n\t\tmainMenuPanel.add(optionsButton);\n\t\tmainMenuPanel.add(startButton);\n\t}", "private void setupClickEvents() {\n ivAddNewCategory.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n addNewCategory();\n }\n });\n }", "public void setListeners() {\n backButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n }\n });\n\n settingButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showEditDialog();\n }\n });\n\n cameraButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showChoosePictureDialog();\n }\n });\n }", "public void manageInputPointCreation(){\n Button addInputButton = new Button();\n addInputButton.setId(\"addInputListButton\");\n\n addInputButton.setOnAction(new EventHandler<ActionEvent>() {\n public void handle(ActionEvent event) {\n try {\n Map<String, IYamlDomain> newMap = new HashMap<String, IYamlDomain>();\n newMap.put(Integer.toString(_addCounter), _class.newInstance());\n _abstractUiNode.getChilds().get(0).addInputData(newMap);\n _addCounter ++;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n _abstractUiNode.getChildren().add(addInputButton);\n addInputButton.setVisible(true);\n StackPane.setAlignment(addInputButton, Pos.BOTTOM_LEFT);\n\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[0])){\n\t\t\tperformButton(0);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[1])){\n\t\t\tperformButton(1);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[2])){\n\t\t\tperformButton(2);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[3])){\n\t\t\tperformButton(3);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[4])){\n\t\t\tperformButton(4);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[5])){\n\t\t\tperformButton(5);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[6])){\n\t\t\tperformButton(6);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[7])){\n\t\t\tperformButton(7);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[8])){\n\t\t\tperformButton(8);\n\t\t}\n\t}", "public void setupHandlers(){\n\t\trestartButtonHandler rbh = new restartButtonHandler();\n\t\trestart.addActionListener(rbh);\n\t\tInstructionButtonHandler ibh = new InstructionButtonHandler();\n\t\tinstruction.addActionListener(ibh);\n\t\tCardButtonHandler cbh = new CardButtonHandler();\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 6; j++){\n\t\t\t\t\tbuttons[i][j].addActionListener(cbh);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void setupMouseEventHandlers() {\n this.setOnMouseClicked(event -> {\n if (event.getButton() == MouseButton.PRIMARY) {\n fireEvent(new MenuSelectedEvent(\n MenuManager.MenuType.BUILDING, this.getSpriteType(),\n event.getSceneX(), event.getSceneY()));\n }\n });\n }", "private void agregarListeners() {\n this.vista.jbAceptar.addActionListener(this);\n this.vista.jbAgregar.addActionListener(this);\n this.vista.jbCancelar.addActionListener(this);\n this.vista.jbQuitar.addActionListener(this);\n this.vista.jtPermisosDisponibles.addMouseListener(this);\n this.vista.jtPermisosSeleccionados.addMouseListener(this);\n }", "public void addButtons(){\n\t\t//play button\n\t\tplayButton.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tleaderButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tselectButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tleaderButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tmodifyButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tleaderButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tselectButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tleaderButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tmodifyButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tplayButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tGamePlay play = new GamePlay(1,null);\n\t\t\t\ttimer = new Timer(1000/60, play);\n\t\t\t\ttimer.start();\n\t\t\t\tviewFrame(false);\n\t\t\t}\n\t\t});\n\n\t\t//logout button\n\t\tlogoutButton.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tselectButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tmodifyButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tselectButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tleaderButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tselectButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tmodifyButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tselectButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tleaderButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlogoutButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tDrawLogin loginMenu = DrawLogin.getInstance();\n\t\t\t\tloginMenu.viewFrame(true);\n\t\t\t\tviewFrame(false);\n\t\t\t}\n\t\t});\n\n\t\t//load button\n\t\tloadButton.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tmodifyButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tleaderButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tmodifyButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tselectButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tmodifyButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tleaderButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tmodifyButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tselectButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tloadButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString result = null;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tFile[] files;\n\t\t\t\t\t//Show user's loaded games\n\t\t\t\t\tList<String> results = new ArrayList<String>();\n\t\t\t\t\tif((new File(\"save/\" + Login.getUser().getUsername()).exists())){\n\t\t\t\t\t\tfiles = new File(\"save/\" + Login.getUser().getUsername()).listFiles();\n\n\t\t\t\t\t\t//If this pathname does not denote a directory, then listFiles() returns null. \n\n\t\t\t\t\t\tfor (File file : files) {\n\t\t\t\t\t\t\tif (file.isFile()) {\n\t\t\t\t\t\t\t\tresults.add(file.getName());\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\telse{\n\t\t\t\t\t\tresults.add(\" \");\n\t\t\t\t\t}\n\t\t\t\t\tif (EventQueue.isDispatchThread()) {\n\t\t\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\t\t\tpanel.add(new JLabel(\"Please make a selection:\"));\n\t\t\t\t\t\tDefaultComboBoxModel model = new DefaultComboBoxModel();\n\t\t\t\t\t\tfor (String temp : results) {\n\t\t\t\t\t\t\tmodel.addElement(temp);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tJComboBox comboBox = new JComboBox(model);\n\t\t\t\t\t\tpanel.add(comboBox);\n\n\t\t\t\t\t\tint iResult = JOptionPane.showConfirmDialog(null, panel, \"Flavor\", JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\tswitch (iResult) {\n\t\t\t\t\t\tcase JOptionPane.OK_OPTION:\n\t\t\t\t\t\t\tresult = (String) comboBox.getSelectedItem();\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((new File(\"save/\" + Login.getUser().getUsername()).exists())){\n\t\t\t\t\t\tFileInputStream fileIn = new FileInputStream(\"save/\" + Login.getUser().getUsername() + \"/\" + result);\n\t\t\t\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\t\t\t\tgame = (Map) in.readObject();\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t\tfileIn.close();\n\t\t\t\t\t}\n\t\t\t\t}catch(IOException i)\n\t\t\t\t{\n\t\t\t\t\ti.printStackTrace();\n\t\t\t\t\treturn;\n\t\t\t\t}catch(ClassNotFoundException c)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"map class not found\");\n\t\t\t\t\tc.printStackTrace();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"Load Game\");\n\t\t\t\tviewFrame(false);\n\t\t\t\tGamePlay play = new GamePlay(0, game);\n\t\t\t\ttimer = new Timer(1000/60, play);\n\t\t\t\ttimer.start();\n\t\t\t\tviewFrame(false);\n\t\t\t}\n\t\t});\n\n\n\t\t//modify button\n\t\tmodifyButton.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tloadButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tplayButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tloadButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tlogoutButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tloadButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tplayButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tloadButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tlogoutButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmodifyButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tModifyAccount md = new ModifyAccount();\n\t\t\t\tviewFrame(false);\n\t\t\t}\n\t\t});\n\n\t\t//leaderboard button\n\t\tleaderButton.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tplayButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tlogoutButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tplayButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tloadButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tplayButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tlogoutButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tplayButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tloadButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tleaderButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//Display leaderboard\n\t\t\t\ttry {\n\t\t\t\t\tLeaderboard lb = new Leaderboard();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t}\n\t\t\t\tviewFrame(false);\n\t\t\t\tSystem.out.println(\"View Leaderboards\");\n\t\t\t}\n\t\t});\n\n\t\tselectButton.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tlogoutButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tloadButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tlogoutButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tplayButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tlogoutButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tloadButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tlogoutButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tplayButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tselectButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tviewFrame(false);\n\t\t\t\ttry {\n\t\t\t\t\tls = new LevelSelect();\n\t\t\t\t} catch (IOException 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}", "private void createEvents() {\n\t\tbtnPushTheButton.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t\n\t\t\tprivate List<String> b;\n\n\t\n\t\t\t//@SuppressWarnings(\"unchecked\")\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tact = true;\n\t\t\t\t\n//\t\t\t\tb = new ArrayList<String>();\n//\t\t\t\t\n//\t\t\t\tthis.b= (List<String>) ((List<Object>) (agent.v.getData())).stream().map(item -> {\n//\t\t\t\t\treturn (String) item;\n//\t\t\t\t});\n//\t\t\t\tString c = String.join(\", \", b);\n//\t\t\t\tclassTextArea.setText(c);\n//\t\t\t\n//\t\t\t\tclassTextArea.setText(b.toString());\n//\t\t\t\t\n//\t\t\t\treturn;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t});\n\t\t\n\t}", "@Override\r\n protected void createListeners(\r\n ) {\r\n \tsuper.createListeners();\r\n \t\r\n inputManager.addMapping( \"nextScene\"\r\n , new KeyTrigger( KeyInput.KEY_RETURN ) );\r\n inputManager.addMapping( \"priorScene\"\r\n , new KeyTrigger( KeyInput.KEY_BACKSLASH ) );\r\n inputManager.addMapping( \"abortLoad\"\r\n , new KeyTrigger( KeyInput.KEY_DELETE ) );\r\n \r\n ActionListener aListener = new CSGTestActionListener(); \r\n inputManager.addListener( aListener, \"nextScene\" );\r\n inputManager.addListener( aListener, \"priorScene\" );\r\n inputManager.addListener( aListener, \"abortLoad\" );\r\n }", "private void addFunctionListeners()\n\t{\n\t\tadd.addActionListener (new functionListener());\n\t\tsubtract.addActionListener (new functionListener());\n\t\tmultiply.addActionListener (new functionListener());\n\t\tdivide.addActionListener (new functionListener());\n\t\tequals.addActionListener (new functionListener());\n\t\tnegate.addActionListener (new functionListener());\n\t\tpercent.addActionListener (new functionListener());\n\t\tsquareRoot.addActionListener (new functionListener());\n\t\tC.addActionListener (new functionListener());\n\t\tcubeRoot.addActionListener (new functionListener());\n\t\txSquare.addActionListener (new functionListener());\n\t\txCube.addActionListener (new functionListener());\n\t\tdel.addActionListener (new functionListener());\n\t\treciprocal.addActionListener (new functionListener());\t\n\t\tPI.addActionListener (new functionListener());\n\t\te.addActionListener (new functionListener());\n\t\ttwoPower.addActionListener (new functionListener());\n\t\tln.addActionListener (new functionListener());\n\t\teToPower.addActionListener (new functionListener());\n\t\tdecimalPoint.addActionListener (new functionListener());\n\t}", "private void createBottomActionButtons() {\n Composite actionControlComp = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(2, false);\n GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false);\n actionControlComp.setLayout(gl);\n actionControlComp.setLayoutData(gd);\n\n Button okBtn = new Button(actionControlComp, SWT.PUSH);\n okBtn.setText(\" OK \");\n okBtn.addSelectionListener(new SelectionAdapter() {\n\n @Override\n public void widgetSelected(SelectionEvent e) {\n if (verifySelection()) {\n close();\n }\n }\n });\n\n Button cancelBtn = new Button(actionControlComp, SWT.PUSH);\n cancelBtn.setText(\" Cancel \");\n cancelBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n close();\n }\n });\n }", "private void initButtons() {\n HBox buttons = new HBox(50);\n yes = new Button(\"Yes!\");\n no = new Button(\"No!\");\n buttons.getChildren().addAll(yes,no);\n buttons.setAlignment(Pos.CENTER);\n root.getChildren().addAll(buttons);\n }", "private void setupAddToReviewButton() {\n\t\tImageIcon addreview_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"addtoreview.png\");\n\t\tJButton add_to_review = new JButton(\"\", addreview_button_image);\n\t\tadd_to_review.setBounds(374, 598, 177, 100);\n\t\tadd_to_review.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\twords_to_add_to_review.add(words_to_spell.get(current_word_number));\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}\n\t\t});\n\t\tadd_to_review.addMouseListener(new VoxMouseAdapter(add_to_review,null));\n\t\tadd(add_to_review);\n\t}", "private void setupButtons() {\n for (int i = 0; i < players.size(); i++) {\n final int j = i + 1;\n players.get(i).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n buttonPushed(j);\n }\n });\n }\n }", "public void setListeners(){\n\t\t\n\t\tthis.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// chosen to add new patient\n\t\t\t\t\n\t\t\t\tArrayList<String> constructorInput = null;\n\t\t\t\tconstructorInput = NewPatientWindow.showInputdialog(true);\n\t\t\t\t\n\t\t\t\t// if cancel or close chosen on new patient window:\n\t\t\t\tif (constructorInput == null)\n\t\t\t\t\treturn; \n\t\t\t\t\n\t\t\t\t//else:\n\t\t\t\tBrainFreezeMain.patients.add(new Patient(\n\t\t\t\t\t\t(constructorInput.toArray( new String[constructorInput.size()]))));\n\t\t\t\tBrainFreezeMain.currentPatientIndex = BrainFreezeMain.patients.size()-1;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLeftPanel.refreshPatientLabel(); // change to patient list, update label\n\t\t\t\tLeftPanel.refreshPatientData(); // change to patient, update data\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t}", "private void addALlListeners() {\n\n\t\t// Add phrase listener\n\t\tview.getAddButton().addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString english = view.getEnglishTextField().getText();\n\t\t\t\tString chinese = view.getChineseTextField().getText();\n\t\t\t\tif (english.equals(\"\") && chinese.equals(\"\"))\n\t\t\t\t\treturn;\n\t\t\t\tPhrase p = new Phrase(english, chinese, null);\n\t\t\t\tselectedLesson.addPhrase(p);\n\t\t\t\tview.addPhrase(p);\n\t\t\t\tview.clearEnglishChineseTextField();\n\t\t\t}\n\t\t});\n\n\t\t// Delete phrase listener\n\t\tview.getDeleteButton().addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint index = view.getPhraseTable().getSelectedRow();\n\t\t\t\tif (index == -1)\n\t\t\t\t\treturn;\n\t\t\t\tPhrase p = selectedLesson.getPhrase(index);\n\t\t\t\tselectedLesson.deletePhrase(p);\n\t\t\t\tview.deletePhrase(index);\n\t\t\t}\n\t\t});\n\n\t\t// Test lesson listener\n\t\tview.getTestButton().addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tTestController.getTestController().setLesson(selectedLesson);\n\t\t\t\tMainController.getMainController().setVisible(false);\n\t\t\t\tselectedLesson.setNeededToRestore(true);\n\t\t\t}\n\t\t});\n\n\t\t// Learn lesson listener\n\t\tview.getLearnButton().addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew LearnController(selectedLesson);\n\t\t\t\tMainController.getMainController().setVisible(false);\n\t\t\t\tselectedLesson.setNeededToRestore(true);\n\t\t\t}\n\t\t});\n\n\t\t// Sound listener\n\t\tview.getPhraseTable().addMouseListener(new SoundAdapter());\n\n\t}", "private void setupBtnListeners() {\n findViewById(R.id.btnAddValue).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n buttonAddValues();\n updateUI();\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n\n //Button to open blood pressure chart sets opens blood pressure chart activity\n findViewById(R.id.btnOpenBPChart).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent bpChart = new Intent(WeightActivity.this, BPChartActivity.class);\n startActivity(bpChart.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION));\n mSettingsOrBPChartOpened = true;\n }\n });\n\n //Clicking date button opens date picker and closes keyboard\n findViewById(R.id.tvDate).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showDatePickerDialog();\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n }", "private void doButtons()\n {\n if (scopes.size()>1) addButtons();\n else hideButtons();\n }" ]
[ "0.71187836", "0.7031573", "0.7024299", "0.69022334", "0.68999064", "0.68818307", "0.6853959", "0.67995405", "0.6787666", "0.67561185", "0.67210877", "0.6712986", "0.66101545", "0.6568014", "0.65195185", "0.6510307", "0.6505604", "0.64875364", "0.64709264", "0.6464887", "0.64603746", "0.6458272", "0.643612", "0.64324164", "0.64178896", "0.6394149", "0.6383154", "0.6357225", "0.63317657", "0.6325969", "0.6268956", "0.6262604", "0.6259511", "0.6223573", "0.6214274", "0.6196498", "0.61913353", "0.61830264", "0.6170745", "0.61622274", "0.61595076", "0.61489546", "0.61356175", "0.61309195", "0.61283225", "0.6115894", "0.6115273", "0.61137104", "0.6107462", "0.60993445", "0.60991955", "0.608613", "0.60730755", "0.60676175", "0.6066393", "0.60573786", "0.60387504", "0.6034701", "0.60323346", "0.602501", "0.6022585", "0.6018024", "0.60134363", "0.6013154", "0.601266", "0.60121256", "0.60119075", "0.6008197", "0.60059476", "0.60008776", "0.5994945", "0.5989846", "0.5984113", "0.59797436", "0.5975664", "0.5975502", "0.5956451", "0.59485555", "0.59468776", "0.59462374", "0.5940945", "0.59401673", "0.5938426", "0.593248", "0.5931869", "0.5930113", "0.59264153", "0.59260845", "0.59201336", "0.5912797", "0.5911019", "0.59057057", "0.5904801", "0.58916706", "0.5890761", "0.5883924", "0.5882877", "0.58782667", "0.5876926", "0.5874366", "0.5863987" ]
0.0
-1
Construtor da classe Singleton
private MissaJpaController() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Singleton(){}", "private Singleton()\n\t\t{\n\t\t}", "private Singleton() { }", "private Singleton() {\n\t}", "private SingletonSigar(){}", "private Singleton(){\n }", "private LazySingleton(){}", "private SingletonObject() {\n\n\t}", "private SingletonSample() {}", "private SparkeyServiceSingleton(){}", "private J2_Singleton() {}", "private SingletonEager(){\n \n }", "private Singleton() {\n if (instance != null){\n throw new RuntimeException(\"Use getInstance() to create Singleton\");\n }\n }", "private SingletonDoubleCheck() {}", "private LoggerSingleton() {\n\n }", "private MySingleton() {\r\n\t\tSystem.out.println(\"Only 1 object will be created\");\r\n\t}", "private LazySingleton() {\n if (null != INSTANCE) {\n throw new InstantiationError(\"Instance creation not allowed\");\n }\n }", "public static Singleton getInstance( ) {\n return singleton;\n }", "public SingletonVerifier() {\n }", "public static Singleton getInstance( ) {\n return singleton;\n }", "private EagerInitializedSingleton() {\n\t}", "private EagerInitializedSingleton() {\n\t}", "private SingletonClass() {\n x = 10;\n }", "private SingletonLectorPropiedades() {\n\t}", "static void useSingleton(){\n\t\tSingleton singleton = Singleton.getInstance();\n\t\tprint(\"singleton\", singleton);\n\t}", "public static Singleton getInstance() {\t\t//getInstance nam omogucava da instanciramo klasu jedinstveno ako vec nismo!\r\n\t\tif (instance == null) {\t\t\t\t\t// inace nam vraca instancu ako je vec napravljena!\r\n\t\t\tinstance = new Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "private PropertySingleton(){}", "private SingletonAR() {\n System.out.println(Thread.currentThread().getName()\n + \": creating SingletonAR\");\n }", "private Singleton()\r\n\t{\r\n\t\tSystem.out.println(\"1st instance of class Singleton created\");\r\n\t\tstr = \"Constructor init\";\r\n\t}", "private InnerClassSingleton(){}", "private SingletonClass()\n {\n s = \"Hello I am a string part of Singleton class\";\n }", "private EagerInitializationSingleton() {\n\t}", "private SingletonH() {\n System.out.println(Thread.currentThread().getName()\n + \": creating SingletonH\");\n }", "public DPSingletonLazyLoading getInstance(){ //not synchronize whole method. Instance oluşmuş olsa bile sürekli burada bekleme olur.\r\n\t\tif (instance == null){//check\r\n\t\t\tsynchronized(DPSingletonLazyLoading.class){ //critical section code NOT SYNCRONIZED(this) !!\r\n\t\t\t\tif (instance == null){ //double check\r\n\t\t\t\t\tinstance = new DPSingletonLazyLoading();//We are creating instance lazily at the time of the first request comes.\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn instance;\r\n\t}", "public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }", "private SingletonClass() {\n objects = new ArrayList<>();\n }", "@Override\n public boolean isSingleton() {\n return false;\n }", "private InstanceUtil() {\n }", "T getInstance();", "public static LazyInitializedSingleton getInstance(){ // method for create/return Object\n if(instance == null){//if instance null?\n instance = new LazyInitializedSingleton();//create new Object\n }\n return instance; // return early created object\n }", "public static Singleton getInstance() {\n\t //Je-li promenna instance null, tak se vytvori objekt\n\t if (instance == null) {\n\t instance = new Singleton();\n\t }\n\t //Vratime jedinacka\n\t return instance;\n\t }", "private synchronized static void createInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tinstance = new Casino();\r\n\t\t}\r\n\t}", "public static synchronized Singleton getInstanceTS() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}", "public static synchronized Singleton getInstance() {\n\t\tif(instance ==null) {\n\t\t\tinstance= new Singleton();\n\t\t\t\n\t\t}\n\t\treturn instance;\n\t}", "public static Singleton getInstance() {\n return mSing;\n }", "private static synchronized void createInstance() {\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new LOCFacade();\r\n\t}", "private EagerlySinleton()\n\t{\n\t}", "public static Replica1Singleton getInstance() {\r\n\t\tif (instance==null){\r\n\t\t/*System.err.println(\"Istanza creata\");*/\r\n\t\tinstance = new Replica1Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t\r\n\t}", "synchronized public static SampletypeManager getInstance()\n {\n return singleton;\n }", "private Instantiation(){}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public static MySingleton getInstance() {\r\n\t\tif(instance==null){\r\n\t\t\tinstance= new MySingleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "private SingleTon() {\n\t}", "public static class_config getinstance(){\n\t\tif (instance==null){\n\t\t\tinstance = new class_config();\n\t\t\t\n singleton.mongo=new Mongo_DB();\n singleton.nom_bd=singleton.mongo.getNom_bd();\n singleton.nom_table=singleton.mongo.getNom_table();\n singleton.client = Mongo_DB.connect();\n if (singleton.client != null) {\n singleton.db = singleton.mongo.getDb();\n singleton.collection = singleton.mongo.getCollection();\n }\n \n\t\t\tsingleton_admin.admin= new ArrayList<admin_class>();\n\t\t\tsingleton_client.client= new ArrayList<client_class>();\n\t\t\tsingleton_reg.reg= new ArrayList<reg_user_class>();\n\t\t\t\n// A_auto_json.auto_openjson_admin();\n// C_auto_json.auto_openjson_client();\n R_auto_json.auto_openjson_reg();\n //funtions_files.auto_open();\n\t\t\tauto_config.auto_openconfig();\n //class_language.getinstance();\n\t\t\tsingleton_config.lang=new class_language();\n \n connectionDB.init_BasicDataSourceFactory();\n \n\t\t}\n\t\treturn instance;\n\t}", "public static Singleton getInstance(){\n if(instance == null)\n {\n synchronized (Singleton.class) {\n if (instance == null) {\n instance = new Singleton();\n Log.d(\"***\", \"made new Singleton\");\n }\n }\n }\n return instance;\n }", "public static utilitys getInstance(){\n\r\n\t\treturn instance;\r\n\t}", "public static SingleObject getInstance(){\n return instance;\n }", "private void initInstance() {\n init$Instance(true);\n }", "public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_INSTANCE;\n }", "public static IFilter getInstance() {\n return singleton;\n }", "public SharedObject() {}", "public static synchronized Singleton getInstance() {\n\t\tif (mContext == null) {\n\t\t\tthrow new IllegalArgumentException(\"Impossible to get the instance. This class must be initialized before\");\n\t\t}\n\n\t\tif (instance == null) {\n\t\t\tinstance = new Singleton();\n\t\t}\n\n\t\treturn instance;\n\t}", "@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Return the singleton instance from the SingletonHolder.\n return (Singleton<T>) SingletonHolder.INSTANCE;\n }", "public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "private synchronized static void createInstance() {\n if (INSTANCE == null) { \n INSTANCE = new DataConnection();\n }\n }", "public static SingletonEager get_instance(){\n }", "private LOCFacade() {\r\n\r\n\t}", "private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public static MySingleTon getInstance(){\n if(myObj == null){\n myObj = new MySingleTon();\n }\n return myObj;\n }", "private ServicioProductoSingleton() {\n this.listaProductos = new ArrayList<>();\n }", "public static ChatSingleton getInstance( ) {\n return singleton;\n }", "private SingletonSyncBlock() {}", "private Singleton2A(){\n\t\tif(instance != null){\n\t\t\tthrow new RuntimeException(\"One instance already created cant create other\");\n\t\t}\t\t\n\t\tSystem.out.println(\"I am private constructor\");\n\t}", "public static void createInstance()\n {\n if (instance == null) {\n // Create the instance\n instance = new SalesOrderDataSingleton();\n }\n }", "public Instance() {\n }", "public static Singleton getInstance() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}", "private SingletonStatementGenerator() {\n\t}", "@Override\n public T getInstance() {\n return instance;\n }", "private static void createSingletonObject() {\n\t\tSingleton s1 = Singleton.getInstance();\n\t\tSingleton s2 = Singleton.getInstance();\n\n\t\tprint(\"S1\", s1);\n\t\tprint(\"S2\", s2);\n\t}", "public static Singleton print(String param)\n {\n return new Singleton();\n}", "private MApi() {}", "public static Singleton getInstance()\r\n\t{\r\n\t\t// check if the instance is already created or not, required only for lazy init\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new Singleton();\r\n\t\treturn instance;\r\n\t}", "public static SingleObject getInstance(){\n\t\treturn instance;\n\t}", "public static Singleton instance() {\n return Holder.instance;\n }", "@Singleton\n @Component(modules = { SingletonProvider.class })\n public interface Single {\n SingletonMaker maker();\n }", "public static FacadeMiniBank getInstance(){\r\n\r\n\t\tif(singleton==null){\r\n\t\t\ttry {\r\n\t\t\t\t//premier essai : implementation locale\r\n\t\t\t\tsingleton=(FacadeMiniBank) Class.forName(implFacadePackage + \".\" + localeFacadeClassName).newInstance();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.err.println(e.getMessage() + \" not found or not created\");\r\n\t\t\t}\t\t\t\t\t\t\r\n\t\t}\r\n\t\tif(singleton==null){\r\n\t\t\t//deuxieme essai : business delegate \r\n\t\t singleton=getRemoteInstance();\r\n\t\t\t\t\t\t\t\t\r\n\t\t}\r\n\t\treturn singleton;\r\n\t}", "public static Singleton getInstance() {\n if (instance == null) {\n synchronized (Singleton.class){\n if (instance == null) {\n instance = new Singleton();\n }\n }\n }\n return instance;\n }", "public boolean isSingleton()\n\t{\n\t\treturn true;\n\t}", "public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }", "public static SingletonClass getInstance() {\n\t\tif(singletonObj == null){\n\t\t\tsingletonObj = new SingletonClass();\n\t\t}\n\t\treturn singletonObj;\n\t}", "public static LazySingleton getInstance()\n {\n // Check null\n if (instance == null)\n instance = new LazySingleton();\n return instance;\n\n }", "public static HierarchyFactory getSingleton ()\n {\n return HierarchyFactorySingleton._singleton;\n }", "private SingleObject()\r\n {\r\n }", "public static synchronized SingletonImpl getSingleton() {\n\t\t\n\t\tif(mySingleton == null){\n\t\t\tmySingleton = new SingletonImpl();\n\t\t}\n\t\treturn mySingleton;\n\t}", "public boolean isSingleton() {\n\t\treturn false;\r\n\t}", "private SingleObject(){}", "Reproducible newInstance();", "@Test\n public void TestSingletonInitialization() {\n\t\tassertSame(SingletonClass.getInstance(), SingletonClass.getInstance());\n }", "public static Singleton getInstance() {\n\n if (_instance == null) {\n synchronized (Singleton.class) {\n if (_instance == null)\n _instance = new Singleton();\n }\n }\n return _instance;\n }", "@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Atomically set the reference's value to a new singleton iff\n // the current value is null. This constructor will most likely\n // be called more than once if instance() is called from\n // multiple threads, but only the first one is used.\n sSingletonAR\n .updateAndGet(u ->\n u != null ? u : new SingletonAR<T>());\n\n // Return the singleton's current value.\n return (Singleton<T>) sSingletonAR.get();\n }", "public boolean isSingleton() {\n\t\treturn false;\n\t}" ]
[ "0.8804642", "0.8479317", "0.84696954", "0.8415762", "0.8395162", "0.83506423", "0.81605494", "0.80755603", "0.8057555", "0.7854492", "0.7755288", "0.7716508", "0.7705773", "0.75554717", "0.75321966", "0.74810666", "0.7442201", "0.73746413", "0.7348206", "0.73386407", "0.7333126", "0.7333126", "0.72974384", "0.72928923", "0.7229066", "0.7219344", "0.71904755", "0.7187234", "0.71717656", "0.7065364", "0.70464677", "0.7029762", "0.6989385", "0.69853896", "0.69732827", "0.69496584", "0.69304913", "0.6927126", "0.69101256", "0.6883644", "0.6835877", "0.6816679", "0.6815554", "0.6800387", "0.67899555", "0.6785897", "0.6769739", "0.6765792", "0.67530876", "0.6748139", "0.67341304", "0.6724558", "0.67083436", "0.6705587", "0.6701519", "0.66980743", "0.6693125", "0.66851884", "0.6678229", "0.6675281", "0.66638416", "0.6662458", "0.6658992", "0.6654842", "0.6650547", "0.6648508", "0.6642441", "0.6640129", "0.6626933", "0.6622847", "0.6616296", "0.66150594", "0.661453", "0.66118836", "0.6602615", "0.66024", "0.65700775", "0.65585923", "0.6551185", "0.6548567", "0.6545985", "0.6543149", "0.6531376", "0.6531203", "0.6526424", "0.6519708", "0.6491354", "0.64864594", "0.6480127", "0.64800495", "0.6470583", "0.6466959", "0.64631563", "0.6461568", "0.6460005", "0.6449617", "0.6439421", "0.64387715", "0.64338887", "0.64273024", "0.6415728" ]
0.0
-1
Interface of main menu and all cartesian plane simulations has methods for drawing components on the screen and capture mouse and keyboard actions
public interface GraphicsInterface { /** * drawing components of menus or simulation on the screen */ void draw(); /** * this method runs when right mouse button was pressed * @param mouseX - current mouse x position (in pixels) * @param mouseY - current mouse y position (in pixels) */ void onRightClick(double mouseX, double mouseY); /** * this method runs when left mouse button was pressed * @param mouseX - current mouse x position (in pixels) * @param mouseY - current mouse y position (in pixels) * @return false if simulation doesn't have to be refreshed. * true otherwise (also in menus) */ boolean onLeftClick(double mouseX, double mouseY); /** * this method runs when left mouse button was released * @param mouseX - current mouse x position (in pixels) * @param mouseY - current mouse y position (in pixels) */ void onLeftMouseButtonReleased(double mouseX, double mouseY); /** * This method runs when LEFT mouse button is pressed and mouse is moving. * @param mouseX - current mouse x position (in pixels) * @param mouseY - current mouse y position (in pixels) * @param prevMouseX - mouse x position in previous frame (in pixels) * @param prevMouseY - mouse y position in previous frame (in pixels) * @return true/false depending which scenario happened */ boolean onMouseDragged(double mouseX, double mouseY, double prevMouseX, double prevMouseY); /** * This method runs when no mouse button is pressed and mouse is moving * @param mouseX - current mouse x position (in pixels) * @param mouseY - current mouse y position (in pixels) * @param prevMouseX - mouse x position in previous frame (in pixels) * @param prevMouseY - mouse y position in previous frame (in pixels) */ void onMouseMoved(double mouseX, double mouseY, double prevMouseX, double prevMouseY); /** * This method runs when mouse wheel is moving * @param rotation direction of scrolling. Can be either 1 [down] or -1 [up] */ void onMouseScrolled(int rotation); /** * This method runs when some button is pressed * @param event - all information of pressed button * @return true/false depending of the usage */ boolean onKeyPressed(KeyEvent event); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void MainMenuComponents(){\n\t\tInterface.menu = new JPanel(new GridBagLayout()) {\n\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\tpublic void paintComponent(Graphics g) {\n\n\t\t\t\tg.drawImage(Interface.img, 0, 0, null);\n\t\t\t}\n\t\t};\n\t\tInterface.single.setPreferredSize(Interface.dim);\n\t\tInterface.single.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.single.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.single.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.single.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.multi.setPreferredSize(Interface.dim);\n\t\tInterface.multi.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.multi.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.multi.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.multi.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.options.setPreferredSize(Interface.dim);\n\t\tInterface.options.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.options.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.options.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.options.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.exit.setPreferredSize(Interface.dim);\n\t\tInterface.exit.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.exit.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.exit.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.exit.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.game.setFocusable(true);\n\t\tInterface.menu.setFocusable(true);\n\t\t\n\t\t\n\t\tInterface.backtosingle.setPreferredSize(Interface.dim);\n\t\tInterface.backtosingle.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtosingle.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtosingle.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtosingle.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtomulti.setPreferredSize(Interface.dim);\n\t\tInterface.backtomulti.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtomulti.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtomulti.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtomulti.setForeground(Color.white);\n\t}", "public interface Menu {\n\n void draw(Graphics2D g2d);\n void update(float elapsedTime, boolean[][] keyboardstate);\n void setActive(boolean bool);\n boolean isActive();\n\n}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tint x = e.x;\n\t\t\t\tint y = e.y;\n\t\t\t\t\n\t\t\t\tif(settingRect.contains(x,y)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(helpRect.contains(x,y)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(aboutRect.contains(x,y)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(exitRect.contains(x,y)) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\telse if(onButton(classicP,x,y)) {\n\t\t\t\t\tcanvas.dispose();\n\t\t\t\t\tchangeCursor(false);\n\t\t\t\t\tClassicView view = new ClassicView(mainFrame);\n\t\t\t\t\tmainFrame.setView(view);\n\t\t\t\t\t\n\t\t\t\t\tgame = new ClassicGame(view);\n\t\t\t\t\tgameThread = new Thread(game);\n\t\t\t\t\tview.setGameThread(gameThread);\n\t\t\t\t\tview.setGame(game);\n\t\t\t\t\tgameThread.start();\n\t\t\t\t}\n\t\t\t\telse if(onButton(timeP,x,y)) {\n\t\t\t\t\tcanvas.dispose();\n\t\t\t\t\tchangeCursor(false);\n\t\t\t\t\tClassicView view = new TimeView(mainFrame);\n\t\t\t\t\tmainFrame.setView(view);\n\t\t\t\t\t\n\t\t\t\t\tgame = new TimeGame(view);\n\t\t\t\t\tgameThread = new Thread(game);\n\t\t\t\t\tview.setGameThread(gameThread);\n\t\t\t\t\tview.setGame(game);\n\t\t\t\t\tgameThread.start();\n\t\t\t\t}\n\t\t\t\telse if(onButton(levelP,x,y)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(onButton(onlineP,x,y)) {\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}", "private void renderMenu() {\n StdDraw.setCanvasSize(START_WIDTH * TILE_SIZE, START_HEIGHT * TILE_SIZE);\n Font font = new Font(\"Monaco\", Font.BOLD, 20);\n StdDraw.setFont(font);\n StdDraw.setXscale(0, START_WIDTH );\n StdDraw.setYscale(0, START_HEIGHT );\n StdDraw.clear(Color.BLACK);\n StdDraw.setPenColor(Color.WHITE);\n StdDraw.enableDoubleBuffering();\n StdDraw.text(START_WIDTH / 2, START_HEIGHT * 2 / 3, \"CS61B The Game\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2 + 2, \"New Game (N)\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2, \"Load Game (L)\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2 - 2 , \"Quit (Q)\");\n StdDraw.show();\n }", "public ScreenMainMenu() {\n\t\tsuper(AdapterInputMainMenu.class);\n\t\tobj.add(new MainMenuInteractObjTest<>(gRef,200,200,new Rectangle(0,0,32,32)));\n\t\tChartset.detect(\"resources\\\\Charts\");\n\t}", "private void paintMenu(){ \n\t\t\n\t\t//Idee: Vllt. lieber Menü auf unsichtbar setzen und immer wieder anzeigen, wenn benötigt? Vllt. auch praktisch für Pause...Aber was mit entsprechenden Labels?\n\t\tif(spiel_status == 3){ //Spiel noch gar nicht gestartet\n\t\t\tframe3 = new JFrame(\"Spiel starten?\");\n\t\t\tframe3.setLocation(650,300);\n\t\t\tframe3.setSize(100, 100);\n\t\t\tJButton b1 = new JButton(\"Einzelspieler\");\n\t\t\tb1.setMnemonic(KeyEvent.VK_ENTER);//Shortcut Enter\n\t\t\tJButton b2 = new JButton(\"Beenden\");\n\t\t\tb2.setMnemonic(KeyEvent.VK_ESCAPE);//Shortcut Escape\n\t\t\tJButton b3 = new JButton(\"Mehrspieler\");\n\t\t\tJButton b4 = new JButton(\"Einstellungen\");\n\t\t\tJButton b5 = new JButton(\"Handbuch\");\n\t\t\t\n\t\t\t//Neues Layout. 4 Zeilen, 1 Spalte. \n\t\t\tframe3.setLayout(new GridLayout(5,1));\n\t\t\tframe3.add(b1);\n\t\t\tframe3.add(b3);\n\t\t\tframe3.add(b4);\n\t\t\tframe3.add(b5);\n\t\t\tframe3.add(b2);\n\n\t\t\tframe3.pack();\n\t\t\tframe3.setVisible(true);\n\t\t\t\n\t\t\t\n\t\t\tb1.addActionListener(new ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0){\n\t\t\t\t\tsingleplayer = true;\n\t\t\t\t\tdoInitializations(frame3);\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\t\n\t\t\tb2.addActionListener(new ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent arg1){ //bzgl. Schließen\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t\tb3.addActionListener(new ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent arg1){\n\t\t\t\t\tmultiplayer = true;\n\t\t\t\t\tpaintNetworkMenu();\n\t\t\t\t}\n\t\t\t});\t\t\t\n\t\t\t\n\t\t\tb4.addActionListener(new ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent arg1){\n\t\t\t\t\tpaintSettingMenu();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tb5.addActionListener(new ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent arg1){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tRuntime.getRuntime().exec(\"rundll32 url.dll,FileProtocolHandler \"+ \"resources\\\\handbuch\\\\Handbuch.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\t\t}\n\t\t\t});\n\t\t\t\n\t\t}\n\t\t\n\t\tif(spiel_status == 1|| spiel_status == 0){ //Wenn Spiel gewonnen oder verloren\n//\t\t\tif (!multiplayer){\n\t\t\t\tframe2 = new JFrame(\"Neues Einzelspielerspiel?\");\n\t\t\t\tframe2.setLocation(500,300);\n\t\t\t\tframe2.setSize(100, 100);\n\t\t\t\tJLabel label;\n\t\t\t\tif(spiel_status == 1){\n\t\t\t\t\tlabel = new JLabel(\"Bravo, du hast gewonnen! Neues Einzelspielerspiel?\");\n\t\t\t\t}else{\n\t\t\t\t\tif(player.getLifes() == 0){\n\t\t\t\t\t\tlabel = new JLabel(\"Schade, du hast verloren! Neues Einzelspielerspiel?\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlabel = new JLabel(\"Du hast gewonnen! Neues Einzelspielerspiel?\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tframe2.add(BorderLayout.NORTH, label);\n\t\t\t\tJButton b1 = new JButton(\"Neues Einzelspielerspiel\");\n\t\t\t\tb1.setMnemonic(KeyEvent.VK_ENTER);//Shortcut Enter\n\t\t\t\tb1.addActionListener(new ActionListener(){\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0){ //bzgl. Starten\n\t\t\t\t\t\tsoundlib.stopLoopingSound();\n\t\t\t\t\t\tdoInitializations(frame2);\n\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\tJButton b2 = new JButton(\"Zurück zum Hauptmenü\");\n\t\t\t\tb2.setMnemonic(KeyEvent.VK_ESCAPE);//Shortcut Escape\n\t\t\t\tb2.addActionListener(new ActionListener(){\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg1){ //bzgl. Schließen\n\t\t\t\t\t\tsoundlib.stopLoopingSound();\n\t\t\t\t\t\tspiel_status=3;\n\t\t\t\t\t\tpaintMenu();\n\t\t\t\t\t\tframe2.setVisible(false);\n\t\t\t\t\t\t\n\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\tframe2.add(BorderLayout.CENTER, b1);\n\t\t\t\tframe2.add(BorderLayout.SOUTH, b2);\n\t\t\t\tframe2.pack();\n\t\t\t\tframe2.setVisible(true);\n\t\t\t\tspiel_status = 0;\n\t\t\t}\n//\t\t}else{\n//\t\t\tframe2 = new JFrame(\"Ende\");\n//\t\t\tframe2.setLocation(500,300);\n//\t\t\tframe2.setSize(100, 100);\n//\t\t\tJLabel label;\n//\t\t\tif(player.getLifes() == 0){\n//\t\t\t\tlabel = new JLabel(\"Du Lusche hast verloren!\");\n//\t\t\t}else{\n//\t\t\t\tlabel = new JLabel(\"Boom-Headshot! Du hast gewonnen!\");\n//\t\t\t}\n//\t\t\t\n//\t\t\tframe2.add(BorderLayout.NORTH, label);\n//\t\t\t\n//\t\t\tJButton b2 = new JButton(\"Zurück zum Hauptmenü\");\n//\t\t\tb2.setMnemonic(KeyEvent.VK_ESCAPE);//Shortcut Escape\n//\t\t\tb2.addActionListener(new ActionListener(){\n//\t\t\t\tpublic void actionPerformed(ActionEvent arg1){ //bzgl. Schließen\n//\t\t\t\t\tif(sound_running){\n//\t\t\t\t\t\tsoundlib.stopLoopingSound();\n//\t\t\t\t\t}\n//\t\t\t\t\tspiel_status=3;\n//\t\t\t\t\tpaintMenu();\n//\t\t\t\t\tframe2.setVisible(false);\n//\t\t\t\t\tframe2.dispose();\n//\t\t\t\t\t\n//\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\tframe2.add(BorderLayout.CENTER, b2);\n//\t\t\tframe2.pack();\n//\t\t\tframe2.setVisible(true);\n//\t\t\tspiel_status = 0;\n//\t\t}\n\t\tspiel_status = 0; // Daraus folgt, dass wenn man das Spiel per ESC-taste verlässt, man verliert.\n\t\t\n\t}", "public static void mainMenu() {\n\t\tStdDraw.setCanvasSize(600, 600);\n\t\tStdDraw.setScale(0, 1000);\n\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\tStdDraw.filledRectangle(500, 500, 1000, 1000);\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tFont font = new Font(\"Sans Serif\", 20, 20);\n\t\tStdDraw.setFont(font);\n\t\tStdDraw.text(500, 850, \"Six Men Morris Game\");\n\t\tStdDraw.text(500, 750, \"Game Created By: \");\n\t\tStdDraw.text(500, 700, \"Phillip Pavlich, Prakhar Jalan, Dinesh Balakrishnan\");\n\t\tStdDraw.filledRectangle(500, 500, 205, 75);\n\t\tStdDraw.filledRectangle(500, 300, 205, 75);\n\t\tStdDraw.filledRectangle(500, 100, 205, 75);\n\t\t\n\t\tStdDraw.setFont();\n\t\tStdDraw.setPenColor(StdDraw.ORANGE);\n\t\tStdDraw.setPenRadius(0.05);\n\n\t\tStdDraw.filledRectangle(500, 500, 200, 70);\n\t\tStdDraw.filledRectangle(500, 300, 200, 70);\n\t\tStdDraw.filledRectangle(500, 100, 200, 70);\n\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tStdDraw.text(500, 500, \"Start New Game\");\n\t\tStdDraw.text(500, 300, \"Continue Game\");\n\t\tStdDraw.text(500, 100, \"Load Saved Game\");\n\t}", "public void create() {\n \n EventHandler filter2 = \n new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n /*sim.updateCanvasMouseCoordinates(event.getX(), event.getY());\n sim.screenMouseX = event.getScreenX();\n sim.screenMouseY = event.getScreenY();\n sim.sceneMouseX = event.getSceneX();\n sim.sceneMouseY = event.getSceneY();*/\n //System.out.println(\"H: \" + spCanvasContainer.getHvalue() + \" Y:\" + spCanvasContainer.getVvalue());\n //System.out.println(\"Hm: \" + spCanvasContainer.getHmax() + \" Ym:\" + spCanvasContainer.getVmax());\n //System.out.println(\"Move: \" + canvasMouseX + \" Y:\" + canvasMouseY);\n }\n };\n this.addEventFilter(MouseEvent.ANY, filter2);\n\n this.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n //onMouseClick(event.getX(), event.getY());\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftClick(event.getX(), event.getY());\n //scenario.leftClick(event.getX(), event.getY());\n //event.consume();\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightClick(event.getX(), event.getY());\n //scenario.rightClick(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMousePressed(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftPressed(event.getX(), event.getY());\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightPressed(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMouseDragged(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftDragged(event.getX(), event.getY());\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightDragged(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMouseReleased(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n //draggingWell = null;\n //onMouseDragged(event.getX(), event.getY());\n /*if (event.isPrimaryButtonDown()) {\n // scenario.onMouseDrag(event.getX(), event.getY());\n event.consume();\n }\n else if (event.isSecondaryButtonDown()) {\n }*/\n }\n });\n\n this.setOnMouseMoved(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n onMouseMove(event.getX(), event.getY());\n }\n });\n }", "@Override\n\t\t\tpublic void mouseMove(MouseEvent e) {\n\t\t\t\tint x = e.x;\n\t\t\t\tint y = e.y;\n\t\t\t\t\n\t\t\t\tgc.setFont(new Font(mainFrame.getDisplay(),\"楷体\",40,SWT.BOLD));\n\t\t\t\tgc.setAlpha(255);\n\t\t\t\tgc.setForeground(new Color(mainFrame.getDisplay(),255,255,255));\n\t\t\t\t\n\t\t\t\tif(settingRect.contains(x,y)) {\n\t\t\t\t\t gc.drawString(\"设置选项\", 342, 285,true);\n\t\t\t\t\t changeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(helpRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"帮助信息\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(aboutRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"关于游戏\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(exitRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"退出游戏\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\telse if(onButton(classicP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"经典模式\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse if(onButton(timeP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"时间模式\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(onButton(levelP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"冒险闯关\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse if(onButton(onlineP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"联网对战\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcanvas.redraw();\n\t\t\t\t\tchangeCursor(false);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}", "public abstract void displayMenu();", "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 void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }", "static void mainMenu ()\r\n \t{\r\n \t\tfinal byte width = 45; //Menu is 45 characters wide.\r\n \t\tString label [] = {\"Welcome to my RedGame 2 compiler\"};\r\n \t\t\r\n \t\tMenu front = new Menu(label, \"Main Menu\", (byte) width);\r\n \t\t\r\n \t\tMenu systemTests = systemTests(); //Gen a test object.\r\n \t\tMenu settings = settings(); //Gen a setting object.\r\n \t\t\r\n \t\tfront.addOption (systemTests);\r\n \t\tfront.addOption (settings);\r\n \t\t\r\n \t\tfront.select();\r\n \t\t//The program should exit after this menu has returned. CLI-specific\r\n \t\t//exit operations should be here:\r\n \t\t\r\n \t\tprint (\"\\nThank you for using my program.\");\r\n \t}", "public void drawLoadMenu(){\n implementation.devDrawLoadMenu();\n }", "public DrawGUI() {\n\n\t\tthis.setTitle(\"Draw 0.2\");\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(\"img/logo.png\"));\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdrawingContainer = new DrawingContainer();\n\t\tscrollpane = new JScrollPane(drawingContainer);\n\n\t\tcontroller = new DrawingController(this);\n\t\ttools = new ToolBox(controller);\n\t\tcontroller.newDrawing(new Dimension(500, 380));\n\n\t\t// statusBar = new StatusBar();\n\n\t\tgetContentPane().add(tools, BorderLayout.WEST);\n\t\tgetContentPane().add(scrollpane, BorderLayout.CENTER);\n\t\t// getContentPane().add(statusBar, BorderLayout.SOUTH);\n\n\t\tMenuListener mainMenuListener = new MenuListener(controller);\n\t\tJMenuBar mainMenu = new MainMenu(mainMenuListener);\n\t\tthis.setJMenuBar(mainMenu);\n\n\t\tpack();\n\t\tsetVisible(true);\n\n\t}", "public void drawMainWindow(){\n\n p.pushMatrix();\n p.translate(0,0);// translate whole window if necessary\n\n // window stuff\n // show name and draw\n p.stroke(0);\n p.strokeWeight(2);\n p.textSize(30);\n p.fill(0);\n p.text(\"Work space\",15,35);\n p.rectMode(CORNER);\n p.fill(219, 216, 206);\n p.rect(-285,40,1000,700);\n p.rectMode(CENTER);\n\n // show \"pause\" text\n if(pause) {\n p.fill(0);\n p.textSize(20);\n p.text(\"PAUSE\", 20, 60);\n p.textSize(12);\n }\n\n // draw coordinates lines\n drawCoordinateSystem();\n showRouteAsked();\n calculatePointer();\n\n // main mainManipulator\n manipulator.showManipulator(false);\n manipulator.route(true);\n\n if(routeAsked.size()>0) {\n if(!pause) manipulator.moveManally(routeAsked.get(0).copy());\n\n if (manipulator.segment_2_end.dist(routeAsked.get(0)) < 1) {\n routeAsked.remove(0);\n }\n\n // if you want to make it work with nn:\n\n// p.circle(routeAsked.get(0).x,routeAsked.get(0).y,15);\n// manipulator.setTarget(routeAsked.get(0));\n// manipulator.route(true);\n// if (!pause) manipulator.update();\n// manipulator.showManipulator(true);\n//\n// if (manipulator.targetDistFromAgent < 10) {\n// routeAsked.remove(0);\n// }\n }\n\n\n // pointer\n // show pointer and line to the pointer\n p.stroke(2);\n p.stroke(133, 168, 13,100);\n p.line(BASE_POS.x,BASE_POS.y,p.cos(pointerAngle)*pointerDist+BASE_POS.x,p.sin(pointerAngle)*pointerDist+BASE_POS.y);\n p.fill(207, 95, 43);\n p.noStroke();\n p.ellipse(pointerPos.x,pointerPos.y,15,15);\n\n p.popMatrix();\n }", "private void createUIComponents() {\n JFrame frame = new JFrame(\"labyrinth\");\n myFrame = frame;\n //myLayout = new CardLayout();\n mainPanel = new JPanel(new CardLayout());\n\n\n menuPanel = new JPanel();\n startGamePanel = new JPanel();\n optionsPanel = new JPanel();\n helpPanel = new JPanel();\n generatorPanel = new JPanel();\n simpleGamePanel = new JPanel();\n classicGamePanel = new JPanel();\n\n\n //mainPanel.add(menuPanel,\"menu\");\n //mainPanel.add(startGamePanel,\"startgame\");\n //mainPanel.add(optionsPanel,\"options\");\n //mainPanel.add(generatorPanel,\"generate\");\n //mainPanel.add(simpleGamePanel,\"game\");\n\n //simpleGameMapPanel = new MapPanel(myFrame, mainPanel);\n simpleGameMapPanel = new SimpleGamePanel(myFrame, simpleGamePanel);\n classicGameMapPanel = new ClassicGamePanel(myFrame, classicGamePanel);\n generateMapPanel = new MapPanel(myFrame, generateMapPanel);\n\n\n\n classicGameMapPanel.addMouseListener(new MouseListener() {\n @Override\n public void mouseClicked(MouseEvent e) {\n if(SwingUtilities.isRightMouseButton(e)){\n if(myMode == MainWindowMode.CLASSICGAME) {\n ((ClassicGamePanel) classicGameMapPanel).stopDragMiniMap();\n return;\n }\n }\n if(SwingUtilities.isLeftMouseButton(e)) {\n if(myMode == MainWindowMode.CLASSICGAME){\n ClassicGamePanel classicGamePanel = (ClassicGamePanel) classicGameMapPanel;\n if(classicGamePanel.isDragMiniMap()){\n Point point = e.getPoint();\n classicGamePanel.tryAddMiniMap(point);\n }\n }\n }\n }\n\n @Override\n public void mousePressed(MouseEvent e) {\n mouseClicked(e);\n }\n\n @Override\n public void mouseReleased(MouseEvent e) {\n\n }\n\n @Override\n public void mouseEntered(MouseEvent e) {\n\n }\n\n @Override\n public void mouseExited(MouseEvent e) {\n\n }\n });\n\n\n frame.setFocusable( true );\n frame.addKeyListener(new KeyAdapter() {\n @Override\n public void keyPressed(KeyEvent e) {\n //System.out.println(e.getKeyCode());\n if(myMode == MainWindowMode.SIMPLEGAME) {\n ((MapPanelBase) simpleGameMapPanel).keyPressed(e);\n } else if(myMode == MainWindowMode.CLASSICGAME){\n ((MapPanelBase) classicGameMapPanel).keyPressed(e);\n }\n }\n });\n\n URL labyrinthFile = getClass().getResource(\"/labyrinth.png\");\n try {\n final Image image = ImageIO.read(labyrinthFile);\n helpLabyrinthPanel = new JPanel(){\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(image, 0, 0, null);\n }\n };\n helpLabyrinthPanel.setPreferredSize(new Dimension(-1, image.getHeight(null) + 20));\n } catch (IOException e) {\n e.printStackTrace();\n helpLabyrinthPanel = new JPanel();\n }\n\n URL mainScreenFile = getClass().getResource(\"/main_screen.png\");\n try {\n final Image image = ImageIO.read(mainScreenFile);\n helpMainScreenPanel = new JPanel(){\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(image, 0, 0, null);\n }\n };\n helpMainScreenPanel.setPreferredSize(new Dimension(-1, image.getHeight(null) + 20));\n } catch (IOException e) {\n e.printStackTrace();\n helpMainScreenPanel = new JPanel();\n }\n\n\n URL minotaurFile = getClass().getResource(\"/minotaur.png\");\n try {\n final Image image = ImageIO.read(minotaurFile);\n helpObjectsPanel = new JPanel(){\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(image, 0, 0, null);\n int imageWidth = image.getWidth(null);\n int imageHeight = image.getHeight(null);\n g.setColor(Color.BLACK);\n Graphics2D g2d = (Graphics2D) g;\n FontMetrics fm = g2d.getFontMetrics();\n String text = \"minotaurs are guards of labyrinth, they will kill you if you will step on them. After that you will lose all your equipment and respawn into the hospital\";\n g2d.drawString(text, 3*imageWidth/2, fm.getAscent());\n\n g.setColor(Color.BLUE);\n text = \"A\";\n g2d.drawString(text, imageWidth/2, imageHeight + fm.getAscent());\n g.setColor(Color.BLACK);\n text = \"you can take new bullets in the arsenal. It is guaranted, that you can find a way from hospital to arsenal without minotaurs\";\n g2d.drawString(text, 3*imageWidth/2, imageHeight + fm.getAscent());\n g.setColor(Color.RED);\n int hlength = imageWidth*3/4;\n int hwidth = imageWidth*1/4;\n g2d.fillRect(imageWidth/2 - hlength/2, 5*imageHeight/2 - hwidth/2 , hlength, hwidth);\n g2d.fillRect(imageWidth/2 - hwidth/2, 5*imageHeight/2 - hlength/2 , hwidth, hlength);\n g.setColor(Color.BLACK);\n text = \"you will respawn in the hospital after every accident\";\n g2d.drawString(text, 3*imageWidth/2, 2*imageHeight + fm.getAscent());\n\n int radius = imageWidth/3;\n g2d.fill(new Ellipse2D.Double(imageWidth/2 - radius, 7*imageHeight/2 - radius, 2*radius, 2*radius));\n text = \"portal will teleport you to another determined portal somwhere in the labyrinth. All portals are connected into the cycle\";\n g2d.drawString(text, 3*imageWidth/2, 3*imageHeight + fm.getAscent());\n }\n };\n helpObjectsPanel.setPreferredSize(new Dimension(-1, image.getHeight(null)*4 + 20));\n } catch (IOException e) {\n e.printStackTrace();\n helpObjectsPanel = new JPanel();\n }\n\n URL pickFile = getClass().getResource(\"/pick_mini_map.png\");\n URL putFile = getClass().getResource(\"/put_mini_map.png\");\n try {\n final Image pickImage = ImageIO.read(pickFile);\n final Image putImage = ImageIO.read(putFile);\n helpCollectMapPanel = new JPanel(){\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(pickImage, 0, 0, null);\n g.drawImage(putImage, this.getWidth()/2, 0, null);\n }\n };\n helpCollectMapPanel.setPreferredSize(new Dimension(-1, pickImage.getHeight(null) + 20));\n } catch (IOException e) {\n e.printStackTrace();\n helpCollectMapPanel = new JPanel();\n }\n }", "private VecCanvas(){\n MouseAdapter mouse = new CanvasMouse();\n this.addMouseListener(mouse);\n this.addMouseMotionListener(mouse);\n setupKeyBindings();\n }", "public interface MainMenuExecutor {\n\tpublic void clickExit();\n\t\n\tpublic void clickSetup();\n\t\n\tpublic void clickStart();\n\t\n\tpublic void clickStop();\n\t\n\tpublic void clickShow();\n}", "public Stage_3()\n {\n super();\n super.stageLevel = 3;\n\n this.designAttributes = new DesignAttributes();\n this.drawingPanel = new DrawingPanel();\n this.drawingPanel.setBackground(Color.BLACK);\n this.drawingPanel.setFocusable(true);\n \n // Set up the JButtons\n section1 = new JButton();\n section2 = new JButton();\n section3 = new JButton();\n batButton = new JButton();\n dagButton = new JButton();\n macButton = new JButton();\n \n this.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), \"Escape\");\n // Customized Action for pressing Escape\n Action escapeAction = new AbstractAction()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n CardLayout cl = (CardLayout) (PanelManager.menuCardPanel.getLayout());\n cl.show(PanelManager.menuCardPanel, \"MIDGAMEMENU\");\n }\n };\n \n // Adding an escape action map to the action map\n this.getActionMap().put(\"Escape\", escapeAction);\n \n updateStagePlayer();\n\n add(this.drawingPanel);\n }", "private void initialize() {\n\t\tSystem.setProperty(\"sun.java2d.uiScale\", \"1.0\");\n\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(new Color(47, 79, 79));\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\t\n\n\t\tpanellHome =new Home_Panel();\n\t\tpanellHome.setBounds(0, 0, 733, 494);\t\n\t\t\n\t\tpanelAnimalInsertion =new AnimalInsertion_Panel();\n\t\tpanelAnimalInsertion.setBounds(0, 0, 733, 494);\n\t\t\n\t\tpanelAvailableAnimals=new AvailableAnimals_Panel();\n\t\tpanelAvailableAnimals.setBounds(0, 0, 791, 585);\n\n\t\tpanelAdoptionHistory=new AdoptionHistory_Panel();\n\t\tpanelAdoptionHistory.setBounds(0, 0, 733, 535);\n\n\t\tpanelAdoptionStatistics=new AdoptionStatistics_Panel();\n\t\tpanelAdoptionStatistics.setBounds(0, 0, 733, 535);\n\t\t\n\t\tpanelProffesionalServices=new ProffesionalServices_Panel();\n\t\tpanelProffesionalServices.setBounds(0, 0, 733, 535);\n\t\t\n\t\t\n\t\tJPanel panelMenu = new JPanel();\n\t\tpanelMenu.setBackground(new Color(0, 128, 128));\n\t\tpanelMenu.setBounds(0, 0, 218, 585);\n\t\tframe.getContentPane().add(panelMenu);\n\t\tpanelMenu.setLayout(null);\n\t\t\n\t\tJPanel paneHome = new JPanel();\n\t\tpaneHome.addMouseListener(new PanelButtonMouseAdapter(paneHome)\n\t{\n\t\t\t\n\t\t\tpublic void mouseClicked(MouseEvent e) \n\t\t\t{\n\n\t\t\t\tmenuClicked(panellHome);\n\n\t\t\t}\n\t\t\t\t\n\t});\n\t\tpaneHome.setBackground(new Color(0, 139, 139));\n\t\tpaneHome.setBounds(0, 131, 214, 37);\n\t\tpanelMenu.add(paneHome);\n\t\tpaneHome.setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Home\");\n\t\tlblNewLabel.setForeground(new Color(255, 255, 255));\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblNewLabel.setBounds(78, 12, 45, 13);\n\t\tpaneHome.add(lblNewLabel);\n\t\t\n\t\t\n\t\tJPanel paneAvailableAnimals = new JPanel();\n\t\tpaneAvailableAnimals.addMouseListener(new PanelButtonMouseAdapter(paneAvailableAnimals)\n\t\t{\n\t\t\t\n\t\t\tpublic void mouseClicked(MouseEvent e) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tmenuClicked(panelAvailableAnimals);\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\t\n\t});\n\t\t\n\t\tpaneAvailableAnimals.setBackground(new Color(0, 139, 139));\n\t\tpaneAvailableAnimals.setBounds(0, 169, 214, 37);\n\t\tpanelMenu.add(paneAvailableAnimals);\n\t\tpaneAvailableAnimals.setLayout(null);\n\t\t\n\t\tJLabel lblAvailableAnimals = new JLabel(\"Available Animals\");\n\t\tlblAvailableAnimals.setForeground(new Color(255, 255, 255));\n\t\tlblAvailableAnimals.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblAvailableAnimals.setBounds(38, 6, 132, 27);\n\t\tpaneAvailableAnimals.add(lblAvailableAnimals);\n\t\t\n\t\tJPanel paneAnimalInsertion = new JPanel();\n\t\tpaneAnimalInsertion.addMouseListener(new PanelButtonMouseAdapter(paneAnimalInsertion)\n{\n\t\t\t\n\t\t\tpublic void mouseClicked(MouseEvent e) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tmenuClicked(panelAnimalInsertion);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\t\n\t});\n\t\tpaneAnimalInsertion.setBackground(new Color(0, 139, 139));\n\t\tpaneAnimalInsertion.setBounds(0, 205, 214, 37);\n\t\tpanelMenu.add(paneAnimalInsertion);\n\t\tpaneAnimalInsertion.setLayout(null);\n\t\t\n\t\tJLabel lblAnimalInsertion = new JLabel(\"Animal Insertion\");\n\t\tlblAnimalInsertion.setForeground(new Color(255, 255, 255));\n\t\tlblAnimalInsertion.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblAnimalInsertion.setBounds(38, 10, 142, 17);\n\t\tpaneAnimalInsertion.add(lblAnimalInsertion);\n\t\t\n\t\tJPanel paneAdoptionHistory = new JPanel();\n\t\tpaneAdoptionHistory.addMouseListener(new PanelButtonMouseAdapter(paneAdoptionHistory)\n\t\t\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent e) \n\t\t\t{\n\t\t\t\tmenuClicked(panelAdoptionHistory);\n\n\t\t\t}\n\t\t\t\t\n\t});\n\t\tpaneAdoptionHistory.setBackground(new Color(0, 139, 139));\n\t\tpaneAdoptionHistory.setBounds(0, 241, 214, 37);\n\t\tpanelMenu.add(paneAdoptionHistory);\n\t\tpaneAdoptionHistory.setLayout(null);\n\t\t\n\t\tJLabel lblAdoptionsHistory = new JLabel(\"Adoption's History\");\n\t\tlblAdoptionsHistory.setForeground(new Color(255, 255, 255));\n\t\tlblAdoptionsHistory.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblAdoptionsHistory.setBounds(38, 7, 129, 27);\n\t\tpaneAdoptionHistory.add(lblAdoptionsHistory);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"\");\n\t\tlblNewLabel_1.setIcon(new ImageIcon(image));\n\t\tlblNewLabel_1.setBounds(60, 10, 125, 111);\n\t\tpanelMenu.add(lblNewLabel_1);\n\t\t\n\t\tJPanel paneAdoptionStatistics = new JPanel();\n\t\tpaneAdoptionStatistics.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenuClicked(panelAdoptionStatistics);\n\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tpaneAdoptionStatistics.setLayout(null);\n\t\tpaneAdoptionStatistics.setBackground(new Color(0, 139, 139));\n\t\tpaneAdoptionStatistics.setBounds(0, 277, 214, 37);\n\t\tpanelMenu.add(paneAdoptionStatistics);\n\t\t\n\t\tJLabel lblAdoptionsStatistics = new JLabel(\"Adoption's Statistics\");\n\t\tlblAdoptionsStatistics.setForeground(Color.WHITE);\n\t\tlblAdoptionsStatistics.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblAdoptionsStatistics.setBounds(22, 3, 166, 27);\n\t\tpaneAdoptionStatistics.add(lblAdoptionsStatistics);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Shir Bata\");\n\t\tlblNewLabel_2.setForeground(Color.WHITE);\n\t\tlblNewLabel_2.setBounds(28, 516, 64, 23);\n\t\tpanelMenu.add(lblNewLabel_2);\n\t\t\n\t\tJLabel lblKoralBukra = new JLabel(\"Koral Bukra\");\n\t\tlblKoralBukra.setForeground(Color.WHITE);\n\t\tlblKoralBukra.setBounds(112, 516, 106, 23);\n\t\tpanelMenu.add(lblKoralBukra);\n\t\t\n\t\tJLabel lblMotiBarshazky = new JLabel(\"Moti Barshazky\");\n\t\tlblMotiBarshazky.setForeground(Color.WHITE);\n\t\tlblMotiBarshazky.setBounds(109, 536, 109, 23);\n\t\tpanelMenu.add(lblMotiBarshazky);\n\t\t\n\t\tJLabel lblTomerCarmel = new JLabel(\"Tomer Carmel\");\n\t\tlblTomerCarmel.setForeground(Color.WHITE);\n\t\tlblTomerCarmel.setBounds(18, 536, 106, 23);\n\t\tpanelMenu.add(lblTomerCarmel);\n\t\t\n\t\tJPanel paneProffessionalServices = new JPanel();\n\t\tpaneProffessionalServices.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenuClicked(panelProffesionalServices);\n\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tpaneProffessionalServices.setLayout(null);\n\t\tpaneProffessionalServices.setBackground(new Color(0, 139, 139));\n\t\tpaneProffessionalServices.setBounds(0, 315, 214, 37);\n\t\tpanelMenu.add(paneProffessionalServices);\n\t\t\n\t\tJLabel lblProffessionalServices = new JLabel(\"Proffessional Services\");\n\t\tlblProffessionalServices.setForeground(Color.WHITE);\n\t\tlblProffessionalServices.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblProffessionalServices.setBounds(22, 3, 166, 27);\n\t\tpaneProffessionalServices.add(lblProffessionalServices);\n\t\t\n\t\t\n\t\n\t\t\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBackground(new Color(47, 79, 79));\n\t\tpanel.setBounds(219, 0, 791, 585);\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\tframe.setBounds(100, 100, 1024, 622);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tpanel.add(panelAnimalInsertion);\n\t\tpanel.add(panelAvailableAnimals);\n\t\tpanel.add(panellHome);\n\t\tpanel.add(panelAdoptionHistory);\n\t\tpanel.add(panelAdoptionStatistics);\n\t\tpanel.add(panelProffesionalServices);\n\t\t\n\t\t\n\t\t\n\t\tHome_Panel home_Panel = new Home_Panel();\n\t\thome_Panel.setBounds(0, 0, 733, 494);\n\t\tpanel.add(home_Panel);\n\t\tmenuClicked(panellHome);\n\n\t\t\n\t}", "static void DisplayMainMenu()\n {\n \tSystem.out.println(\"******\");\n \tSystem.out.println(\"Menu\");\n \tSystem.out.println(\"******\");\n \tSystem.out.println(\"Enter Selection\");\n \tSystem.out.println(\"1) Send Message\");\n \tSystem.out.println(\"2) Receive Message\");\n \tSystem.out.println(\"3) Run regression test\");\n }", "public void mouseInput(Main main, float x, float y) {\n\t\t\n\t\t// loop through buttons array list\n\t\tfor (Button button: buttons) {\n\t\t\t\t\t\n\t\t\t// check if this button was clicked\n\t\t\tif (button.getAabb().intersects(x, y)) {\n\t\t\t\t\t\t\n\t\t\t\t// check which button\n\t\t\t\tif (button.equals(menuButton))\n\t\t\t\t\tmain.setCurrScreen(0);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "private static void showMenu(){\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"What would you like to do?\");\r\n\t\tSystem.out.println(\"0) Show Shape information\");\r\n\t\tSystem.out.println(\"1) Create Shape\");\r\n\t\tSystem.out.println(\"2) Calculate perimeter\");\r\n\t\tSystem.out.println(\"3) Calculate area\");\r\n\t\tSystem.out.println(\"4) Scale shape\");\r\n\t}", "public void pressMainMenu() {\n }", "private void buildGui() {\n nifty = screen.getNifty();\n nifty.setIgnoreKeyboardEvents(true);\n nifty.loadStyleFile(\"nifty-default-styles.xml\");\n nifty.loadControlFile(\"nifty-default-controls.xml\");\n nifty.addScreen(\"Option_Screen\", new ScreenBuilder(\"Options_Screen\") {\n {\n controller((ScreenController) app);\n layer(new LayerBuilder(\"background\") {\n {\n childLayoutCenter();;\n font(\"Interface/Fonts/zombie.fnt\");\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n childLayoutOverlay();\n font(\"Interface/Fonts/zombie.fnt\");\n\n panel(new PanelBuilder(\"Switch_Options\") {\n {\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n interactOnClick(\"goTo(Display_Settings)\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Graphics_Settings\", new ScreenBuilder(\"Graphics_Extension\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Display_Settings)\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n panel(new PanelBuilder(\"Post_Water_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"15%\");\n control(new LabelBuilder(\"\", \"Post Water\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Post_Water_Button\") {\n {\n marginLeft(\"110%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Reflections_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Reflections\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Reflections_Button\") {\n {\n marginLeft(\"45%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Ripples_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Ripples\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Ripples_Button\") {\n {\n marginLeft(\"75%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Specular_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Specular\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Specular_Button\") {\n {\n marginLeft(\"59%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Foam_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Foam\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Foam_Button\") {\n {\n marginLeft(\"93%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Sky_Dome_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Sky Dome\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Sky_Dome_Button\") {\n {\n marginLeft(\"128%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Star_Motion_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Star Motion\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Star_Motion_Button\") {\n {\n marginLeft(\"106%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Cloud_Motion_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Cloud Motion\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Cloud_Motion_Button\") {\n {\n marginLeft(\"87%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Bloom_Light_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Bloom Lighting\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new CheckboxBuilder(\"Bloom_Light_Button\") {\n {\n marginLeft(\"70%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Light_Scatter_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Light Scatter\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new CheckboxBuilder(\"Light_Scatter_Button\") {\n {\n marginLeft(\"90%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutHorizontal();\n marginLeft(\"43%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"applySettings()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Display_Screen\", new ScreenBuilder(\"Display_Settings\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();;\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n childLayoutVertical();\n panel(new PanelBuilder(\"Resolution_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"15%\");\n control(new LabelBuilder(\"\", \"Set Resolution\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ListBoxBuilder(\"Resolution_Opts\") {\n {\n marginLeft(\"4%\");\n marginBottom(\"10%\");\n displayItems(1);\n showVerticalScrollbar();\n hideHorizontalScrollbar();\n selectionModeSingle();\n width(\"10%\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"45%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"displayApply()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Sound Settings\", new ScreenBuilder(\"#Sound_Settings\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();;\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Display_Settings)\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n childLayoutVertical();\n panel(new PanelBuilder(\"#Master_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"35%\");\n control(new LabelBuilder(\"\", \"Master Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Master_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Ambient_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Ambient Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Ambient_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Combat_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Combat Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Combat_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Dialog_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Dialog Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Dialog_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Footsteps_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Footsteps Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Footsteps_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"45%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"#Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"soundApply()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n\n }\n }.build(nifty));\n }", "public void manageComponent() {\n menu = new JMenuBar();\n mainbox = new JScrollPane();\n toolbox = new JPanel();\n paintBox = new JPanel();\n optionbox = new JPanel();\n statusbar = new JPanel();\n paintModule = new PaintModule();\n\n // component setting\n createToolBox(toolbox);\n createMenu(menu);\n createOptionBox(optionbox);\n createStatusBar(statusbar);\n this.setLayout(new BorderLayout());\n\n // add component to container\n paintBox.add(paintModule);\n mainbox.setViewportView(paintBox);\n\n\n this.add(menu, BorderLayout.NORTH);\n this.add(mainbox, BorderLayout.CENTER);\n this.add(toolbox, BorderLayout.WEST);\n this.add(optionbox, BorderLayout.EAST);\n this.add(statusbar, BorderLayout.SOUTH);\n\n }", "public void actionPerformed(ActionEvent evt) {\r\n\r\n if (evt.getSource() == cb1) { // if an item of menu Shape selected\r\n shapeOperation();\r\n }\r\n\r\n if (evt.getSource() == cb2) { // if an item of menu Color selected\r\n colorOperation();\r\n }\r\n\r\n if (evt.getSource() == cb3) { // if an item of menu Filled selected\r\n filledOperation();\r\n }\r\n\r\n if (evt.getSource() == bt[0]) { // if button \"Clear\" pressed\r\n System.out.println(\"button Clear is pressed.\");\r\n System.out.println(\"calling method clear().\");\r\n ge.clear(gra); // call method clear() of the Tool\r\n System.out.println(\"method clear() executed.\");\r\n repaint(); // repaint\r\n }\r\n\r\n if (evt.getSource() == bt[1]) { // if button \"Exit\" pressed\r\n System.out.println(\"button Exit is pressed.\");\r\n System.out.println(\"calling method terminate().\");\r\n ge.terminate(gra);\r\n // call method terminate() of the Tool\r\n System.out.println(\"method terminate() executed.\");\r\n dispose(); // dispose the frame\r\n System.exit(0); // exit\r\n }\r\n\r\n }", "public static void main(String[] args) {\n Graphics.graphicsMainMenu();\r\n //Print main menu\r\n Menu.mainMenu();\r\n }", "public abstract void mouseInput();", "public void start() {\n\t\t\n\t\t/*\n\t\t * This is the main JFrame that everything will be placed on. \n\t\t * The size is set to a maximum value, and made unresizable to make repainting easier to achieve.\n\t\t */\n\t\tJFrame frame = new JFrame(\"Paint\");\n\t\tframe.setSize(Canvas.getMaxWindowSize(), Canvas.getMaxWindowSize());\n\t\tframe.setResizable(false);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\t/*\n\t\t * The mainPanel is the panel on which all the other panels will be organized.\n\t\t * It uses a BorderLayout to divide the panel into 5 possible areas: North, South, West, East, and Center.\n\t\t */\n\t\tJPanel mainPanel = new JPanel(new BorderLayout());\n\t\tframe.add(mainPanel);\n\t\t\n\t\t/*\n\t\t * The canvas is added to the center of the mainPanel.\n\t\t */\n\t\tCanvas canvas = new Canvas();\n\t\tmainPanel.add(canvas, BorderLayout.CENTER);\n\t\t\n\t\t/*\n\t\t * The topToolPanel is a JPanel that will also use a BorderLayout to organize items placed upon it.\n\t\t * It is placed in the North portion of the mainPanel.\n\t\t */\n\t\tJPanel topToolPanel = new JPanel(new BorderLayout());\n\t\tmainPanel.add(topToolPanel, BorderLayout.NORTH);\n\t\t\n\t\t/*\n\t\t * The shapeToolsPanel is JPanel on which all the buttons for different shapes will be placed. \n\t\t * It is placed in the West portion of the topToolPanel.\n\t\t */\n\t\tJPanel shapeToolsPanel = new JPanel();\n\t\ttopToolPanel.add(shapeToolsPanel, BorderLayout.WEST);\n\t\t\n\t\t/*\n\t\t * The usefulToolPanel will hold buttons for options like \"Fill\" or \"No Fill\", as well as our \"Undo\" button.\n\t\t */\n\t\tJPanel usefulToolPanel = new JPanel();\n\t\ttopToolPanel.add(usefulToolPanel, BorderLayout.EAST);\n\t\t\n\t\t/*\n\t\t * Each of the next five buttons added represent an option to choose a certain shape to draw.\n\t\t * They all get added to the shapeToolsPanel from left to right.\n\t\t */\n\t\tJButton rectButton = new JButton(\"Rectangle\");\n\t\tshapeToolsPanel.add(rectButton);\n\t\trectButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"rectangle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton circButton = new JButton (\"Circle\");\n\t\tshapeToolsPanel.add(circButton);\n\t\tcircButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"circle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton triButton = new JButton (\"Triangle\");\n\t\tshapeToolsPanel.add(triButton);\n\t\ttriButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"triangle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton lineButton = new JButton (\"Line\");\n\t\tshapeToolsPanel.add(lineButton);\n\t\tlineButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"line\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton penButton = new JButton (\"Pen\");\n\t\tshapeToolsPanel.add(penButton);\n\t\tpenButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"pen\");\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t/*\n\t\t * The following three buttons are useful tools for the program to use: the option to choose whether or not to fill shapes, and the undo option.\n\t\t * Each of these will be added to the usefulToolPanel, once again from right to left.\n\t\t */\n\t\tJButton fillButton = new JButton(\"Fill\");\n\t\tusefulToolPanel.add(fillButton);\n\t\tfillButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setIsFilled(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton outlineButton = new JButton(\"No Fill\");\n\t\tusefulToolPanel.add(outlineButton);\n\t\toutlineButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setIsFilled(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton increaseButton = new JButton (\"Increase width\");\n\t\tusefulToolPanel.add(increaseButton);\n\t\tincreaseButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeThickness(Canvas.getShapeThickness() + 1);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton decreaseButton = new JButton (\"Decrease width\");\n\t\tusefulToolPanel.add(decreaseButton);\n\t\tdecreaseButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tCanvas.setShapeThickness(Canvas.getShapeThickness() - 1);\n\t\t\t\t}catch(IllegalArgumentException exception) {\n\t\t\t\t\tSystem.out.println(\"The shape thickness cannot be zero.\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton undoButton = new JButton (\"Undo\");\n\t\tusefulToolPanel.add(undoButton);\n\t\tundoButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tcanvas.undo();\n\t\t\t\t}catch(IndexOutOfBoundsException exception) {\n\t\t\t\t\tSystem.out.println(\"No item in shape list to undo.\");\n\t\t\t\t}\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * The colorPanel is a JPanel which utilizes a GridLayout to organize buttons from the top to the bottom.\n\t\t * It is set up to have more rows than are actually filled to minimize the size of each button on it.\n\t\t */\n\t\tJPanel colorPanel = new JPanel(new GridLayout(defaultGridRows, defaultGridColumns, defaultGridPadding, defaultGridPadding));\n\t\tmainPanel.add(colorPanel, BorderLayout.WEST);\n\t\t\n\t\t/*\n\t\t * Each of the following buttons will be added to the colorPanel.\n\t\t * They will stack one on top of the other as the grid is set up to only have one column.\n\t\t * Additionally, the text portion of each button will be set to the color that the button is connected to.\n\t\t */\n\t\tJButton blackButton = new JButton (\"Black\");\n\t\tcolorPanel.add(blackButton);\n\t\tblackButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.black);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton yellowButton = new JButton (\"Yellow\");\n\t\tyellowButton.setForeground(Color.yellow);\n\t\tcolorPanel.add(yellowButton);\n\t\tyellowButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.yellow);\n\t\t\t}\n\t\t});\n\n\t\tJButton greenButton = new JButton (\"Green\");\n\t\tgreenButton.setForeground(Color.green);\n\t\tcolorPanel.add(greenButton);\n\t\tgreenButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.green);\n\t\t\t}\n\t\t});\n\n\t\tJButton blueButton = new JButton (\"Blue\");\n\t\tblueButton.setForeground(Color.blue);\n\t\tcolorPanel.add(blueButton);\n\t\tblueButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.blue);\n\t\t\t}\n\t\t});\n\n\t\tJButton magentaButton = new JButton (\"Magenta\");\n\t\tmagentaButton.setForeground(Color.magenta);\n\t\tcolorPanel.add(magentaButton);\n\t\tmagentaButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.magenta);\n\t\t\t}\n\t\t});\n\n\t\tJButton redButton = new JButton (\"Red\");\n\t\tredButton.setForeground(Color.red);\n\t\tcolorPanel.add(redButton);\n\t\tredButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.red);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton pinkButton = new JButton (\"Pink\");\n\t\tpinkButton.setForeground(Color.pink);\n\t\tcolorPanel.add(pinkButton);\n\t\tpinkButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.pink);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tframe.setVisible(true);\n\t}", "public static void IngameMenuComponents() {\n\t\tInterface.continueGame.setPreferredSize(Interface.dim);\n\t\tInterface.continueGame.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.continueGame.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.continueGame.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.continueGame.setForeground(Color.white);\n\t\t\n\t\tInterface.saveGame.setPreferredSize(Interface.dim);\n\t\tInterface.saveGame.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.saveGame.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.saveGame.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.saveGame.setForeground(Color.white);\n\t\t\n\t\tInterface.saveAs.setForeground(Color.red);\n\t\tInterface.wrongName.setForeground(Color.red);\n\t\tInterface.saveName.setPreferredSize(Interface.dim);\n\t\t\n\t\tInterface.restart.setPreferredSize(Interface.dim);\n\t\tInterface.restart.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.restart.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.restart.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.restart.setForeground(Color.white);\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tIFroggerGraphics graphic = new FroggerGraphic(15, 15,true, false,false);\n\t\tgraphic.menuScreen();\n\t}", "public void mouseClicked() {\n\t\tif(gameState==0 && mouseX >= 580 && mouseX <=580+140 && mouseY>=650 && mouseY<=700){\r\n\t\t\tLOGGER.info(\"Detected click on Play, sending over to gameDriver\");\r\n\t\t\t//Changes the game state from start menu to running\r\n\t\t\tgameState = 1;\r\n\t\t\t\r\n\t\t}\t\t\r\n\t\t\r\n\t\t//if on menu n click instructions\r\n\t\tif(gameState==0 && mouseX >= 100 && mouseX <=450 && mouseY>=650 && mouseY<=700){\r\n\t\t\tLOGGER.info(\"Detected click on Instructions, sending over to gameDriver\");\r\n\t\t\t//Changes the game state from start menu to instructions\r\n\t\t\tgameState = 3 ;\r\n\t\t}\r\n\t\t\r\n\t\t//if user clicks on back change game state while on map select or instructions\r\n\t\tif((gameState == 3||gameState == 1)&& mouseX >= 50 && mouseX <=50+125 && mouseY>=650 && mouseY<=700 )\r\n\t\t\tgameState = 0;\r\n\t\t\r\n\t\t\r\n\t\t//if they are on mapSelect and they click\r\n\t\tif(gameState==1 && mouseX > 70 && mouseX <420 && mouseY> 100 && mouseY<470){\r\n\t\t\tLOGGER.info(\"selected map1, sending over to game driver\");\r\n\t\t\tmapSelected=1;\r\n\t\t\tMAP=new Map(this, mapSelected);\r\n\t\t\tgame = new gameDriver(this, MAP);\r\n\t\t\tgameState=2;\r\n\t\t}\r\n\t\t\r\n\t\t//if they click quit while on the main menu\r\n\t\tif(gameState==0 && mouseX >= 950 && mouseX <=950+130 && mouseY>=650 && mouseY<=700 ){\r\n\t\t\tLOGGER.info(\"Detected quit button, now closing window\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\t//if they click on play agagin button while at the game overscrren\r\n\t\tif(gameState==4 && mouseX>680 && mouseX<1200 && mouseY>520 && mouseY<630){\r\n\t\t\t//send them to the select menu screen\r\n\t\t\tgameState=1;\r\n\t\t}\r\n\t\t\r\n\t\t//displays rgb color values when click, no matter the screen\r\n//\t\tprintln(\"Red: \"+red(get().pixels[mouseX + mouseY * width]));\r\n// println(\"Green: \"+green(get().pixels[mouseX + mouseY * width]));\r\n// println(\"Blue: \"+blue(get().pixels[mouseX + mouseY * width]));\r\n//\t\tprintln();\r\n\t}", "private void initFrame() {\n this.setTitle(\"Burger Shot\");\n this.setIconImage(Resources.getImage(\"/images/gamelogo.png\"));\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setResizable(false);\n this.pack();\n this.setSizeWithoutInsets(FRAME_SIZE);\n this.setLocationRelativeTo(null);\n\n menuPanel = new MenuPanel();\n initPanel(menuPanel, true);\n\n instructionsPanel = new InstructionsPanel();\n initPanel(instructionsPanel, false);\n\n goBackAction = new GoBackToMenu();\n\n menuPanel.addMouseListener(new MouseAdapter() {\n @Override\n //set menu items text to click (play, instructions, exit)\n public void mousePressed(MouseEvent e) {\n Point hitPoint = e.getPoint();\n if (hitPoint.x > 56 && hitPoint.x < 224 && hitPoint.y > 67 && hitPoint.y < 124) {\n gamePanel = new GamePanel();\n initPanel(gamePanel, false);\n gamePanel.addListener(MainFrame.this);\n goBackAction.setPanel(gamePanel);\n goBackAction.setEnabled(false);\n gamePanel.getInputMap(JPanel.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), PRESS_ENTER_TO_GO_BACK);\n gamePanel.getActionMap().put(PRESS_ENTER_TO_GO_BACK, goBackAction);\n swapPanel(menuPanel, gamePanel);\n } else if (hitPoint.x > 198 && hitPoint.x < 666 && hitPoint.y > 437 && hitPoint.y < 480) {\n goBackAction.setPanel(instructionsPanel);\n instructionsPanel.getInputMap(JPanel.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), PRESS_ENTER_TO_GO_BACK);\n instructionsPanel.getActionMap().put(PRESS_ENTER_TO_GO_BACK, goBackAction);\n swapPanel(menuPanel, instructionsPanel);\n } else if (hitPoint.x > 594 && hitPoint.x < 748 && hitPoint.y > 70 && hitPoint.y < 127) {\n System.exit(0);\n }\n }\n });\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 factoryMainScreen()\n\t{\n\t\t\n\t}", "public void init() {\n\n setBackground(Color.lightGray);\n\n x = xo = 10;\n y = yo = 10;\n // loading the first wold in the world table\n loadWorld();\n\n // registering listeners\n addKeyListener(this);\n addMouseListener(this);\n addMouseMotionListener(this);\n setFocusable(true);\n enableEvents(AWTEvent.FOCUS_EVENT_MASK);\n\n requestFocus();\n /*\n // building the popup menu\n menu = new PopupMenu();\n MenuItem start = new MenuItem(\"Start\");\n start.addActionListener(this);\n start.setActionCommand(\"start\");\n menu.add(start);\n MenuItem next = new MenuItem(\"Next\");\n next.addActionListener(this);\n next.setActionCommand(\"next\");\n menu.add(next);\n MenuItem previous = new MenuItem(\"Previous\");\n previous.addActionListener(this);\n previous.setActionCommand(\"previous\");\n menu.add(previous);\n\n menu.addSeparator();\n\n MenuItem undo = new MenuItem(\"Undo\");\n undo.addActionListener(this);\n undo.setActionCommand(\"undo\");\n menu.add(undo);\n MenuItem redo = new MenuItem(\"Redo\");\n redo.addActionListener(this);\n redo.setActionCommand(\"redo\");\n menu.add(redo);\n\n menu.addSeparator();\n\n beep = new CheckboxMenuItem(\"Beep\", beepOn);\n beep.addItemListener(this);\n beep.setActionCommand(\"beep\");\n menu.add(beep);\n\n add(menu);\n */\n }", "public void mousePressed() {\n if (mouseX > 250 && mouseX < 300 && mouseY > 45 && mouseY < 95) {\n // createWindows();\n // btnMakeWindow.setEnabled(false); createWindows();\n }\n\n if (mouseX > 20 && mouseX < 20+20 && mouseY > 20 && mouseY < 20+20) {\n button = !button;\n }\n if (mouseX > 250 && mouseX < 350 && mouseY > 20 && mouseY < 20+50) {\n\n }\n if (mouseX > 418 && mouseX < 473 && mouseY > 185 && mouseY < 204) {\n rgbEffects();\n }\n if (mouseX > 10 && mouseX < 49 && mouseY > 150 && mouseY < 169) {\n MyController1.getController(\"bar height\").setValue(50);\n MyController2.getController(\"width\").setValue(50);\n input.disableMonitoring();\n }\n if (mouseX > 395 && mouseX < 395+24 && mouseY > 285 && mouseY < 285+24) {\n\n JOptionPane.showMessageDialog(null, \"Audio Visualizer made by Debus Alexy\\nRaccourci clavier : Touche p ou P pour stopper le programme\\nTouche d ou D pour reset\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\n }\n\n if (mouseX > 180 && mouseX < 230 && mouseY > 152 && mouseY < 167) {\n javaColor = JColorChooser.showDialog(null, \"color picker\",Color.WHITE);\n\n\t\tif (javaColor!= null){\n\t\t BEAT = javaColor;\n rgbToHsv(BEAT);\n MyController1.getController(\"Saturation\").setValue((float)s);\n MyController1.getController(\"Brightness\").setValue((float)v);\n h-=90;\n if (h<0){\n h+=360;\n }\n MyController1.getController(\"Hue\").setValue((float)h);\n MyController1.getController(\"Hue\").setColorBackground(color(javaColor.getRed(),javaColor.getGreen(),javaColor.getBlue()));\n // MyController1.getController(\"Hue\").setColorValue(color(255-javaColor.getRed(),255-javaColor.getGreen(),255-javaColor.getBlue()));\n // mon_port.write(javaColor.getRed()+'g'+javaColor.getGreen()+'b'+javaColor.getBlue());\n \t}\n\t\telse {\n\t\t //default\n BEAT = Color.WHITE;\n\t\t}\n\n }\n\n if (mouseX > 430 && mouseX < 469 && mouseY > 290 && mouseY < 309) {\n leaving();\n }\n if (mouseX > 420 && mouseX < 450 && mouseY > 25 && mouseY < 35) {\n MyController1.getController(\"Play\").setValue(1);\n\n }else if (mouseX > 390 && mouseX < 400 && mouseY > 25 && mouseY < 35) {\n MyController1.getController(\"Play\").setValue(0);\n MyController1.getController(\"Beat pulse\").setValue(0);\n }\n\n if (mouseX > 400 && mouseX < 466 && mouseY > 20 && mouseY < 44) {\n buttonPlay = !buttonPlay;\n if (buttonPlay ==true){\n // mon_port.write('1');\n MyController1.getController(\"Play\").setImages(loadImage(\"On.png\"),loadImage(\"On.png\"),loadImage(\"On.png\"));\n }else{\n mon_port.write('0');\n MyController1.getController(\"Play\").setImages(loadImage(\"Off.png\"),loadImage(\"Off.png\"),loadImage(\"Off.png\"));\n }\n }\n}", "private void createUI() throws FactoryException {\n assert theGame != null;\n assert ghostController != null;\n\n buttonPanel = new ButtonPanel(this);\n buttonPanel.initialize();\n\n pi = new PacmanInteraction(this, theGame);\n pi.addController(ghostController);\n buttonPanel.setListener(pi);\n this.addKeyListener(new PacmanKeyListener(pi));\n\n boardView = createBoardView();\n animator = new Animator(boardView);\n pi.addController(animator);\n\n points = new PointsPanel();\n points.initialize(theGame.getPointManager());\n theGame.attach(points);\n\n JPanel mainGrid = new JPanel();\n mainGrid.setLayout(new BorderLayout());\n mainGrid.setName(\"jpacman.topdown\");\n mainGrid.add(points, BorderLayout.NORTH);\n mainGrid.add(boardView, BorderLayout.CENTER);\n mainGrid.add(buttonPanel, BorderLayout.SOUTH);\n\n getContentPane().add(mainGrid);\n\n int width = Math.max(boardView.windowWidth(), buttonPanel.getWidth());\n int height = boardView.windowHeight() + buttonPanel.getHeight();\n setSize(width, height);\n setGridSize();\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n setName(\"jpacman.main\");\n setTitle(\"JPacman\");\n }", "void drawMenu(IMenu menuToBeRendered);", "public MainMenuController()\n {\n ArrayList<JButton> menuList = new ArrayList();\n \n //Setup default colors\n player1Color = Color.RED;\n player2Color = Color.BLUE;\n \n //Setup the start button\n startButton = new JButton(\"Start\");\n startButton.setBackground(Color.GREEN);\n menuList.add(startButton);\n \n startButton.addActionListener((ActionEvent ae) -> {\n uControll = new UltimateController();\n uControll.start(player1Color, player2Color);\n this.setupGameWindow();\n menuPanel.close();\n });\n \n //Setup multiplayer button\n JButton multiButton = new JButton(\"Network Play\");\n multiButton.setBackground(new Color(0,255,200));\n menuList.add(multiButton);\n multiButton.addActionListener((ActionEvent ae) -> {\n View.Multiplayer mp = new View.Multiplayer();\n mp.setParentWindow(menuPanel);\n mp.launchWindow();\n menuPanel.close();\n });\n \n //Setup the settings button\n JButton settingButton = new JButton(\"Settings\");\n settingButton.setBackground(Color.orange);\n menuList.add(settingButton);\n settingButton.addActionListener((ActionEvent ae) -> {\n setGUI = new View.SettingGUI(player1Color, player2Color);\n setupSettingWindow();\n });\n \n //Setup the how to play button\n howToButton = new JButton(\"How to Play\");\n howToButton.setBackground(Color.LIGHT_GRAY);\n menuList.add(howToButton);\n howToButton.addActionListener((ActionEvent ae) -> {\n //Create a frame\n JFrame newWindow = new JFrame(\"How to Play\"); \n View.HowToPlayPanel hPlay = new View.HowToPlayPanel();\n newWindow.add(hPlay);\n newWindow.setSize(1200,550);\n \n //Make the return button work\n hPlay.getReturnBtn().addActionListener((ActionEvent ae2) -> {\n newWindow.dispose();\n });\n \n newWindow.setVisible(true);\n newWindow.requestFocus();\n });\n \n //Setup the Quit button\n quitButton = new JButton(\"Quit\");\n quitButton.setBackground(Color.RED);\n menuList.add(quitButton);\n \n quitButton.addActionListener((ActionEvent ae) -> {\n System.out.println(\"Quit the program\");\n System.exit(0);\n });\n \n startButton.setBounds(570, 300, 120, 45);\n howToButton.setBounds(570, 375, 120, 45);\n quitButton.setBounds(570, 450, 120, 45);\n \n menuPanel = new MenuPanel(menuList);\n }", "public void initComponents() {\n\t\tscreen = new JTextArea();\r\n screen.setBackground(Color.black);\r\n screen.setForeground(Color.green);\r\n screen.setCaretColor(Color.green);\r\n ConsoleCaret caret = new ConsoleCaret(); //set up custom caret, for looks\r\n caret.setUpdatePolicy(ConsoleCaret.ALWAYS_UPDATE);\r\n screen.setCaret(caret);\r\n screen.setEditable(false);\r\n screen.addKeyListener(this);\r\n screen.setLineWrap(true);\r\n screen.setFocusable(false);\r\n screen.getCaret().setVisible(true);\r\n initFont();\r\n \r\n commandlib = new CommandLib(this); //init command lib\r\n out = new ConsoleWriter(new ConsoleStream(screen), commandlib, prefix);\r\n commandlib.setOutput(out);\r\n scrollPane = new JScrollPane(screen);\r\n scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n scrollPane.setForeground(Color.green);\r\n scrollPane.setBackground(Color.black);\r\n scrollPane.requestFocus();\r\n scrollPane.addKeyListener(this);\r\n \r\n }", "private void createAndShowGUI() {\n /**\n * MENUBAR\n */\n JMenuBar menuBar = new JMenuBar();\n\n JMenu menuStart = new JMenu(\"Program\");\n menuBar.add(menuStart);\n\n JMenuItem menuNewGame = new JMenuItem(\"Nová hra\");\n menuStart.add(menuNewGame);\n menuNewGame.addActionListener(new ActionListenerChangeCard(container, CardStartScreen));\n menuNewGame.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK));\n\n JMenuItem menuAbout = new JMenuItem(\"O autorovi\");\n menuStart.add(menuAbout);\n menuAbout.addActionListener(new ActionListenerChangeCard(container, CardAbout));\n menuAbout.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));\n\n JMenuItem menuQuit = new JMenuItem(\"Konec\");\n menuStart.add(menuQuit);\n menuQuit.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n dispose();\n }\n });\n menuQuit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_K, java.awt.event.InputEvent.CTRL_MASK));\n\n Font fMenu = menuStart.getFont().deriveFont(17f);\n menuStart.setFont(fMenu);\n menuNewGame.setFont(fMenu);\n menuAbout.setFont(fMenu);\n menuQuit.setFont(fMenu);\n\n this.setJMenuBar(menuBar);\n\n /**\n * START SCREEN\n */\n JPanel pStartScreen = new JPanel(new GridBagLayout());\n\n JButton bStartDivision = new JButton(\"Dělení\");\n pStartScreen.add(bStartDivision, new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(25, 0, 25, 0), 25, 50));\n bStartDivision.addActionListener(new ActionListenerChangeCard(container, CardSettingsDivision));\n JButton bStartMultiplication = new JButton(\"Násobení\");\n pStartScreen.add(bStartMultiplication, new GridBagConstraints(0, 1, 1, 1, 0, 0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(25, 0, 25, 0), 25, 50));\n bStartMultiplication.addActionListener(new ActionListenerChangeCard(container, CardSettingsMultiplication));\n\n Font fButton = bStartDivision.getFont().deriveFont(17f);\n bStartDivision.setFont(fButton);\n bStartMultiplication.setFont(fButton);\n\n container.add(pStartScreen, CardStartScreen);\n\n /**\n * SETTINGS INIT\n */\n JPanel pDivision = new JPanel();\n JLabel lDivident = new JLabel();\n JLabel lFactor = new JLabel();\n JRadioButton chdTens = new JRadioButton();\n JRadioButton chfUnits = new JRadioButton();\n JRadioButton chdHundreds = new JRadioButton();\n JRadioButton chfTens = new JRadioButton();\n JRadioButton chdThousands = new JRadioButton();\n JRadioButton chdMillions = new JRadioButton();\n JRadioButton chfCustom = new JRadioButton();\n JRadioButton chdCustom = new JRadioButton();\n JTextField tdCustom = new JTextField();\n JTextField tfCustom = new JTextField();\n\n JPanel pMultiplication = new JPanel();\n JLabel lmFactor = new JLabel();\n JRadioButton chmMilions = new JRadioButton();\n JRadioButton chmTens = new JRadioButton();\n JRadioButton chmThousands = new JRadioButton();\n JRadioButton chmHundreds = new JRadioButton();\n JRadioButton chmCustom = new JRadioButton();\n JTextField tmCustom = new JTextField();\n JRadioButton chmmUnits = new JRadioButton();\n JRadioButton chmmTens = new JRadioButton();\n JRadioButton chmmHundreds = new JRadioButton();\n JRadioButton chmmCustom = new JRadioButton();\n JTextField tmmCustom = new JTextField();\n\n Settings settingsDivision = new Settings(Settings.DIVISION);\n Settings settingsMultiplication = new Settings(Settings.MULTIPLICATION);\n\n /**\n * DIVISION SETTINGS\n */\n pDivision.setLayout(new GridBagLayout());\n\n final DivisionPanel dpanel = new DivisionPanel(container, settingsDivision);\n container.add(dpanel, CardDivision);\n\n JLabel ldNumberOfExcercises = new JLabel(\"Počet příkladů\");\n pDivision.add(ldNumberOfExcercises, Helper.gbc(0, 0, 1));\n\n JSlider sldNumberOfExcercises = new JSlider(JSlider.HORIZONTAL, 0, 30, 15);\n sldNumberOfExcercises.setMajorTickSpacing(5);\n sldNumberOfExcercises.setMinorTickSpacing(1);\n sldNumberOfExcercises.setPaintTicks(true);\n sldNumberOfExcercises.setPaintLabels(true);\n sldNumberOfExcercises.setPreferredSize(new Dimension(350, 75));\n sldNumberOfExcercises.addChangeListener(new ChangeListenerSettingsSlider(\"count\", settingsDivision));\n pDivision.add(sldNumberOfExcercises, Helper.gbc(0, 1, 2));\n\n ButtonGroup bgdSize = new ButtonGroup();\n lDivident.setText(\"Dělenec\");\n pDivision.add(lDivident, Helper.gbc(0, 2, 1, GridBagConstraints.NONE, GridBagConstraints.CENTER));\n chdTens.setText(\"Desítky\");\n chdTens.setSelected(true);\n chdTens.addActionListener(new ActionListenerSettings(99, \"divident\", settingsDivision, tdCustom));\n pDivision.add(chdTens, Helper.gbc(0, 3));\n chdHundreds.setText(\"Stovky\");\n chdHundreds.addActionListener(new ActionListenerSettings(999, \"divident\", settingsDivision, tdCustom));\n pDivision.add(chdHundreds, Helper.gbc(0, 4));\n chdThousands.setText(\"Tisíce\");\n chdThousands.addActionListener(new ActionListenerSettings(9999, \"divident\", settingsDivision, tdCustom));\n pDivision.add(chdThousands, Helper.gbc(0, 5));\n chdMillions.setText(\"Miliony\");\n chdMillions.addActionListener(new ActionListenerSettings(9999999, \"divident\", settingsDivision, tdCustom));\n pDivision.add(chdMillions, Helper.gbc(0, 6));\n chdCustom.setText(\"Vlastní\");\n chdCustom.addActionListener(new ActionListenerSettings(-1, \"divident\", settingsDivision, tdCustom));\n pDivision.add(chdCustom, Helper.gbc(0, 7));\n tdCustom.setText(\"9\");\n tdCustom.setEnabled(false);\n tdCustom.setPreferredSize(new Dimension(100, 25));\n tdCustom.getDocument().addDocumentListener(new DocumentListenerSettingsText(\"divident\", settingsDivision, tdCustom));\n pDivision.add(tdCustom, Helper.gbc(0, 8, 1, GridBagConstraints.NONE, GridBagConstraints.LINE_START, new Insets(0, 0, 0, 75)));\n bgdSize.add(chdTens);\n bgdSize.add(chdHundreds);\n bgdSize.add(chdThousands);\n bgdSize.add(chdMillions);\n bgdSize.add(chdCustom);\n\n ButtonGroup bgfSize = new ButtonGroup();\n lFactor.setText(\"Dělitel\");\n pDivision.add(lFactor, Helper.gbc(1, 2, 1, GridBagConstraints.NONE, GridBagConstraints.CENTER));\n chfUnits.setText(\"Jednotky\");\n chfUnits.setSelected(true);\n chfUnits.addActionListener(new ActionListenerSettings(9, \"factor\", settingsDivision, tfCustom));\n pDivision.add(chfUnits, Helper.gbc(1, 3));\n chfTens.setText(\"Desítky\");\n chfTens.addActionListener(new ActionListenerSettings(99, \"factor\", settingsDivision, tfCustom));\n pDivision.add(chfTens, Helper.gbc(1, 4));\n chfCustom.setText(\"Vlastní\");\n chfCustom.addActionListener(new ActionListenerSettings(-1, \"factor\", settingsDivision, tfCustom));\n pDivision.add(chfCustom, Helper.gbc(1, 7));\n tfCustom.setText(\"9\");\n tfCustom.setEnabled(false);\n tfCustom.setPreferredSize(new Dimension(100, 25));\n tfCustom.getDocument().addDocumentListener(new DocumentListenerSettingsText(\"factor\", settingsDivision, tfCustom));\n pDivision.add(tfCustom, Helper.gbc(1, 8, 1, GridBagConstraints.NONE, GridBagConstraints.LINE_START, new Insets(0, 0, 0, 75)));\n bgfSize.add(chfUnits);\n bgfSize.add(chfTens);\n bgfSize.add(chfCustom);\n\n JButton bdStart = new JButton(\"Spustit dělení\");\n bdStart.setFont(fButton);\n bdStart.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n ((CardLayout) container.getLayout()).show(container, CardDivision);\n dpanel.reset();\n }\n });\n pDivision.add(bdStart, Helper.gbc(0, 9, 2, GridBagConstraints.BOTH, GridBagConstraints.LINE_START, new Insets(25, 0, 0, 0)));\n\n Font fLabel = lDivident.getFont().deriveFont(16f);\n lDivident.setFont(fLabel);\n lFactor.setFont(fLabel);\n ldNumberOfExcercises.setFont(fLabel);\n\n Font fRadio = chdTens.getFont().deriveFont(14f);\n chdTens.setFont(fRadio);\n chdHundreds.setFont(fRadio);\n chdThousands.setFont(fRadio);\n chdMillions.setFont(fRadio);\n chdCustom.setFont(fRadio);\n\n chfUnits.setFont(fRadio);\n chfTens.setFont(fRadio);\n chfCustom.setFont(fRadio);\n\n container.add(pDivision, CardSettingsDivision);\n\n /**\n * MULTIPLICATION SETTINGS\n */\n pMultiplication.setLayout(new java.awt.GridBagLayout());\n\n final MultiplicationPanel mpanel = new MultiplicationPanel(container, settingsMultiplication);\n container.add(mpanel, CardMultiplication);\n\n JLabel lmNumberOfExcercises = new JLabel(\"Počet příkladů\");\n lmNumberOfExcercises.setFont(fLabel);\n pMultiplication.add(lmNumberOfExcercises, Helper.gbc(0, 0, 1));\n\n JSlider slmNumberOfExcercises = new JSlider(JSlider.HORIZONTAL, 0, 30, 15);\n slmNumberOfExcercises.setMajorTickSpacing(5);\n slmNumberOfExcercises.setMinorTickSpacing(1);\n slmNumberOfExcercises.setPaintTicks(true);\n slmNumberOfExcercises.setPaintLabels(true);\n slmNumberOfExcercises.setPreferredSize(new Dimension(350, 75));\n slmNumberOfExcercises.addChangeListener(new ChangeListenerSettingsSlider(\"count\", settingsMultiplication));\n pMultiplication.add(slmNumberOfExcercises, Helper.gbc(0, 1, 2));\n\n ButtonGroup bgmSize = new ButtonGroup();\n lmFactor.setText(\"Činitelé\");\n lmFactor.setFont(fLabel);\n pMultiplication.add(lmFactor, Helper.gbc(0, 2));\n chmTens.setText(\"Desítky\");\n chmTens.setSelected(true);\n chmTens.addActionListener(new ActionListenerSettings(99, \"multiple\", settingsMultiplication, tmCustom));\n pMultiplication.add(chmTens, Helper.gbc(0, 3));\n chmHundreds.setText(\"Stovky\");\n chmHundreds.addActionListener(new ActionListenerSettings(999, \"multiple\", settingsMultiplication, tmCustom));\n pMultiplication.add(chmHundreds, Helper.gbc(0, 4));\n chmThousands.setText(\"Tisíce\");\n chmThousands.addActionListener(new ActionListenerSettings(9999, \"multiple\", settingsMultiplication, tmCustom));\n pMultiplication.add(chmThousands, Helper.gbc(0, 5));\n chmMilions.setText(\"Miliony\");\n chmMilions.addActionListener(new ActionListenerSettings(99999999, \"multiple\", settingsMultiplication, tmCustom));\n pMultiplication.add(chmMilions, Helper.gbc(0, 6));\n chmCustom.setText(\"Vlastní\");\n chmCustom.addActionListener(new ActionListenerSettings(-1, \"multiple\", settingsMultiplication, tmCustom));\n pMultiplication.add(chmCustom, Helper.gbc(0, 7));\n tmCustom.setText(\"9\");\n tmCustom.setEnabled(false);\n tmCustom.setPreferredSize(new Dimension(100, 25));\n tmCustom.getDocument().addDocumentListener(new DocumentListenerSettingsText(\"multiple\", settingsMultiplication, tmCustom));\n pMultiplication.add(tmCustom, Helper.gbc(0, 8, 1, GridBagConstraints.NONE, GridBagConstraints.LINE_START, new Insets(0, 0, 0, 75)));\n bgmSize.add(chmMilions);\n bgmSize.add(chmTens);\n bgmSize.add(chmHundreds);\n bgmSize.add(chmThousands);\n bgmSize.add(chmCustom);\n\n ButtonGroup bgmmSize = new ButtonGroup();\n chmmUnits.setText(\"Jednotky\");\n chmmUnits.setSelected(true);\n chmmUnits.addActionListener(new ActionListenerSettings(9, \"multiplebottom\", settingsMultiplication, tmmCustom));\n pMultiplication.add(chmmUnits, Helper.gbc(1, 3));\n chmmTens.setText(\"Desítky\");\n chmmTens.addActionListener(new ActionListenerSettings(99, \"multiplebottom\", settingsMultiplication, tmmCustom));\n pMultiplication.add(chmmTens, Helper.gbc(1, 4));\n chmmHundreds.setText(\"Stovky\");\n chmmHundreds.addActionListener(new ActionListenerSettings(999, \"multiplebottom\", settingsMultiplication, tmmCustom));\n pMultiplication.add(chmmHundreds, Helper.gbc(1, 5));\n chmmCustom.setText(\"Vlastní\");\n chmmCustom.addActionListener(new ActionListenerSettings(-1, \"multiplebottom\", settingsMultiplication, tmmCustom));\n pMultiplication.add(chmmCustom, Helper.gbc(1, 7));\n tmmCustom.setText(\"9\");\n tmmCustom.setEnabled(false);\n tmmCustom.setPreferredSize(new Dimension(100, 25));\n tmmCustom.getDocument().addDocumentListener(new DocumentListenerSettingsText(\"multiplebottom\", settingsMultiplication, tmmCustom));\n pMultiplication.add(tmmCustom, Helper.gbc(1, 8, 1, GridBagConstraints.NONE, GridBagConstraints.LINE_START, new Insets(0, 0, 0, 75)));\n bgmmSize.add(chmmUnits);\n bgmmSize.add(chmmTens);\n bgmmSize.add(chmmHundreds);\n bgmmSize.add(chmmCustom);\n\n JButton bmStart = new JButton(\"Spustit násobení\");\n bmStart.setFont(fButton);\n bmStart.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n ((CardLayout) container.getLayout()).show(container, CardMultiplication);\n mpanel.reset();\n }\n });\n pMultiplication.add(bmStart, Helper.gbc(0, 9, 2, GridBagConstraints.BOTH, GridBagConstraints.LINE_START, new Insets(25, 0, 0, 0)));\n\n chmMilions.setFont(fRadio);\n chmTens.setFont(fRadio);\n chmHundreds.setFont(fRadio);\n chmThousands.setFont(fRadio);\n chmCustom.setFont(fRadio);\n\n chmmUnits.setFont(fRadio);\n chmmTens.setFont(fRadio);\n chmmHundreds.setFont(fRadio);\n chmmCustom.setFont(fRadio);\n\n container.add(pMultiplication, CardSettingsMultiplication);\n\n /**\n * ABOUT\n */\n JPanel pAbout = new JPanel(new GridBagLayout());\n JLabel laVersion = new JLabel(\"Verze: 1.0.0\");\n pAbout.add(laVersion, Helper.gbc(0, 0));\n JLabel laAuthor = new JLabel(\"Copyright (C) 2014 Ondřej Švec\");\n pAbout.add(laAuthor, Helper.gbc(0, 1));\n JButton baHomepage = new JButton(\"<HTML>Homepage: <FONT color=\\\"#000099\\\"><U>http://svecon.cz/</U></FONT></HTML>\");\n baHomepage.setBorderPainted(false);\n baHomepage.setBackground(new Color(0xEEEEEE));\n baHomepage.setToolTipText(\"http://svecon.cz/\");\n baHomepage.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent ae) {\n if (Desktop.isDesktopSupported()) {\n try {\n Desktop.getDesktop().browse(new URI(\"http://svecon.cz/\"));\n } catch (IOException | URISyntaxException e) {\n }\n } else {\n }\n }\n });\n pAbout.add(baHomepage, Helper.gbc(0, 2));\n\n container.add(pAbout, CardAbout);\n }", "public void mouseClicked(MouseEvent evt) {\n if (imgIndex != 0) {\n Panels.currPanel.deactivate();\n if (imgIndex == 1) { // easy CPU\n Panels.layout.show(Panels.contentPanel, \"display\");\n Panels.displayPanel.activate(Panels.easyPanel, \"easy\", Images.VS_CPU_INSTRS);\n Panels.currPanel = Panels.displayPanel;\n } else if (imgIndex == 2) { // hard CPU\n Panels.layout.show(Panels.contentPanel, \"display\");\n Panels.displayPanel.activate(Panels.solvedPanel, \"solved\", Images.VS_CPU_INSTRS);\n Panels.currPanel = Panels.displayPanel;\n } else { // main menu\n Panels.layout.show(Panels.contentPanel, \"mainMenu\");\n Panels.mainMenuPanel.activate();\n Panels.currPanel = Panels.mainMenuPanel;\n }\n } \n }", "public void mouseClicked(MouseEvent e) {\n\t\t\tx = e.getX();//gets the x and y values of the location clicked\r\n\t\t\ty = e.getY();\r\n\t\t\tif((x > 150 && x < 200) && (y > 50 && y < 150))\r\n\t\t\t{\r\n\t\t\t\t Mario myGUI = new Mario();//if they click mario start mario and exits the program\r\n\t\t\t\t this.dispose();\r\n\t\t\t}\r\n\t\t\telse if((x > 300 && x < 350) && (y > 50 && y < 150))\r\n\t\t\t{\r\n\t\t\t\t Luigi myGUI = new Luigi();//if they click luigi start luigi and exits the program\r\n\t\t\t\t this.dispose();\r\n\t\t\t}\r\n\t\t}", "public TouchEventInjectorScreen() {\r\n // Set the displayed title of the screen\r\n setTitle(\"Touch Event Injector Demo\");\r\n\r\n // Initialize the output String\r\n _output = new StringBuffer();\r\n\r\n // Initialize label field with on screen instructions\r\n _helpText =\r\n new LabelField(\"Open the menu to begin creating touch events.\");\r\n add(_helpText);\r\n\r\n // Initialize button field\r\n _sampleButton =\r\n new ButtonField(\"Sample Button\", ButtonField.NEVER_DIRTY\r\n | ButtonField.CONSUME_CLICK);\r\n add(_sampleButton);\r\n _sampleButton.setChangeListener(_listener);\r\n\r\n // Initialize output label field\r\n _outputText = new LabelField();\r\n add(_outputText);\r\n\r\n /*\r\n * A menu item to display a dialog that allows the user to specify where\r\n * to click the screen.\r\n */\r\n final MenuItem clickScreen =\r\n new MenuItem(new StringProvider(\"Click the screen\"), 0x230030,\r\n 3);\r\n clickScreen.setCommand(new Command(new CommandHandler() {\r\n /**\r\n * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,\r\n * Object)\r\n */\r\n public void execute(final ReadOnlyCommandMetadata metadata,\r\n final Object context) {\r\n // Dialog containing input fields for x and y coordinates\r\n final Dialog clickDialog =\r\n new Dialog(Dialog.D_OK_CANCEL,\r\n \"Specify click location\", Dialog.OK, null,\r\n Manager.BOTTOMMOST);\r\n\r\n final BasicEditField xPos1Input =\r\n new BasicEditField(\"Click position x1: \", \"\");\r\n final BasicEditField yPos1Input =\r\n new BasicEditField(\"Click position y1: \", \"\");\r\n final BasicEditField xPos2Input =\r\n new BasicEditField(\"Click position x2: \", \"\");\r\n final BasicEditField yPos2Input =\r\n new BasicEditField(\"Click position y2: \", \"\");\r\n\r\n clickDialog.add(xPos1Input);\r\n clickDialog.add(yPos1Input);\r\n clickDialog.add(xPos2Input);\r\n clickDialog.add(yPos2Input);\r\n\r\n // Display the dialog\r\n clickDialog.doModal();\r\n\r\n // Check if the user clicked OK\r\n if (clickDialog.getSelectedValue() == Dialog.OK) {\r\n // Clear the output string\r\n _output.delete(0, _output.length());\r\n\r\n try {\r\n // Clear the output string\r\n _output.delete(0, _output.length());\r\n\r\n // Check that integers were entered and that the\r\n // coordinates are valid.\r\n final int x1 = Integer.parseInt(xPos1Input.getText());\r\n final int y1 = Integer.parseInt(yPos1Input.getText());\r\n final int x2 = Integer.parseInt(xPos2Input.getText());\r\n final int y2 = Integer.parseInt(yPos2Input.getText());\r\n\r\n EventInjector.TouchEvent.invokeClickThrough(x1, y1, x2,\r\n y2);\r\n\r\n updateOutputText();\r\n } catch (final NumberFormatException nfe) {\r\n Dialog.alert(\"Invalid input: \" + nfe.getMessage()\r\n + \"\\n\\nPlease enter a number.\");\r\n } catch (final IllegalArgumentException iae) {\r\n Dialog.alert(\"Invalid coordinate. \\n\\nPlease try again.\");\r\n }\r\n }\r\n }\r\n }));\r\n\r\n /*\r\n * A menu item to invoke a TouchEvent which clicks the button field on\r\n * the screen.\r\n */\r\n final MenuItem clickButton =\r\n new MenuItem(new StringProvider(\"Click the button\"), 0x230010,\r\n 1);\r\n clickButton.setCommand(new Command(new CommandHandler() {\r\n /**\r\n * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,\r\n * Object)\r\n */\r\n public void execute(final ReadOnlyCommandMetadata metadata,\r\n final Object context) {\r\n // Calculate button position\r\n final Manager manager = getMainManager();\r\n final XYRect managerExtent = manager.getExtent(); // Scrollable\r\n // section of\r\n // the screen\r\n final int titleHeight = managerExtent.y; // Top of the\r\n // scrollable section\r\n final XYRect buttonExtent = _sampleButton.getExtent();\r\n final int buttonYCoordinate =\r\n buttonExtent.y + titleHeight\r\n + _sampleButton.getHeight() / 2; // Middle of\r\n // the button\r\n\r\n // Create the four touch events needed to click the button\r\n final EventInjector.TouchEvent downEvent =\r\n new EventInjector.TouchEvent(TouchEvent.DOWN, 40,\r\n buttonYCoordinate, -1, -1, -1);\r\n final EventInjector.TouchEvent clickEvent =\r\n new EventInjector.TouchEvent(TouchEvent.CLICK, 40,\r\n buttonYCoordinate, -1, -1, -1);\r\n final EventInjector.TouchEvent unclickEvent =\r\n new EventInjector.TouchEvent(TouchEvent.UNCLICK, 40,\r\n buttonYCoordinate, -1, -1, -1);\r\n final EventInjector.TouchEvent upEvent =\r\n new EventInjector.TouchEvent(TouchEvent.UP, 40,\r\n buttonYCoordinate, -1, -1, -1);\r\n\r\n // Clear the output string\r\n _output.delete(0, _output.length());\r\n\r\n // Invoke the touch events\r\n EventInjector.invokeEvent(downEvent);\r\n EventInjector.invokeEvent(clickEvent);\r\n EventInjector.invokeEvent(unclickEvent);\r\n EventInjector.invokeEvent(upEvent);\r\n\r\n updateOutputText();\r\n }\r\n }));\r\n\r\n // A menu item to swipe the screen\r\n final MenuItem swipe =\r\n new MenuItem(new StringProvider(\"Swipe the screen\"), 0x230020,\r\n 2);\r\n swipe.setCommand(new Command(new CommandHandler() {\r\n /**\r\n * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,\r\n * Object)\r\n */\r\n public void execute(final ReadOnlyCommandMetadata metadata,\r\n final Object context) {\r\n /**\r\n * Create a move event array to pass into injectSwipeGesture().\r\n * This array contains move events for one touch point.\r\n */\r\n final EventInjector.TouchEvent[] moveEvents =\r\n new EventInjector.TouchEvent[3];\r\n moveEvents[0] =\r\n new EventInjector.TouchEvent(TouchEvent.MOVE, 60, 60,\r\n -1, -1, -1);\r\n moveEvents[1] =\r\n new EventInjector.TouchEvent(TouchEvent.MOVE, 120, 120,\r\n -1, -1, -1);\r\n moveEvents[2] =\r\n new EventInjector.TouchEvent(TouchEvent.MOVE, 50, 50,\r\n -1, -1, -1);\r\n\r\n // Clear the output string\r\n _output.delete(0, _output.length());\r\n\r\n // Inject a swipe gesture with origin coordinates of (0, 0)\r\n EventInjector.TouchEvent.injectSwipeGesture(0, 0, moveEvents);\r\n updateOutputText();\r\n }\r\n }));\r\n\r\n /*\r\n * A menu item to display a dialog that allows the user to specify\r\n * screen location for injecting a tap gesture.\r\n */\r\n final MenuItem tap =\r\n new MenuItem(new StringProvider(\"Tap the screen\"), 0x230040, 4);\r\n tap.setCommand(new Command(new CommandHandler() {\r\n /**\r\n * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,\r\n * Object)\r\n */\r\n public void execute(final ReadOnlyCommandMetadata metadata,\r\n final Object context) {\r\n // Dialog containing the input fields for x and y coordinates\r\n // and\r\n // number of taps.\r\n final Dialog tapDialog =\r\n new Dialog(Dialog.D_OK_CANCEL, \"Specify tap location\",\r\n Dialog.OK, null, Manager.NO_VERTICAL_SCROLL);\r\n\r\n final BasicEditField xPosInput =\r\n new BasicEditField(\"Tap position x: \", \"\");\r\n final BasicEditField yPosInput =\r\n new BasicEditField(\"Tap position y: \", \"\");\r\n final BasicEditField tapCountInput =\r\n new BasicEditField(\"Number of taps: \", \"\");\r\n\r\n tapDialog.add(xPosInput);\r\n tapDialog.add(yPosInput);\r\n tapDialog.add(tapCountInput);\r\n\r\n // Display the dialog\r\n tapDialog.doModal();\r\n\r\n if (tapDialog.getSelectedValue() == Dialog.OK) {\r\n\r\n // Clear the output string\r\n _output.delete(0, _output.length());\r\n\r\n try {\r\n // Check that integers were entered and that the\r\n // coordinates\r\n // and taps are valid.\r\n final int x = Integer.parseInt(xPosInput.getText());\r\n final int y = Integer.parseInt(yPosInput.getText());\r\n final int taps =\r\n Integer.parseInt(tapCountInput.getText());\r\n\r\n EventInjector.TouchEvent.injectTapGesture(x, y, taps);\r\n\r\n updateOutputText();\r\n } catch (final NumberFormatException nfe) {\r\n Dialog.alert(\"Invalid input: \" + nfe.getMessage()\r\n + \"\\n\\nPlease enter a number.\");\r\n } catch (final IllegalArgumentException iae) {\r\n Dialog.alert(\"Invalid coordinate or tap count. \\n\\nPlease try again.\");\r\n }\r\n }\r\n }\r\n }));\r\n\r\n /*\r\n * A menu item to display a dialog that allows the user to specify\r\n * screen location for injecting a two finger tap.\r\n */\r\n final MenuItem twoFingerTap =\r\n new MenuItem(new StringProvider(\"Two Finger Tap the screen\"),\r\n 0x230050, 5);\r\n twoFingerTap.setCommand(new Command(new CommandHandler() {\r\n /**\r\n * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,\r\n * Object)\r\n */\r\n public void execute(final ReadOnlyCommandMetadata metadata,\r\n final Object context) {\r\n final Dialog tapDialog =\r\n new Dialog(Dialog.D_OK_CANCEL, \"Specify tap location\",\r\n Dialog.OK, null, Manager.NO_VERTICAL_SCROLL);\r\n\r\n final BasicEditField xPos1Input =\r\n new BasicEditField(\"Tap position x1: \", \"\");\r\n final BasicEditField yPos1Input =\r\n new BasicEditField(\"Tap position y1: \", \"\");\r\n final BasicEditField xPos2Input =\r\n new BasicEditField(\"Tap position x2: \", \"\");\r\n final BasicEditField yPos2Input =\r\n new BasicEditField(\"Tap position y2: \", \"\");\r\n final NumericChoiceField touchPointInput =\r\n new NumericChoiceField(\"Touch point: \", 1, 2, 1);\r\n\r\n tapDialog.add(xPos1Input);\r\n tapDialog.add(yPos1Input);\r\n tapDialog.add(xPos2Input);\r\n tapDialog.add(yPos2Input);\r\n tapDialog.add(touchPointInput);\r\n\r\n // Display the dialog\r\n tapDialog.doModal();\r\n\r\n if (tapDialog.getSelectedValue() == Dialog.OK) {\r\n // Clear the output string\r\n _output.delete(0, _output.length());\r\n\r\n try {\r\n final int x1 = Integer.parseInt(xPos1Input.getText());\r\n final int y1 = Integer.parseInt(yPos1Input.getText());\r\n final int x2 = Integer.parseInt(xPos2Input.getText());\r\n final int y2 = Integer.parseInt(yPos2Input.getText());\r\n final int touchPoint =\r\n touchPointInput.getSelectedValue();\r\n\r\n EventInjector.TouchEvent.injectTwoFingerTap(x1, y1, x2,\r\n y2, touchPoint);\r\n\r\n updateOutputText();\r\n } catch (final NumberFormatException nfe) {\r\n Dialog.alert(\"Invalid input: \" + nfe.getMessage()\r\n + \"\\n\\nPlease enter a number.\");\r\n } catch (final IllegalArgumentException iae) {\r\n Dialog.alert(\"Invalid coordinate or touch point. \\n\\nPlease try again.\");\r\n }\r\n }\r\n }\r\n }));\r\n\r\n // Add menu items\r\n addMenuItem(swipe);\r\n addMenuItem(tap);\r\n addMenuItem(twoFingerTap);\r\n addMenuItem(clickScreen);\r\n addMenuItem(clickButton);\r\n }", "public void start()\r\n\t{\r\n\t\t//build scene\r\n\t\tsetupWorld();\r\n\t \r\n\t\t//setup interfae\r\n\t RightClickMenuListener rightClickMenuListener = new RightClickMenuListener();\r\n\t\trightClickMenu = new JPopupMenu();\r\n\t\tJMenuItem menuItem = new JMenuItem(\"Delete Node\");\r\n\t menuItem.addActionListener(this);\r\n\t rightClickMenu.add(menuItem);\r\n\t \r\n\t this.addMouseListener(rightClickMenuListener);\r\n\t\tthis.addMouseListener(this);\r\n\t this.addMouseMotionListener(this);\r\n\t\tthis.addKeyListener(this);\r\n\t\tthis.setFocusable(true);\r\n\t\tthis.requestFocus();\r\n\t\t\r\n\t\t\r\n\t\t//start the game loop\r\n\t\tint delay = 16;//16ms = 60fps\r\n\t\tlastTime = System.nanoTime();\r\n\t\twhile(GameVars.isRunning)\r\n\t\t{\r\n\t\t\t//update fps once per second\r\n\t\t\t//http://stackoverflow.com/a/20769932 for fps counter\r\n\t\t\tif(System.nanoTime()-lastTime > 1000000000)\r\n\t\t\t{\r\n\t\t\t\tfps = (int)(fpsCounter*1000000000./(System.nanoTime() - lastTime));\r\n\t\t\t\tlastTime = System.nanoTime();\r\n\t\t\t\tfpsCounter = 0;\r\n\t\t\t\t//delay = (int)(1000./fps - 1.);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//delay simulation to set fps\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(delay);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//update motion and interactions\r\n\t\t\tupdateMotion();\r\n\t\t\tcheckForCollisions();\r\n\t\t\t//aSquare.checkForInteractions();\r\n\t\t\t\t\r\n\t\t\tfor(Person p:people)\r\n\t\t\t\tp.updatePhysics();\r\n\t\t\t\r\n\t\t\t//redraw image each frame\r\n\t\t\tthis.repaint();\r\n\t\t}\r\n\t}", "public static void main (String args[]) {\r\n\t\t\r\n\t\tinputScreen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tinputScreen.setSize(700,500);\r\n\t\tinputScreen.getContentPane();\r\n\t\tinputScreen.setVisible(true);\r\n\t\t\r\n\r\n\t\tEmployeeName();\r\n\t\tEmployeeAddress();\r\n\t\tEmployeePhoneNumber();\r\n\t\tEmployeeJob();\r\n\t\tEmployeeHoursWorked();\r\n\t\tEmployeePay();\r\n\t\tBottomRow();\r\n\t\tAction();\r\n\t\tAction2();\r\n\t\tAction3();\r\n\t\tSearchAction();\r\n\t\t\r\n\t\r\n\t\tinputScreen.getContentPane().add(GUI1Panel);\r\n\t\tGUI1Panel.setBorder(border1);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void drawButtons(){\r\n\t\tGuiBooleanButton showDirection = new GuiBooleanButton(1, 10, 20, 150, 20, \"Show Direction\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowdir(), \"showdir\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showdir\").split(\";\"));\r\n\t\tGuiChooseStringButton dirpos = new GuiChooseStringButton(2, width/2+50, 20, 150, 20, \"Dir-Position\", GuiPositions.getPosList(), \"posdir\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosDir()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showFPS= new GuiBooleanButton(3, 10, 45, 150, 20, \"Show FPS\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowfps(), \"showfps\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showfps\").split(\";\"));\r\n\t\tGuiChooseStringButton fpspos = new GuiChooseStringButton(4, width/2+50, 45, 150, 20, \"FPS-Position\", GuiPositions.getPosList(), \"posfps\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosFPS()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showCoor = new GuiBooleanButton(5, 10, 70, 150, 20, \"Show Coor\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowcoor(), \"showcoor\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showcoor\").split(\";\"));\r\n\t\tGuiChooseStringButton coorpos = new GuiChooseStringButton(6, width/2+50, 70, 150, 20, \"Coor-Position\", GuiPositions.getPosList(), \"poscoor\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosCoor()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showworldage = new GuiBooleanButton(7, 10, 95, 150, 20, \"Show WorldAge\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowWorldAge(), \"showworldage\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showworldage\").split(\";\"));\r\n\t\tGuiChooseStringButton worldagepos = new GuiChooseStringButton(8, width/2+50, 95, 150, 20, \"WorldAge-Position\", GuiPositions.getPosList(), \"posworldage\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosWorldAge()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\t\r\n\t\tGuiBooleanButton showFriendly = new GuiBooleanButton(7, 10, 120, 150, 20, \"Mark friendly spawns\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowingFriendlySpawns(), \"showfmobspawn\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showfriendlymobspawn\").split(\";\"));\r\n\t\tGuiBooleanButton showAggressiv = new GuiBooleanButton(7, 10, 145, 150, 20, \"Mark aggressiv spawns\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowingAggressivSpawns(), \"showamobspawn\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showaggressivmobspawn\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton dynamic = new GuiBooleanButton(7, width/2+50, 120, 150, 20, \"dynamic selection\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isDynamic(), \"dynamichsel\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.dynamicselection\").split(\";\"));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tGuiButton back = new GuiButton(9, width/2-100,height-50 , \"back to game\");\r\n\t\t\r\n\t\tbuttonList.add(showworldage);\r\n\t\tbuttonList.add(worldagepos);\r\n\t\tbuttonList.add(dirpos);\r\n\t\tbuttonList.add(fpspos);\r\n\t\tbuttonList.add(coorpos);\r\n\t\tbuttonList.add(showCoor);\r\n\t\tbuttonList.add(showFPS);\r\n\t\tbuttonList.add(showDirection);\r\n\t\t\r\n\t\tbuttonList.add(showFriendly);\r\n\t\tbuttonList.add(showAggressiv);\r\n\t\tbuttonList.add(dynamic);\r\n\t\t\r\n\t\tbuttonList.add(back);\r\n\t}", "void render() {\n\t\tif (!dragLock)\n\t\t\tfucusLocks();\n\n\t\t// display help information\n\t\tString selected = isSelected ? \" [selected]\" : \"\";\n\t\tmyParent.text(id + selected, anchor.x + 10, anchor.y);\n\n\t\t// display points and lines with their colourings\n\t\tfor (int i = 0; i < amount; i++) {\n\n\t\t\tpoint[i].render();\n\n\t\t\tif (state == State.DRAG_AREA)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\n\t\t\tline[i].draw();\n\n\t\t}\n\n\t\t// display rotation ellipse in anchor position\n\t\tif (state == State.ROTATE && isSelected) {\n\t\t\tmyParent.noFill();\n\t\t\tif (!dragLock)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\t\t\telse\n\t\t\t\tmyParent.stroke(0, 255, 0);\n\t\t\tmyParent.ellipse(anchor.x, anchor.y, 15, 15);\n\t\t}\n\n\t\t// display drag area rectangle in anchor position\n\t\tif (state == State.DRAG_AREA) {\n\t\t\tmyParent.noFill();\n\t\t\tif (!dragLock)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\t\t\telse\n\t\t\t\tmyParent.stroke(0, 255, 0);\n\t\t\tmyParent.rect(anchor.x, anchor.y, 15, 15);\n\t\t}\n\n\t\t// display anchor point\n\t\tmyParent.rect(anchor.x, anchor.y, 5, 5);\n\n\t\t// display line centres\n\t\tmyParent.noFill();\n\t\tmyParent.stroke(150);\n\t\tmyParent.rectMode(PConstants.CENTER);\n\t\tmyParent.rect(X.x, X.y, 5, 5);\n\t\tmyParent.rect(Y.x, Y.y, 5, 5);\n\t\tmyParent.rect(Z.x, Z.y, 5, 5);\n\t\tmyParent.rect(Q.x, Q.y, 5, 5);\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif(arg0.getActionCommand().equals(\"newGame\"))\n\t\t{\n\t\t\tSystem.out.println(\"开始新的游戏\");\t\t\n\t\t\tinitKey();\n\t\t\t\n\t\t\t\n\t\t\t//创建新的游戏战场\n\t\t\tmgp=new MyGamePanel(\"newGame\");\n\t\t\t\n\t\t\t//启动游戏面板线程\n\t\t\tThread t=new Thread(mgp);\n\t\t\tt.start();\n\t\t\t\n\t\t\t//删除旧的面板\n\t\t\tthis.remove(msp);\n\t\t\tthis.add(mgp);\n\n\t\t\t//注册监听\n\t\t\tthis.addKeyListener(mgp);\n\t\t\t\n\t\t\tthis.setVisible(true);\n\t\t\t\n\t\t}else if(arg0.getActionCommand().equals(\"exit\"))\n\t\t{\n\t\t\t//保存击毁敌人数量\n\t\t\tRecorder.keepRecording();\n\t\t\tSystem.out.println(\"退出游戏\");\n\t\t\t\n\t\t}else if(arg0.getActionCommand().equals(\"saveExit\"))\n\t\t{\n\t\t\tRecorder rd=new Recorder();\n\t\t\n\t\t\trd.setEts(mgp.ets);\n\t\t\trd.setHeros(mgp.heros);\n\t\t\trd.keepRecAndEnemyTank();\n\t\t\tSystem.out.println(\"保存游戏\");\n\t\t\t\n\t\t}else if(arg0.getActionCommand().equals(\"conGame\"))\n\t\t{\n\t\t\tinitKey();\n\t\t\tmgp=new MyGamePanel(\"con\");\n\t\t\t\n\t\t\tThread t=new Thread(mgp);\n\t\t\tt.start();\n\t\t\t\n\t\t\tthis.remove(msp);\n\t\t\tthis.add(mgp);\n\t\t\t\n\t\t\tthis.addKeyListener(mgp);\n\t\t\t\n\t\t\tthis.setVisible(true);\n\t\t\t\n\t\t\tSystem.out.println(\"接着玩游戏\");\n\t\t}else if(arg0.getActionCommand().equals(\"KeyInstall\"))\n\t\t{\n\t\t\tSystem.out.println(\"点击了用户设置按钮\");\n\t\t\tKeyInstall ki=new KeyInstall();\n\t\t\t\n\t\t}else if(arg0.getActionCommand().equals(\"LevelSetting\"))\n\t\t{\n\t\t\tSystem.out.println(\"用户点击了游戏难易设置\");\n\t\t\tLevelSetting ls=new LevelSetting();\n\t\t}else if(arg0.getActionCommand().equals(\"SavePoint\"))\n\t\t{\n\t\t\tSystem.out.println(\"用户点击了保存分数按钮\");\n\t\t\tMyGamePanel.isPause=!MyGamePanel.isPause;\n\t\t\tSavePoint sp=new SavePoint();\n\t\t\tString sumPoints=String.valueOf(MyGamePanel.sumPoint);\n\t\t\tsp.jf2.setText(sumPoints);\n\t\t\tsp.jf2.setEditable(false);\n\t\t}\n\t}", "public MainClass()\r\n\t{\r\n\t\tthis.setPreferredSize(new Dimension(width - 300, height));// This sets the dimensions of the graphic space where cam is drawn\r\n\t\tpanel = new ControlPanel(); // Initialization of various objects incorporated into the main class\r\n\t\twindow = new Window(this, panel);\t\t\t\t//\r\n\t\tdisp = new DispAngleDiagram(stroke);\t\t\t//\r\n\t\trcp = new RenderCamProfile(disp, panel);\t\t//\r\n\t\tinput = new InputHandler(disp);\t\t\t\t\t//\r\n\t\t\r\n\t\tthis.addMouseListener(input);\t\t\t\t\t\r\n\t\tthis.addMouseMotionListener(input);\r\n\t}", "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}", "@Override\n\tpublic void paint(Graphics graphics) {\n\t\ttry {\n\t\t\t// calls default paint functions in parent object\n\t\t\tsuper.paintComponents(s.getDrawGraphics());\n\n\t\t\t// sets buffer panel to size of window\n\t\t\tbufferPanel.setBounds(0, 0, this.getWidth(), this.getHeight());\n\t\t\t// calls function to draw onto g\n\t\t\tGraphics2D g = (Graphics2D) s.getDrawGraphics();\n\t\t\tdrawJavaString(i_console);\n\t\t\tdrawJavaString(i_palette);\n\n\t\t\tif (i_console_docked) {\n\t\t\t\ti_console.setBounds(p_console.getBounds());\n\t\t\t}\n\t\t\tif (i_palette_docked) {\n\t\t\t\ti_palette.setBounds(p_palette.getBounds());\n\t\t\t}\n\n\t\t\tcontroller.showRects(g);\n\n\t\t\tif(!rightMenuClick){\n\t\t\t\tif(this.getExtendedState() == Frame.MAXIMIZED_BOTH){\n\t\t\t\t\tg.translate(i_palette.getBounds().x, i_palette.getBounds().y+45);\n\t\t\t\t\ti_palette.paintAll(g);\n\t\t\t\t\tg.translate(i_console.getBounds().x - i_palette.getBounds().x, i_console.getBounds().y - i_palette.getBounds().y);\n\t\t\t\t\ti_console.paintAll(g);\n\t\t\t\t\tController.fullscreen = true;\n\t\t\t\t}else{\n\t\t\t\t\tg.translate(i_palette.getBounds().x+5, i_palette.getBounds().y+51);\n\t\t\t\t\ti_palette.paintAll(g);\n\t\t\t\t\tg.translate(i_console.getBounds().x - i_palette.getBounds().x, i_console.getBounds().y - i_palette.getBounds().y);\n\t\t\t\t\ti_console.paintAll(g);\n\t\t\t\t\tController.fullscreen = false;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcontroller.showBorders(g, 5, 51);\n\t\t\t}\n\n\t\t\ts.show();\n\t\t\tToolkit.getDefaultToolkit().sync();\n\t\t\tif (rectToBeRemoved != -1) {\n\t\t\t\tdelete(rectToBeRemoved);\n\t\t\t\tcontroller.getRects().remove(rectToBeRemoved);\n\t\t\t\trectToBeRemoved = -1;\n\t\t\t}\n\t\t\trepaint();\n\t\t} catch (Exception ex) {\n\t\t}\n\t}", "public GUI(){\n\t\tsuper(\"Simori\");\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tthis.getContentPane().setBackground(new Color(215,215,215));\n\t\tthis.setLayout(null);\n\t\t\n\t\t\n\t\tJPanel central = new JPanel();\n\t\tcentral.setSize(690,690);\n\t\tcentral.setLayout(new GridLayout(16,16));\n\t\tcentral.setBackground(new Color(215,215,215));\n\t\t\t\t\n\t\tActionListener modeListener = new ChangeModeListener();\n\t\tActionListener gridListener = new GridListener();\n\n\t\t\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\tJToggleButton button = new JToggleButton();\n\t\t\t\t\t\t\t\t\n\t\t\t\tbutton.setOpaque(true);\n\t\t\t\tbutton.setContentAreaFilled(true);\n\t\t\t\tbutton.setBorderPainted(false);\n\t\t\t\tbutton.setSelectedIcon(SCANNED);\n\t\t\t\tbutton.setIcon(DEFAULT);\n\t\t\t\t\n\t\t\t\tdisplay[i][j] = button;\t\t\t\t\t\t\t\n\t\t\t\tbutton.addActionListener(gridListener);\t\t\t\t\t\t\n\t\t\t\tcentral.add(button);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<36;i++){\n\t\t\tkeyboardIconArray[i] = new ImageIcon(\"imgs//\"+keyboardArray[i]+\".jpg\");\n\t\t\tkeyboardSelectedArray[i] = new ImageIcon(\"imgs//\"+keyboardArray[i]+\"s.jpg\");\n\t\t}\n\t\tthis.add(central);\n\t\tcentral.setBounds(110, 70, 690, 690);\n\t\t\n\t\tChangeLayer.Layers = new Layer[16];\n\t\tfor(int i = 0; i < ChangeLayer.Layers.length; i++){\n\t\t\tChangeLayer.Layers[i] = new Layer();\n\t\t}\n\n\t\t\n\t\tJToggleButton ON = new JToggleButton();\n\t\tON.setToolTipText(\"ON\");;\n\t\tmenuButtons[0] = ON;\n\t\t\n\t\tJToggleButton L1 = new JToggleButton();\n\t\tL1.setToolTipText(\"L1\");\n\t\tmenuButtons[1] = L1;\n\t\tJToggleButton L2 = new JToggleButton();\n\t\tL2.setToolTipText(\"L2\");\n\t\tmenuButtons[2] = L2;\n\t\tJToggleButton L3 = new JToggleButton();\n\t\tL3.setToolTipText(\"L3\");\n\t\tmenuButtons[3] = L3;\n\t\tJToggleButton L4 = new JToggleButton();\n\t\tL4.setToolTipText(\"L4\");\n\t\tmenuButtons[4] = L4;\n\t\t\n\t\tJToggleButton R1 = new JToggleButton();\n\t\tR1.setToolTipText(\"R1\");\n\t\tmenuButtons[5] = R1;\n\t\tJToggleButton R2 = new JToggleButton();\n\t\tR2.setToolTipText(\"R2\");\n\t\tmenuButtons[6] = R2;\n\t\tJToggleButton R3 = new JToggleButton();\n\t\tR3.setToolTipText(\"R3\");\n\t\tmenuButtons[7] = R3;\n\t\tJToggleButton R4 = new JToggleButton();\n\t\tR4.setToolTipText(\"R4\");\n\t\tmenuButtons[8] = R4;\n\t\t\n\t\tJToggleButton OK = new JToggleButton();\n\t\tOK.setToolTipText(\"OK\");\n\t\tmenuButtons[9] = OK;\n\t\t\t\t\t\n\t\t\t\t\n\t\tthis.add(ON);\n\t\tON.setBounds(400, 5, 60, 60);\n\t\tON.setIcon(new ImageIcon(\"imgs//ON.jpg\"));\n\t\tON.setSelectedIcon(new ImageIcon(\"imgs//ONs.jpg\"));\n\t\tON.setBorderPainted(false);\n\t\tON.addActionListener(modeListener);\n\t\t\n\t\tthis.add(L1);\n\t\tL1.setBounds(20, 100, 70, 70);\n\t\tL1.setIcon(new ImageIcon(\"imgs//L1.jpg\"));\n\t\tL1.setSelectedIcon(new ImageIcon(\"imgs//L1s.jpg\"));\n\t\tL1.setBorderPainted(false);\n\t\tL1.addActionListener(modeListener);\n\t\tthis.add(L2);\n\t\tL2.setBounds(20, 250, 70, 70);\n\t\tL2.setIcon(new ImageIcon(\"imgs//L2.jpg\"));\n\t\tL2.setSelectedIcon(new ImageIcon(\"imgs//L2s.jpg\"));\n\t\tL2.setBorderPainted(false);\n\t\tL2.addActionListener(modeListener);\n\t\tthis.add(L3);\n\t\tL3.setBounds(20, 400, 70, 70);\n\t\tL3.setIcon(new ImageIcon(\"imgs//L3.jpg\"));\n\t\tL3.setSelectedIcon(new ImageIcon(\"imgs//L3s.jpg\"));\n\t\tL3.setBorderPainted(false);\n\t\tL3.addActionListener(modeListener);\n\t\tthis.add(L4);\n\t\tL4.setBounds(20, 550, 70, 70);\n\t\tL4.setIcon(new ImageIcon(\"imgs//L4.jpg\"));\n\t\tL4.setSelectedIcon(new ImageIcon(\"imgs//L4s.jpg\"));\n\t\tL4.setBorderPainted(false);\n\t\tL4.addActionListener(modeListener);\n\t\t\n\t\tthis.add(R1);\n\t\tR1.setBounds(820, 100, 70, 70);\n\t\tR1.setIcon(new ImageIcon(\"imgs//R1.jpg\"));\n\t\tR1.setSelectedIcon(new ImageIcon(\"imgs//R1s.jpg\"));\n\t\tR1.setBorderPainted(false);\n\t\tR1.addActionListener(modeListener);\n\t\tthis.add(R2);\n\t\tR2.setBounds(820, 250, 70, 70);\n\t\tR2.setIcon(new ImageIcon(\"imgs//R2.jpg\"));\n\t\tR2.setSelectedIcon(new ImageIcon(\"imgs//R2s.jpg\"));\n\t\tR2.setBorderPainted(false);\n\t\tR2.addActionListener(modeListener);\n\t\tthis.add(R3);\n\t\tR3.setBounds(820, 400, 70, 70);\n\t\tR3.setIcon(new ImageIcon(\"imgs//R3.jpg\"));\n\t\tR3.setSelectedIcon(new ImageIcon(\"imgs//R3s.jpg\"));\n\t\tR3.setBorderPainted(false);\n\t\tR3.addActionListener(modeListener);\n\t\tthis.add(R4);\n\t\tR4.setBounds(820, 550, 70, 70);\n\t\tR4.setIcon(new ImageIcon(\"imgs//R4.jpg\"));\n\t\tR4.setSelectedIcon(new ImageIcon(\"imgs//R4s.jpg\"));\n\t\tR4.setBorderPainted(false);\n\t\tR4.addActionListener(modeListener);\n\t\t\n\t\tthis.add(OK);\n\t\tOK.setBounds(550, 770, 70, 70);\n\t\tOK.setIcon(new ImageIcon(\"imgs//OK.jpg\"));\n\t\tOK.setSelectedIcon(new ImageIcon(\"imgs//OKs.jpg\"));\n\t\tOK.setBorderPainted(false);\n\t\tOK.addActionListener(modeListener);\n\t\t\n\t\tthis.add(textField);\n\t\ttextField.setEditable(false);\n\t\ttextField.setText(\"LCD\");\n\t\ttextField.setBounds(120, 770, 280, 70);\n\t\t\n\n\t\t//sets the initial behaviour\n\t\tOnOff.disableMenuButtons();\n\t\tOnOff.disableGridButtons();\n\t\t\n\t\tthis.setSize(915, 890);\n\t\tthis.setResizable(false);\n\t\tthis.setVisible(true);\n\t\t\n\t}", "private void designGUI() {\n\t\tmnb= new JMenuBar();\r\n\t\tFileMenu=new JMenu(\"file\");\r\n\t\tEditMenu=new JMenu(\"edit\");\r\n\t\timg1=new ImageIcon(\"s.gif\");\r\n\t\tNew=new JMenuItem(\"new\",img1);\r\n\t\topen=new JMenuItem(\"open\");\r\n\t\tsave=new JMenuItem(\"save\");\r\n\t\tquit=new JMenuItem(\"quit\");\r\n\t\tcut=new JMenuItem(\"cut\");\r\n\t\tcopy=new JMenuItem(\"copy\");\r\n\t\tpaste=new JMenuItem(\"paste\");\r\n\t\t\r\n\t\tFileMenu.add(New);\r\n\t\tFileMenu.add(save);\r\n\t\tFileMenu.add(open);\r\n\t\tFileMenu.add(new JSeparator());\r\n\t\tFileMenu.add(quit);\r\n\t\tEditMenu.add(cut);\r\n\t\tEditMenu.add(copy);\r\n\t\tEditMenu.add(paste);\r\n\t\t\r\n\t\tmnb.add(FileMenu);\r\n\t\tmnb.add(EditMenu);\r\n\t\tsetJMenuBar(mnb);\r\n\t\t\r\n\t\t//to add shortcut\r\n\t\tquit.setMnemonic('q');\r\n\t\t//quit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W,ActionEvent.CTRL_MASK));\r\n\t\tquit.addActionListener((ActionEvent e)->\r\n\t\t\t\t{\r\n\t\t\tSystem.exit(0);\r\n\t\t\t\t});\r\n\t\t\r\n\t\t//moving the mouse near to it we get this\r\n\t\tcut.setToolTipText(\"cut the text\");\r\n\t\t//new way fro get domension\r\n\t\tdim=getToolkit().getScreenSize();\r\n\t\tint x=(int) dim.getHeight();\r\n\t\tint y=(int) dim.getWidth();\r\n\t\tc=getContentPane();\r\n\t\tc.setLayout(new BorderLayout());\r\n\t\tmainpanel=new JPanel();\r\n\t\tta1=new JTextArea(x/18,y/12);\r\n\t\tmainpanel.add(new JScrollPane(ta1));\r\n\t\tc.add(mainpanel,BorderLayout.CENTER);\r\n\t\tmymethods();\r\n\t\topen.addActionListener(this);\r\n\t\tsave.addActionListener(this);\r\n\t\tcut.addActionListener(this);\r\n\t\tcopy.addActionListener(this);\r\n\t\tpaste.addActionListener(this);\r\n\t\t\r\n\t}", "public void displayMenu() {\n \n menuFrame = new JFrame(\"SnakeTrain\");\n menuFrame.setSize(1024, 768);\n menuFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n JPanel menuPanel = new JPanel();\n \n Play.setPreferredSize(new Dimension(250, 100));\n Instructions.setPreferredSize(new Dimension(250, 100));\n Exit.setPreferredSize(new Dimension(250, 100));\n \n Play.addActionListener(this);\n Instructions.addActionListener(this);\n Exit.addActionListener(this);\n \n //c = new JLabel(/*background image*/);\n menuFrame.setLayout(new FlowLayout());\n menuFrame.add(Play);\n menuFrame.add(Instructions);\n menuFrame.add(Exit);\n menuFrame.setVisible(true);\n \n }", "public void draw() {\n\t //FrameRate should only 5 when there is no activity. Otherwise, 60\n if (!EventQueue.getInstance().isTiccing() && System.currentTimeMillis() - lastActive >= 300) {\n noLoop();\n setFrameRate(5);\n println(\"no draw activity\");\n } else{\n \t setFrameRate(60);\n }\n background(255);\n //Process menu data at the beginning\n // Menu menuSing = Menu.getInstance();\n // if ((boolean) menuSing.getControllerValue(\"Button0\")) {\n // KeyMap.getInstance().run('q');\n // }\n\n pushMatrix();\n //Enable scrolling\n translate(0, verticalScroll);\n StringManager.getInstance().draw();\n\n popMatrix();\n\n //if (frameCount % 10 == 0)System.out.println(frameRate);\n\n //Draw menu after\n Menu.getInstance().draw();\n }", "void clickAmFromMenu();", "@Override\n\tpublic void drawScreen(int mouseX, int mouseY, float partialTicks) {\n\t\t super.drawScreen(mouseX, mouseY, partialTicks);\n\t\t updateScreen();\n\t\t \n\t\t GuiScreen.drawRect(0, 0, 0 + fadeIn - fadeOut, this.height, Colorutils.rainbowEffect(index + x*20000000F, 1.0F).getRGB());\n\t\t // GuiButton.drawRect(left, top, right, bottom, color);\n\t\t this.scrollPanel.setDimensions(fadeIn * 3, this.height, fadeOut * 3, this.height);\n\t\t //this.scrollPanel.setDimensions(widthIn, heightIn, topIn, bottomIn);\n\t\t\t//this.drawRect(0, 65, 90 , 16, new Color(255, 255, 255).getRGB());\n\t\t\t//this.drawString(fontRendererObj, s1, 15, 15, -1);\n\t\t\t\n\t\t\t//this.buttonList.add(new GuiButton(191, 15, 15, \"Keystokes\"));\n\t\t \n\t\t // GuiCheckBox.drawRect(0, 65, 90, 16, new Color(0, 0, 0).getRGB());\n\t\t \n\t\t\t\n\t\t\t\n //this.drawRect(left, top, right, bottom, color);\n\t\t\t\n\t\t\t\n\tthis.scrollPanel.drawScreen(mouseX, mouseY, partialTicks);\n\t\t//this.drawCenteredString(this.fontRendererObj, \"Mod Options\", this.width / 2, 8, 16777215);\n\t\t\t\n\t\tsuper.drawScreen(mouseX, mouseY, partialTicks);\n\t}", "public void makeGUI()\n\t{\n\t\tbuttonPanel = new ButtonPanel(this,ship,planet);\n\t\tgamePanel = new GamePanel(this,ship,planet);\n\n\t\tJMenuBar menubar = new JMenuBar();\n\t\tJMenu menuHelp = new JMenu(\"Help\");\n\t\thelpItem = new JMenuItem(\"Help\");\n\t\tmenuHelp.add(helpItem);\n\t\tmenubar.add(menuHelp);\n\t\tsetJMenuBar(menubar);\n\n\t\tsounds = new AudioClip[2];\n\n\t\ttry\n\t\t{\n\t\t\turl = new URL(getCodeBase() + \"/thrust.au\");\n\t\t\tsounds[0] = Applet.newAudioClip(url);\n\t\t\turl = new URL(getCodeBase() + \"/crash.au\");\n\t\t\tsounds[1] = Applet.newAudioClip(url);\n\t\t}\n\t\tcatch(Exception e){}\n\n\t\thelpItem.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tif(e.getSource() == helpItem)\n\t\t\t\t{\n\t\t\t\t\tString helpMessage = \"The goal of the game is to land\\nthe ship on the red lines (pads).\\nThe ship must be completely contained\\nwithin the bounds of the red pad.\\nThere are 10 levels total\\nand you will have a certain amount\\nof time to complete each level.\\nGood Landing: velocities must be <10\\nOK Landing: velocities must be <20\\nThe ship's bottom must be facing the ground.\";\n\t\t\t\t\tJOptionPane.showMessageDialog(lander, helpMessage, \"Help Display\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tgetContentPane().add(gamePanel, BorderLayout.PAGE_START);\n\t\tgetContentPane().add(buttonPanel, BorderLayout.PAGE_END);\n\t\tsetVisible(true);\n\t}", "public MenuCanvas() {\n\n //CR 14694\n imageDisplay = new ImageDisplay();\n iCaptureImage = new CaptureImageAudio(this);\n iImageMenu = new CustomMenu(this);\n\n //#if KEYPAD\n //|JG|iKeyHandler = ObjectBuilderFactory.getKeyHandler();\n //|JG|iKeyHandler.setCanvasHandler(this);\n //#endif\n iCustomPopup = new CustomPopup(this);\n iMenu = new CustomMenu(this);\n \n bannerHandler = new CustomBanner(this);\n textboxSize = (short)(8 + CustomCanvas.font.getHeight());\n }", "public static void main(String[] args) {\n Factory.createFactory(\"WinF\").createButton().paint();\n\n\n Factory.createFactory(\"OSXF\").createButton().paint();\n\n }", "public DrawFrame() \n {\n //Initiate title and layout of frame\n super( \"SuperPaint Application!\" );\n setLayout( new BorderLayout() );\n setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\n setSize( 600, 600 );\n \n //Initiate draw panel and add it to the center\n panel = new DrawPanel( new JLabel(\"Use mouse to draw.\") );\n add( panel, BorderLayout.CENTER );\n \n //Initiate a panel to store buttons\n buttonJPanel = new JPanel();\n buttonJPanel.setLayout( new GridLayout( 1, AMOUNTOFBUTTONS, 20, 0 ));\n \n //Initiate JButtons and add to panel\n undoButton = new JButton(\"Undo\");\n buttonJPanel.add(undoButton);\n redoButton = new JButton(\"Redo\");\n buttonJPanel.add(redoButton);\n clearButton = new JButton(\"Clear\");\n buttonJPanel.add(clearButton);\n \n //Iniiate ComboBoxes and add to panel\n colorsJComboBox = new JComboBox( colorNames );\n colorsJComboBox.setMaximumRowCount(13);\n buttonJPanel.add(colorsJComboBox);\n shapesJComboBox = new JComboBox( shapeNames );\n shapesJComboBox.setMaximumRowCount(3);\n buttonJPanel.add(shapesJComboBox);\n \n //Initiate CheckBoxes and add to panel\n filledJCheckBox = new JCheckBox( \"Filled\" );\n buttonJPanel.add(filledJCheckBox);\n\n //Add button panel into draw panel\n add(buttonJPanel, BorderLayout.NORTH);\n \n //BUTTON HANDLING\n //Assign JButtons to handler\n ButtonHandler buttonHandler = new ButtonHandler();\n undoButton.addActionListener( buttonHandler );\n redoButton.addActionListener( buttonHandler );\n clearButton.addActionListener( buttonHandler );\n \n //Assign CheckBoxes to handler\n CheckBoxHandler checkBoxHandler = new CheckBoxHandler();\n filledJCheckBox.addItemListener( checkBoxHandler );\n \n //Assign Comboxes to handler \n ComboBoxHandler comboBoxHandler = new ComboBoxHandler();\n colorsJComboBox.addItemListener( comboBoxHandler );\n shapesJComboBox.addItemListener( comboBoxHandler );\n \n //Make frame visible\n setVisible( true );\n }", "@Override\n public void clicked(InputEvent event, float x, float y ){\n mGame.setScreen( new MainScreen( mGame ));\n }", "public GameScreen() {\n\n\t\tint midPointY = (int) (Const.GAME_HEIGHT / 2);\n\n\t\tworld = new GameWorld(midPointY);\n\t\trenderer = new GameRenderer(world);\n\n\t\tGdx.input.setInputProcessor(new InputHandler(world.getVentilatorUp(), world.getVentilatorDown()));\n\t\t// Gdx.input.setInputProcessor(new\n\t\t// InputHandler(world.getVentilatorTwo()));\n\t}", "void Menu();", "private void goToMenu() {\n game.setScreen(new MainMenuScreen(game));\n\n }", "private static void createGUI(){\n DrawingArea drawingArea = new DrawingArea();\n ToolSelect utilityBar = new ToolSelect();\n MenuBar menuBar = new MenuBar();\n JFrame.setDefaultLookAndFeelDecorated(true);\n JFrame frame = new JFrame(\"GUIMk1\");\n frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\n frame.setLayout(new BorderLayout());\n frame.getContentPane().add(utilityBar, BorderLayout.WEST);\n frame.getContentPane().add(menuBar,BorderLayout.NORTH);\n frame.getContentPane().add(drawingArea);\n frame.setLocationRelativeTo( null );\n frame.setVisible(true);\n frame.pack();\n\n }", "public void mouseClicked(MouseEvent e) { // if mouse is clicked \r\n if (menuStatus == 1) { // if the player is on the main menu of the game\r\n if (inQuit) // if the player clicks on the quit button\r\n {\r\n System.exit(0); // exit the game\r\n } else if (inPlay) { // if the player clicks on the play button\r\n menuStatus = 3; // start the game\r\n initializeGame(); // call initializeGame method to start a new round \r\n }\r\n } \r\n\r\n repaint(); // update the screen\r\n\r\n }", "public static void main(String[] args) {\n\t\tJFrame frame=new JFrame();\n\t\tStart start=new Start();\n\t\tframe.add(start);\n\t\tframe.setSize(WIDTH, HEIGHT);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.addKeyListener(start.kl);\n\t\tframe.setVisible(true);\n\t\tstart.mos.add(start.sky);\n\t\tstart.mos.add(start.hero);\n\t\tstart.action();\n\n\t}", "public void act(){\n if(mainMenu!=null){\n if((Greenfoot.mouseClicked(callMenu.getCallMenu()))) {\n Greenfoot.setWorld(mainMenu); \n }\n }\n if(pauseMenu!=null){\n if((Greenfoot.mouseClicked(callMenu.getCallMenu()))) {\n Greenfoot.setWorld(pauseMenu); \n }\n }\n if(choiceMenu!=null){\n if((Greenfoot.mouseClicked(callMenu.getCallMenu()))) {\n Greenfoot.setWorld(choiceMenu); \n }\n }\n if(actual == 1){\n prePage.setImage(new GreenfootImage(\"\", 0, null, null));\n nextPage.setImagine(\"sipka1\");\n if((Greenfoot.mouseClicked(nextPage.getLabel()))) {\n setBackground(\"images/manual2.png\");\n actual = 2;\n }\n }\n else if(actual == 2){\n nextPage.setImagine(\"sipka1\");\n prePage.setImagine(\"sipka0\");\n if((Greenfoot.mouseClicked(nextPage.getLabel()))) {\n setBackground(\"images/manual3.png\");\n actual = 3;\n }\n if((Greenfoot.mouseClicked(prePage.getLabel()))) {\n setBackground(\"images/manual1.png\");\n actual = 1;\n }\n }\n else if(actual == 3){\n nextPage.setImagine(\"sipka1\");\n if((Greenfoot.mouseClicked(nextPage.getLabel()))) {\n setBackground(\"images/manual4.png\");\n actual = 4;\n }\n if((Greenfoot.mouseClicked(prePage.getLabel()))) {\n setBackground(\"images/manual2.png\");\n actual = 2;\n }\n }\n else if(actual == 4){\n nextPage.setImagine(\"sipka1\");\n if((Greenfoot.mouseClicked(nextPage.getLabel()))) {\n setBackground(\"images/manual5.png\");\n actual = 5;\n }\n if((Greenfoot.mouseClicked(prePage.getLabel()))) {\n setBackground(\"images/manual3.png\");\n actual = 3;\n }\n }\n else if(actual == 5){\n nextPage.setImage(new GreenfootImage(\"\", 0, null, null));\n if((Greenfoot.mouseClicked(prePage.getLabel()))) {\n setBackground(\"images/manual4.png\");\n actual = 4;\n }\n }\n }", "@Override\n public final void initGui() {\n \tKeyboard.enableRepeatEvents(true);\n\t\t\n \tif(components == null) {\n \t\tcomponents = Lists.newArrayList();\n \t\t\n \t\ttry {\n \t\t\tbuildGui();\n \t\t} catch(Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}\n \t\n \t// XXX: Untested. Might lead to crash. Leaving it in for now.\n \tif(this.behindScreen != null) {\n \t\tthis.behindScreen.width = this.width;\n \t\tthis.behindScreen.height = this.height;\n \t\tthis.behindScreen.initGui();\n \t}\n \t\n \tlayoutGui();\n }", "private void initMenu() {\n\t\tloadImage();\r\n\t\t// Add listeners to buttons\r\n\t\tstartGame.addActionListener(new StartGameListener());\r\n\t\texitGame.addActionListener(new ExitGameListener());\r\n\t\t// Setting buttons in the middle of the screen\r\n\t\tsetLayout(new GridBagLayout());\r\n\t\tGridBagConstraints gbc = new GridBagConstraints();\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 0;\r\n\t\tadd(startGame, gbc);\r\n\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 1;\r\n\t\t// Resize \"exitGame\" button to \"startGame\" button size\r\n\t\texitGame.setPreferredSize(startGame.getPreferredSize());\r\n\t\t// Set insets between two buttons in 100 px\r\n\t\tgbc.insets = new Insets(100, 0, 0, 0);\r\n\t\tadd(exitGame, gbc);\r\n\t}", "@Override\r\n public void run() {\n opsi_menu();\r\n\r\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}", "public static void main(String[] args){\n JFrame jTest = new JFrame(\"Menu Bar Test\");\n jTest.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n jTest.setLayout(new GridLayout(0,1));\n String[] s = {\"Customer Number\",\"Simulation Time\"};\n menuSequence m = new menuSequence(\"Termination Method: \",s);\n jTest.add(m);\n jTest.setSize(500,500);\n jTest.setVisible(true);\n }", "public void actionPerformed(ActionEvent e){\t\n\t\t\n\t\t\n\t\tif(frameIndex == 0) {\n\t\t\t\n\t\t\t//Add key handler\n\t\t\tpanel.addKeyListener(this);\n\t\t\tpanel.addMouseMotionListener(this);\n\t\t\tpanel.addMouseListener(this);\n\t\t\tpanel.addFocusListener(this);\n\t\t\tpanel.requestFocus();\n\t\t\t\n\t\t\t//create camera\n\t\t\tCamera = new camera(new vector(3,2f,-1.25f), 0, 300);\n\t\t\n\t\t\t//Create look up tables\n\t\t\tgameData.makeData();\n\t\t\t\n\t\t\t//init grid \n\t\t\tgridMap = new grid(128);\n\t\t\t\n\t\t\t//init light source\n\t\t\tsunLight.init();\n\t\t\t\n\t\t\t//init rasterizer\n\t\t\trasterizer.init();\n\t\t\t\n\t\t\t//init 2d to 3d factory\n\t\t\tmy2Dto3DFactory = new Turn2DTo3DFactory();\n\t\t\tmy2Dto3DFactory.init();\n\t \n\t\t\tloadTexture();\n\t\t\t\t\n\t\t\ttheAssetManager = new AssetManager();\n\t\t\ttheAssetManager.init();\n\t\t\t\n\t\t\ttheGameCursor = new gameCursor();\n\t\t\ttheGameCursor.init();\n\t\t\t\n\t\t\tcurrentMouseX = getLocationOnScreen().x + screen_width/2;\n\t\t\tcurrentMouseY = getLocationOnScreen().y + screen_height/2;\n\t\t\t\n\t\t\tcenterScreenX = getLocationOnScreen().x + screen_width/2;\n\t\t\tcenterScreenY = getLocationOnScreen().y + screen_height/2;\n\t\t\t\n\t\t\t\n\t\t\tif(capturedMouse)\n\t\t\t\tmyRobot.mouseMove(centerScreenX, centerScreenY);\n\t\t\t\n\t\t\t//hide mouse cursor\n\t \t// Transparent 16 x 16 pixel cursor image.\n\t \tBufferedImage cursorImg = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);\n\n\t \t// Create a new blank cursor.\n\t \tCursor blankCursor = Toolkit.getDefaultToolkit().createCustomCursor(\n\t \t cursorImg, new Point(0, 0), \"blank cursor\");\n\n\t \t// Set the blank cursor to the JFrame.\n\t \tthis.getContentPane().setCursor(blankCursor);\n\t \t\n\t\t}\n\t\t\n\t\tframeIndex++;\t\n\n\t\tif(capturedMouse && !mouseLeftScreen && !focusLost) {\n\t\t\tcurrentMouseX = MouseInfo.getPointerInfo().getLocation().x;\n\t\t\tcurrentMouseY = MouseInfo.getPointerInfo().getLocation().y;\n\t\t\t\n\t\t\tcenterScreenX = getLocationOnScreen().x + screen_width/2;\n\t\t\tcenterScreenY = getLocationOnScreen().y + screen_height/2;\n\t\t\t\n\t\t\tint deltaX = currentMouseX - centerScreenX;\n\t\t\tint deltaY = currentMouseY - centerScreenY;\n\t\t\n\t\t\tmouseX+=deltaX;\n\t\t\tmouseY+=deltaY;\n\t\t\t\n\t\t\tmyRobot.mouseMove(centerScreenX, centerScreenY);\n\t\t\t\n\t\t\tif(mouseX < 0)\n\t\t\t\tmouseX = 0;\n\t\t\tif(mouseX >= screen_width)\n\t\t\t\tmouseX = screen_width-1;\n\t\t\tif(mouseY < 0)\n\t\t\t\tmouseY = 0;\n\t\t\tif(mouseY >= screen_height)\n\t\t\t\tmouseY = screen_height-1;\n\t\t\t\n\t\t\tinputHandler.mouse_x = mouseX;\n\t\t\tinputHandler.mouse_y = mouseY;\n\t\t}\n\t\tinputHandler.processInput();\n\t\t\n\t\tif(!gamePaused) {\n\t\t\tif(gameStarted)\n\t\t\t\tgameFrame++;\n\t\t\t\n\t\t\ttimeString = secondsToString((int)(gameFrame*0.025));\n\t\t\t\n\t\t\t//handle user's interaction with game GUI\n\t\t\tif(gameFrame == 1 && gameStarted){\n\t\t\t\ttheAssetManager.prepareAssetForNewGame();\n\t\t\t}\n\t\t\t\n\t\t\tgridMap.update();\n\t\t\t\n\t\t\t//Clears the z-buffer. All depth values are set to 0.\n\t\t\tclearDepthBuffer();\n\t\t\t\n\t\t\t//update camera\n\t\t\tCamera.update();\n\t\t\t\n\t\t\t//update light source\n\t\t\tsunLight.update();\n\t\t\t\t\t\n\t\t\t//update and draw 3D mashes from game objects\n\t\t\ttheAssetManager.updateAndDraw();\n\t\t\t\n\t\t\tif(gameStarted) {\n\t\t\t\tpc.update();\n\t\t\t\tec.update();\n\t\t\t}\n\t\t}else {\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//show unpassable obstacle \n\t\t//gridMap.draw();\n\t\t\n\t\tif(this.getGraphics() != null && PPT!= null){\n\t\t\t//wait for the Post processing Thread if it is still working\n\t\t\twaitForPostProcessingThread();\n\t\t\t\n\t\t\t//prepare resources for the post processing thread\n\t\t\tpostProcessingThread.prepareResources();\n\t\t\t\n\t\t\t//Signal post processing thread that it can proceed\n\t\t\tsynchronized(PPT) {\n\t\t\t\tPPT.notify();\n\t\t\t}\n\t\t\t\n\t\t\tif(frameIndex %2 == 0 && frameIndex > 3){\n\t\t\t\tbf = doubleBuffer;\n\t\t\t\t//draw mouse cursor \n\t\t\t\ttheGameCursor.updateAndDraw(bufferScreen);\n\t\t\t\t\n\t\t\n\t\t\t}else if(frameIndex != 1 && frameIndex > 3){\n\t\t\t\tbf = doubleBuffer2;\n\t\t\t\t//draw mouse cursor \n\t\t\t\ttheGameCursor.updateAndDraw(buffer2Screen);\n\t\t\t}\n\t\t\t\n\t\t\tif(frameIndex > 3)\n\t\t\t\tpaintComponent(panel.getGraphics());\n\t\t\t\n\t\t\tswapResources();\n\t\t\n\t\t\t//maintain a constant frame rate\n\t\t\tregulateFramerate();\n\t\t}else{\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "public Menu() { //Menu pannel constructor\n\t\tmenuBar = new JMenuBar();\n\t\tmenu = new JMenu(\"Menu\");\n\t\tabout = new JMenu(\"About\");\n\t\tabout.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ragnarock Web Browser 2017\\nIvan Mykolenko\\u00AE\", \"About\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\thistory = new JMenu(\"History\");\n\t\thistory.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tcreateList(\"history\");\n\t\t\t\taddBackButton();\n\t\t\t\tuserViewPort.add(new JScrollPane(list), \"History\");\n\t\t\t\tlayer.show(userViewPort, \"History\");\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 2;\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\tbookmarks = new JMenu(\"Bookmarks\");\n\t\tbookmarks.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tcreateList(\"bookmarks\");\n\t\t\t\taddBackButton();\n\t\t\t\tuserViewPort.add(new JScrollPane(list), \"Bookmarks\");\n\t\t\t\tlayer.show(userViewPort, \"Bookmarks\");\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 3;\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\tsettingsMenuItem = new JMenuItem(\"Settings\", KeyEvent.VK_X);\n\t\tsettingsMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcreateSettings();\n\t\t\t\tsettings.setVisible(true);\n\t\t\t}\n\t\t});\n\t\texitMenuItem = new JMenuItem(\"Exit\");\n\t\texitMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tbackButton = new JButton(\"Back\");\n\t\tremoveButton = new JButton(\"Remove\");\n\t\tmenu.add(settingsMenuItem);\n\t\tmenu.add(exitMenuItem);\n\t\tmenuBar.add(menu);\n\t\tmenuBar.add(history);\n\t\tmenuBar.add(bookmarks);\n\t\tmenuBar.add(about);\n\t\tmenuBar.add(Box.createHorizontalGlue()); // Changing backButton's alignment to right\n\t\tsettings = new JDialog();\n\t\tadd(menuBar);\n\t\tsaveButton = new JButton(\"Save\");\n\t\tclearHistory = new JButton(\"Clear History\");\n\t\tclearBookmarks = new JButton(\"Clear Bookmarks\");\n\t\tbuttonsPanel = new JPanel();\n\t\tpanel = new JPanel();\n\t\turlField = new JTextField(15);\n\t\tedit = new JLabel(\"Edit Homepage:\");\n\t\tviewMode = 1;\n\t\tlistModel = new DefaultListModel<String>();\n\t\tlist = new JList<String>(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n\t\tlist.setLayoutOrientation(JList.VERTICAL);\n\t}", "public void controllerMenu(){\n\t\tint option=1;\n\t\t\n\t\twhile(option!=0){ \n\t\t\tSystem.out.println(\"You are in the air controller menu\");\n\t\t\tSystem.out.println(\"Write the number corresponding to the action you quant to perform:\");\n\t\t\tSystem.out.println(\"1. Add plane (basic info)\");\n\t\t\tSystem.out.println(\"2. Add detailed information of a plane\");\n\t\t\tSystem.out.println(\"3. Show airspace\");\n\t\t\tSystem.out.println(\"4. Encrypt plane\");\n\t\t\tSystem.out.println(\"5. Decrypt plane\");\n\t\t\tSystem.out.println(\"Press 0 to exit\");\n\t\t\t\n\t\t\toption = entry.nextInt();\n\t\t\t\n\t\t\tswitch(option){\t// switch with a method for each operation\n\t\t\t\tcase 1: \n\t\t\t\t\taddPlane();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: \n\t\t\t\t\tafegirInfo();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3: \n\t\t\t\t\tdisplayInfo();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4: \n\t\t\t\t\tencrypt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tdesencriptar();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void setupMouseEventHandlers() {\n this.setOnMouseClicked(event -> {\n if (event.getButton() == MouseButton.PRIMARY) {\n fireEvent(new MenuSelectedEvent(\n MenuManager.MenuType.BUILDING, this.getSpriteType(),\n event.getSceneX(), event.getSceneY()));\n }\n });\n }", "public void initMenuContext(){\n GralMenu menuCurve = getContextMenu();\n //menuCurve.addMenuItemGthread(\"pause\", \"pause\", null);\n menuCurve.addMenuItem(\"refresh\", actionPaintAll);\n menuCurve.addMenuItem(\"go\", actionGo);\n menuCurve.addMenuItem(\"show All\", actionShowAll);\n //menuCurve.addMenuItemGthread(\"zoomOut\", \"zoom in\", null);\n menuCurve.addMenuItem(\"zoomBetweenCursor\", \"zoom between Cursors\", actionZoomBetweenCursors);\n menuCurve.addMenuItem(\"zoomOut\", \"zoom out\", actionZoomOut);\n menuCurve.addMenuItem(\"cleanBuffer\", \"clean Buffer\", actionCleanBuffer);\n //menuCurve.addMenuItemGthread(\"zoomOut\", \"to left\", null);\n //menuCurve.addMenuItemGthread(\"zoomOut\", \"to right\", null);\n \n }", "@Override\n public final void drawScreen(int mouseX, int mouseY, float partialTicks) {\n\t\tif(behindScreen != null) {\n\t\t\tbehindScreen.drawScreen(-9999, -9999, partialTicks);\n\t\t}\n\t\t\n\t\t// ...\n\t\tinstance.setCurrentScreen(this, this.zLevel, this.fontRendererObj, this.itemRender);\n\t\tinstance.drawDefaultBackground();\n\t\t\n\t\t// Draw all components.\n\t\tfor(QADComponent component : components) {\n\t\t\tcomponent.draw(mouseX-component.getX(), mouseY-component.getY(), partialTicks, instance);\n\t\t}\n\t\t\n\t\tif(shouldDebugRender) {\n\t\t\tQADGuiScreenDebugRenderer.debugRender(this, components, instance, mouseX, mouseY, partialTicks);\n\t\t}\n\t\t\n\t\tdrawCustom(mouseX, mouseY, partialTicks, instance);\n\t\t\n\t\t// Check for tooltips, and draw them if necessary.\n\t\tfor(QADComponent component : components) {\n\t\t\tif(component.isPointInside(mouseX, mouseY)) {\n\t\t\t\tList<String> text = component.getTooltip(mouseX, mouseY);\n\t\t\t\t\n\t\t\t\tif(text != null) {\n\t\t\t\t\tint yPos = mouseY;\n\t\t\t\t\t\n\t\t\t\t\tif(text.get(0).equalsIgnoreCase(\"ylock\")) {\n\t\t\t\t\t\tint add = component instanceof QADRectangularComponent ? ((QADRectangularComponent) component).getHeight() : 20;\n\t\t\t\t\t\tyPos = component.getY()+add+fontRendererObj.FONT_HEIGHT*2;\n\t\t\t\t\t\ttext = text.subList(1, text.size()-1);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tthis.drawHoveringText(text, mouseX, yPos);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Debug: Draw cursor position marker.\n\t\tif(Boolean.TRUE.booleanValue() && Mouse.isInsideWindow()) {\n\t\t\tfinal int color = 0x1ACCEEFF;\n\t\t\tinstance.drawHorizontalLine(0, width, mouseY, color);\n\t\t\tinstance.drawVerticalLine(mouseX, -1, height, color);\n\t\t}\n\t\t\n }", "public void drawUI() {\n \n stroke(0);\n textSize(titleH/3);\n textAlign(CENTER, CENTER);\n rectMode(CORNER);\n \n noFill();\n rect(titleX, titleY, titleW, titleH);\n image(logo, 0, 0);\n fill(0);\n text(\"EPBox: Ordinering\", titleX, titleY, titleW, titleH-15);\n \n if (!informationSeen) {\n uielement.informationDialog(\"EPBox: Ordinering\", \"Velkommen til EPBox: Ordinering.\\n\\nHvis det er første gang du kører programmet, bedes du gå igennem opsætning af programmet.\\nMangler du hjælp til dette, kan du gå ind på de relevante menuer, eller konsultere brugsanvisningen.\", \"information\");\n informationSeen = true;\n }\n\n uielement.infoHelpBttnSTART(\"Hvis det er første gang du kører programmet, bedes du gå igennem opsætning af programmet.\\nMangler du hjælp til dette, kan du gå ind på de relevante menuer, eller konsultere brugsanvisningen.\");\n\n }", "protected void userDrawing(MouseEvent e){\n\t}", "@SuppressWarnings(\"serial\")\n\tpublic static void main(String[] args){\n\t\tJFrame myFrame = new JFrame();\n\t\tmyFrame.setTitle(\"Draw a Face\");\n\n\t\t// Set the window to close when the user clicks X:\n\t\tmyFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tmyPanel = new FacePanel();\t\t\t\t\t// Panel for drawing face\n\t\tControlPanel myControls = new ControlPanel(myPanel);\t// Panel for controls\n\t\t\n\t\tmyFrame.setLayout(new BorderLayout());\n\t\tmyFrame.add(myPanel, BorderLayout.WEST);\n\t\tmyFrame.add(myControls, BorderLayout.EAST); \t\t\t// Place controls on right side\n\t\tmyFrame.setSize(FacePanel.SIZE + ControlPanel.WIDTH,FacePanel.SIZE); \n\t\tmyFrame.setResizable(false);\n\t\tmyFrame.setVisible(true);\n\t\tmyFrame.setLocation(80, 40);\n\t\t\n\t\t// Create action mappings for keyboard shortcuts:\n\t\tmyPanel.getActionMap().put(\"rotateLeft\",new AbstractAction(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {rotateLeft();}});\n\t\tmyPanel.getActionMap().put(\"rotateRight\",new AbstractAction(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {rotateRight();}});\n\t\tmyPanel.getActionMap().put(\"scaleVertUp\",new AbstractAction(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {scaleVertUp();}});\n\t\tmyPanel.getActionMap().put(\"scaleHorizDown\",new AbstractAction(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {scaleHorizDown();}});\n\t\tmyPanel.getActionMap().put(\"scaleVertDown\",new AbstractAction(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {scaleVertDown();}});\n\t\tmyPanel.getActionMap().put(\"scaleHorizUp\",new AbstractAction(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {scaleHorizUp();}});\n\t\tmyPanel.getActionMap().put(\"flipX\",new AbstractAction(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {flipX();}});\n\t\tmyPanel.getActionMap().put(\"flipY\",new AbstractAction(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {flipY();}});\n\t\tmyPanel.getActionMap().put(\"cycle\",new AbstractAction(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {cycle();}});\n\t\t\n\t\t// Map keyboard keys to the action mappings:\n\t\tmyPanel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(\n\t\t\t\tKeyStroke.getKeyStroke('z'),\"rotateLeft\");\n\t\tmyPanel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(\n\t\t\t\tKeyStroke.getKeyStroke('x'),\"rotateRight\");\n\t\tmyPanel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(\n\t\t\t\tKeyStroke.getKeyStroke('w'),\"scaleVertUp\");\n\t\tmyPanel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(\n\t\t\t\tKeyStroke.getKeyStroke('a'),\"scaleHorizDown\");\n\t\tmyPanel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(\n\t\t\t\tKeyStroke.getKeyStroke('s'),\"scaleVertDown\");\n\t\tmyPanel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(\n\t\t\t\tKeyStroke.getKeyStroke('d'),\"scaleHorizUp\");\n\t\tmyPanel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(\n\t\t\t\tKeyStroke.getKeyStroke('f'),\"flipX\");\n\t\tmyPanel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(\n\t\t\t\tKeyStroke.getKeyStroke('g'),\"flipY\");\n\t\tmyPanel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(\n\t\t\t\tKeyStroke.getKeyStroke('q'),\"cycle\");\n }", "@Override\r\n\tpublic void display() {\n\t\tSystem.out.println(\"This is a rectangle button!\");\r\n\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) \r\n\t\t\t{\n\t\t\t\tpaintComponent(getGraphics(), player);\r\n\t\t\t}", "private void setupGUI(){\r\n\t\t\r\n\t\tfinal GUIFactory guifactory = GUIFactory.instance();\r\n\t\tfinal MTApplication app = (MTApplication)item.getView().getRenderer();\r\n\t\tfinal float leftiness = app.getWidth()*5/6;\r\n\t\tfinal float xPos = leftiness + 5;\r\n\t\t\r\n\t\t\r\n\t\toverlay = new MTOverlayContainer( app);\r\n\t\titem.getView().getRoot().addChild( overlay);\r\n\t\t\r\n\t\t// _THE_ PANEL \r\n\t\t\r\n\t\tpnlPanel = guifactory.createPanel( leftiness, 0, app.getWidth()-leftiness, app.getHeight(),\"pnlPanel\", overlay);\t\t\t\r\n\t\t\r\n\t\t// INTERACTION PANEL\r\n\t\t\r\n\t\tpnlInteraction = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlInteraction\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlInteraction.setNoFill( true);\r\n\t\t\r\n\t\t// EDIT PANEL\r\n\t\t\r\n\t\tpnlEdit = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlEdit\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlEdit.setVisible( false);\r\n\t\tpnlEdit.setNoFill( true);\r\n\t\t\r\n\t\t\r\n\t\t// ITEM NAME TEXTAREA\r\n\t\t\r\n\t\tString itemName = item.getName();\r\n\t\tif(itemName == null || itemName.equals( \"\"))\r\n\t\t\titemName = item.getID();\r\n\t\ttxtItemName = guifactory.createTextArea(itemName, \"txtItemName\", pnlPanel);\r\n\t\ttxtItemName.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getY() + 10\t\r\n\t\t\t\t));\r\n\r\n\r\n\t\t// PANEL PICTURE\r\n\r\n\t\tVector3D pnlInteractionPos = pnlInteraction.getPosition( TransformSpace.GLOBAL);\r\n\t\tpnlPicture = guifactory.createPanel( pnlInteractionPos.getX()+50, pnlInteractionPos.getY()+50, 100, 100, \"pnlPicture\", pnlInteraction);\r\n\t\tpnlPicture.setAnchor( PositionAnchor.CENTER);\r\n\t\tpnlPicture.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\tpnlInteractionPos.getX() + pnlInteraction.getWidthXY( TransformSpace.GLOBAL)/2,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 50 + pnlPicture.getHeightXY( TransformSpace.GLOBAL)/2\r\n\t\t\t\t));\r\n\t\tpnlPicture.setTexture( GUITextures.instance().getByDevice( DeviceType.getDeviceType( device)));\r\n\t\t\r\n\t\t\r\n\t\t// POWER USAGE TEXTAREA\r\n\t\t\r\n\t\tString powerUsage = \"n/a\";\r\n\t\tif( device.getPowerUsage() != null && device.getPowerUsage().getValue() != null){\r\n\t\t\tpowerUsage = device.getPowerUsage().getValue().toString();\r\n\t\t}\r\n\t\t\r\n\t\ttxtPowerUsage = guifactory.createTextArea( \"Power usage: \" + powerUsage + \" Watts\", \"txtPowerUsage\", pnlInteraction);\r\n\t\ttxtPowerUsage.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 140\t\t\r\n\t\t\t\t\t\t));\r\n\t\ttxtPowerUsage.setVisible( false);\r\n\t\t\r\n\t\t\r\n\t\t// ON/OFF BUTTON\r\n\t\t\r\n\t\tbtnOnOff = guifactory.createButton( \"Turn device On/Off\", \"btnOnOff\", pnlInteraction);\r\n\t\tbtnOnOff.setPosition( txtPowerUsage.getPosition( TransformSpace.GLOBAL));\r\n\t\tbtnOnOff.addGestureListener( TapProcessor.class, new BtnOnOffListener());\r\n\t\t\r\n\t\t\r\n\t\t// SUBDEVICE BUTTON PANEL\r\n\t\t\r\n\t\tpnlSubDeviceButtons = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getX(),\r\n\t\t\t\tbtnOnOff.getVectorNextToComponent( 10, false).getY(),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tdevice.getSubDevice().size() * (btnOnOff.getHeight()+10),\r\n\t\t\t\t\"pnlSubDeviceButtons\",\r\n\t\t\t\tpnlInteraction);\r\n\t\t\r\n\t\t// SUB DEVICE BUTTONS\r\n\t\t\r\n\t\tsubDeviceButtons = new LinkedList<MTButton>();\r\n\t\tfor( int i = 0; i < device.getSubDevice().size(); i++){\r\n\t\t\t\r\n\t\t\tPhysicalDevice subDevice = device.getSubDevice().get( i);\r\n\t\t\t\r\n\t\t\t// get button's caption\r\n\t\t\tString caption = subDevice.getName();\r\n\t\t\tif(caption == null || caption.equals( \"\"))\r\n\t\t\t\tcaption = subDevice.getId();\r\n\t\t\t\r\n\t\t\tMTButton btnSubDevice = guifactory.createButton( caption, \"btnSubDevice_\" + subDevice.getId(), pnlSubDeviceButtons);\r\n\t\t\tbtnSubDevice.setPosition(\r\n\t\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\t\r\n\t\t\t\t\t\tpnlSubDeviceButtons.getPosition( TransformSpace.GLOBAL).getY() + i*(btnSubDevice.getHeight() + 10)\r\n\t\t\t\t\t));\r\n\t\t\t\r\n\t\t\tsubDeviceButtons.add( btnSubDevice);\r\n\t\t\tbtnSubDevice.addGestureListener( TapProcessor.class, new BtnSubDeviceListener( subDevice));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// EDIT BUTTON\r\n\t\t\r\n\t\tbtnEdit = guifactory.createButton( \"Edit\", \"btnEdit\", pnlInteraction);\r\n\t\tbtnEdit.setPosition( new Vector3D( xPos, app.getHeight() - 2*btnEdit.getHeight() - 30));\r\n\t\tbtnEdit.addGestureListener( TapProcessor.class, new BtnEditListener());\r\n\t\t\r\n\t\t\r\n\t\t// BUTTON HIDE\r\n\t\t\r\n\t\tbtnHide = guifactory.createButton( \"Hide menu\", \"btnHide\", pnlPanel);\r\n\t\tbtnHide.setPosition( new Vector3D( xPos, app.getHeight() - btnHide.getHeight() - 20));\r\n\t\tbtnHide.addGestureListener( TapProcessor.class, new BtnHideListener());\r\n\t\t\r\n\t\t\r\n\t\t///// EDIT-ELEMENTS /////\r\n\r\n\t\tchkMovePlanar = guifactory.createCheckButton( \"Move planar\", \"chkMovePlanar\", pnlEdit);\r\n\t\tchkMovePlanar.setPosition(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\ttxtItemName.getPosition( TransformSpace.GLOBAL).getY() + txtItemName.getHeightXY( TransformSpace.GLOBAL)+ 20\t\r\n\t\t\t\t));\r\n\t\tchkMovePlanar.addGestureListener( TapProcessor.class, new ChkMovePlanarListener());\r\n\r\n\t\t\r\n\t\tchkMoveY = guifactory.createCheckButton( \"Move up/down\", \"chkMoveY\", pnlEdit);\r\n\t\tchkMoveY.setPosition( chkMovePlanar.getVectorNextToComponent( 10, false));\r\n\t\tchkMoveY.addGestureListener( TapProcessor.class, new ChkMoveYListener());\r\n\r\n\t\t\r\n\t\tchkRotate = guifactory.createCheckButton( \"Rotate\", \"chkRotate\", pnlEdit);\r\n\t\tchkRotate.setPosition( chkMoveY.getVectorNextToComponent( 10, false));\r\n\t\tchkRotate.addGestureListener( TapProcessor.class, new ChkRotateListener());\r\n\r\n\t\t\r\n\t\tchkScale = guifactory.createCheckButton( \"Scale\", \"chkScale\", pnlEdit);\r\n\t\tchkScale.setPosition( chkRotate.getVectorNextToComponent( 10, false));\r\n\t\tchkScale.addGestureListener( TapProcessor.class, new ChkScaleListener());\r\n\r\n\t\t\r\n\t\tbtnChangeVisualisation = guifactory.createButton( \"Change Style\", \"btnChangeVisualisation\", pnlEdit);\r\n\t\tbtnChangeVisualisation.setPosition( chkScale.getVectorNextToComponent( 10, false));\r\n\t\tbtnChangeVisualisation.addGestureListener( TapProcessor.class, new BtnChangeVisualisationListener());\r\n\t\t\r\n\t\t\r\n\t\tbtnSave = guifactory.createButton( \"Save\", \"btnSave\", pnlEdit);\r\n\t\tbtnSave.setPosition( btnEdit.getPosition());\r\n\t\tbtnSave.addGestureListener( TapProcessor.class, new BtnSaveListener());\r\n\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\tsetPanelColor(homePanel);\n\t\t\t\tsidePanelInterface.setPanel(\"homePanel\");\n\t\t\t}", "public void interactWithKeyboard() {\n StdDraw.setCanvasSize(WIDTH * 16, HEIGHT * 16);\n StdDraw.setXscale(0, WIDTH);\n StdDraw.setYscale(0, HEIGHT);\n createMenu();\n StdDraw.enableDoubleBuffering();\n while (true) {\n if (StdDraw.hasNextKeyTyped()) {\n char input = Character.toUpperCase(StdDraw.nextKeyTyped());\n if (input == 'v' || input == 'V') {\n StdDraw.enableDoubleBuffering();\n StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a name: \" + name);\n StdDraw.text(WIDTH / 2, HEIGHT * 5 / 6, \"Press # to finish.\");\n StdDraw.show();\n while (true) {\n if (StdDraw.hasNextKeyTyped()) {\n char next = StdDraw.nextKeyTyped();\n if (next == '#') {\n createMenu();\n break;\n } else {\n name += next;\n StdDraw.enableDoubleBuffering(); StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a name: \" + name);\n StdDraw.text(WIDTH / 2, HEIGHT * 5 / 6, \"Press # to finish.\");\n StdDraw.show();\n }\n }\n }\n }\n if (input == 'l' || input == 'L') {\n toInsert = loadWorld();\n if (toInsert.substring(0, 1).equals(\"k\")) {\n floorTile = Tileset.GRASS;\n }\n toInsert = toInsert.substring(1);\n interactWithInputString(toInsert);\n ter.renderFrame(world);\n startCommands();\n }\n if (input == 'n' || input == 'N') {\n toInsert += 'n';\n StdDraw.enableDoubleBuffering();\n StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a seed: \" + toInsert);\n StdDraw.show();\n while (true) {\n if (!StdDraw.hasNextKeyTyped()) {\n continue;\n }\n char c = StdDraw.nextKeyTyped();\n if (c == 's' || c == 'S') {\n toInsert += 's';\n StdDraw.enableDoubleBuffering();\n StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a seed: \" + toInsert);\n StdDraw.show(); interactWithInputString(toInsert);\n ter.renderFrame(world); mouseLocation(); startCommands();\n break;\n }\n if (c != 'n' || c != 'N') {\n toInsert += c;\n StdDraw.enableDoubleBuffering(); StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a seed: \" + toInsert);\n StdDraw.show();\n }\n }\n }\n if (input == 'l' || input == 'L') {\n toInsert = loadWorld();\n if (toInsert.substring(0, 1).equals(\"k\")) {\n floorTile = Tileset.GRASS;\n }\n toInsert = toInsert.substring(1); interactWithInputString(toInsert);\n ter.renderFrame(world); startCommands();\n }\n }\n }\n }", "public void draw() {\n GraphicsContext gc = getGraphicsContext2D();\n /*gc.clearRect(0, 0, getWidth(), getHeight());\n\n if (squareMap != null) {\n squareMap.draw(gc);\n }\n if (hexMap != null) {\n hexMap.draw(gc);\n }*/\n\n // Draw animations\n for (SpriteAnimationInstance anim : animationList) {\n anim.draw(gc);\n }\n\n // Lastly draw the dialogue window, no matter which canvas\n // we are on, all the same.\n DfSim.dialogueWindow.draw(gc);\n\n /*if (landMap != null) {\n landMap.draw(gc);\n }*/\n\n // Draw a border around the canvas\n //drawBorder(gc);\n\n // And now just draw everything directly from the simulator\n /*for (Raindrop item : sim.getDrops()) {\n drawMovableCircle(gc, item);\n }\n for (Earthpatch item : sim.getPatches()) {\n drawMovableCircle(gc, item);\n }\n for (SysShape item : sim.getShapes()) {\n drawSysShape(gc, item);\n }\n for (Spike item : sim.getSpikes()) {\n drawMovablePolygon(gc, item);\n }\n for (GravityWell item : sim.getGravityWells()) {\n drawGravityWell(gc, item);\n }*/\n }", "private void initControlsPage()\r\n {\n \tString keyTitleString = \"KEYBOARD\";\r\n \tkeyTitleText = new OText(25, 200, 300, keyTitleString);\r\n \tkeyTitleText.setFont(\"Courier New\", 20, 1.0, 'C', Settings.themes.textColor);\r\n \t\r\n \t//Initialize the keyboard movement text\r\n \tString keyMoveString = \"Move Optimus with the WASD keys \"\r\n \t\t\t + \" <br> \"\r\n \t\t\t + \"as if they were the arrow keys.\";\r\n \tkeyMoveText = new OText(25, 225, 300, keyMoveString);\r\n \tkeyMoveText.setFont(\"Courier New\", 14, 1.0, 'C', Settings.themes.textColor);\r\n \t\r\n \t\r\n \t//Initialize the mouse title text\r\n \tString mouseTitleString = \"MOUSE\";\r\n \tmouseTitleText = new OText(375, 200, 300, mouseTitleString);\r\n \tmouseTitleText.setFont(\"Courier New\", 20, 1.0, 'C', Settings.themes.textColor);\r\n \t\r\n \t//Initialize the mouse text\r\n \tString mouseMoveString = \"Aim by moving the mouse and shoot bullets from Optimus in the direction of the cursor using both clicks. \";\r\n \tmouseText = new OText(375, 225, 300, mouseMoveString);\r\n \tmouseText.setFont(\"Courier New\", 14, 1.0, 'C', Settings.themes.textColor);\r\n }", "public void display() {\n push();\n noStroke();\n\n // creates the Box around the menus\n fill(backgroundColor); // light grey\n rect(0, 0, sidebarWidth, height);\n\n // for loops that draws each scenes icon\n for (int i = 0; i < sceneAmount; i++) {\n\n //checks the for loop has reach the icon for the current scene\n if (i == scene) {\n push();\n\n // Draws a rectancle in the place where the icon is gonna be\n fill(chosenColor); // light blue color\n rect(0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n pop();\n }\n \n\n // Draws the icons one after the others with a determined distance between them\n image(sidebarLogos[i], 0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n\n // if chosen scene draws glow effect ontop\n if (i == scene) {\n image(glow, 0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n }\n }\n\n // draws shadow image ontop of all the icons\n image(shadow, 0, 0);\n pop();\n }", "public void openLoginMenu()\n {\n login.drawMainMenu();\n }", "private void northRegion() {\r\n\t\tthis.addComponent(BorderLayout.NORTH, sv);\r\n\t\t\r\n\t\tToolbar toolBar = new Toolbar();\r\n\t\tsetToolbar(toolBar);\r\n\t\ttoolBar.setTitle(\"ThePath Game\");\r\n\t\t\r\n\t\tCheckBox soundCheckBox = new CheckBox(\"Side Menu Item Check\");\r\n\t\tsoundCheckBox.getAllStyles().setBgTransparency(255);\r\n\t\tsoundCheckBox.getAllStyles().setBgColor(ColorUtil.LTGRAY);\r\n\t\t\r\n\t\tSoundCommand soundCommand = new SoundCommand(gw);\r\n\t\tsoundCheckBox.setCommand(soundCommand);\r\n\t\ttoolBar.addComponentToSideMenu(soundCheckBox);\r\n\t\t\r\n\t\tAccelerateCommand accelerateCommand = new AccelerateCommand(gw);\r\n\t\ttoolBar.addCommandToLeftSideMenu(accelerateCommand);\r\n\t\t\r\n\t\tAboutCommand aboutCommand = new AboutCommand(gw);\r\n\t\ttoolBar.addCommandToLeftSideMenu(aboutCommand);\r\n\t\t\r\n\t\tHelpCommand helpCommand = new HelpCommand(gw);\r\n\t\ttoolBar.addCommandToRightBar(helpCommand);\r\n\t\t\r\n\t\tExitCommand exitCommand = new ExitCommand();\r\n\t\ttoolBar.addCommandToLeftSideMenu(exitCommand);\r\n\t}", "public void drawComponent(Minecraft minecraft, int mouseX, int mouseY) {\n\n\t}", "@Override\r\n public void start(Stage primaryStage) {\r\n \r\n \r\n // StackPane root = new StackPane(); \r\n Scene scene = new Scene(root, 900, 900); //set up a window with these propotions\r\n \r\n primaryStage.setTitle(\"Keep it Clean simulator\"); //window title\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n \r\n setLayout();\r\n \r\n drawUI.Draw(dataInput, tileMin, tileMax);\r\n }", "GUIbrain() {\n addMouseListener(this);\n addMouseMotionListener(this);\n createGUI(this);\n }" ]
[ "0.6946808", "0.68646365", "0.6770502", "0.67629194", "0.6740502", "0.6706079", "0.66826224", "0.6662741", "0.6555545", "0.649702", "0.6481557", "0.64224344", "0.64080316", "0.63995373", "0.6393826", "0.63865334", "0.6380147", "0.6377191", "0.6373137", "0.63694173", "0.6354509", "0.6322633", "0.62931776", "0.6292991", "0.62920016", "0.6289451", "0.6284441", "0.62777627", "0.62763375", "0.6273828", "0.62643933", "0.6255996", "0.6225239", "0.62223095", "0.62158436", "0.6210986", "0.62088084", "0.6207845", "0.6203636", "0.6203272", "0.6193861", "0.6186851", "0.6184979", "0.6183004", "0.6168896", "0.61656624", "0.61634177", "0.61612785", "0.6159915", "0.6159269", "0.61509585", "0.6147956", "0.6138158", "0.613424", "0.6133232", "0.61324435", "0.61278737", "0.6125739", "0.6124424", "0.6124308", "0.61204886", "0.61174667", "0.61152345", "0.6114328", "0.610347", "0.60882986", "0.6087055", "0.6081134", "0.6079655", "0.6067085", "0.6062684", "0.6062367", "0.6060902", "0.6060503", "0.60582674", "0.6057434", "0.60472", "0.60468197", "0.6042395", "0.60388345", "0.60348576", "0.6027397", "0.6021797", "0.60212207", "0.6018944", "0.60182637", "0.6015456", "0.6014324", "0.6012951", "0.60122824", "0.6011045", "0.6000722", "0.5998447", "0.5994108", "0.5992605", "0.5992257", "0.5990839", "0.598639", "0.5985504", "0.5984216" ]
0.72909
0
drawing components of menus or simulation on the screen
void draw();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void renderMenu() {\n StdDraw.setCanvasSize(START_WIDTH * TILE_SIZE, START_HEIGHT * TILE_SIZE);\n Font font = new Font(\"Monaco\", Font.BOLD, 20);\n StdDraw.setFont(font);\n StdDraw.setXscale(0, START_WIDTH );\n StdDraw.setYscale(0, START_HEIGHT );\n StdDraw.clear(Color.BLACK);\n StdDraw.setPenColor(Color.WHITE);\n StdDraw.enableDoubleBuffering();\n StdDraw.text(START_WIDTH / 2, START_HEIGHT * 2 / 3, \"CS61B The Game\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2 + 2, \"New Game (N)\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2, \"Load Game (L)\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2 - 2 , \"Quit (Q)\");\n StdDraw.show();\n }", "public void display() {\n push();\n noStroke();\n\n // creates the Box around the menus\n fill(backgroundColor); // light grey\n rect(0, 0, sidebarWidth, height);\n\n // for loops that draws each scenes icon\n for (int i = 0; i < sceneAmount; i++) {\n\n //checks the for loop has reach the icon for the current scene\n if (i == scene) {\n push();\n\n // Draws a rectancle in the place where the icon is gonna be\n fill(chosenColor); // light blue color\n rect(0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n pop();\n }\n \n\n // Draws the icons one after the others with a determined distance between them\n image(sidebarLogos[i], 0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n\n // if chosen scene draws glow effect ontop\n if (i == scene) {\n image(glow, 0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n }\n }\n\n // draws shadow image ontop of all the icons\n image(shadow, 0, 0);\n pop();\n }", "void drawMenu(IMenu menuToBeRendered);", "public static void mainMenu() {\n\t\tStdDraw.setCanvasSize(600, 600);\n\t\tStdDraw.setScale(0, 1000);\n\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\tStdDraw.filledRectangle(500, 500, 1000, 1000);\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tFont font = new Font(\"Sans Serif\", 20, 20);\n\t\tStdDraw.setFont(font);\n\t\tStdDraw.text(500, 850, \"Six Men Morris Game\");\n\t\tStdDraw.text(500, 750, \"Game Created By: \");\n\t\tStdDraw.text(500, 700, \"Phillip Pavlich, Prakhar Jalan, Dinesh Balakrishnan\");\n\t\tStdDraw.filledRectangle(500, 500, 205, 75);\n\t\tStdDraw.filledRectangle(500, 300, 205, 75);\n\t\tStdDraw.filledRectangle(500, 100, 205, 75);\n\t\t\n\t\tStdDraw.setFont();\n\t\tStdDraw.setPenColor(StdDraw.ORANGE);\n\t\tStdDraw.setPenRadius(0.05);\n\n\t\tStdDraw.filledRectangle(500, 500, 200, 70);\n\t\tStdDraw.filledRectangle(500, 300, 200, 70);\n\t\tStdDraw.filledRectangle(500, 100, 200, 70);\n\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tStdDraw.text(500, 500, \"Start New Game\");\n\t\tStdDraw.text(500, 300, \"Continue Game\");\n\t\tStdDraw.text(500, 100, \"Load Saved Game\");\n\t}", "private void paintMenu(){ \n\t\t\n\t\t//Idee: Vllt. lieber Menü auf unsichtbar setzen und immer wieder anzeigen, wenn benötigt? Vllt. auch praktisch für Pause...Aber was mit entsprechenden Labels?\n\t\tif(spiel_status == 3){ //Spiel noch gar nicht gestartet\n\t\t\tframe3 = new JFrame(\"Spiel starten?\");\n\t\t\tframe3.setLocation(650,300);\n\t\t\tframe3.setSize(100, 100);\n\t\t\tJButton b1 = new JButton(\"Einzelspieler\");\n\t\t\tb1.setMnemonic(KeyEvent.VK_ENTER);//Shortcut Enter\n\t\t\tJButton b2 = new JButton(\"Beenden\");\n\t\t\tb2.setMnemonic(KeyEvent.VK_ESCAPE);//Shortcut Escape\n\t\t\tJButton b3 = new JButton(\"Mehrspieler\");\n\t\t\tJButton b4 = new JButton(\"Einstellungen\");\n\t\t\tJButton b5 = new JButton(\"Handbuch\");\n\t\t\t\n\t\t\t//Neues Layout. 4 Zeilen, 1 Spalte. \n\t\t\tframe3.setLayout(new GridLayout(5,1));\n\t\t\tframe3.add(b1);\n\t\t\tframe3.add(b3);\n\t\t\tframe3.add(b4);\n\t\t\tframe3.add(b5);\n\t\t\tframe3.add(b2);\n\n\t\t\tframe3.pack();\n\t\t\tframe3.setVisible(true);\n\t\t\t\n\t\t\t\n\t\t\tb1.addActionListener(new ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0){\n\t\t\t\t\tsingleplayer = true;\n\t\t\t\t\tdoInitializations(frame3);\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\t\n\t\t\tb2.addActionListener(new ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent arg1){ //bzgl. Schließen\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t\tb3.addActionListener(new ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent arg1){\n\t\t\t\t\tmultiplayer = true;\n\t\t\t\t\tpaintNetworkMenu();\n\t\t\t\t}\n\t\t\t});\t\t\t\n\t\t\t\n\t\t\tb4.addActionListener(new ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent arg1){\n\t\t\t\t\tpaintSettingMenu();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tb5.addActionListener(new ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent arg1){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tRuntime.getRuntime().exec(\"rundll32 url.dll,FileProtocolHandler \"+ \"resources\\\\handbuch\\\\Handbuch.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\t\t}\n\t\t\t});\n\t\t\t\n\t\t}\n\t\t\n\t\tif(spiel_status == 1|| spiel_status == 0){ //Wenn Spiel gewonnen oder verloren\n//\t\t\tif (!multiplayer){\n\t\t\t\tframe2 = new JFrame(\"Neues Einzelspielerspiel?\");\n\t\t\t\tframe2.setLocation(500,300);\n\t\t\t\tframe2.setSize(100, 100);\n\t\t\t\tJLabel label;\n\t\t\t\tif(spiel_status == 1){\n\t\t\t\t\tlabel = new JLabel(\"Bravo, du hast gewonnen! Neues Einzelspielerspiel?\");\n\t\t\t\t}else{\n\t\t\t\t\tif(player.getLifes() == 0){\n\t\t\t\t\t\tlabel = new JLabel(\"Schade, du hast verloren! Neues Einzelspielerspiel?\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlabel = new JLabel(\"Du hast gewonnen! Neues Einzelspielerspiel?\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tframe2.add(BorderLayout.NORTH, label);\n\t\t\t\tJButton b1 = new JButton(\"Neues Einzelspielerspiel\");\n\t\t\t\tb1.setMnemonic(KeyEvent.VK_ENTER);//Shortcut Enter\n\t\t\t\tb1.addActionListener(new ActionListener(){\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0){ //bzgl. Starten\n\t\t\t\t\t\tsoundlib.stopLoopingSound();\n\t\t\t\t\t\tdoInitializations(frame2);\n\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\tJButton b2 = new JButton(\"Zurück zum Hauptmenü\");\n\t\t\t\tb2.setMnemonic(KeyEvent.VK_ESCAPE);//Shortcut Escape\n\t\t\t\tb2.addActionListener(new ActionListener(){\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg1){ //bzgl. Schließen\n\t\t\t\t\t\tsoundlib.stopLoopingSound();\n\t\t\t\t\t\tspiel_status=3;\n\t\t\t\t\t\tpaintMenu();\n\t\t\t\t\t\tframe2.setVisible(false);\n\t\t\t\t\t\t\n\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\tframe2.add(BorderLayout.CENTER, b1);\n\t\t\t\tframe2.add(BorderLayout.SOUTH, b2);\n\t\t\t\tframe2.pack();\n\t\t\t\tframe2.setVisible(true);\n\t\t\t\tspiel_status = 0;\n\t\t\t}\n//\t\t}else{\n//\t\t\tframe2 = new JFrame(\"Ende\");\n//\t\t\tframe2.setLocation(500,300);\n//\t\t\tframe2.setSize(100, 100);\n//\t\t\tJLabel label;\n//\t\t\tif(player.getLifes() == 0){\n//\t\t\t\tlabel = new JLabel(\"Du Lusche hast verloren!\");\n//\t\t\t}else{\n//\t\t\t\tlabel = new JLabel(\"Boom-Headshot! Du hast gewonnen!\");\n//\t\t\t}\n//\t\t\t\n//\t\t\tframe2.add(BorderLayout.NORTH, label);\n//\t\t\t\n//\t\t\tJButton b2 = new JButton(\"Zurück zum Hauptmenü\");\n//\t\t\tb2.setMnemonic(KeyEvent.VK_ESCAPE);//Shortcut Escape\n//\t\t\tb2.addActionListener(new ActionListener(){\n//\t\t\t\tpublic void actionPerformed(ActionEvent arg1){ //bzgl. Schließen\n//\t\t\t\t\tif(sound_running){\n//\t\t\t\t\t\tsoundlib.stopLoopingSound();\n//\t\t\t\t\t}\n//\t\t\t\t\tspiel_status=3;\n//\t\t\t\t\tpaintMenu();\n//\t\t\t\t\tframe2.setVisible(false);\n//\t\t\t\t\tframe2.dispose();\n//\t\t\t\t\t\n//\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\tframe2.add(BorderLayout.CENTER, b2);\n//\t\t\tframe2.pack();\n//\t\t\tframe2.setVisible(true);\n//\t\t\tspiel_status = 0;\n//\t\t}\n\t\tspiel_status = 0; // Daraus folgt, dass wenn man das Spiel per ESC-taste verlässt, man verliert.\n\t\t\n\t}", "public void draw() {\n GraphicsContext gc = getGraphicsContext2D();\n /*gc.clearRect(0, 0, getWidth(), getHeight());\n\n if (squareMap != null) {\n squareMap.draw(gc);\n }\n if (hexMap != null) {\n hexMap.draw(gc);\n }*/\n\n // Draw animations\n for (SpriteAnimationInstance anim : animationList) {\n anim.draw(gc);\n }\n\n // Lastly draw the dialogue window, no matter which canvas\n // we are on, all the same.\n DfSim.dialogueWindow.draw(gc);\n\n /*if (landMap != null) {\n landMap.draw(gc);\n }*/\n\n // Draw a border around the canvas\n //drawBorder(gc);\n\n // And now just draw everything directly from the simulator\n /*for (Raindrop item : sim.getDrops()) {\n drawMovableCircle(gc, item);\n }\n for (Earthpatch item : sim.getPatches()) {\n drawMovableCircle(gc, item);\n }\n for (SysShape item : sim.getShapes()) {\n drawSysShape(gc, item);\n }\n for (Spike item : sim.getSpikes()) {\n drawMovablePolygon(gc, item);\n }\n for (GravityWell item : sim.getGravityWells()) {\n drawGravityWell(gc, item);\n }*/\n }", "public static void MainMenuComponents(){\n\t\tInterface.menu = new JPanel(new GridBagLayout()) {\n\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\tpublic void paintComponent(Graphics g) {\n\n\t\t\t\tg.drawImage(Interface.img, 0, 0, null);\n\t\t\t}\n\t\t};\n\t\tInterface.single.setPreferredSize(Interface.dim);\n\t\tInterface.single.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.single.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.single.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.single.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.multi.setPreferredSize(Interface.dim);\n\t\tInterface.multi.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.multi.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.multi.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.multi.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.options.setPreferredSize(Interface.dim);\n\t\tInterface.options.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.options.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.options.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.options.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.exit.setPreferredSize(Interface.dim);\n\t\tInterface.exit.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.exit.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.exit.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.exit.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.game.setFocusable(true);\n\t\tInterface.menu.setFocusable(true);\n\t\t\n\t\t\n\t\tInterface.backtosingle.setPreferredSize(Interface.dim);\n\t\tInterface.backtosingle.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtosingle.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtosingle.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtosingle.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtomulti.setPreferredSize(Interface.dim);\n\t\tInterface.backtomulti.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtomulti.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtomulti.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtomulti.setForeground(Color.white);\n\t}", "@Override\n public void paintComponent(Graphics gg){\n \tGraphics2D g = (Graphics2D) gg;\n \tg.setColor(new Color(0,0,0));\n \tg.fillRect(0, 0, width, height);\n \t/// Draw Functions ///\n \t//menus.drawMenus(g);\n \t/// Rest ///\n \tfor(PhysicsObject obj: objects){\n \t\tobj.drawSelf(g);\n \t}\n \tg.setColor(new Color(255,255,255));\n \tg.fillOval(mx-3, my-3, 5, 5);\n }", "public void drawUI() {\n \n stroke(0);\n textSize(titleH/3);\n textAlign(CENTER, CENTER);\n rectMode(CORNER);\n \n noFill();\n rect(titleX, titleY, titleW, titleH);\n image(logo, 0, 0);\n fill(0);\n text(\"EPBox: Ordinering\", titleX, titleY, titleW, titleH-15);\n \n if (!informationSeen) {\n uielement.informationDialog(\"EPBox: Ordinering\", \"Velkommen til EPBox: Ordinering.\\n\\nHvis det er første gang du kører programmet, bedes du gå igennem opsætning af programmet.\\nMangler du hjælp til dette, kan du gå ind på de relevante menuer, eller konsultere brugsanvisningen.\", \"information\");\n informationSeen = true;\n }\n\n uielement.infoHelpBttnSTART(\"Hvis det er første gang du kører programmet, bedes du gå igennem opsætning af programmet.\\nMangler du hjælp til dette, kan du gå ind på de relevante menuer, eller konsultere brugsanvisningen.\");\n\n }", "@Override\n\tpublic void showContents() {\n\t\tprogram.add(Background);\n\t\tprogram.add(lvl1);\n\t\tprogram.add(lvl2);\n\t\tprogram.add(lvl3);\n\t\tprogram.add(Back);\n\n\t}", "public DrawGUI() {\n\n\t\tthis.setTitle(\"Draw 0.2\");\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(\"img/logo.png\"));\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdrawingContainer = new DrawingContainer();\n\t\tscrollpane = new JScrollPane(drawingContainer);\n\n\t\tcontroller = new DrawingController(this);\n\t\ttools = new ToolBox(controller);\n\t\tcontroller.newDrawing(new Dimension(500, 380));\n\n\t\t// statusBar = new StatusBar();\n\n\t\tgetContentPane().add(tools, BorderLayout.WEST);\n\t\tgetContentPane().add(scrollpane, BorderLayout.CENTER);\n\t\t// getContentPane().add(statusBar, BorderLayout.SOUTH);\n\n\t\tMenuListener mainMenuListener = new MenuListener(controller);\n\t\tJMenuBar mainMenu = new MainMenu(mainMenuListener);\n\t\tthis.setJMenuBar(mainMenu);\n\n\t\tpack();\n\t\tsetVisible(true);\n\n\t}", "@Override\n\tpublic void paint(Graphics graphics) {\n\t\ttry {\n\t\t\t// calls default paint functions in parent object\n\t\t\tsuper.paintComponents(s.getDrawGraphics());\n\n\t\t\t// sets buffer panel to size of window\n\t\t\tbufferPanel.setBounds(0, 0, this.getWidth(), this.getHeight());\n\t\t\t// calls function to draw onto g\n\t\t\tGraphics2D g = (Graphics2D) s.getDrawGraphics();\n\t\t\tdrawJavaString(i_console);\n\t\t\tdrawJavaString(i_palette);\n\n\t\t\tif (i_console_docked) {\n\t\t\t\ti_console.setBounds(p_console.getBounds());\n\t\t\t}\n\t\t\tif (i_palette_docked) {\n\t\t\t\ti_palette.setBounds(p_palette.getBounds());\n\t\t\t}\n\n\t\t\tcontroller.showRects(g);\n\n\t\t\tif(!rightMenuClick){\n\t\t\t\tif(this.getExtendedState() == Frame.MAXIMIZED_BOTH){\n\t\t\t\t\tg.translate(i_palette.getBounds().x, i_palette.getBounds().y+45);\n\t\t\t\t\ti_palette.paintAll(g);\n\t\t\t\t\tg.translate(i_console.getBounds().x - i_palette.getBounds().x, i_console.getBounds().y - i_palette.getBounds().y);\n\t\t\t\t\ti_console.paintAll(g);\n\t\t\t\t\tController.fullscreen = true;\n\t\t\t\t}else{\n\t\t\t\t\tg.translate(i_palette.getBounds().x+5, i_palette.getBounds().y+51);\n\t\t\t\t\ti_palette.paintAll(g);\n\t\t\t\t\tg.translate(i_console.getBounds().x - i_palette.getBounds().x, i_console.getBounds().y - i_palette.getBounds().y);\n\t\t\t\t\ti_console.paintAll(g);\n\t\t\t\t\tController.fullscreen = false;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcontroller.showBorders(g, 5, 51);\n\t\t\t}\n\n\t\t\ts.show();\n\t\t\tToolkit.getDefaultToolkit().sync();\n\t\t\tif (rectToBeRemoved != -1) {\n\t\t\t\tdelete(rectToBeRemoved);\n\t\t\t\tcontroller.getRects().remove(rectToBeRemoved);\n\t\t\t\trectToBeRemoved = -1;\n\t\t\t}\n\t\t\trepaint();\n\t\t} catch (Exception ex) {\n\t\t}\n\t}", "private void createSimulatorMode() {\n setSize(1000, 750);\n setLocation(new Point(200, 100));\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n\n Container content = getContentPane();\n content.setLayout(new GridBagLayout());\n \n GridBagConstraints c = new GridBagConstraints();\n \n map = new UAVMap(this, UAVModes.SIMULATION, false);\n smenu = new SimUAVMenu();\n toolBar = new SimUAVToolBar();\n map.addConnections(toolBar, smenu);\n smenu.addConnections(toolBar, map);\n toolBar.addConnections(smenu, map);\n \n c.gridy = 0;\n c.fill = GridBagConstraints.HORIZONTAL;\n c.weightx = 1;\n c.weighty = 0;\n content.add(smenu, c);\n \n c.gridy = 1;\n c.fill = GridBagConstraints.BOTH;\n c.weightx = 1;\n c.weighty = 0;\n content.add(toolBar, c);\n \n c.gridy = 2;\n c.fill = GridBagConstraints.BOTH;\n c.weightx = 1;\n c.weighty = 1;\n content.add(map.getCanvas(), c);\n \n setVisible(true);\n map.initializeSimulation();\n map.startTimer();\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 drawLoadMenu(){\n implementation.devDrawLoadMenu();\n }", "private void drawMenu(final Terminal term)\n {\n\n /*\n * Clear the area for the menu.\n */\n for (int row = firstRow; row < lastRow; row++)\n {\n term.moveCursor(firstColumn, row);\n for (int col = firstColumn; col < lastColumn; col++)\n {\n term.putCharacter(SPACE);\n }\n }\n\n /*\n * Draw all the options\n */\n final int minWidth = minWidth();\n for (int i = 0; i < options.size(); i++)\n {\n LanternaUtil.termPrint(term, options.get(i).getText(), minWidth, i + firstRow);\n }\n term.flush();\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}", "public void display() {\t\t\n\t\tparent.pushStyle();\n\t\t\n\t\t//parent.noStroke();\n\t\t//parent.fill(255);\n\t\tparent.noFill();\n\t\tparent.ellipse(pos.x, pos.y, diam, diam);\n\t\tnodeSpin.drawNode(pos.x, pos.y, diam);\n\t\t\n\t\t//This should match what happens in the hover animation\n\t\tif (focused && userId >= 0) {\n\t\t\tparent.fill(Sequencer.colors[userId]);\n\t\t\tparent.ellipse(pos.x, pos.y, diam, diam);\n\t\t}\n\t\t\n\t\trunAnimations();\n\t\t\n\t\tparent.popStyle();\n\t}", "private void drawWindowSetup(){\n\t\t//draw header\n\t\ttopBar.draw(graphics);\n\t\t//draw footer\n\t\tbottomBar.draw(graphics);\n\t\t//draw right bar\n\t\trightBar.draw(graphics);\n\t}", "void render() {\n\t\tif (!dragLock)\n\t\t\tfucusLocks();\n\n\t\t// display help information\n\t\tString selected = isSelected ? \" [selected]\" : \"\";\n\t\tmyParent.text(id + selected, anchor.x + 10, anchor.y);\n\n\t\t// display points and lines with their colourings\n\t\tfor (int i = 0; i < amount; i++) {\n\n\t\t\tpoint[i].render();\n\n\t\t\tif (state == State.DRAG_AREA)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\n\t\t\tline[i].draw();\n\n\t\t}\n\n\t\t// display rotation ellipse in anchor position\n\t\tif (state == State.ROTATE && isSelected) {\n\t\t\tmyParent.noFill();\n\t\t\tif (!dragLock)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\t\t\telse\n\t\t\t\tmyParent.stroke(0, 255, 0);\n\t\t\tmyParent.ellipse(anchor.x, anchor.y, 15, 15);\n\t\t}\n\n\t\t// display drag area rectangle in anchor position\n\t\tif (state == State.DRAG_AREA) {\n\t\t\tmyParent.noFill();\n\t\t\tif (!dragLock)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\t\t\telse\n\t\t\t\tmyParent.stroke(0, 255, 0);\n\t\t\tmyParent.rect(anchor.x, anchor.y, 15, 15);\n\t\t}\n\n\t\t// display anchor point\n\t\tmyParent.rect(anchor.x, anchor.y, 5, 5);\n\n\t\t// display line centres\n\t\tmyParent.noFill();\n\t\tmyParent.stroke(150);\n\t\tmyParent.rectMode(PConstants.CENTER);\n\t\tmyParent.rect(X.x, X.y, 5, 5);\n\t\tmyParent.rect(Y.x, Y.y, 5, 5);\n\t\tmyParent.rect(Z.x, Z.y, 5, 5);\n\t\tmyParent.rect(Q.x, Q.y, 5, 5);\n\t}", "@Override\n\tpublic void drawScreen(int mouseX, int mouseY, float partialTicks) {\n\t\t super.drawScreen(mouseX, mouseY, partialTicks);\n\t\t updateScreen();\n\t\t \n\t\t GuiScreen.drawRect(0, 0, 0 + fadeIn - fadeOut, this.height, Colorutils.rainbowEffect(index + x*20000000F, 1.0F).getRGB());\n\t\t // GuiButton.drawRect(left, top, right, bottom, color);\n\t\t this.scrollPanel.setDimensions(fadeIn * 3, this.height, fadeOut * 3, this.height);\n\t\t //this.scrollPanel.setDimensions(widthIn, heightIn, topIn, bottomIn);\n\t\t\t//this.drawRect(0, 65, 90 , 16, new Color(255, 255, 255).getRGB());\n\t\t\t//this.drawString(fontRendererObj, s1, 15, 15, -1);\n\t\t\t\n\t\t\t//this.buttonList.add(new GuiButton(191, 15, 15, \"Keystokes\"));\n\t\t \n\t\t // GuiCheckBox.drawRect(0, 65, 90, 16, new Color(0, 0, 0).getRGB());\n\t\t \n\t\t\t\n\t\t\t\n //this.drawRect(left, top, right, bottom, color);\n\t\t\t\n\t\t\t\n\tthis.scrollPanel.drawScreen(mouseX, mouseY, partialTicks);\n\t\t//this.drawCenteredString(this.fontRendererObj, \"Mod Options\", this.width / 2, 8, 16777215);\n\t\t\t\n\t\tsuper.drawScreen(mouseX, mouseY, partialTicks);\n\t}", "private static void showMenu(){\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"What would you like to do?\");\r\n\t\tSystem.out.println(\"0) Show Shape information\");\r\n\t\tSystem.out.println(\"1) Create Shape\");\r\n\t\tSystem.out.println(\"2) Calculate perimeter\");\r\n\t\tSystem.out.println(\"3) Calculate area\");\r\n\t\tSystem.out.println(\"4) Scale shape\");\r\n\t}", "public void drawButtons(){\r\n\t\tGuiBooleanButton showDirection = new GuiBooleanButton(1, 10, 20, 150, 20, \"Show Direction\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowdir(), \"showdir\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showdir\").split(\";\"));\r\n\t\tGuiChooseStringButton dirpos = new GuiChooseStringButton(2, width/2+50, 20, 150, 20, \"Dir-Position\", GuiPositions.getPosList(), \"posdir\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosDir()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showFPS= new GuiBooleanButton(3, 10, 45, 150, 20, \"Show FPS\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowfps(), \"showfps\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showfps\").split(\";\"));\r\n\t\tGuiChooseStringButton fpspos = new GuiChooseStringButton(4, width/2+50, 45, 150, 20, \"FPS-Position\", GuiPositions.getPosList(), \"posfps\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosFPS()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showCoor = new GuiBooleanButton(5, 10, 70, 150, 20, \"Show Coor\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowcoor(), \"showcoor\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showcoor\").split(\";\"));\r\n\t\tGuiChooseStringButton coorpos = new GuiChooseStringButton(6, width/2+50, 70, 150, 20, \"Coor-Position\", GuiPositions.getPosList(), \"poscoor\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosCoor()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showworldage = new GuiBooleanButton(7, 10, 95, 150, 20, \"Show WorldAge\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowWorldAge(), \"showworldage\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showworldage\").split(\";\"));\r\n\t\tGuiChooseStringButton worldagepos = new GuiChooseStringButton(8, width/2+50, 95, 150, 20, \"WorldAge-Position\", GuiPositions.getPosList(), \"posworldage\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosWorldAge()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\t\r\n\t\tGuiBooleanButton showFriendly = new GuiBooleanButton(7, 10, 120, 150, 20, \"Mark friendly spawns\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowingFriendlySpawns(), \"showfmobspawn\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showfriendlymobspawn\").split(\";\"));\r\n\t\tGuiBooleanButton showAggressiv = new GuiBooleanButton(7, 10, 145, 150, 20, \"Mark aggressiv spawns\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowingAggressivSpawns(), \"showamobspawn\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showaggressivmobspawn\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton dynamic = new GuiBooleanButton(7, width/2+50, 120, 150, 20, \"dynamic selection\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isDynamic(), \"dynamichsel\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.dynamicselection\").split(\";\"));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tGuiButton back = new GuiButton(9, width/2-100,height-50 , \"back to game\");\r\n\t\t\r\n\t\tbuttonList.add(showworldage);\r\n\t\tbuttonList.add(worldagepos);\r\n\t\tbuttonList.add(dirpos);\r\n\t\tbuttonList.add(fpspos);\r\n\t\tbuttonList.add(coorpos);\r\n\t\tbuttonList.add(showCoor);\r\n\t\tbuttonList.add(showFPS);\r\n\t\tbuttonList.add(showDirection);\r\n\t\t\r\n\t\tbuttonList.add(showFriendly);\r\n\t\tbuttonList.add(showAggressiv);\r\n\t\tbuttonList.add(dynamic);\r\n\t\t\r\n\t\tbuttonList.add(back);\r\n\t}", "public void draw() {\n\t //FrameRate should only 5 when there is no activity. Otherwise, 60\n if (!EventQueue.getInstance().isTiccing() && System.currentTimeMillis() - lastActive >= 300) {\n noLoop();\n setFrameRate(5);\n println(\"no draw activity\");\n } else{\n \t setFrameRate(60);\n }\n background(255);\n //Process menu data at the beginning\n // Menu menuSing = Menu.getInstance();\n // if ((boolean) menuSing.getControllerValue(\"Button0\")) {\n // KeyMap.getInstance().run('q');\n // }\n\n pushMatrix();\n //Enable scrolling\n translate(0, verticalScroll);\n StringManager.getInstance().draw();\n\n popMatrix();\n\n //if (frameCount % 10 == 0)System.out.println(frameRate);\n\n //Draw menu after\n Menu.getInstance().draw();\n }", "public void update()\r\n {\r\n for (int i = 0; i < _menubar.length; i++)\r\n {\r\n _menubar[i].draw();\r\n }\r\n _ausgewahlt.draw();\r\n }", "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 void displayMenu() {\n \n menuFrame = new JFrame(\"SnakeTrain\");\n menuFrame.setSize(1024, 768);\n menuFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n JPanel menuPanel = new JPanel();\n \n Play.setPreferredSize(new Dimension(250, 100));\n Instructions.setPreferredSize(new Dimension(250, 100));\n Exit.setPreferredSize(new Dimension(250, 100));\n \n Play.addActionListener(this);\n Instructions.addActionListener(this);\n Exit.addActionListener(this);\n \n //c = new JLabel(/*background image*/);\n menuFrame.setLayout(new FlowLayout());\n menuFrame.add(Play);\n menuFrame.add(Instructions);\n menuFrame.add(Exit);\n menuFrame.setVisible(true);\n \n }", "public void draw(){\n\t\tif(!visible) return;\n\n\t\twinApp.pushStyle();\n\t\twinApp.style(G4P.g4pStyle);\n\t\tPoint pos = new Point(0,0);\n\t\tcalcAbsPosition(pos);\n\n\t\t// Draw selected option area\n\t\tif(border == 0)\n\t\t\twinApp.noStroke();\n\t\telse {\n\t\t\twinApp.strokeWeight(border);\n\t\t\twinApp.stroke(localColor.txfBorder);\n\t\t}\n\t\tif(opaque)\n\t\t\twinApp.fill(localColor.txfBack);\n\t\telse\n\t\t\twinApp.noFill();\n\t\twinApp.rect(pos.x, pos.y, width, height);\n\t\t\n\t\t// Draw selected text\n\t\twinApp.noStroke();\n\t\twinApp.fill(localColor.txfFont);\n\t\twinApp.textFont(localFont, localFont.getSize());\n\t\twinApp.text(text, pos.x + PADH, pos.y -PADV +(height - localFont.getSize())/2, width - 16, height);\n\n\t\t// draw drop down list\n\t\twinApp.fill(winApp.color(255,255));\n\t\tif(imgArrow != null)\n\t\t\twinApp.image(imgArrow, pos.x + width - imgArrow.width - 1, pos.y + (height - imgArrow.height)/2);\n\t\tif(expanded == true){\n\t\t\tGOption opt;\n\t\t\twinApp.noStroke();\n\t\t\twinApp.fill(localColor.txfBack);\n\t\t\twinApp.rect(pos.x,pos.y+height,width,nbrRowsToShow*height);\n\n\t\t\tfor(int i = 0; i < optGroup.size(); i++){\n\t\t\t\topt = optGroup.get(i);\n\t\t\t\tif(i >= startRow && i < startRow + nbrRowsToShow){\n\t\t\t\t\topt.visible = true;\n\t\t\t\t\topt.y = height * (i - startRow + 1);\n\t\t\t\t\topt.draw();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\topt.visible = false;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Draw box round list\n\t\t\tif(border != 0){\n\t\t\t\twinApp.strokeWeight(border);\n\t\t\t\twinApp.stroke(localColor.txfBorder);\n\t\t\t\twinApp.noFill();\n\t\t\t\twinApp.rect(pos.x,pos.y+height,width,nbrRowsToShow*height);\n\t\t\t}\n\t\t\tif(optGroup.size() > maxRows){\n\t\t\t\tslider.setVisible(true);\n\t\t\t\tslider.draw();\n\t\t\t}\n\t\t}\n\t\twinApp.popStyle();\n\t}", "void createMenus(Container cp) {\r\n createMenu4Shape(cp);\r\n createMenu4Color(cp);\r\n createMenu4Filled(cp);\r\n createButtons(cp);\r\n }", "@Override\n public void paintComponent(final Graphics theGraphics) {\n super.paintComponent(theGraphics);\n final Graphics2D g2d = (Graphics2D) theGraphics; \n g2d.setPaint(PowerPaintMenus.getDrawColor());\n g2d.setStroke(new BasicStroke(PowerPaintMenus.getThickness()));\n if (!myFinishedDrawings.isEmpty()) {\n for (final Drawings drawing : myFinishedDrawings) {\n g2d.setColor(drawing.getColor());\n g2d.setStroke(drawing.getStroke());\n if (PowerPaintMenus.isFilled()) {\n g2d.fill(drawing.getShape());\n } else {\n g2d.draw(drawing.getShape()); \n }\n }\n }\n if (myHasShape) {\n g2d.draw(myCurrentShape);\n }\n }", "@Override\n public void paintMenu(Graphics g) {\n if (visible) {\n g.drawImage(toDraw, xPos, yPos, null); \n \n if (selection >= 0) {\n g.setColor(Colors.getColor(Colors.selectedColor));\n g.fillRoundRect(xPos + wGap, selection * hItemBox + yPos + hGap, getWidth() - wGap, hItemBox, wGap, hGap);\n }\n \n if (!activated) {\n g.setColor(Colors.getColor(Colors.selectedColor));\n g.fillRoundRect(xPos, yPos, getWidth(), getHeight(), wGap, hGap);\n }\n }\n }", "public void menuSetup(){\r\n menu.add(menuItemSave);\r\n menu.add(menuItemLoad);\r\n menu.add(menuItemRestart);\r\n menuBar.add(menu); \r\n topPanel.add(menuBar);\r\n bottomPanel.add(message);\r\n \r\n this.setLayout(new BorderLayout());\r\n this.add(topPanel, BorderLayout.NORTH);\r\n this.add(middlePanel, BorderLayout.CENTER);\r\n this.add(bottomPanel, BorderLayout.SOUTH);\r\n \r\n }", "@Override\r\n\tpublic void render(Graphics g) {\r\n\t\tg.setFont(menuFont);\r\n\t\tg.setColor(Color.WHITE);\r\n\t\t\r\n\t\tg.drawString(\"START GAME\",(game.getWidht()-164)/2,(game.getHeight()-56)/2);\t\t\r\n\t\tg.drawString(\"HIGH SCORES\",(game.getWidht()-174)/2,(game.getHeight()+18)/2);\r\n\t\tg.drawString(\"EXIT\",(game.getWidht()-58)/2,(game.getHeight()+94)/2);\r\n\t}", "public void draw() {\n //Grey background, which removes the tails of the moving elements\n background(0, 0, 0);\n //Running the update function in the environment class, updating the positions of stuff in environment\n //update function is a collection of the methods needing to be updated\n if(stateOfProgram == 0) { startTheProgram.update(); }\n if(stateOfProgram == 1) {\n theEnvironment.update();\n //update function is a collection of the methods needing to be updated\n //Running the update function in the Population class, updating the positions and states of the rabbits.\n entitiesOfRabbits.update();\n entitiesOfGrass.update();\n entitiesOfFoxes.update();\n\n entitiesOfRabbits.display();\n entitiesOfGrass.display();\n entitiesOfFoxes.display();\n openGraph.update();\n }\n }", "@Override\r\n\tpublic void paintComponent(Graphics g) {\r\n\t\tsuper.paintComponent(g);\r\n\t\t//parent.log(\"Height = \" + getHeight());\r\n\t\tpaintGrid((Graphics2D) g);\r\n\t\tpaintMap((Graphics2D) g);\r\n\t\tif (parent.showMesh) paintMesh((Graphics2D) g);\r\n\t\tpaintParticles((Graphics2D) g);\r\n\t\tpaintRobot((Graphics2D) g);\r\n\t\tpaintTarget((Graphics2D) g);\r\n\t\tpaintPath((Graphics2D) g);\r\n\t\tpaintMoves((Graphics2D) g);\r\n\t\tpaintFeatures((Graphics2D) g);\r\n\t\tpaintWaypoints((Graphics2D) g);\r\n\t}", "private void northRegion() {\r\n\t\tthis.addComponent(BorderLayout.NORTH, sv);\r\n\t\t\r\n\t\tToolbar toolBar = new Toolbar();\r\n\t\tsetToolbar(toolBar);\r\n\t\ttoolBar.setTitle(\"ThePath Game\");\r\n\t\t\r\n\t\tCheckBox soundCheckBox = new CheckBox(\"Side Menu Item Check\");\r\n\t\tsoundCheckBox.getAllStyles().setBgTransparency(255);\r\n\t\tsoundCheckBox.getAllStyles().setBgColor(ColorUtil.LTGRAY);\r\n\t\t\r\n\t\tSoundCommand soundCommand = new SoundCommand(gw);\r\n\t\tsoundCheckBox.setCommand(soundCommand);\r\n\t\ttoolBar.addComponentToSideMenu(soundCheckBox);\r\n\t\t\r\n\t\tAccelerateCommand accelerateCommand = new AccelerateCommand(gw);\r\n\t\ttoolBar.addCommandToLeftSideMenu(accelerateCommand);\r\n\t\t\r\n\t\tAboutCommand aboutCommand = new AboutCommand(gw);\r\n\t\ttoolBar.addCommandToLeftSideMenu(aboutCommand);\r\n\t\t\r\n\t\tHelpCommand helpCommand = new HelpCommand(gw);\r\n\t\ttoolBar.addCommandToRightBar(helpCommand);\r\n\t\t\r\n\t\tExitCommand exitCommand = new ExitCommand();\r\n\t\ttoolBar.addCommandToLeftSideMenu(exitCommand);\r\n\t}", "public void manageComponent() {\n menu = new JMenuBar();\n mainbox = new JScrollPane();\n toolbox = new JPanel();\n paintBox = new JPanel();\n optionbox = new JPanel();\n statusbar = new JPanel();\n paintModule = new PaintModule();\n\n // component setting\n createToolBox(toolbox);\n createMenu(menu);\n createOptionBox(optionbox);\n createStatusBar(statusbar);\n this.setLayout(new BorderLayout());\n\n // add component to container\n paintBox.add(paintModule);\n mainbox.setViewportView(paintBox);\n\n\n this.add(menu, BorderLayout.NORTH);\n this.add(mainbox, BorderLayout.CENTER);\n this.add(toolbox, BorderLayout.WEST);\n this.add(optionbox, BorderLayout.EAST);\n this.add(statusbar, BorderLayout.SOUTH);\n\n }", "public void draw() \r\n\t{\r\n\t\tdraw(root, new RectHV(0,0,1,1) );\r\n\t}", "public static void IngameMenuComponents() {\n\t\tInterface.continueGame.setPreferredSize(Interface.dim);\n\t\tInterface.continueGame.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.continueGame.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.continueGame.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.continueGame.setForeground(Color.white);\n\t\t\n\t\tInterface.saveGame.setPreferredSize(Interface.dim);\n\t\tInterface.saveGame.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.saveGame.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.saveGame.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.saveGame.setForeground(Color.white);\n\t\t\n\t\tInterface.saveAs.setForeground(Color.red);\n\t\tInterface.wrongName.setForeground(Color.red);\n\t\tInterface.saveName.setPreferredSize(Interface.dim);\n\t\t\n\t\tInterface.restart.setPreferredSize(Interface.dim);\n\t\tInterface.restart.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.restart.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.restart.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.restart.setForeground(Color.white);\n\t\t\n\t\t\n\t}", "public void paint(Graphics g) {\n\n // Draw background\n g.drawImage(ResourceLoader.getInstance().getSprite(\"road.png\"), 0, 0, mooseGame);\n\n g.setColor(new Color(0, 0, 0, 150));\n g.fillRect(MooseGame.WIDTH / 6, 50, 2 * MooseGame.WIDTH / 3, 100);\n\n // Draw store title\n Font storeTitle = new Font(\"Impact\", Font.PLAIN, 75);\n FontMetrics metrics = g.getFontMetrics(storeTitle);\n g.setFont(storeTitle);\n g.setColor(Color.WHITE);\n g.drawString(\"Store\", (MooseGame.WIDTH - metrics.stringWidth(\"Store\")) / 2, 125);\n\n\n Font coinFont = new Font(\"Impact\", Font.PLAIN, 30);\n metrics = g.getFontMetrics(coinFont);\n g.setFont(coinFont);\n g.setColor(new Color(255, 215, 0));\n\n String coinText = \"Coins: \" + PlayerInventory.getCurrency();\n g.drawString(coinText, 5 * MooseGame.WIDTH / 6 - metrics.stringWidth(coinText) - 10, 135);\n\n\n Font menuFont = new Font(\"Impact\", Font.PLAIN, 40);\n metrics = g.getFontMetrics(menuFont);\n g.setFont(menuFont);\n g.setColor(Color.white);\n\n if (menuState == 0) { // Main Store\n\n g.setColor(new Color(0, 0, 0, 150));\n g.fillRect(MooseGame.WIDTH / 6, MooseGame.WIDTH / 4, 2 * MooseGame.WIDTH / 3, MooseGame.WIDTH / 2);\n\n String[] text = new String[]{\n \"Powerups\", \"Vehicles\", \"Buy Coin Packs\", \"Back to Main Menu\"};\n\n for (int i = 0; i < text.length; i++) {\n g.setColor(menuSelection == i ? Color.GREEN : Color.WHITE);\n String drawString = (menuSelection == i ? \" - \" : \"\") + text[i] + (menuSelection == i ? \" - \" : \"\");\n g.drawString(drawString, (MooseGame.WIDTH / 6) + ((2 * MooseGame.WIDTH / 3) - metrics.stringWidth(drawString)) / 2, 250 + (75 * i));\n\n }\n\n } else if (menuState == 1) { // Power Ups\n\n g.setColor(new Color(0, 0, 0, 150));\n\n g.fillRect(MooseGame.WIDTH / 6, 160, 2 * MooseGame.WIDTH / 3, 375);\n\n g.setColor(Color.white);\n\n String[] sprites = new String[]{\"foglights.png\", \"invincible.png\", \"slowmotion.png\"};\n String[] names = new String[]{\"Fog Lights\", \"Invincibility\", \"Slow Motion\"};\n Integer[] options = new Integer[]{FOG_LIGHTS_COST, INVINCIBILITY_COST, SLOW_MOTION_COST};\n\n for (int i = 0; i < sprites.length; i++) {\n g.drawImage(ResourceLoader.getInstance().getSprite(sprites[i]), MooseGame.WIDTH / 6 + 10, 175 + i * 75, mooseGame);\n g.drawString(\"[\" + options[i] + \"] \" + names[i], (MooseGame.WIDTH / 4) + 20, 215 + i * 75);\n g.setColor(menuSelection == i ? Color.GREEN : Color.WHITE);\n g.drawString(\"Buy\", 550, 215 + (75 * i));\n g.setColor(Color.white);\n }\n\n Font warningFont = new Font(\"Calivri\", Font.BOLD, 16);\n metrics = g.getFontMetrics(warningFont);\n g.setFont(warningFont);\n g.setColor(Color.red);\n\n String warningText = \"Note: Power-ups are lost on game over!\";\n g.drawString(warningText, (MooseGame.WIDTH - metrics.stringWidth(warningText)) / 2, 400);\n\n metrics = g.getFontMetrics(menuFont);\n g.setFont(menuFont);\n g.setColor(menuSelection == 3 ? Color.GREEN : Color.WHITE);\n\n String backText = \"Back to Store\";\n g.drawString(backText, (MooseGame.WIDTH - metrics.stringWidth(backText)) / 2, 500);\n\n } else if (menuState == 2) { // Vehicles\n\n String[] sprites = new String[]{\"player_bluecar.png\", \"player_truck.png\", \"player_atv.png\"};\n Integer[] prices = new Integer[]{0, TRUCK_COST, ATV_COST};\n\n\n PlayerInventory.Vehicles equipped = PlayerInventory.getEquippedVehicle();\n Boolean[] equippedStates = new Boolean[]{equipped == CAR, equipped == TRUCK, equipped == ATV};\n\n Boolean[] ownedStates = new Boolean[]{true, PlayerInventory.isTruckOwned(), PlayerInventory.isAtvOwned()};\n\n\n g.setColor(new Color(0, 0, 0, 150));\n g.fillRect(MooseGame.WIDTH / 6, 175, 2 * MooseGame.WIDTH / 3, 500);\n\n for (int i = 0; i < sprites.length; i++) {\n g.drawImage(ResourceLoader.getInstance().getSprite(sprites[i]), (MooseGame.WIDTH / 3), 180 + 150 * i, mooseGame);\n g.setColor(menuSelection == i ? Color.GREEN : Color.white);\n String drawString = \"\";\n\n if (!ownedStates[i]) {\n drawString = \"Buy (\" + prices[i] + \")\";\n } else if (equippedStates[i]) {\n drawString = \"Equipped\";\n } else {\n drawString = \"Equip\";\n }\n\n g.drawString(drawString, 400, 255 + 150 * i);\n }\n\n\n g.setColor(menuSelection == 3 ? Color.GREEN : Color.WHITE);\n\n\n String backString = \"Back to Store\";\n g.drawString(backString, (MooseGame.WIDTH - metrics.stringWidth(backString)) / 2, 650);\n\n } else if (menuState == 3) { // Buy coins\n\n g.setColor(new Color(0, 0, 0, 150));\n g.fillRect(MooseGame.WIDTH / 6, 200, 2 * MooseGame.WIDTH / 3, 375);\n\n String[] coinPacksText = new String[]{\n SMALL_COIN_PACK_VALUE + \" for $\" + SMALL_COIN_PACK_COST,\n MEDIUM_COIN_PACK_VALUE + \" for $\" + MEDIUM_COIN_PACK_COST,\n LARGE_COIN_PACK_VALUE + \" for $\" + LARGE_COIN_PACK_COST,\n SUPER_COIN_PACK_VALUE + \" for $\" + SUPER_COIN_PACK_COST};\n\n for (int i = 0; i < coinPacksText.length; i++) {\n g.setColor(menuSelection == i ? Color.GREEN : Color.WHITE);\n g.drawString(coinPacksText[i], (MooseGame.WIDTH - metrics.stringWidth(coinPacksText[i])) / 2, 250 + (75 * i));\n }\n\n g.setColor(menuSelection == 4 ? Color.GREEN : Color.WHITE);\n\n String backText = \"Back to Store\";\n g.drawString(backText, (MooseGame.WIDTH - metrics.stringWidth(backText)) / 2, 550);\n }\n\n }", "@Override\n protected final void setGraphics() {\n super.setGraphics();\n Graphics g = toDraw.getGraphics();\n g.setColor(Color.BLACK); \n \n for (int i = 0; i < choices.size(); i++) { \n g.drawString(choices.get(i).getValue(), wGap, (i + 1) * hItemBox);\n }\n }", "private void initMenu() {\n\t\tloadImage();\r\n\t\t// Add listeners to buttons\r\n\t\tstartGame.addActionListener(new StartGameListener());\r\n\t\texitGame.addActionListener(new ExitGameListener());\r\n\t\t// Setting buttons in the middle of the screen\r\n\t\tsetLayout(new GridBagLayout());\r\n\t\tGridBagConstraints gbc = new GridBagConstraints();\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 0;\r\n\t\tadd(startGame, gbc);\r\n\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 1;\r\n\t\t// Resize \"exitGame\" button to \"startGame\" button size\r\n\t\texitGame.setPreferredSize(startGame.getPreferredSize());\r\n\t\t// Set insets between two buttons in 100 px\r\n\t\tgbc.insets = new Insets(100, 0, 0, 0);\r\n\t\tadd(exitGame, gbc);\r\n\t}", "private static void createGUI(){\n DrawingArea drawingArea = new DrawingArea();\n ToolSelect utilityBar = new ToolSelect();\n MenuBar menuBar = new MenuBar();\n JFrame.setDefaultLookAndFeelDecorated(true);\n JFrame frame = new JFrame(\"GUIMk1\");\n frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\n frame.setLayout(new BorderLayout());\n frame.getContentPane().add(utilityBar, BorderLayout.WEST);\n frame.getContentPane().add(menuBar,BorderLayout.NORTH);\n frame.getContentPane().add(drawingArea);\n frame.setLocationRelativeTo( null );\n frame.setVisible(true);\n frame.pack();\n\n }", "public void render() {\n uiBatch.begin();\n for (int x = 0; x < uiManager.getUIComponents().size();x++) {\n uiManager.getUIComponent(x).render(uiBatch, Assets.patch);\n }\n if (uiManager.dialogue != null) {\n uiManager.dialogue.render(uiBatch, Assets.patch);\n }\n if (!uiManager.notifications.isEmpty()) {\n uiManager.notifications.get(0).render(uiBatch, Assets.patch);\n }\n uiManager.partyMenu.render(uiBatch, Assets.patch);\n uiBatch.end();\n }", "public void paintComponent (Graphics g){\r\n\t\tsuper.paintComponent(g);\r\n\t\t//MAIN MENU SCREEN (RULES)\r\n\t\tif (screen == 0) {\r\n\t\t\tg.clearRect (0, 0, this.getWidth (), this.getHeight ());\r\n\t\t\tg.setColor((Color.BLACK));\r\n\t\t\tg.fillRect(0, 0, this.getWidth(), this.getHeight());\r\n\t\t\tg.drawImage(rulesImage, 185, 10, this);\r\n\t\t\tg.setFont (ARIAL_BOLD);\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tg.drawString(\"A game of memory skill!\",150,245);\r\n\t\t\tg.setFont (ARIAL_TEXT);\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tg.drawString(\"The game will show you a colour pattern.\", 160, 270);\r\n\t\t\tg.drawString(\"Remember which colours were lit up. Once the \", 140, 300); \r\n\t\t\tg.drawString(\"pattern is finished, repeat it to pass to the next level.\", 130, 330);\r\n\t\t\tg.setFont (ARIAL_BOLD);\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tg.drawString(\"PLAY\", 250, 390);\t\r\n\t\t}\r\n\t\t//ORIGINAL COLOURS\r\n\t\telse if (screen == 1){\r\n\t\t\t//Draws Game Titles (Text)\r\n\t\t\tg.drawImage (logoImage, 5, 30, this);\r\n\t\t\tg.setFont (ARIAL_BOLD);\r\n//\t\t\tg.setColor(Color.WHITE);\r\n//\t\t\tString scoreTitle = \"Score: \" + score;\r\n//\t\t\tString highestTitle = \"Highest: \" + highest;\r\n//\t\t\tg.drawString(scoreTitle, 420, 50);\r\n//\t\t\tg.drawString(highestTitle, 420, 80);\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tg.drawString(\"Press to Start\", 12, 100);\r\n\t\t\t\r\n\t\t\t//Draws Colours \r\n\t\t\tg.setColor(REDFADE);\r\n\t\t\tg.fillArc(160, 100, 300, 300, 0, 90);\r\n\t\t\tg.setColor(GREENFADE);\r\n\t\t\tg.fillArc(150, 100, 300, 300, 90, 90);\r\n\t\t\tg.setColor(YELLOWFADE);\r\n\t\t\tg.fillArc(150, 110, 300, 300, 180, 90);\r\n\t\t\tg.setColor(BLUEFADE);\r\n\t\t\tg.fillArc(160, 110, 300, 300, 270, 90);\r\n\t\t}\r\n\t\t//MONOCHROMATIC COLOURS\r\n\t\telse if (screen == 2){\r\n\t\t\t//Draws Game Titles (Text)\r\n\t\t\tg.drawImage (logoImage, 5, 30, this);\r\n\t\t\tg.setFont (ARIAL_BOLD);\r\n//\t\t\tg.setColor(Color.WHITE);\r\n//\t\t\tString scoreTitle = \"Score: \" + score;\r\n//\t\t\tString highestTitle = \"Highest: \" + highest;\r\n//\t\t\tg.drawString(scoreTitle, 420, 50);\r\n//\t\t\tg.drawString(highestTitle, 420, 80);\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tg.drawString(\"Press to Start\", 12, 100);\r\n\t\t\t\r\n\t\t\t//Draws Colours\r\n\t\t\tg.setColor(PURPLE_1);\r\n\t\t\tg.fillArc(160, 100, 300, 300, 0, 90);\r\n\t\t\tg.setColor(PURPLE_2);\r\n\t\t\tg.fillArc(150, 100, 300, 300, 90, 90);\r\n\t\t\tg.setColor(PURPLE_3);\r\n\t\t\tg.fillArc(150, 110, 300, 300, 180, 90);\r\n\t\t\tg.setColor(PURPLE_4);\r\n\t\t\tg.fillArc(160, 110, 300, 300, 270, 90);\r\n\t\t}\r\n\t\t//TROPICAL COLOURS\r\n\t\telse if (screen == 3){\r\n\t\t\t//Draws Game Titles (Text)\r\n\t\t\tg.drawImage (logoImage, 5, 30, this);\r\n\t\t\tg.setFont (ARIAL_BOLD);\r\n//\t\t\tg.setColor(Color.WHITE);\r\n//\t\t\tString scoreTitle = \"Score: \" + score;\r\n//\t\t\tString highestTitle = \"Highest: \" + highest;\r\n//\t\t\tg.drawString(scoreTitle, 420, 50);\r\n//\t\t\tg.drawString(highestTitle, 420, 80);\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tg.drawString(\"Press to Start\", 12, 100);\r\n\t\t\t\r\n\t\t\t//Draws Colours\r\n\t\t\tg.setColor(PINK_TROP);\r\n\t\t\tg.fillArc(160, 100, 300, 300, 0, 90);\r\n\t\t\tg.setColor(GREEN_TROP);\r\n\t\t\tg.fillArc(150, 100, 300, 300, 90, 90);\r\n\t\t\tg.setColor(ORANGE_TROP);\r\n\t\t\tg.fillArc(150, 110, 300, 300, 180, 90);\r\n\t\t\tg.setColor(BLUE_TROP);\r\n\t\t\tg.fillArc(160, 110, 300, 300, 270, 90);\r\n\t\t}\r\n\t\t//GAME OVER\r\n\t\telse if (screen == 4){\r\n\t\t\tg.drawImage (gameoverImage, 40, 50, this);\r\n\t\t\tg.setFont(ARIAL_BOLD);\r\n\t\t\tg.setColor(Color.YELLOW);\r\n\t\t\tg.drawString(\"BETTER LUCK NEXT TIME\", 135, 270);\r\n\t\t\tString scoreTitle = \"Your Score: \" + score;\r\n\t\t\tString highestTitle = \"Highest Score: \" + highest;\r\n\t\t\tg.drawString(scoreTitle, 200, 300);\r\n\t\t\tg.drawString(highestTitle, 180, 330);\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tg.drawString(\"PLAY\", 250, 390);\r\n\t\t}\r\n\t\t//YOU WIN\r\n\t\telse if (screen == 5){\r\n\t\t\tg.drawImage (winnerImage, 0, 0, this);\r\n\t\t\tg.setFont(ARIAL_BOLD);\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tString scoreTitle = \"Your Score: \" + score;\r\n\t\t\tString highestTitle = \"Highest Score: \" + highest;\r\n\t\t\tg.drawString(scoreTitle, 205, 330);\r\n\t\t\tg.drawString(highestTitle, 185, 360);\r\n\t\t\tg.drawString(\"PLAY\", 250, 390);\r\n\t\t}\r\n\r\n\t}", "private void buildGui() {\n nifty = screen.getNifty();\n nifty.setIgnoreKeyboardEvents(true);\n nifty.loadStyleFile(\"nifty-default-styles.xml\");\n nifty.loadControlFile(\"nifty-default-controls.xml\");\n nifty.addScreen(\"Option_Screen\", new ScreenBuilder(\"Options_Screen\") {\n {\n controller((ScreenController) app);\n layer(new LayerBuilder(\"background\") {\n {\n childLayoutCenter();;\n font(\"Interface/Fonts/zombie.fnt\");\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n childLayoutOverlay();\n font(\"Interface/Fonts/zombie.fnt\");\n\n panel(new PanelBuilder(\"Switch_Options\") {\n {\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n interactOnClick(\"goTo(Display_Settings)\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Graphics_Settings\", new ScreenBuilder(\"Graphics_Extension\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Display_Settings)\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n panel(new PanelBuilder(\"Post_Water_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"15%\");\n control(new LabelBuilder(\"\", \"Post Water\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Post_Water_Button\") {\n {\n marginLeft(\"110%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Reflections_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Reflections\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Reflections_Button\") {\n {\n marginLeft(\"45%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Ripples_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Ripples\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Ripples_Button\") {\n {\n marginLeft(\"75%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Specular_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Specular\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Specular_Button\") {\n {\n marginLeft(\"59%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Foam_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Foam\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Foam_Button\") {\n {\n marginLeft(\"93%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Sky_Dome_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Sky Dome\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Sky_Dome_Button\") {\n {\n marginLeft(\"128%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Star_Motion_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Star Motion\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Star_Motion_Button\") {\n {\n marginLeft(\"106%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Cloud_Motion_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Cloud Motion\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Cloud_Motion_Button\") {\n {\n marginLeft(\"87%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Bloom_Light_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Bloom Lighting\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new CheckboxBuilder(\"Bloom_Light_Button\") {\n {\n marginLeft(\"70%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Light_Scatter_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Light Scatter\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new CheckboxBuilder(\"Light_Scatter_Button\") {\n {\n marginLeft(\"90%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutHorizontal();\n marginLeft(\"43%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"applySettings()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Display_Screen\", new ScreenBuilder(\"Display_Settings\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();;\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n childLayoutVertical();\n panel(new PanelBuilder(\"Resolution_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"15%\");\n control(new LabelBuilder(\"\", \"Set Resolution\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ListBoxBuilder(\"Resolution_Opts\") {\n {\n marginLeft(\"4%\");\n marginBottom(\"10%\");\n displayItems(1);\n showVerticalScrollbar();\n hideHorizontalScrollbar();\n selectionModeSingle();\n width(\"10%\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"45%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"displayApply()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Sound Settings\", new ScreenBuilder(\"#Sound_Settings\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();;\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Display_Settings)\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n childLayoutVertical();\n panel(new PanelBuilder(\"#Master_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"35%\");\n control(new LabelBuilder(\"\", \"Master Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Master_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Ambient_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Ambient Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Ambient_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Combat_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Combat Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Combat_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Dialog_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Dialog Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Dialog_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Footsteps_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Footsteps Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Footsteps_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"45%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"#Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"soundApply()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n\n }\n }.build(nifty));\n }", "public interface GraphicsInterface {\n /**\n * drawing components of menus or simulation on the screen\n */\n void draw();\n\n /**\n * this method runs when right mouse button was pressed\n * @param mouseX - current mouse x position (in pixels)\n * @param mouseY - current mouse y position (in pixels)\n */\n void onRightClick(double mouseX, double mouseY);\n\n /**\n * this method runs when left mouse button was pressed\n * @param mouseX - current mouse x position (in pixels)\n * @param mouseY - current mouse y position (in pixels)\n * @return false if simulation doesn't have to be refreshed.\n * true otherwise (also in menus)\n */\n boolean onLeftClick(double mouseX, double mouseY);\n\n /**\n * this method runs when left mouse button was released\n * @param mouseX - current mouse x position (in pixels)\n * @param mouseY - current mouse y position (in pixels)\n */\n void onLeftMouseButtonReleased(double mouseX, double mouseY);\n\n /**\n * This method runs when LEFT mouse button is pressed and mouse is moving.\n * @param mouseX - current mouse x position (in pixels)\n * @param mouseY - current mouse y position (in pixels)\n * @param prevMouseX - mouse x position in previous frame (in pixels)\n * @param prevMouseY - mouse y position in previous frame (in pixels)\n * @return true/false depending which scenario happened\n */\n boolean onMouseDragged(double mouseX, double mouseY, double prevMouseX, double prevMouseY);\n\n /**\n * This method runs when no mouse button is pressed and mouse is moving\n * @param mouseX - current mouse x position (in pixels)\n * @param mouseY - current mouse y position (in pixels)\n * @param prevMouseX - mouse x position in previous frame (in pixels)\n * @param prevMouseY - mouse y position in previous frame (in pixels)\n */\n void onMouseMoved(double mouseX, double mouseY, double prevMouseX, double prevMouseY);\n\n /**\n * This method runs when mouse wheel is moving\n * @param rotation direction of scrolling. Can be either 1 [down] or -1 [up]\n */\n void onMouseScrolled(int rotation);\n\n /**\n * This method runs when some button is pressed\n * @param event - all information of pressed button\n * @return true/false depending of the usage\n */\n boolean onKeyPressed(KeyEvent event);\n}", "private void render() {\n\t\ttheMap.draw(g);\n\t\ttheTrainer.draw(g);\n\t}", "@Override\r\n\tpublic void render() {\r\n\r\n\t\tsb.setProjectionMatrix(cam.combined);\r\n\r\n\t\t// draw background\r\n\t\tbg.render(sb);\r\n\r\n\t\t// draw button\r\n\t\tlevel1.render(sb);\r\n\t\tlevel2.render(sb);\r\n\t\tlevel3.render(sb);\r\n\t\t\r\n\t\tif (gameMode == 1){\r\n\t\t\tplayer1press.render(sb);\r\n\t\t\tplayer2press.render(sb);\r\n\t\t}\r\n\t\telse \r\n\t\t\tplayerpress.render(sb);\r\n\t\t\r\n\t\t\r\n\t selectTheLevel.render(sb);\r\n\t\t\r\n\t\tmainMenuB.render(sb);\r\n\r\n\t\t// debug draw box2d\r\n\t\tif(debug) {\r\n\t\t\tcam.setToOrtho(false, Game.V_WIDTH / 100, Game.V_HEIGHT / 100);\r\n\t\t\tb2dRenderer.render(world, cam.combined);\r\n\t\t\tcam.setToOrtho(false, Game.V_WIDTH, Game.V_HEIGHT);\r\n\t\t}\r\n\r\n\t}", "public Graphics() { \n super(\"STRATEGO\");\n this.setIconImage(Toolkit.getDefaultToolkit().getImage(\"images\\\\myLogo.png\"));\n newGame();\n \n JMenu optionMenu = new JMenu(\"Options\");\n \n JMenuItem restartItem = new JMenuItem(\"Restart\");\n optionMenu.add(restartItem);\n restartItem.addActionListener((ActionEvent event) -> {\n NJPanel.removeAll();\n if(Cell != null) {\n for(int i = 1; i < 9; i++) {\n for(int j = 1; j < 11; j++) {\n NJPanel.remove(Cell[i][j]);\n }\n }\n }\n remove(NJPanel);\n newGame();\n repaint();\n revalidate();\n });\n \n JMenuItem exitItem = new JMenuItem(\"Exit\");\n optionMenu.add(exitItem);\n exitItem.addActionListener((ActionEvent event) -> {\n System.exit(0);\n });\n \n JMenuBar gameBar = new JMenuBar();\n setJMenuBar(gameBar);\n gameBar.add(optionMenu);\n }", "public static void createAndShowGui() {\n updateShapes();\n initialiseShapeTurtleLinden();\n Painting painting = new Painting();\n ButtonsController buttonsController = new ButtonsController(painting);\n Buttons buttonPanel = new Buttons(buttonsController);\n buttonsController.turtleInit(turtle, linSys);\n\n JPanel mainPanel = new JPanel(false);\n mainPanel.add(painting);\n mainPanel.add(buttonPanel, BorderLayout.SOUTH);\n\n\n ProdPainter prodPaint = new ProdPainter();\n ProductionsController productionsController = new ProductionsController(shape, prodPaint);\n Productions productions = new Productions(productionsController);\n JPanel productionsTab = new JPanel(false);\n productionsTab.add(productions);\n productionsTab.add(prodPaint);\n\n SettingsController settingsController = new SettingsController(turtle, linSys, shape,\n buttonsController, productionsController);\n settingsController.init();\n Settings settings = new Settings(settingsController);\n JPanel settingsTab = new JPanel(false);\n settingsTab.add(settings);\n\n\n JTabbedPane tabs = new JTabbedPane();\n tabs.addTab(\"Drawing\", mainPanel);\n tabs.addTab(\"Productions\", productionsTab);\n tabs.addTab(\"Settings\", settingsTab);\n\n\n JFrame frame = new JFrame();\n frame.setSize(frameWidth, frameHeight + 120);\n setDefaultLookAndFeelDecorated(true);\n frame.add(tabs);\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "public void drawScreen(int var1, int var2, float var3) {\r\n\t\tthis.drawDefaultBackground();\r\n\t\tthis.guiLeft = (this.width - this.xSize) / 2;\r\n\t\tthis.guiTop = (this.height - this.ySize) / 2;\r\n\t\tGL11.glPushMatrix();\r\n\t\tGL11.glTranslatef(this.guiLeft, this.guiTop, 0.0F);\r\n\t\tthis.mc.renderEngine.bindTexture(this.mc.renderEngine\r\n\t\t\t\t.getTexture(\"/gui/elevatorgui.png\"));\r\n\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\tthis.drawTexturedModalRect(0, 0, 0, 0, this.xSize, this.ySize);\r\n\t\tGL11.glTranslatef(0.0F, 0.0F, 0.0F);\r\n\t\tGL11.glPopMatrix();\r\n\t\tsuper.drawScreen(var1, var2, var3);\r\n\r\n\t\tif (!this.optionsOpen) {\r\n\t\t\tif (!this.screenTitle.equals(\"\")) {\r\n\t\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer,\r\n\t\t\t\t\t\tthis.screenTitle, this.width / 2, this.titleTop, 0);\r\n\t\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer, \"\"\r\n\t\t\t\t\t\t+ this.screenSubtitle + \"\", this.width / 2,\r\n\t\t\t\t\t\tthis.subtitleTop, 0);\r\n\t\t\t} else {\r\n\t\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer, \"\"\r\n\t\t\t\t\t\t+ this.screenSubtitle + \"\", this.width / 2,\r\n\t\t\t\t\t\tthis.titleTop, 0);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (this.screenTitle != null && !this.screenTitle.equals(\"\")) {\r\n\t\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer,\r\n\t\t\t\t\t\tthis.screenTitle, this.width / 2 - 20,\r\n\t\t\t\t\t\tthis.subtitleTop, 0);\r\n\t\t\t} else {\r\n\t\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer,\r\n\t\t\t\t\t\t\"[Unnamed Elevator]\", this.width / 2, this.subtitleTop,\r\n\t\t\t\t\t\t0);\r\n\t\t\t}\r\n\r\n\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer, \"Options\",\r\n\t\t\t\t\tthis.width / 2, this.titleTop, 0);\r\n\t\t\tthis.floorNamesList.drawScreen(var1, var2, var3);\r\n\t\t}\r\n\t}", "private void createUI() throws FactoryException {\n assert theGame != null;\n assert ghostController != null;\n\n buttonPanel = new ButtonPanel(this);\n buttonPanel.initialize();\n\n pi = new PacmanInteraction(this, theGame);\n pi.addController(ghostController);\n buttonPanel.setListener(pi);\n this.addKeyListener(new PacmanKeyListener(pi));\n\n boardView = createBoardView();\n animator = new Animator(boardView);\n pi.addController(animator);\n\n points = new PointsPanel();\n points.initialize(theGame.getPointManager());\n theGame.attach(points);\n\n JPanel mainGrid = new JPanel();\n mainGrid.setLayout(new BorderLayout());\n mainGrid.setName(\"jpacman.topdown\");\n mainGrid.add(points, BorderLayout.NORTH);\n mainGrid.add(boardView, BorderLayout.CENTER);\n mainGrid.add(buttonPanel, BorderLayout.SOUTH);\n\n getContentPane().add(mainGrid);\n\n int width = Math.max(boardView.windowWidth(), buttonPanel.getWidth());\n int height = boardView.windowHeight() + buttonPanel.getHeight();\n setSize(width, height);\n setGridSize();\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n setName(\"jpacman.main\");\n setTitle(\"JPacman\");\n }", "private void paintControlsPage(Graphics g)\r\n {\n g.drawLine(Orbis.GAME_SIZE/2, 175, Orbis.GAME_SIZE/2, 525);\r\n \r\n keyTitleText.draw(g);\r\n keyMoveText.draw(g);\r\n \r\n mouseTitleText.draw(g);\r\n mouseText.draw(g);\r\n \r\n \r\n //Draw keys\r\n int xOffset = 105;\r\n int yOffset = 250; \r\n g.drawRoundRect(xOffset + 50, yOffset, 40, 40, 10, 10); //W\r\n g.drawRoundRect(xOffset, yOffset + 50, 40, 40, 10, 10); //A\r\n g.drawRoundRect(xOffset + 50, yOffset + 50, 40, 40, 10, 10); //S\r\n g.drawRoundRect(xOffset + 100, yOffset + 50, 40, 40, 10, 10); //D\r\n \r\n //Draw key labels\r\n g.drawString(\"W\", xOffset + 70, yOffset + 20);\r\n g.drawString(\"A\", xOffset + 20, yOffset + 70);\r\n g.drawString(\"S\", xOffset + 70, yOffset + 70);\r\n g.drawString(\"D\", xOffset + 120, yOffset + 70);\r\n \r\n \r\n }", "private void render() {\n if (game.isEnded()) {\n if (endGui == null) {\n drawEndScreen();\n }\n\n return;\n }\n\n drawScore();\n drawSnake();\n drawFood();\n }", "private void builder(){\r\n //Objects\r\n //Left\r\n canvasStackPane.setAlignment(Pos.TOP_LEFT);\r\n left1HintButton = new Button(\"Hint\");\r\n left2Button = new Button(\"New Graph\");\r\n left3Button = new Button(\"New GameMode\");\r\n left4Button = new Button(\"New GraphMode\");\r\n left5Button = new Button(\"Finished\");\r\n leftRestLabel = new Label();\r\n //Up\r\n upperLeftButton = new Label(\"Menu\");\r\n upperLeftButton.setAlignment(Pos.CENTER);\r\n upper1Label = new Label();\r\n upper2Label = new Label();\r\n upper3Label = new Label();\r\n upperRestLabel = new Label();\r\n //calculateVectors\r\n backPane.setPickOnBounds(false);\r\n textFieldVertices.setPromptText(\"Vertices\");\r\n textFieldEdges.setPromptText(\"Edges\");\r\n gameEnd.setSpacing(30);\r\n gameEnd.setAlignment(Pos.CENTER);\r\n gameWinStackPane.setAlignment(Pos.CENTER);\r\n hBoxWin.setAlignment(Pos.CENTER);\r\n hBoxWin.setSpacing(30);\r\n canvasStackPane.setPickOnBounds(true);\r\n canvas.setPickOnBounds(true);\r\n canvas.getGraphicsContext2D().setLineWidth(2.5);\r\n }", "public void drawSaveMenu() {\n implementation.devDrawSaveMenu();\n }", "void drawMenuState(Graphics g) {\n\t\tnumberOfMenu++;\n\t\tg.setColor(Color.BLUE);\n\t\tg.fillRect(0, 0, QuizWhiz.WIDTH, QuizWhiz.HEIGHT);\n\t\tg.setFont(font);\n\t\tg.setColor(Color.YELLOW);\n\t\tg.drawString(\"Quiz Whiz\", 50, 100);\n\t\tg.drawString(\"Press the button to start\", 50, 200);\n\t\tg.drawString(\"Press SPACE for instructions\", 25, 300);\n\t\tbutton=new JButton();\n\t\tbutton.setText(\"Next\");\n\t\t//button.setBounds(100,700,100,25);\n\t\tbutton.addActionListener(this);\n\t\tif(numberOfMenu<=1) {\n\t\tthis.add(button);\n\t\t}\n\t\tframe.setSize(300,400);\n\t}", "protected void drawGUI() {\n batch.draw(background, 0, 0);\n }", "public void paintComponent(Graphics g) {\n // Setup\n Graphics2D g2d = (Graphics2D) g; int txt_h = Utils.txtH(g2d, \"0\");\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n // Paint the super\n super.paintComponent(g2d); \n\n // Get the render context and draw if it's valid\n RenderContext myrc = (RenderContext) rc;\n if (myrc != null) {\n // Draw the interactions\n drawInteractions(g2d, myrc);\n\n // Draw the edge lens\n if (mode() == UI_MODE.EDGELENS) drawEdgeLens(g2d, myrc);\n else if (mode() == UI_MODE.TIMELINE) drawTimeLine(g2d, myrc);\n\n // Draw the selection\n Set<String> sel = getRTParent().getSelectedEntities(); if (sel == null) sel = new HashSet<String>();\n if (sel.size() > 0 || sticky_labels.size() > 0) { drawSelectedEntities(g2d, myrc, sel, sticky_labels, txt_h);\n } else { String str = \"\" + mode(); modeColor(g2d); g2d.drawString(\"\" + str, 5, txt_h); }\n\n // Draw the dynamic labels -- under the mouse for context\n String dyn_labeler_copy = dyn_labeler;\n if (dyn_label_cbmi.isSelected() && \n dyn_labeler_copy != null && \n myrc.node_coord_set.containsKey(dyn_labeler_copy)) drawDynamicLabels(g2d, myrc, dyn_labeler_copy);\n\n // If graph info mode, provide additional information\n if (myrc.provideGraphInfo()) { drawGraphInfo(g2d, myrc, sel); }\n\n // Draw the vertex placement heatmap (experimental)\n if (vertex_placement_heatmap_cbmi.isSelected()) {\n\t// Make sure it's a single selection (and that it's also a vertex);\n if (sel != null && sel.size() == 1) {\n\t String sel_str = sel.iterator().next(); if (entity_to_wxy.containsKey(sel_str)) {\n\t int hm_w = myrc.getRCWidth()/4, hm_h = myrc.getRCHeight()/4;\n\t // Determine if the heatmap will be large enough to provide value\n\t if (hm_w >= 50 && hm_h >= 50) {\n\t // Determine if the heatmap needs to be recalculated (doesn't consider if the size is still correct... or if the node shifted...\n\t if (hm_sel == null || hm_sel.equals(sel_str) == false || hm_bi == null) {\n\t hm_bi = GraphUtils.vertexPlacementHeatmap(new UniGraph(graph), sel_str, entity_to_wxy, hm_w, hm_h);\n\t\thm_sel = sel_str;\n }\n Composite orig_comp = g2d.getComposite(); g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.7f)); // Partially transparent\n\t g2d.drawImage(hm_bi, myrc.getRCWidth() - hm_bi.getWidth(null), myrc.getRCHeight() - hm_bi.getHeight(null), null);\n\t g2d.setComposite(orig_comp);\n\t }\n\t }\n\t}\n }\n\n // Draw the highlighted entities\n highlightEntities(g2d, myrc);\n\n // Draw the excerpts\n drawExcerpts(g2d, myrc);\n }\n\n // Draw the help chart\n if (draw_help) drawHelp(g2d);\n }", "public ControlView (SimulationController sc){\n myProperties = ResourceBundle.getBundle(\"english\");\n myStartBoolean = false;\n mySimulationController = sc;\n myRoot = new HBox();\n myPropertiesList = sc.getMyPropertiesList();\n setView();\n\n }", "public void draw(){\n\t\tcomponent.draw();\r\n\t}", "public void drawMainWindow(){\n\n p.pushMatrix();\n p.translate(0,0);// translate whole window if necessary\n\n // window stuff\n // show name and draw\n p.stroke(0);\n p.strokeWeight(2);\n p.textSize(30);\n p.fill(0);\n p.text(\"Work space\",15,35);\n p.rectMode(CORNER);\n p.fill(219, 216, 206);\n p.rect(-285,40,1000,700);\n p.rectMode(CENTER);\n\n // show \"pause\" text\n if(pause) {\n p.fill(0);\n p.textSize(20);\n p.text(\"PAUSE\", 20, 60);\n p.textSize(12);\n }\n\n // draw coordinates lines\n drawCoordinateSystem();\n showRouteAsked();\n calculatePointer();\n\n // main mainManipulator\n manipulator.showManipulator(false);\n manipulator.route(true);\n\n if(routeAsked.size()>0) {\n if(!pause) manipulator.moveManally(routeAsked.get(0).copy());\n\n if (manipulator.segment_2_end.dist(routeAsked.get(0)) < 1) {\n routeAsked.remove(0);\n }\n\n // if you want to make it work with nn:\n\n// p.circle(routeAsked.get(0).x,routeAsked.get(0).y,15);\n// manipulator.setTarget(routeAsked.get(0));\n// manipulator.route(true);\n// if (!pause) manipulator.update();\n// manipulator.showManipulator(true);\n//\n// if (manipulator.targetDistFromAgent < 10) {\n// routeAsked.remove(0);\n// }\n }\n\n\n // pointer\n // show pointer and line to the pointer\n p.stroke(2);\n p.stroke(133, 168, 13,100);\n p.line(BASE_POS.x,BASE_POS.y,p.cos(pointerAngle)*pointerDist+BASE_POS.x,p.sin(pointerAngle)*pointerDist+BASE_POS.y);\n p.fill(207, 95, 43);\n p.noStroke();\n p.ellipse(pointerPos.x,pointerPos.y,15,15);\n\n p.popMatrix();\n }", "private void displayGUI()\n {\n SpringLayout springLayout = new SpringLayout();\n setLayout(springLayout);\n\n displayTextAreas(springLayout);\n displayButtons(springLayout);\n displayLabels(springLayout);\n displayTables(springLayout);\n //displaySelectedQuestion();\n }", "static void draw()\n {\n for (Viewport viewport : viewports)\n viewport.draw(renderers);\n }", "public void drawAllGraphics(){\r\n\t\t \r\n\t}", "private static void mainMenuLines(){\n setMenuLines(\"\",4,6,7,8,9,10,11,12,13,14,15,16,17,18,19);\n setMenuLines(\"Welcome to Ben's CMR program.\",1);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"help\" + ANSI_RESET + \" for a list of valid commands!\",20);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"exit\" + ANSI_RESET + \" to close the application!\",21);\n }", "@Override\n public void paintComponent(Graphics g) {\n g.setColor(Color.WHITE);\n g.fillRect(0,0,super.getWidth(),super.getHeight());\n\n for (DrawableVector instruction : instructions){\n instruction.draw(g, getWidth(), getHeight());\n }\n if (currentInstruction != null){\n currentInstruction.draw(g, getWidth(), getHeight());\n }\n }", "private void drawComponents () {\n // Xoa het nhung gi duoc ve truoc do\n mMap.clear();\n // Ve danh sach vi tri cac thanh vien\n drawMembersLocation();\n // Ve danh sach cac marker\n drawMarkers();\n // Ve danh sach cac tuyen duong\n drawRoutes();\n }", "public void draw() {\n draw(this.root, new RectHV(0.0, 0.0, 1.0, 1.0));\n }", "private void initialize() {\n\t\tSystem.setProperty(\"sun.java2d.uiScale\", \"1.0\");\n\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(new Color(47, 79, 79));\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\t\n\n\t\tpanellHome =new Home_Panel();\n\t\tpanellHome.setBounds(0, 0, 733, 494);\t\n\t\t\n\t\tpanelAnimalInsertion =new AnimalInsertion_Panel();\n\t\tpanelAnimalInsertion.setBounds(0, 0, 733, 494);\n\t\t\n\t\tpanelAvailableAnimals=new AvailableAnimals_Panel();\n\t\tpanelAvailableAnimals.setBounds(0, 0, 791, 585);\n\n\t\tpanelAdoptionHistory=new AdoptionHistory_Panel();\n\t\tpanelAdoptionHistory.setBounds(0, 0, 733, 535);\n\n\t\tpanelAdoptionStatistics=new AdoptionStatistics_Panel();\n\t\tpanelAdoptionStatistics.setBounds(0, 0, 733, 535);\n\t\t\n\t\tpanelProffesionalServices=new ProffesionalServices_Panel();\n\t\tpanelProffesionalServices.setBounds(0, 0, 733, 535);\n\t\t\n\t\t\n\t\tJPanel panelMenu = new JPanel();\n\t\tpanelMenu.setBackground(new Color(0, 128, 128));\n\t\tpanelMenu.setBounds(0, 0, 218, 585);\n\t\tframe.getContentPane().add(panelMenu);\n\t\tpanelMenu.setLayout(null);\n\t\t\n\t\tJPanel paneHome = new JPanel();\n\t\tpaneHome.addMouseListener(new PanelButtonMouseAdapter(paneHome)\n\t{\n\t\t\t\n\t\t\tpublic void mouseClicked(MouseEvent e) \n\t\t\t{\n\n\t\t\t\tmenuClicked(panellHome);\n\n\t\t\t}\n\t\t\t\t\n\t});\n\t\tpaneHome.setBackground(new Color(0, 139, 139));\n\t\tpaneHome.setBounds(0, 131, 214, 37);\n\t\tpanelMenu.add(paneHome);\n\t\tpaneHome.setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Home\");\n\t\tlblNewLabel.setForeground(new Color(255, 255, 255));\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblNewLabel.setBounds(78, 12, 45, 13);\n\t\tpaneHome.add(lblNewLabel);\n\t\t\n\t\t\n\t\tJPanel paneAvailableAnimals = new JPanel();\n\t\tpaneAvailableAnimals.addMouseListener(new PanelButtonMouseAdapter(paneAvailableAnimals)\n\t\t{\n\t\t\t\n\t\t\tpublic void mouseClicked(MouseEvent e) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tmenuClicked(panelAvailableAnimals);\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\t\n\t});\n\t\t\n\t\tpaneAvailableAnimals.setBackground(new Color(0, 139, 139));\n\t\tpaneAvailableAnimals.setBounds(0, 169, 214, 37);\n\t\tpanelMenu.add(paneAvailableAnimals);\n\t\tpaneAvailableAnimals.setLayout(null);\n\t\t\n\t\tJLabel lblAvailableAnimals = new JLabel(\"Available Animals\");\n\t\tlblAvailableAnimals.setForeground(new Color(255, 255, 255));\n\t\tlblAvailableAnimals.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblAvailableAnimals.setBounds(38, 6, 132, 27);\n\t\tpaneAvailableAnimals.add(lblAvailableAnimals);\n\t\t\n\t\tJPanel paneAnimalInsertion = new JPanel();\n\t\tpaneAnimalInsertion.addMouseListener(new PanelButtonMouseAdapter(paneAnimalInsertion)\n{\n\t\t\t\n\t\t\tpublic void mouseClicked(MouseEvent e) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tmenuClicked(panelAnimalInsertion);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\t\n\t});\n\t\tpaneAnimalInsertion.setBackground(new Color(0, 139, 139));\n\t\tpaneAnimalInsertion.setBounds(0, 205, 214, 37);\n\t\tpanelMenu.add(paneAnimalInsertion);\n\t\tpaneAnimalInsertion.setLayout(null);\n\t\t\n\t\tJLabel lblAnimalInsertion = new JLabel(\"Animal Insertion\");\n\t\tlblAnimalInsertion.setForeground(new Color(255, 255, 255));\n\t\tlblAnimalInsertion.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblAnimalInsertion.setBounds(38, 10, 142, 17);\n\t\tpaneAnimalInsertion.add(lblAnimalInsertion);\n\t\t\n\t\tJPanel paneAdoptionHistory = new JPanel();\n\t\tpaneAdoptionHistory.addMouseListener(new PanelButtonMouseAdapter(paneAdoptionHistory)\n\t\t\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent e) \n\t\t\t{\n\t\t\t\tmenuClicked(panelAdoptionHistory);\n\n\t\t\t}\n\t\t\t\t\n\t});\n\t\tpaneAdoptionHistory.setBackground(new Color(0, 139, 139));\n\t\tpaneAdoptionHistory.setBounds(0, 241, 214, 37);\n\t\tpanelMenu.add(paneAdoptionHistory);\n\t\tpaneAdoptionHistory.setLayout(null);\n\t\t\n\t\tJLabel lblAdoptionsHistory = new JLabel(\"Adoption's History\");\n\t\tlblAdoptionsHistory.setForeground(new Color(255, 255, 255));\n\t\tlblAdoptionsHistory.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblAdoptionsHistory.setBounds(38, 7, 129, 27);\n\t\tpaneAdoptionHistory.add(lblAdoptionsHistory);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"\");\n\t\tlblNewLabel_1.setIcon(new ImageIcon(image));\n\t\tlblNewLabel_1.setBounds(60, 10, 125, 111);\n\t\tpanelMenu.add(lblNewLabel_1);\n\t\t\n\t\tJPanel paneAdoptionStatistics = new JPanel();\n\t\tpaneAdoptionStatistics.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenuClicked(panelAdoptionStatistics);\n\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tpaneAdoptionStatistics.setLayout(null);\n\t\tpaneAdoptionStatistics.setBackground(new Color(0, 139, 139));\n\t\tpaneAdoptionStatistics.setBounds(0, 277, 214, 37);\n\t\tpanelMenu.add(paneAdoptionStatistics);\n\t\t\n\t\tJLabel lblAdoptionsStatistics = new JLabel(\"Adoption's Statistics\");\n\t\tlblAdoptionsStatistics.setForeground(Color.WHITE);\n\t\tlblAdoptionsStatistics.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblAdoptionsStatistics.setBounds(22, 3, 166, 27);\n\t\tpaneAdoptionStatistics.add(lblAdoptionsStatistics);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Shir Bata\");\n\t\tlblNewLabel_2.setForeground(Color.WHITE);\n\t\tlblNewLabel_2.setBounds(28, 516, 64, 23);\n\t\tpanelMenu.add(lblNewLabel_2);\n\t\t\n\t\tJLabel lblKoralBukra = new JLabel(\"Koral Bukra\");\n\t\tlblKoralBukra.setForeground(Color.WHITE);\n\t\tlblKoralBukra.setBounds(112, 516, 106, 23);\n\t\tpanelMenu.add(lblKoralBukra);\n\t\t\n\t\tJLabel lblMotiBarshazky = new JLabel(\"Moti Barshazky\");\n\t\tlblMotiBarshazky.setForeground(Color.WHITE);\n\t\tlblMotiBarshazky.setBounds(109, 536, 109, 23);\n\t\tpanelMenu.add(lblMotiBarshazky);\n\t\t\n\t\tJLabel lblTomerCarmel = new JLabel(\"Tomer Carmel\");\n\t\tlblTomerCarmel.setForeground(Color.WHITE);\n\t\tlblTomerCarmel.setBounds(18, 536, 106, 23);\n\t\tpanelMenu.add(lblTomerCarmel);\n\t\t\n\t\tJPanel paneProffessionalServices = new JPanel();\n\t\tpaneProffessionalServices.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenuClicked(panelProffesionalServices);\n\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tpaneProffessionalServices.setLayout(null);\n\t\tpaneProffessionalServices.setBackground(new Color(0, 139, 139));\n\t\tpaneProffessionalServices.setBounds(0, 315, 214, 37);\n\t\tpanelMenu.add(paneProffessionalServices);\n\t\t\n\t\tJLabel lblProffessionalServices = new JLabel(\"Proffessional Services\");\n\t\tlblProffessionalServices.setForeground(Color.WHITE);\n\t\tlblProffessionalServices.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblProffessionalServices.setBounds(22, 3, 166, 27);\n\t\tpaneProffessionalServices.add(lblProffessionalServices);\n\t\t\n\t\t\n\t\n\t\t\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBackground(new Color(47, 79, 79));\n\t\tpanel.setBounds(219, 0, 791, 585);\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\tframe.setBounds(100, 100, 1024, 622);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tpanel.add(panelAnimalInsertion);\n\t\tpanel.add(panelAvailableAnimals);\n\t\tpanel.add(panellHome);\n\t\tpanel.add(panelAdoptionHistory);\n\t\tpanel.add(panelAdoptionStatistics);\n\t\tpanel.add(panelProffesionalServices);\n\t\t\n\t\t\n\t\t\n\t\tHome_Panel home_Panel = new Home_Panel();\n\t\thome_Panel.setBounds(0, 0, 733, 494);\n\t\tpanel.add(home_Panel);\n\t\tmenuClicked(panellHome);\n\n\t\t\n\t}", "public void menu() {\n System.out.println(\n \" Warehouse System\\n\"\n + \" Stage 3\\n\\n\"\n + \" +--------------------------------------+\\n\"\n + \" | \" + ADD_CLIENT + \")\\tAdd Client |\\n\"\n + \" | \" + ADD_PRODUCT + \")\\tAdd Product |\\n\"\n + \" | \" + ADD_SUPPLIER + \")\\tAdd Supplier |\\n\"\n + \" | \" + ACCEPT_SHIPMENT + \")\\tAccept Shipment from Supplier |\\n\"\n + \" | \" + ACCEPT_ORDER + \")\\tAccept Order from Client |\\n\"\n + \" | \" + PROCESS_ORDER + \")\\tProcess Order |\\n\"\n + \" | \" + CREATE_INVOICE + \")\\tInvoice from processed Order |\\n\"\n + \" | \" + PAYMENT + \")\\tMake a payment |\\n\"\n + \" | \" + ASSIGN_PRODUCT + \")\\tAssign Product to Supplier |\\n\"\n + \" | \" + UNASSIGN_PRODUCT + \")\\tUnssign Product to Supplier |\\n\"\n + \" | \" + SHOW_CLIENTS + \")\\tShow Clients |\\n\"\n + \" | \" + SHOW_PRODUCTS + \")\\tShow Products |\\n\"\n + \" | \" + SHOW_SUPPLIERS + \")\\tShow Suppliers |\\n\"\n + \" | \" + SHOW_ORDERS + \")\\tShow Orders |\\n\"\n + \" | \" + GET_TRANS + \")\\tGet Transaction of a Client |\\n\"\n + \" | \" + GET_INVOICE + \")\\tGet Invoices of a Client |\\n\"\n + \" | \" + SAVE + \")\\tSave State |\\n\"\n + \" | \" + MENU + \")\\tDisplay Menu |\\n\"\n + \" | \" + EXIT + \")\\tExit |\\n\"\n + \" +--------------------------------------+\\n\");\n }", "@Override\n public void drawScreen(int n, int n2) {\n void mouseY;\n void mouseX;\n super.drawScreen((int)mouseX, (int)mouseY);\n float[] hsb = Color.RGBtoHSB(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), null);\n Color color = Color.getHSBColor(hsb[0], Float.intBitsToFloat(Float.floatToIntBits(6.4887953f) ^ 0x7F4FA436), Float.intBitsToFloat(Float.floatToIntBits(4.629535f) ^ 0x7F142527));\n Gui.drawRect((int)this.getX(), (int)this.getY(), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 14), (int)new Color(40, 40, 40).getRGB());\n Gui.drawRect((int)(this.getX() + this.getWidth() - 12), (int)(this.getY() + 2), (int)(this.getX() + this.getWidth() - 2), (int)(this.getY() + 12), (int)this.setting.getValue().getRGB());\n RenderUtils.drawOutline(this.getX() + this.getWidth() - 12, this.getY() + 2, this.getX() + this.getWidth() - 2, this.getY() + 12, Float.intBitsToFloat(Float.floatToIntBits(2.7144578f) ^ 0x7F2DB9AD), new Color(20, 20, 20).getRGB());\n if (this.open) {\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 14), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 28), (int)new Color(40, 40, 40).getRGB());\n float i = Float.intBitsToFloat(Float.floatToIntBits(1.3378998E38f) ^ 0x7EC94E07);\n while (i + Float.intBitsToFloat(Float.floatToIntBits(13.8331995f) ^ 0x7EDD54C9) < Float.intBitsToFloat(Float.floatToIntBits(0.07128618f) ^ 0x7F51FE7D)) {\n RenderUtils.drawRecta((float)(this.getX() + 2) + i, this.getY() + 16, Float.intBitsToFloat(Float.floatToIntBits(7.249331f) ^ 0x7F67FA85), Float.intBitsToFloat(Float.floatToIntBits(1.7045807f) ^ 0x7EEA2FB3), Color.getHSBColor(i / Float.intBitsToFloat(Float.floatToIntBits(0.115068644f) ^ 0x7F2BA91C), Float.intBitsToFloat(Float.floatToIntBits(4.3161592f) ^ 0x7F0A1DFA), Float.intBitsToFloat(Float.floatToIntBits(21.075346f) ^ 0x7E289A4F)).getRGB());\n i += Float.intBitsToFloat(Float.floatToIntBits(3.807338f) ^ 0x7E95CD0B);\n }\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 16, this.getX() + 2 + this.getWidth() - 4, this.getY() + 27, Float.intBitsToFloat(Float.floatToIntBits(2.7503529f) ^ 0x7F3005C8), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.hueWidth, this.getY() + 16, Float.intBitsToFloat(Float.floatToIntBits(5.200255f) ^ 0x7F26687D), Float.intBitsToFloat(Float.floatToIntBits(1.2665411f) ^ 0x7E921E05), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 28), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 42), (int)new Color(40, 40, 40).getRGB());\n RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 29, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(0.19645536f) ^ 0x7F792B98), new Color(255, 255, 255), color, 255, 255);\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 29, this.getX() + 2 + this.getWidth() - 4, this.getY() + 40, Float.intBitsToFloat(Float.floatToIntBits(103.69628f) ^ 0x7DCF647F), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.satWidth, this.getY() + 29, Float.intBitsToFloat(Float.floatToIntBits(7.3489017f) ^ 0x7F6B2A34), Float.intBitsToFloat(Float.floatToIntBits(0.1948352f) ^ 0x7F7782E1), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 42), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 56), (int)new Color(40, 40, 40).getRGB());\n RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 42, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(1.5246161f) ^ 0x7EF3269F), new Color(0, 0, 0), color, 255, 255);\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 42, this.getX() + 2 + this.getWidth() - 4, this.getY() + 53, Float.intBitsToFloat(Float.floatToIntBits(3.7803736f) ^ 0x7F71F1A4), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.briWidth, this.getY() + 42, Float.intBitsToFloat(Float.floatToIntBits(8.346171f) ^ 0x7E8589EB), Float.intBitsToFloat(Float.floatToIntBits(0.08925866f) ^ 0x7C86CD3F), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 56), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 70), (int)new Color(40, 40, 40).getRGB());\n this.renderAlphaBG(this.getX() + 2, this.getY() + 55, this.alphaBG);\n RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 55, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(0.13166903f) ^ 0x7F36D43F), new Color(0, 0, 0), color, 0, 255);\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 55, this.getX() + 2 + this.getWidth() - 4, this.getY() + 66, Float.intBitsToFloat(Float.floatToIntBits(19.69502f) ^ 0x7E9D8F67), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.alphaWidth, this.getY() + 55, Float.intBitsToFloat(Float.floatToIntBits(6.702013f) ^ 0x7F5676E4), Float.intBitsToFloat(Float.floatToIntBits(0.13652846f) ^ 0x7F3BCE1E), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 70), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 84), (int)new Color(40, 40, 40).getRGB());\n Europa.FONT_MANAGER.drawString(\"Rainbow\", this.getX() + 3, (float)(this.getY() + 78) - Europa.FONT_MANAGER.getHeight() / Float.intBitsToFloat(Float.floatToIntBits(0.8730777f) ^ 0x7F5F8205), Color.WHITE);\n Gui.drawRect((int)(this.getX() + this.getWidth() - 12), (int)(this.getY() + 72), (int)(this.getX() + this.getWidth() - 2), (int)(this.getY() + 82), (int)new Color(30, 30, 30).getRGB());\n if (this.setting.getRainbow().booleanValue()) {\n RenderUtils.prepareGL();\n GL11.glShadeModel((int)7425);\n GL11.glEnable((int)2848);\n GL11.glLineWidth((float)Float.intBitsToFloat(Float.floatToIntBits(0.2713932f) ^ 0x7EAAF40D));\n GL11.glBegin((int)1);\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.015137452f) ^ 0x7F070313)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(1.1948546f) ^ 0x7CE7F0FF)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.36357376f) ^ 0x7DC52657)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8), (double)(this.getY() + 80));\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.015521388f) ^ 0x7F014D6B)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.01025841f) ^ 0x7F5712E4)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.10675689f) ^ 0x7EA5A35B)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8 + 4), (double)(this.getY() + 74));\n GL11.glEnd();\n GL11.glBegin((int)1);\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.009417259f) ^ 0x7F654AD9)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.07014828f) ^ 0x7EF0A9E7)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.013465701f) ^ 0x7F239F3E)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8), (double)(this.getY() + 80));\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.0155056f) ^ 0x7F010B33)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.011914493f) ^ 0x7F3C3501)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.012230922f) ^ 0x7F376434)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 10), (double)(this.getY() + 77));\n GL11.glEnd();\n RenderUtils.releaseGL();\n }\n }\n Gui.drawRect((int)(this.getX() - 1), (int)this.getY(), (int)this.getX(), (int)(this.getY() + 84), (int)new Color(30, 30, 30).getRGB());\n Gui.drawRect((int)(this.getX() + this.getWidth()), (int)this.getY(), (int)(this.getX() + this.getWidth() + 1), (int)(this.getY() + 84), (int)new Color(30, 30, 30).getRGB());\n Europa.FONT_MANAGER.drawString(this.setting.getName(), this.getX() + 3, this.getY() + 3, Color.WHITE);\n }", "public void menu() {\n\t\tsuper.menu();\n\n\t\tfor(JCheckBox cb : arrayCompo){\n\t\t\tcb.setPreferredSize(new Dimension(largeur-30, hauteur));\n\t\t\tgbc.gridy++;\n\t\t\tpan.add(cb, gbc);\n\t\t}\n\t}", "private void settingsScreenRender() {\n overlay.draw(batch, 0.5f);\n uiFont.draw(batch, scoreTxt, 0, HEIGHT - (scoreLayout.height));\n uiFont.draw(batch, healthTxt, WIDTH / 2, HEIGHT - (healthLayout.height));\n musicOn.draw(batch, 1);\n musicOff.draw(batch, 1);\n resume.draw(batch, 1);\n settingStage.draw();\n }", "public void display() {\n shadow.display();\r\n strokeWeight(strokeWeight);\r\n fill(boxColour);\r\n rect(x, y, w, h, 7);\r\n }", "public void display() {\n float dRadial = reactionRadialMax - reactionRadial;\n if(dRadial != 0){\n noStroke();\n reactionRadial += abs(dRadial) * radialEasing;\n fill(255,255,255,150-reactionRadial*(255/reactionRadialMax));\n ellipse(location.x, location.y, reactionRadial, reactionRadial);\n }\n \n // grow text from point of origin\n float dText = textSizeMax - textSize;\n if(dText != 0){\n noStroke();\n textSize += abs(dText) * surfaceEasing;\n textSize(textSize);\n }\n \n // draw agent (point)\n fill(255);\n pushMatrix();\n translate(location.x, location.y);\n float r = 3;\n ellipse(0, 0, r, r);\n popMatrix();\n noFill(); \n \n // draw text \n textSize(txtSize);\n float lifeline = map(leftToLive, 0, lifespan, 25, 255);\n if(mouseOver()){\n stroke(229,28,35);\n fill(229,28,35);\n }\n else {\n stroke(255);\n fill(255);\n }\n \n text(word, location.x, location.y);\n \n // draw connections to neighboars\n gaze();\n }", "void drawBuilding() {\r\n\t\tgc.setFill(Color.BEIGE);\r\n\t\tgc.fillRect(0, 0, theBuilding.getXSize(), theBuilding.getYSize()); // clear the canvas\r\n\t\ttheBuilding.showBuilding(this); // draw all items\r\n\r\n\t\tString s = theBuilding.toString();\r\n\t\trtPane.getChildren().clear(); // clear rtpane\r\n\t\tLabel l = new Label(s); // turn string to label\r\n\t\trtPane.getChildren().add(l); // add label\r\n\r\n\t}", "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 void drawEssentialComponents(){\n//\t\tDraw the Player\n\t\tbatch.draw(Player.getPlayerImage(), Player.getxPlayerLoc(), Player.getyPlayerLoc(), Player.getPlayerImage().getWidth() * Player.getPlayerScale(),Player.getPlayerImage().getHeight() * Player.getPlayerScale());\t\t\n\t\t\n\t\t\n//\t\tDraw the Boxes\n\t\tfor(Box aAnswer:possAnswers){\n\t\t\tif(aAnswer.isDrawable()){\n\t\t\t\tbatch.draw(aAnswer.getImage(), aAnswer.getBoxXStart(), aAnswer.getBoxYStart(), aAnswer.getImage().getWidth() * aAnswer.getBoxScale(),aAnswer.getImage().getHeight() * aAnswer.getBoxScale());\t\t\t\n\t\t\t\tfont1.draw(batch,Character.toString(aAnswer.getDisplaySelection()), aAnswer.getBoxXStart(), aAnswer.getBoxYStart());\n\t\t\t\tfont.draw(batch,(aAnswer.getDisplaySelection() + \": \" + aAnswer.getaString()), aAnswer.getDrawXLoc(),aAnswer.getDrawYLoc() );\n//\t\t\t\tfont.drawWrapped(batch, (aAnswer.getDisplaySelection() + \": \" + aAnswer.getaString()), aAnswer.getDrawXLoc(),aAnswer.getDrawYLoc(), setBoxWindow(aAnswer.))\n\t\t\t}\n\t\t}\n\n//\t\tDraw the Question\n\t\tfont.draw(batch, ques, 0 , screenHeight );\n\n\t}", "public static void main(String[] args){\n JFrame jTest = new JFrame(\"Menu Bar Test\");\n jTest.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n jTest.setLayout(new GridLayout(0,1));\n String[] s = {\"Customer Number\",\"Simulation Time\"};\n menuSequence m = new menuSequence(\"Termination Method: \",s);\n jTest.add(m);\n jTest.setSize(500,500);\n jTest.setVisible(true);\n }", "protected void render() {\n\t\tentities.render();\n\t\t// Render GUI\n\t\tentities.renderGUI();\n\n\t\t// Flips the page between the two buffers\n\t\ts.drawToGraphics((Graphics2D) Window.strategy.getDrawGraphics());\n\t\tWindow.strategy.show();\n\t}", "private void createComponents() {\n view = new JPanel(new GridBagLayout());\n\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.gridx = 0;\n constraints.gridy = 0;\n constraints.weightx = 1;\n constraints.weighty = 1;\n constraints.fill = GridBagConstraints.BOTH;\n\n view.add(new JPanel(), constraints);\n\n constraints.gridy = 1;\n view.add(new JPanel(), constraints);\n\n constraints.gridx = 1;\n constraints.weighty = 4;\n constraints.weightx = 6;\n view.add(renderMain(), constraints);\n\n constraints.gridx = 2;\n constraints.weightx = 1;\n constraints.weighty = 1;\n view.add(new JPanel(), constraints);\n\n constraints.gridx = 0;\n constraints.gridy = 2;\n view.add(renderBottom(), constraints);\n\n registerEvents();\n }", "public void drawScreen(int par1, int par2, float par3)\n {\n \tStringTranslate var1 = StringTranslate.getInstance();\n this.drawDefaultBackground();\n this.drawCenteredString(this.fontRenderer, this.screenTitle, this.width / 2, 20, 16777215);\n int var4 = this.func_73907_g();\n int var5 = 0;\n\n while (var5 < this.options.keyBindings.length)\n {\n boolean var6 = false;\n int var7 = 0;\n\n while (true)\n {\n if (var7 < this.options.keyBindings.length) // checking for collisions in the minimap's bindings, and the game's bindings from 0 to the size of the minimap's bindings\n {\n if (this.options.keyBindings[var5].keyCode == Keyboard.KEY_NONE || (var7 == var5 || this.options.keyBindings[var5].keyCode != this.options.keyBindings[var7].keyCode) && (this.options.keyBindings[var5].keyCode != this.options.game.gameSettings.keyBindings[var7].keyCode))\n {\n ++var7;\n continue;\n }\n\n var6 = true; // collision\n }\n \n if (var7 < this.options.game.gameSettings.keyBindings.length) // continue checking for collisions only among the standard game's keybindings - an array larger than that of the minimap.\n {\n if (this.options.keyBindings[var5].keyCode == Keyboard.KEY_NONE || this.options.keyBindings[var5].keyCode != this.options.game.gameSettings.keyBindings[var7].keyCode)\n {\n ++var7;\n continue;\n }\n\n var6 = true; // collision\n }\n\n if (this.buttonId == var5) // buttonId is currently being edited button. Draw > ??? <\n {\n ((GuiButton)this.controlList.get(var5)).displayString = \"\\u00a7f> \\u00a7e??? \\u00a7f<\";\n }\n else if (var6) // key collision, draw red\n {\n ((GuiButton)this.controlList.get(var5)).displayString = \"\\u00a7c\" + this.options.getOptionDisplayString(var5);\n }\n else // just show current binding\n {\n ((GuiButton)this.controlList.get(var5)).displayString = this.options.getOptionDisplayString(var5);\n }\n\n this.drawString(this.fontRenderer, this.options.getKeyBindingDescription(var5), var4 + var5 % 2 * 160 + 70 + 6, this.height / 6 + 24 * (var5 >> 1) + 7, -1);\n ++var5;\n break;\n }\n }\n \n this.drawCenteredString(this.fontRenderer, var1.translateKey(\"controls.minimap.unbind1\"), this.width / 2, this.height / 6 + 115, 16777215);\n this.drawCenteredString(this.fontRenderer, var1.translateKey(\"controls.minimap.unbind2\"), this.width / 2, this.height / 6 + 129, 16777215);\n\n\n super.drawScreen(par1, par2, par3);\n }", "private void drawScreen(Graphics g) {\n \n iMenu.drawScreen(g, itemFocused, lastItemFocused, iCustomPopup.isMessageFocused(), \"\");\n //#if KEYPAD\n //|JG| if (UISettings.RENAMETEXTBOX == lastItemFocused) { //Rename Text box\n //|JG| try{\n //|JG| CustomCanvas.drawTextBox(0xff35f3, iKeyHandler.getRenameTempText(),\n //|JG| iKeyHandler.getKeyChar(), null, iMenu.getMenuPosition(false) + iMenu.getSelectedIndex() * UISettings.itemHeight,\n //|JG| iKeyHandler.getRenameTextCursorPos(),textboxSize, g,1,-1);\n //|JG| }catch(Exception e){\n //|JG| iKeyHandler.setRenameTextValue(iKeyHandler.getRenameTempText());\n //|JG| }\n //|JG| }\n //#endif\n \n bannerHandler.drawScreen(g,itemFocused);\n }", "public static void f_menu(){\n System.out.println(\"╔══════════════════════╗\");\r\n System.out.println(\"║ SoftAverageHeight ║\");\r\n System.out.println(\"║Version 1.0 20200428 ║\");\r\n System.out.println(\"║Created by:Andres Diaz║\");\r\n System.out.println(\"╚══════════════════════╝\");\r\n\r\n }", "public void paint() {\n int L = 150; // Local convenience var\n\n // Declare three lines (left, middle, and right)\n Line left = new Line(L, L, L, getHeight() - L);\n Line middle = new Line(L, getHeight() / 2, getWidth() - L, getHeight() / 2);\n Line right = new Line(getWidth() - L, L, getWidth() - L, getHeight() - L);\n\n getChildren().clear(); // Clear the pane before redisplay\n\n displayHTree(order, left, middle, right); // Call the recursive method\n }", "public void drawNonEssentialComponents(){\n\t\t\n\t}", "private void initUI() {\r\n\t\tthis.verticalLayout = new XdevVerticalLayout();\r\n\t\tthis.verticalLayout2 = new XdevVerticalLayout();\r\n\t\r\n\t\tthis.setSpacing(false);\r\n\t\tthis.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout.setSpacing(false);\r\n\t\tthis.verticalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout2.setMargin(new MarginInfo(false));\r\n\t\r\n\t\tthis.verticalLayout2.setSizeFull();\r\n\t\tthis.verticalLayout.addComponent(this.verticalLayout2);\r\n\t\tthis.verticalLayout.setComponentAlignment(this.verticalLayout2, Alignment.MIDDLE_CENTER);\r\n\t\tthis.verticalLayout.setExpandRatio(this.verticalLayout2, 20.0F);\r\n\t\tthis.verticalLayout.setSizeFull();\r\n\t\tthis.addComponent(this.verticalLayout);\r\n\t\tthis.setComponentAlignment(this.verticalLayout, Alignment.MIDDLE_CENTER);\r\n\t\tthis.setExpandRatio(this.verticalLayout, 10.0F);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.addContextClickListener(event -> this.this_contextClick(event));\r\n\t}", "public void paintComponent(Graphics g) {\n\n\t\t\tif (death==false) {//if we arent dead, the game must be drawn\n\t\t\t\tif (background!=null) {//draw background\n\t\t\t\t\tg.drawImage(background.getImage(), background.getX(), background.getY(), this);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (blocks!=null) {//draw the blocks. from the list\n\t\t\t\t\t//System.out.println(\"Yes\");\n\t\t\t\t\tfor (int x = blocks.size()-1; x>= 0; x--) {\n\t\t\t\t\t\tif (blocks.get(x).getDisable()) {//if the blocks are disabled, destroy\n\t\t\t\t\t\t\tblocks.remove(x);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfor (int t = 0; t<blocks.size(); t++) {//now draw the blocks.\n\t\t\t\t\t\t//System.out.printf(\"%d %d %d %d\\n\",blocks.get(t).getX(), blocks.get(t).getY(), blocks.get(t).getWidth(), blocks.get(t).getHeight());\n\t\t\t\t\t\tg.setColor(blocks.get(t).getColor());\n\t\t\t\t\t\tg.fillRect(blocks.get(t).getX(), blocks.get(t).getY(), blocks.get(t).getWidth(), blocks.get(t).getHeight());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (slider!=null) {//if the slider isnt null, draw it\n\t\t\t\t\t//System.out.printf(\"%d %d\\n\",slider.getX(), slider.getY());\n\t\t\t\t\tg.drawImage(slider.getImage(), slider.getX(), slider.getY(), this);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ball!=null) {//draw ball.\n\t\t\t\t\tg.drawImage(ball.getImage(), ball.getX(), ball.getY(), this);\n\t\t\t\t}\n\t\t\t\tfor (PowerUp power: powerUps) {//draw all of the powerups\n\t\t\t\t\tg.drawImage(power.getImage(), power.getX(), power.getY(), this);\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//draw bottom frame\n\t\t\t\t\n\t\t\t\tg.setColor(new Color(0,0,0));\n\t\t\t\tg.fillRect(0, GamePlay.getScreenHeight()-h, GamePlay.getScreenWidth(), h);//this is the menu bar\n\t\t\t\t\n\t\t\t\t//draw score\n\t\t\t\tg.setColor(new Color(255,255,255));\n\t\t\t\tg.setFont(new Font(\"Helvetica\", Font.PLAIN, 32));\n\t\t\t\tg.drawString(String.format(\"Score: %d\", score), GamePlay.getScreenWidth() - 5 - g.getFontMetrics().stringWidth(String.format(\"Score: %d\", score)), GamePlay.getScreenHeight() - 5 - 32);\n\t\t\t\t\n\t\t\t\t//paused\n\t\t\t\tif (stopped) {\n\t\t\t\t\tg.drawString(\"Paused\", 10, 42);//upper left corner of the screen. just say paused so user knows\n\t\t\t\t}\n\t\t\t\t//lives\n\t\t\t\tint livesFontSize=15;\n\t\t\t\tg.setFont(new Font(\"Helvetica\", Font.PLAIN, livesFontSize));\n\t\t\t\tg.drawString(String.format(\"Lives: %d\", lives), 20+5+pauseButton.getWidth(), GamePlay.getScreenHeight()-h+(2+livesFontSize));\n\t\t\t\t\n\t\t\t\tfor (int x=0; x<lives; x++) {//draw one ball for every life they have. \n\t\t\t\t\t//System.out.println(\"hey\");\n\t\t\t\t\tg.drawImage(ball.getImage(), 5+pauseButton.getWidth()+20+(5+ball.getWidth())*x, GamePlay.getScreenHeight()-(h/2)-(ball.getHeight())+(livesFontSize/2), this);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//logo\n\t\t\t\tg.drawImage(logo.getImage(), GamePlay.getScreenWidth()/2-logo.getWidth()/2, GamePlay.getScreenHeight() - (h/2) - (logo.getHeight()/2)-10, this);\n\t\t\t\t\n\t\t\t\t//pause button\n\t\t\t\tg.drawImage(pauseButton.getImage(), 5, GamePlay.getScreenHeight() - (h/2) - pauseButton.getHeight()/2 -10 , this);\n\t\t\t\t\n\t\t\t} else {//this means the player died.\n\t\t\t\t\n\t\t\t\t//draw black background \n\t\t\t\t\n\t\t\t\t//draw logo\n\t\t\t\tlogo.resize(400,100);\n\t\t\t\tg.setColor(new Color(0,0,0));\n\t\t\t\tg.fillRect(0, 0, GamePlay.getScreenWidth(), GamePlay.getScreenHeight());\n\t\t\t\tg.drawImage(logo.getImage(), GamePlay.getScreenWidth()/2 - logo.getWidth()/2, 100, this);\n\t\t\t\t\n\t\t\t\tg.setColor(new Color(255,255,255));//draw game over text\n\t\t\t\tg.setFont(new Font(\"Helvetica\", Font.PLAIN, 60));\n\t\t\t\tg.drawString(\"Game Over!\", GamePlay.getScreenWidth()/2 - g.getFontMetrics().stringWidth(\"Game Over!\")/2, GamePlay.getScreenHeight()/2 - 30);\n\t\t\t\t\n\t\t\t\t//draw score. \n\t\t\t\tg.drawString(String.format(\"Your Score: %d\", score), GamePlay.getScreenWidth()/2 - g.getFontMetrics().stringWidth(String.format(\"Your Score: %d\", score))/2, GamePlay.getScreenHeight()/2 + 100);\n\t\t\t}\n\t\t\t\n\t\t}", "public void init() {\n\n setBackground(Color.lightGray);\n\n x = xo = 10;\n y = yo = 10;\n // loading the first wold in the world table\n loadWorld();\n\n // registering listeners\n addKeyListener(this);\n addMouseListener(this);\n addMouseMotionListener(this);\n setFocusable(true);\n enableEvents(AWTEvent.FOCUS_EVENT_MASK);\n\n requestFocus();\n /*\n // building the popup menu\n menu = new PopupMenu();\n MenuItem start = new MenuItem(\"Start\");\n start.addActionListener(this);\n start.setActionCommand(\"start\");\n menu.add(start);\n MenuItem next = new MenuItem(\"Next\");\n next.addActionListener(this);\n next.setActionCommand(\"next\");\n menu.add(next);\n MenuItem previous = new MenuItem(\"Previous\");\n previous.addActionListener(this);\n previous.setActionCommand(\"previous\");\n menu.add(previous);\n\n menu.addSeparator();\n\n MenuItem undo = new MenuItem(\"Undo\");\n undo.addActionListener(this);\n undo.setActionCommand(\"undo\");\n menu.add(undo);\n MenuItem redo = new MenuItem(\"Redo\");\n redo.addActionListener(this);\n redo.setActionCommand(\"redo\");\n menu.add(redo);\n\n menu.addSeparator();\n\n beep = new CheckboxMenuItem(\"Beep\", beepOn);\n beep.addItemListener(this);\n beep.setActionCommand(\"beep\");\n menu.add(beep);\n\n add(menu);\n */\n }", "public void initComponents() {\n\t\tscreen = new JTextArea();\r\n screen.setBackground(Color.black);\r\n screen.setForeground(Color.green);\r\n screen.setCaretColor(Color.green);\r\n ConsoleCaret caret = new ConsoleCaret(); //set up custom caret, for looks\r\n caret.setUpdatePolicy(ConsoleCaret.ALWAYS_UPDATE);\r\n screen.setCaret(caret);\r\n screen.setEditable(false);\r\n screen.addKeyListener(this);\r\n screen.setLineWrap(true);\r\n screen.setFocusable(false);\r\n screen.getCaret().setVisible(true);\r\n initFont();\r\n \r\n commandlib = new CommandLib(this); //init command lib\r\n out = new ConsoleWriter(new ConsoleStream(screen), commandlib, prefix);\r\n commandlib.setOutput(out);\r\n scrollPane = new JScrollPane(screen);\r\n scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n scrollPane.setForeground(Color.green);\r\n scrollPane.setBackground(Color.black);\r\n scrollPane.requestFocus();\r\n scrollPane.addKeyListener(this);\r\n \r\n }", "private void buildComponents() {\r\n buildJMenuBar();\r\n setJMenuBar( gameBar );\r\n\r\n buildScorePanel();\r\n buildInfoPanel();\r\n\r\n getContentPane().add( scorePanel, \"North\" );\r\n getContentPane().add( infoPanel, \"South\" );\r\n }", "@Override\n\tprotected void setMenu() {\n\t\t\n\t\tfinal ButtonGroup actionButtonGroup = new ButtonGroup();\n\t\tfor (String s : ((TreeSite) object).actions) {\n\t\t\tJRadioButton button = new JRadioButton(s);\n\t\t\tbutton.setActionCommand(s);\n\t\t\tactionButtonGroup.add(button);\n\t\t\tmenu.add(button);\n\t\t}\n\t\t\n\t\tJPanel headingPanel = new JPanel();\n\t\theadingPanel.setLayout(new BoxLayout(headingPanel, BoxLayout.LINE_AXIS));\n\t\theadingPanel.add(new JLabel(\"Heading: \"));\n\t\tfinal JTextField headingField = new JTextField();\n\t\theadingField.setText(Float.toString(INITIAL_FLOAT_VALUE));\n\t\theadingField.setColumns(10);\n\t\theadingPanel.add(headingField);\n\t\tmenu.add(headingPanel);\n\t\t\n\t\tJPanel lengthPanel = new JPanel();\n\t\tlengthPanel.setLayout(new BoxLayout(lengthPanel, BoxLayout.LINE_AXIS));\n\t\tlengthPanel.add(new JLabel(\"Length: \"));\n\t\tfinal JTextField lengthField = new JTextField();\n\t\tlengthField.setText(Integer.toString(INITIAL_INTEGER_VALUE));\n\t\tlengthField.setColumns(10);\n\t\tlengthPanel.add(lengthField);\n\t\tmenu.add(lengthPanel);\n\t\t\n\t\tJPanel counterPanel = new JPanel();\n\t\tcounterPanel.setLayout(new BoxLayout(counterPanel, BoxLayout.LINE_AXIS));\n\t\tcounterPanel.add(new JLabel(\"Counter: \"));\n\t\tfinal JTextField counterField = new JTextField();\n\t\tcounterField.setText(Integer.toString(INITIAL_INTEGER_VALUE));\n\t\tcounterField.setColumns(10);\n\t\tcounterPanel.add(counterField);\n\t\tmenu.add(counterPanel);\n\t\t\n\t\tJPanel targetPanel = new JPanel();\n\t\ttargetPanel.setLayout(new BoxLayout(targetPanel, BoxLayout.LINE_AXIS));\n\t\ttargetPanel.add(new JLabel(\"Target position: \"));\n\t\ttargetFieldX = new JTextField();\n\t\ttargetFieldX.setEditable(false);\n\t\ttargetFieldX.setText(\"\");\n\t\ttargetFieldX.setColumns(4);\n\t\ttargetFieldY = new JTextField();\n\t\ttargetFieldY.setEditable(false);\n\t\ttargetFieldY.setText(\"\");\n\t\ttargetFieldY.setColumns(4);\n\t\ttargetPanel.add(targetFieldX);\n\t\ttargetPanel.add(new JLabel(\", \"));\n\t\ttargetPanel.add(targetFieldY);\n\t\tmenu.add(targetPanel);\n\t\tmenu.add(new SetTargetPositionButton(editor).button);\n\t\t\n\t\tJButton removeTargetButton = new JButton(\"Remove Target\");\n\t\tremoveTargetButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttargetFieldX.setText(\"\");\n\t\t\t\ttargetFieldY.setText(\"\");\n\t\t\t\teditor.targetIcon.setVisible(false);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmenu.add(removeTargetButton);\n\t\t\n\t\tfinal CyclicButtonGroup cyclicButtons = new CyclicButtonGroup();\n\t\t\n\t\tJRadioButton nonCyclicButton = new JRadioButton(\"Set to non-cyclic\");\n\t\tnonCyclicButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tcyclicButtons.beginningOfCycle.data.cycleStart = false;\n\t\t\t\t\tcyclicButtons.beginningOfCycle = null;\n\t\t\t\t} catch (NullPointerException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tcyclicButtons.add(nonCyclicButton);\n\t\t\n\t\tfinal JButton addActionButton = new JButton(\"Add Action\");\n\t\t\n\t\tmenu.add(addActionButton);\n\t\tmenu.add(nonCyclicButton);\n\t\t\n\t\taddActionButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif (actionButtonGroup.getSelection() == null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please select an action type\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tFloat headingValue = null;\n\t\t\t\tInteger lengthValue = null;\n\t\t\t\tInteger counterValue = null;\n\t\t\t\tInteger targetValueX = null;\n\t\t\t\tInteger targetValueY = null;\n\t\t\t\tboolean noTarget = false;\n\t\t\t\ttry {\n\t\t\t\t\ttargetValueX = Integer.parseInt(targetFieldX.getText());\n\t\t\t\t\ttargetValueY = Integer.parseInt(targetFieldY.getText());\n\t\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\t\tnoTarget = true;\n\t\t\t\t}\n\t\t\t\tif (headingField.getText() == null || !isValidHeading(headingField.getText())) {\n\t\t\t\t\tif (noTarget) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter a heading value greater than or equal to 0 and less than 360\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\theadingValue = Float.parseFloat(headingField.getText());\n\t\t\t\t}\n\t\t\t\tif (lengthField.getText() == null || !isValidLength(lengthField.getText())) {\n\t\t\t\t\tif (noTarget) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter an integer length value greater than 0\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tlengthValue = Integer.parseInt(lengthField.getText());\n\t\t\t\t}\n\t\t\t\tif (counterField.getText() == null || !isValidCounter(counterField.getText(), Integer.parseInt(lengthField.getText()))) {\n\t\t\t\t\tif (noTarget) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter an integer counter value greater than 0 and less than the length value\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcounterValue = Integer.parseInt(counterField.getText());\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tActionMetadata data = new ActionMetadata(actionButtonGroup.getSelection().getActionCommand(),\n\t\t\t\t\t\theadingValue, lengthValue, counterValue, false, targetValueX, targetValueY);\n\t\t\t\t((TreeSite) object).actionQueue.add(data);\n\t\t\t\tcreateActionPanel(cyclicButtons, data);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tfor (ActionMetadata metadata : ((TreeSite) object).actionQueue) {\n\t\t\tcreateActionPanel(cyclicButtons, metadata);\n\t\t}\n\t\t\n\t}", "public void buildMenu() {\n\t\tthis.Menu = new uPanel(this.layer, 0, 0, (int) (this.getWidth() * 2), (int) (this.getHeight() * 3)) {\r\n\t\t\t@Override\r\n\t\t\tpublic boolean handleEvent(uEvent event) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick() {\r\n\t\t\t\tsuper.onClick();\r\n\t\t\t\tthis.space.sortLayer(this.layer);\r\n\t\t\t\tthis.castEvent(\"MENUPANEL_CLICK\");\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.screen.addPrehide(this.Menu);\r\n\r\n\t\tthis.Node.addChild(this.Menu.getNode());\r\n\r\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 public final void initGui() {\n \tKeyboard.enableRepeatEvents(true);\n\t\t\n \tif(components == null) {\n \t\tcomponents = Lists.newArrayList();\n \t\t\n \t\ttry {\n \t\t\tbuildGui();\n \t\t} catch(Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}\n \t\n \t// XXX: Untested. Might lead to crash. Leaving it in for now.\n \tif(this.behindScreen != null) {\n \t\tthis.behindScreen.width = this.width;\n \t\tthis.behindScreen.height = this.height;\n \t\tthis.behindScreen.initGui();\n \t}\n \t\n \tlayoutGui();\n }", "private void render() {\n\n if (state == STATE.PAUSE) {\n\n return;\n }\n\n\n if (state == STATE.MENU) {\n\n menu.draw();\n arrow.render();\n return;\n\n }\n\n if (state == STATE.INSTRUCTIONS) {\n instructions.draw();\n return;\n }\n\n for (int i = 0; i < spaceShips.size(); i++) {\n spaceShips.get(i).render();\n }\n\n\n for (Enemy enemy : enemies) {\n enemy.render();\n }\n\n for (int i = 0; i < powerUps.size(); i++) {\n\n powerUps.get(i).render();\n }\n\n for (int i = 0; i < enemyBullets.size(); i++) {\n\n enemyBullets.get(i).render();\n }\n\n for (int i = 0; i < friendlyBullets.size(); i++) {\n\n friendlyBullets.get(i).render();\n }\n\n topBar.render();\n bottomBar.render();\n fps.render();\n score.render();\n\n\n }", "public void start() {\n\t\t\n\t\t/*\n\t\t * This is the main JFrame that everything will be placed on. \n\t\t * The size is set to a maximum value, and made unresizable to make repainting easier to achieve.\n\t\t */\n\t\tJFrame frame = new JFrame(\"Paint\");\n\t\tframe.setSize(Canvas.getMaxWindowSize(), Canvas.getMaxWindowSize());\n\t\tframe.setResizable(false);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\t/*\n\t\t * The mainPanel is the panel on which all the other panels will be organized.\n\t\t * It uses a BorderLayout to divide the panel into 5 possible areas: North, South, West, East, and Center.\n\t\t */\n\t\tJPanel mainPanel = new JPanel(new BorderLayout());\n\t\tframe.add(mainPanel);\n\t\t\n\t\t/*\n\t\t * The canvas is added to the center of the mainPanel.\n\t\t */\n\t\tCanvas canvas = new Canvas();\n\t\tmainPanel.add(canvas, BorderLayout.CENTER);\n\t\t\n\t\t/*\n\t\t * The topToolPanel is a JPanel that will also use a BorderLayout to organize items placed upon it.\n\t\t * It is placed in the North portion of the mainPanel.\n\t\t */\n\t\tJPanel topToolPanel = new JPanel(new BorderLayout());\n\t\tmainPanel.add(topToolPanel, BorderLayout.NORTH);\n\t\t\n\t\t/*\n\t\t * The shapeToolsPanel is JPanel on which all the buttons for different shapes will be placed. \n\t\t * It is placed in the West portion of the topToolPanel.\n\t\t */\n\t\tJPanel shapeToolsPanel = new JPanel();\n\t\ttopToolPanel.add(shapeToolsPanel, BorderLayout.WEST);\n\t\t\n\t\t/*\n\t\t * The usefulToolPanel will hold buttons for options like \"Fill\" or \"No Fill\", as well as our \"Undo\" button.\n\t\t */\n\t\tJPanel usefulToolPanel = new JPanel();\n\t\ttopToolPanel.add(usefulToolPanel, BorderLayout.EAST);\n\t\t\n\t\t/*\n\t\t * Each of the next five buttons added represent an option to choose a certain shape to draw.\n\t\t * They all get added to the shapeToolsPanel from left to right.\n\t\t */\n\t\tJButton rectButton = new JButton(\"Rectangle\");\n\t\tshapeToolsPanel.add(rectButton);\n\t\trectButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"rectangle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton circButton = new JButton (\"Circle\");\n\t\tshapeToolsPanel.add(circButton);\n\t\tcircButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"circle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton triButton = new JButton (\"Triangle\");\n\t\tshapeToolsPanel.add(triButton);\n\t\ttriButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"triangle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton lineButton = new JButton (\"Line\");\n\t\tshapeToolsPanel.add(lineButton);\n\t\tlineButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"line\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton penButton = new JButton (\"Pen\");\n\t\tshapeToolsPanel.add(penButton);\n\t\tpenButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"pen\");\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t/*\n\t\t * The following three buttons are useful tools for the program to use: the option to choose whether or not to fill shapes, and the undo option.\n\t\t * Each of these will be added to the usefulToolPanel, once again from right to left.\n\t\t */\n\t\tJButton fillButton = new JButton(\"Fill\");\n\t\tusefulToolPanel.add(fillButton);\n\t\tfillButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setIsFilled(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton outlineButton = new JButton(\"No Fill\");\n\t\tusefulToolPanel.add(outlineButton);\n\t\toutlineButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setIsFilled(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton increaseButton = new JButton (\"Increase width\");\n\t\tusefulToolPanel.add(increaseButton);\n\t\tincreaseButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeThickness(Canvas.getShapeThickness() + 1);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton decreaseButton = new JButton (\"Decrease width\");\n\t\tusefulToolPanel.add(decreaseButton);\n\t\tdecreaseButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tCanvas.setShapeThickness(Canvas.getShapeThickness() - 1);\n\t\t\t\t}catch(IllegalArgumentException exception) {\n\t\t\t\t\tSystem.out.println(\"The shape thickness cannot be zero.\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton undoButton = new JButton (\"Undo\");\n\t\tusefulToolPanel.add(undoButton);\n\t\tundoButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tcanvas.undo();\n\t\t\t\t}catch(IndexOutOfBoundsException exception) {\n\t\t\t\t\tSystem.out.println(\"No item in shape list to undo.\");\n\t\t\t\t}\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * The colorPanel is a JPanel which utilizes a GridLayout to organize buttons from the top to the bottom.\n\t\t * It is set up to have more rows than are actually filled to minimize the size of each button on it.\n\t\t */\n\t\tJPanel colorPanel = new JPanel(new GridLayout(defaultGridRows, defaultGridColumns, defaultGridPadding, defaultGridPadding));\n\t\tmainPanel.add(colorPanel, BorderLayout.WEST);\n\t\t\n\t\t/*\n\t\t * Each of the following buttons will be added to the colorPanel.\n\t\t * They will stack one on top of the other as the grid is set up to only have one column.\n\t\t * Additionally, the text portion of each button will be set to the color that the button is connected to.\n\t\t */\n\t\tJButton blackButton = new JButton (\"Black\");\n\t\tcolorPanel.add(blackButton);\n\t\tblackButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.black);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton yellowButton = new JButton (\"Yellow\");\n\t\tyellowButton.setForeground(Color.yellow);\n\t\tcolorPanel.add(yellowButton);\n\t\tyellowButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.yellow);\n\t\t\t}\n\t\t});\n\n\t\tJButton greenButton = new JButton (\"Green\");\n\t\tgreenButton.setForeground(Color.green);\n\t\tcolorPanel.add(greenButton);\n\t\tgreenButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.green);\n\t\t\t}\n\t\t});\n\n\t\tJButton blueButton = new JButton (\"Blue\");\n\t\tblueButton.setForeground(Color.blue);\n\t\tcolorPanel.add(blueButton);\n\t\tblueButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.blue);\n\t\t\t}\n\t\t});\n\n\t\tJButton magentaButton = new JButton (\"Magenta\");\n\t\tmagentaButton.setForeground(Color.magenta);\n\t\tcolorPanel.add(magentaButton);\n\t\tmagentaButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.magenta);\n\t\t\t}\n\t\t});\n\n\t\tJButton redButton = new JButton (\"Red\");\n\t\tredButton.setForeground(Color.red);\n\t\tcolorPanel.add(redButton);\n\t\tredButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.red);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton pinkButton = new JButton (\"Pink\");\n\t\tpinkButton.setForeground(Color.pink);\n\t\tcolorPanel.add(pinkButton);\n\t\tpinkButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.pink);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tframe.setVisible(true);\n\t}", "public abstract void displayMenu();", "public void makeGUI()\n\t{\n\t\tbuttonPanel = new ButtonPanel(this,ship,planet);\n\t\tgamePanel = new GamePanel(this,ship,planet);\n\n\t\tJMenuBar menubar = new JMenuBar();\n\t\tJMenu menuHelp = new JMenu(\"Help\");\n\t\thelpItem = new JMenuItem(\"Help\");\n\t\tmenuHelp.add(helpItem);\n\t\tmenubar.add(menuHelp);\n\t\tsetJMenuBar(menubar);\n\n\t\tsounds = new AudioClip[2];\n\n\t\ttry\n\t\t{\n\t\t\turl = new URL(getCodeBase() + \"/thrust.au\");\n\t\t\tsounds[0] = Applet.newAudioClip(url);\n\t\t\turl = new URL(getCodeBase() + \"/crash.au\");\n\t\t\tsounds[1] = Applet.newAudioClip(url);\n\t\t}\n\t\tcatch(Exception e){}\n\n\t\thelpItem.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tif(e.getSource() == helpItem)\n\t\t\t\t{\n\t\t\t\t\tString helpMessage = \"The goal of the game is to land\\nthe ship on the red lines (pads).\\nThe ship must be completely contained\\nwithin the bounds of the red pad.\\nThere are 10 levels total\\nand you will have a certain amount\\nof time to complete each level.\\nGood Landing: velocities must be <10\\nOK Landing: velocities must be <20\\nThe ship's bottom must be facing the ground.\";\n\t\t\t\t\tJOptionPane.showMessageDialog(lander, helpMessage, \"Help Display\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tgetContentPane().add(gamePanel, BorderLayout.PAGE_START);\n\t\tgetContentPane().add(buttonPanel, BorderLayout.PAGE_END);\n\t\tsetVisible(true);\n\t}" ]
[ "0.764645", "0.7218162", "0.7102535", "0.7095359", "0.69849664", "0.69120556", "0.68973523", "0.67730343", "0.67711174", "0.671771", "0.6661162", "0.66506696", "0.66226184", "0.6590804", "0.65893644", "0.6523769", "0.65079534", "0.64956754", "0.6478782", "0.64755297", "0.64679873", "0.6438227", "0.64370227", "0.642051", "0.64128524", "0.6405205", "0.64020234", "0.638665", "0.6384282", "0.63728976", "0.635286", "0.6346209", "0.6336173", "0.63301724", "0.6306433", "0.63005596", "0.6299684", "0.6297541", "0.62885916", "0.6279862", "0.62662053", "0.62436974", "0.62371874", "0.6236016", "0.6226959", "0.62239504", "0.62223977", "0.6220461", "0.62152994", "0.62135977", "0.6195118", "0.61874163", "0.6186045", "0.6184292", "0.6183405", "0.61817515", "0.6178743", "0.6177841", "0.6176191", "0.6170939", "0.61697793", "0.6169397", "0.61630833", "0.6146989", "0.6146637", "0.6143631", "0.61434144", "0.6143163", "0.61349946", "0.6131096", "0.61183155", "0.6118307", "0.6110319", "0.61078095", "0.610306", "0.6095899", "0.60916364", "0.60908437", "0.6090689", "0.60886484", "0.60870993", "0.6085651", "0.60727715", "0.60636544", "0.60608053", "0.60605925", "0.60581607", "0.60467905", "0.60406995", "0.60266197", "0.6022706", "0.60185903", "0.6012824", "0.6011758", "0.6006547", "0.5999568", "0.5996191", "0.59928566", "0.5988295", "0.5988221", "0.5979822" ]
0.0
-1
this method runs when right mouse button was pressed
void onRightClick(double mouseX, double mouseY);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void rightClick(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void rightClick(MouseEvent e) {\n\n\t}", "public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n isRightPressed = true;\n }\n }", "@Override\n\tpublic void RightButtonClick() {\n\t\t\n\t}", "@Override\n\tpublic void RightButtonClick() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onRightClick() {\n\t\t\t}", "public void rightPressed() {\n System.out.println(\"rightPressed()\");\n current.translate(0, 1);\n display.showBlocks();\n }", "public void rightPressed() \n\t{\n\t\tkeys.get(keys.put(Keys.RIGHT, true));\n\t}", "public void rightPressed() {\n\t\tif (edit) {\n\t\t\tcurrentDeck.right();\n\t\t}\n\t}", "default public void clickRight() {\n\t\tremoteControlAction(RemoteControlKeyword.RIGHT);\n\t}", "public abstract void onRightButtonClick();", "abstract void onRightClick(int x, int y, boolean down);", "private void rightButtonKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_rightButtonKeyPressed\n\n this.rightButton.setEnabled(true);\n if(!this.right){\n this.controller.setRight(true);\n this.right = true;\n }\n }", "public void rightPressed()\r\n {\r\n worldPanel.newMapPos(zoom,0);\r\n miniMap.newMapPos(1,0);\r\n }", "public void mouseLeft() {\n\n\t}", "@Override\n\tpublic void LeftButtonClick() {\n\t\t\n\t}", "void onLeftMouseButtonReleased(double mouseX, double mouseY);", "@Override\n\tpublic void mouseLeft() {\n\t\t\n\t}", "@Override\n\tpublic void leftClick(MouseEvent e) {\n\n\t}", "private void handleRight() {\r\n\t\tcontroller.getCurrentPosition().realocate((controller.getCurrentPosition().getY()), controller.getCurrentPosition().getX()+1);\r\n\t\t// if User reaches the end of the board reset position\r\n\t\tif(controller.getCurrentPosition().getX()== controller.getNumberColumns()-1) {\r\n\t\t\tcontroller.getCurrentPosition().realocate((controller.getCurrentPosition().getY()), 0);\r\n\t\t}\r\n\t\t// remove the pseudo Class from all nodes so that only the cell that was pressed last looks 'pressed'\r\n\t\tfor (Node n : controller.getGridBoard().getChildren()) {\r\n\t\t\t((StackPane) n).pseudoClassStateChanged(PseudoClass.getPseudoClass(\"pressed\"), false);\r\n\t\t\tif (GridPane.getColumnIndex(n) == controller.getCurrentPosition().getX() && GridPane.getRowIndex(n) == controller.getCurrentPosition().getY()) {\r\n\t\t\t\t((StackPane) n).pseudoClassStateChanged(PseudoClass.getPseudoClass(\"pressed\"), true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void rightClick() {\r\n\t\tMinecraftForge.EVENT_BUS.register(playerUtil);\r\n\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\t\t\tswitch(num){\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tright.setIcon(right1);\n\t\t\t\t\t\t\t//右移\n\t\t\t\t\t\t\tRightMove();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tsearchButton.setIcon(search1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n public void onDirectRightKeyPress() {\n \n }", "@Override\n public void onDirectRightKeyPress() {\n \n }", "public void rightButtonPressed() {\n\t\t\n\t\t// Only register a click if the sensor is enabled\n\t\tif(droneApp.myDrone.isConnected) {\n\t\t\tif (on) {\n\t\t\t\tif(!inCountdown1Mode) {\n\t\t\t\t\tIntent myIntent = new Intent(getApplicationContext(), GraphActivity.class);\n\t\t\t\t\tmyIntent.putExtra(\"SensorName\", \"Oxidizing Gas\");\n\t\t\t\t\tmyIntent.putExtra(\"quickInt\", qsSensor);\n\t\t\t\t\tstartActivity(myIntent);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t//\n\t\t\t}\n\t\t}\n\t}", "void keyRight();", "private void rightButtonKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_rightButtonKeyReleased\n this.rightButton.setEnabled(false);\n this.controller.setRight(false);\n this.right = false;\n }", "public void mousePressed(MouseEvent e) {\n\t\t\t\t\t\tswitch(num){\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tright.setIcon(right1);\n\t\t\t\t\t\t\t//右移\n\t\t\t\t\t\t\tRightMove();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tconfirm.setIcon(confirm1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void setRightPressed(double x, double y) {\n pressedX = x;\n pressedY = y;\n }", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t}", "static void isNotRightClick(){isRightClick=false;}", "@Override\r\n \tpublic void mousePressed(MouseEvent e)\r\n \t{\r\n\t if (showDebug && e.isPopupTrigger()) {\r\n\t rightClickMenu.show(e.getComponent(),\r\n\t e.getX(), e.getY());\r\n\t }\r\n \t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "boolean onLeftClick(double mouseX, double mouseY);", "@Override\n\tpublic void rightNavClick() {\n\t\t\n\t}", "@Override\n\t\t public void handle(MouseEvent mouseEvent) {\n\t\t \tif(mouseEvent.getButton() == MouseButton.PRIMARY && mouseEvent.getClickCount() == 2){\n\t\t \t\tfinal AbstractEntity entity = getTreeElement();\n\t\t\t\t\trightContainerFillListener.setupRightContainer(entity);\n\t\t }\n\t\t \t//Rechtsclick Mouse\n\t\t \tif(mouseEvent.getButton() == MouseButton.SECONDARY){\n\t\t \t\tcontextMenu.updateItems(getTreeElement());\n\t\t \t}\n\t\t }", "public void mouseClicked(MouseEvent event){\r\n\t\t//we also want to let the game controller know if it was left or right\r\n\t\tif(SwingUtilities.isRightMouseButton(event)){\r\n\t\t\tgameController.reactToRightClick(new Point(event.getX(), event.getY()));\r\n\t\t}else{\r\n\t\t\tgameController.reactToLeftClick(new Point(event.getX(),event.getY()));\r\n\t\t}\r\n\t}", "@Override\n\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t}", "@Override\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\tint keycode = arg0.getButton();\n\t\tif (keycode == LEFT_CLICK)\n\t\t{\n\t\t\tleftDown = false;\n\t\t}\n\t\tif (keycode == RIGHT_CLICK)\n\t\t{\n\t\t\trightDown = false;\n\t\t\t\n\t\t}\n\t}", "public void moveCursorRight();", "public void rightReleased() \n\t{\n\t\tkeys.get(keys.put(Keys.RIGHT, false));\n\t}", "public void right(){\n\t\tmoveX=1;\n\t\tmoveY=0;\n\t}", "@Override\n\tpublic void mouseDown(MouseEvent arg0) {\n\n\t}", "public void mousePressed(MouseEvent e) {\r\n\t\tmouseMoved(e);\r\n\t\tmenuControl();\r\n\t\t\r\n\t}", "public void mousePressed(MouseEvent e) {\n if (gameover)\n return;// if game is over, do nothing\n\n if ((e.getModifiersEx() == 5120)) // Both left and right buttons\n // are pressed\n watchAroundCell(x, y);\n else if ((e.getModifiersEx() == 1024)) // Left button is pressed\n if (fieldManager.isCellOpenable(x, y))\n fieldInerface.putBlankButton(x, y);\n }", "private void handleEvent(final MouseEvent event) {\r\n\r\n\t\tif (SwingUtilities.isRightMouseButton(event)) {\r\n\t\t\tswitch (event.getID()) {\r\n\t\t\tcase MouseEvent.MOUSE_PRESSED:\r\n\t\t\t\tthis.saveCursorPosition(event);\r\n\t\t\t\tbreak;\r\n\t\t\tcase MouseEvent.MOUSE_DRAGGED:\r\n\t\t\t\tthis.rotate(event);\r\n\t\t\t\tthis.saveCursorPosition(event);\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 mousePressed(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n //System.out.println(\"->Mouse: Presionando Click \" + boton );\n }", "@Override\r\n \tpublic void mouseReleased(MouseEvent e)\r\n \t{\r\n\t if (showDebug && e.isPopupTrigger()) {\r\n\t rightClickMenu.show(e.getComponent(),\r\n\t e.getX(), e.getY());\r\n\t }\r\n \t}", "private boolean isRightButtonEvent(MouseEvent me) {\r\n\t\treturn ((me.getModifiers() & MouseEvent.BUTTON3_MASK) == MouseEvent.BUTTON3_MASK);\r\n\t}", "private void right() {\n lastMovementOp = Op.RIGHT;\n rotate(TURNING_ANGLE);\n }", "private void rightBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rightBtnActionPerformed\n if (rotateL == 0) {\n rotateL = 1;\n r.stop();\n l.start();\n } else {\n rotateL = 0;\n l.stop();\n }\n\n }", "public void rightSwipe() {\n flingContainer.getTopCardListener().selectRight();\n }", "public SceneState handleRightClick(PVector position) {\n \n mContext.mManager.fireBlackHole(position); \n return this;\n\n }", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "protected void right() {\n move(positionX + 1, positionY);\n orientation = 0;\n }", "@Override\n public void mousePressed(MouseEvent e){\n \n }", "public void mousePressed(MouseEvent e) {\n if ((e.getModifiers() & InputEvent.BUTTON1_MASK) == InputEvent.BUTTON1_MASK) { // left\n movelight();\n display();\n repaint();\n e.consume();\n }\n }", "public void mousePressed() {\n }", "@Override\n public void mousePressed(MouseEvent e) {\n }", "public void moveRight() {\n Coordinate rightCoord = new Coordinate(getX() + 1, getY());\n handleMove(rightCoord, InteractionHandler.RIGHT);\n }", "private void cursorMoveRightest() {\n\t\td(\"Warn cursorMoveRightest() NOT implemented\");\r\n\t}" ]
[ "0.82246554", "0.8138599", "0.8131905", "0.80746496", "0.80746496", "0.7846723", "0.77797234", "0.7660918", "0.7552047", "0.7528816", "0.7487702", "0.74206305", "0.7403483", "0.7391535", "0.7262471", "0.7208772", "0.71701247", "0.7134126", "0.71306205", "0.71286464", "0.710844", "0.70937204", "0.70326895", "0.70326895", "0.7023959", "0.69524133", "0.69503754", "0.69446814", "0.69128215", "0.69128215", "0.69128215", "0.69128215", "0.69128215", "0.69128215", "0.69128215", "0.69128215", "0.69128215", "0.69128215", "0.68951404", "0.68342906", "0.6810847", "0.6808099", "0.67844313", "0.67844313", "0.67844313", "0.67844313", "0.67844313", "0.67844313", "0.67844313", "0.6763439", "0.6755815", "0.67462707", "0.6706271", "0.66916823", "0.66916823", "0.6654632", "0.6629805", "0.66220075", "0.66167283", "0.65981734", "0.6597838", "0.6589818", "0.6546967", "0.6541103", "0.65368456", "0.6492522", "0.64894557", "0.6468649", "0.6468013", "0.6457637", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6446349", "0.6430902", "0.64263177", "0.6410465", "0.6408", "0.6406369", "0.6398255", "0.63964957" ]
0.79368484
5
this method runs when left mouse button was pressed
boolean onLeftClick(double mouseX, double mouseY);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseLeft() {\n\n\t}", "@Override\n\tpublic void mouseLeft() {\n\t\t\n\t}", "@Override\n\tpublic void leftClick(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void LeftButtonClick() {\n\t\t\n\t}", "public void mousePressed(MouseEvent e) {\n if ((e.getModifiers() & InputEvent.BUTTON1_MASK) == InputEvent.BUTTON1_MASK) { // left\n movelight();\n display();\n repaint();\n e.consume();\n }\n }", "void onLeftMouseButtonReleased(double mouseX, double mouseY);", "public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n isRightPressed = true;\n }\n }", "public void leftPressed() {\n System.out.println(\"leftPressed()\");\n current.translate(0, -1);\n display.showBlocks();\n }", "public void leftPressed() {\n\t\tkeys.get(keys.put(Keys.LEFT, true));\n\t}", "private void leftButtonKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_leftButtonKeyPressed\n this.leftButton.setEnabled(true);\n if(!this.left){\n this.controller.setLeft(true);\n this.left = true;\n }\n }", "public void mousePressed(MouseEvent e) {\r\n\t\tmouseMoved(e);\r\n\t\tmenuControl();\r\n\t\t\r\n\t}", "public void leftButtonPressed() {\n\t\tif(droneApp.myDrone.isConnected) {\n\t\t\tif(!on) {\n\t\t\t\t// Enable our steamer\n\t\t\t\tstreamer.enable();\n\t\t\t\t// Enable the sensor\n\t\t\t\tdroneApp.myDrone.quickEnable(qsSensor);\n\t\t\t\t\n\t\t\t\ton = true;\n\t\t\t\t\n\t\t\t\tint w = tvSensorValue.getWidth();\n\t\t\t\tint h = tvSensorValue.getHeight();\n\t\t\t\t\n\t\t\t\tif(firstTime) {\t\t\n\t\t\t\t\tfirstTime = false;\n\t\t\t\t\twarmUpWindow1 = new PopupWindow(layout2, w, h, true);\n\t\t\t\t\twarmUpWindow1.setOutsideTouchable(true);\n\t\t\t\t\twarmUpWindow1.setFocusable(false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(warmedUp) {\n\t\t\t\t\twarmedUp = false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tshowWarmupWindow(h);\n\t\t\t\tcountdown1Handler.post(countdown1Runnable);\n\t\t\t} else {\n\t\t\t\tresetAllOperations();\n\t\t\t}\n\t\t}\n\t}", "public void leftPressed() {\n\t\tif (edit) {\n\t\t\tcurrentDeck.left();\t\n\t\t}\n\t}", "public void mousePressed(MouseEvent e) {\n if (gameover)\n return;// if game is over, do nothing\n\n if ((e.getModifiersEx() == 5120)) // Both left and right buttons\n // are pressed\n watchAroundCell(x, y);\n else if ((e.getModifiersEx() == 1024)) // Left button is pressed\n if (fieldManager.isCellOpenable(x, y))\n fieldInerface.putBlankButton(x, y);\n }", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\tl1.setText(\"You pressed the mouse\");\r\n\t}", "public void leftPressed()\r\n {\r\n worldPanel.newMapPos(-zoom,0);\r\n miniMap.newMapPos(-1,0);\r\n }", "default public void clickLeft() {\n\t\tremoteControlAction(RemoteControlKeyword.LEFT);\n\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mousePressed(MouseEvent e) {\n \t // Click gauche enfoncé\n \t if (e.getButton() == 1) {\n\t \t app.modifierCurseurVue(Cursor.MOVE_CURSOR);\n\t \t prevX = e.getX();\n\t \t prevY = e.getY();\n \t }\n }", "private void handleLeft() {\r\n\t\tcontroller.getCurrentPosition().realocate((controller.getCurrentPosition().getY()), controller.getCurrentPosition().getX()-1);\r\n\t\t// if User reaches the end of the board reset position\r\n\t\tif(controller.getCurrentPosition().getX()==-1) {\r\n\t\t\tcontroller.getCurrentPosition().realocate((controller.getCurrentPosition().getY()), controller.getNumberColumns()-1);\r\n\t\t}\r\n\t\t// remove the pseudo Class from all nodes so that only the cell that was pressed last looks 'pressed'\r\n\t\tfor (Node n : controller.getGridBoard().getChildren()) {\r\n\t\t\t((StackPane) n).pseudoClassStateChanged(PseudoClass.getPseudoClass(\"pressed\"), false);\r\n\t\t\tif (GridPane.getColumnIndex(n) == controller.getCurrentPosition().getX() && GridPane.getRowIndex(n) == controller.getCurrentPosition().getY()) {\r\n\t\t\t\t((StackPane) n).pseudoClassStateChanged(PseudoClass.getPseudoClass(\"pressed\"), true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void rightClick(MouseEvent arg0) {\n\t\t\r\n\t}", "public void mousePressed() {\n }", "public void mousePressed(MouseEvent e) {\n }", "@Override\n\tpublic void mousePressed(MouseEvent event) {\n\t\tif( event.getButton() == MouseEvent.BUTTON1 ){\n\t\t\tleftClickDrag = true;\n\t\t}else if (event.getButton() == MouseEvent.BUTTON3){\n\t\t\tleftClickDrag = false;\n\t\t}else{\n\t\t\treturn;\n\t\t}\n\t\t// Set the drag start point.\n\t\tcurrentPositionBeforeDrag = getCurrentPosition();\n\t\tdragStartPosition = event.getPoint();\n\t}", "@Override\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void onLeftClick(Player p) {\n\t\t\n\t}", "@Override\n\tpublic void rightClick(MouseEvent e) {\n\n\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "public void mousePressed(MouseEvent e) {\n \t\t\r\n \t}", "public boolean isLeftButtonPressed() {\n // checks if the left button of the mouse is pressed\n\n if (leftButtonPressed && released) {\n released = false;\n pressed = true;\n } else if (leftButtonPressed && !released) {\n pressed = false;\n released = false;\n } else {\n released = true;\n pressed = false;\n }\n\n return pressed;\n }", "public void mousePressed(MouseEvent e) {\n\n\t\t\t\t\n\t\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\t\t\tswitch(num){\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tright.setIcon(right1);\n\t\t\t\t\t\t\t//右移\n\t\t\t\t\t\t\tRightMove();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tsearchButton.setIcon(search1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\n\t\t\n\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n public void mousePressed(MouseEvent evt) {\n }", "@Override\n public void onLeftClicked(int position) {\n }", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}" ]
[ "0.85939956", "0.8405057", "0.821216", "0.7906662", "0.7810562", "0.77528834", "0.76603544", "0.764553", "0.7555517", "0.75090367", "0.74301445", "0.7343437", "0.72877026", "0.72857976", "0.7283216", "0.72614163", "0.719963", "0.71860147", "0.71860147", "0.7153308", "0.714563", "0.71367055", "0.7094932", "0.7087745", "0.7085598", "0.7084883", "0.7084883", "0.7083028", "0.7083028", "0.7081508", "0.7080479", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.70804197", "0.7072314", "0.7072314", "0.7072314", "0.7072314", "0.70692253", "0.70692253", "0.70692253", "0.70692253", "0.70692253", "0.70689267", "0.7067582", "0.7062285", "0.70595413", "0.70531064", "0.70507365", "0.70483583", "0.70483583", "0.70483583", "0.70483583", "0.70483583", "0.70483583", "0.70483583", "0.70483583", "0.70483583", "0.70483583", "0.7040992", "0.7035893", "0.70346916", "0.70290184", "0.7028382", "0.7028382", "0.7028382", "0.7028382", "0.7028382", "0.7028382", "0.7025801", "0.7025801", "0.7025701", "0.70246017", "0.70246017", "0.70246017", "0.70246017", "0.70246017", "0.70246017", "0.70246017", "0.70246017" ]
0.7767227
5
this method runs when left mouse button was released
void onLeftMouseButtonReleased(double mouseX, double mouseY);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseLeft() {\n\n\t}", "@Override\n\tpublic void mouseLeft() {\n\t\t\n\t}", "public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n isRightPressed = true;\n }\n }", "private void leftButtonKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_leftButtonKeyReleased\n this.leftButton.setEnabled(false);\n this.controller.setLeft(false);\n this.left = false;\n }", "@Override\n\tpublic void leftClick(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\tint keycode = arg0.getButton();\n\t\tif (keycode == LEFT_CLICK)\n\t\t{\n\t\t\tleftDown = false;\n\t\t}\n\t\tif (keycode == RIGHT_CLICK)\n\t\t{\n\t\t\trightDown = false;\n\t\t\t\n\t\t}\n\t}", "public void mouseReleased() {\n\t\tthis.isPressed = false;\n\t}", "public void mouseReleased() {\n super.mouseReleased();\n pressed = false;\n properties.post_mouseReleased(1);\n }", "public void mousePressed(MouseEvent e) {\r\n\t\tmouseMoved(e);\r\n\t\tmenuControl();\r\n\t\t\r\n\t}", "public void mousePressed(MouseEvent e) {\n if ((e.getModifiers() & InputEvent.BUTTON1_MASK) == InputEvent.BUTTON1_MASK) { // left\n movelight();\n display();\n repaint();\n e.consume();\n }\n }", "public void mousePressed(MouseEvent e) {\n if (gameover)\n return;// if game is over, do nothing\n\n if ((e.getModifiersEx() == 5120)) // Both left and right buttons\n // are pressed\n watchAroundCell(x, y);\n else if ((e.getModifiersEx() == 1024)) // Left button is pressed\n if (fieldManager.isCellOpenable(x, y))\n fieldInerface.putBlankButton(x, y);\n }", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tmouseDown = false;\n\t}", "boolean onLeftClick(double mouseX, double mouseY);", "@Override\n\tpublic void LeftButtonClick() {\n\t\t\n\t}", "public void mouseReleased( MouseEvent event ){}", "@Override\r\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "public boolean isLeftButtonPressed() {\n // checks if the left button of the mouse is pressed\n\n if (leftButtonPressed && released) {\n released = false;\n pressed = true;\n } else if (leftButtonPressed && !released) {\n pressed = false;\n released = false;\n } else {\n released = true;\n pressed = false;\n }\n\n return pressed;\n }", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t}", "@Override\n public void mouseReleased(MouseEvent e)\n {\n }", "@Override\n public void mouseReleased(MouseEvent e)\n {\n }", "public void leftPressed() {\n\t\tkeys.get(keys.put(Keys.LEFT, true));\n\t}", "@Override\n public void mouseReleased(MouseEvent e) {\n }", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t}", "@Override\n public void mouseReleased(MouseEvent e) {\n }", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\n public void mouseReleased(MouseEvent evt) {\n }", "public void leftPressed() {\n System.out.println(\"leftPressed()\");\n current.translate(0, -1);\n display.showBlocks();\n }", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tl1.setText(\"You released the mouse\");\r\n\t}", "public void mousePressed() {\n\t\tif(detectCollision(this.p.mouseX,this.p.mouseY)) {\n\t\t\tthis.isPressed = true;\n\t\t\tclick();\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\n public void mouseReleased(MouseEvent e){\n \n }", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}" ]
[ "0.78182435", "0.7777732", "0.77416426", "0.75333756", "0.74868816", "0.74616694", "0.7460389", "0.7396824", "0.72743034", "0.72734547", "0.72262114", "0.72066003", "0.71504223", "0.71389323", "0.7109225", "0.71075815", "0.71075815", "0.7099399", "0.7099399", "0.7099399", "0.7099399", "0.7099399", "0.7088841", "0.7084746", "0.7084746", "0.7084746", "0.7081917", "0.7081917", "0.7081771", "0.7081771", "0.70807177", "0.7076465", "0.7075491", "0.7072411", "0.7071521", "0.7066662", "0.7062195", "0.70604014", "0.70604014", "0.70604014", "0.70604014", "0.70604014", "0.70604014", "0.70604014", "0.70604014", "0.70604014", "0.70604014", "0.70604014", "0.70604014", "0.70604014", "0.70604014", "0.70604014", "0.70604014", "0.7050443", "0.70456254", "0.703861", "0.703861", "0.70364517", "0.70364517", "0.7035259", "0.7035259", "0.7035259", "0.7035259", "0.7035259", "0.7035259", "0.7035259", "0.7035259", "0.7035259", "0.7035259", "0.7035259", "0.7035259", "0.7035259", "0.7035259", "0.7035259", "0.7035259", "0.7035259", "0.7035259", "0.70305014", "0.70305014", "0.70305014", "0.70305014", "0.70305014", "0.70305014", "0.70305014", "0.70305014", "0.70305014", "0.70305014", "0.70243496", "0.70218736", "0.70218736", "0.70218736", "0.70128703", "0.7011575", "0.7011575", "0.7010953", "0.7010953", "0.7010953", "0.7010953", "0.7010953", "0.7010953" ]
0.81031775
0
This method runs when LEFT mouse button is pressed and mouse is moving.
boolean onMouseDragged(double mouseX, double mouseY, double prevMouseX, double prevMouseY);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseLeft() {\n\n\t}", "@Override\n\tpublic void mouseLeft() {\n\t\t\n\t}", "public void leftPressed() {\n\t\tkeys.get(keys.put(Keys.LEFT, true));\n\t}", "private void leftButtonKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_leftButtonKeyPressed\n this.leftButton.setEnabled(true);\n if(!this.left){\n this.controller.setLeft(true);\n this.left = true;\n }\n }", "public void leftPressed() {\n System.out.println(\"leftPressed()\");\n current.translate(0, -1);\n display.showBlocks();\n }", "public void moveLeft() {\n Coordinate leftCoord = new Coordinate(getX() - 1, getY());\n handleMove(leftCoord, InteractionHandler.LEFT);\n }", "private void handleLeft() {\r\n\t\tcontroller.getCurrentPosition().realocate((controller.getCurrentPosition().getY()), controller.getCurrentPosition().getX()-1);\r\n\t\t// if User reaches the end of the board reset position\r\n\t\tif(controller.getCurrentPosition().getX()==-1) {\r\n\t\t\tcontroller.getCurrentPosition().realocate((controller.getCurrentPosition().getY()), controller.getNumberColumns()-1);\r\n\t\t}\r\n\t\t// remove the pseudo Class from all nodes so that only the cell that was pressed last looks 'pressed'\r\n\t\tfor (Node n : controller.getGridBoard().getChildren()) {\r\n\t\t\t((StackPane) n).pseudoClassStateChanged(PseudoClass.getPseudoClass(\"pressed\"), false);\r\n\t\t\tif (GridPane.getColumnIndex(n) == controller.getCurrentPosition().getX() && GridPane.getRowIndex(n) == controller.getCurrentPosition().getY()) {\r\n\t\t\t\t((StackPane) n).pseudoClassStateChanged(PseudoClass.getPseudoClass(\"pressed\"), true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void mousePressed(MouseEvent e) {\n if ((e.getModifiers() & InputEvent.BUTTON1_MASK) == InputEvent.BUTTON1_MASK) { // left\n movelight();\n display();\n repaint();\n e.consume();\n }\n }", "public void leftButtonPressed() {\n\t\tif(droneApp.myDrone.isConnected) {\n\t\t\tif(!on) {\n\t\t\t\t// Enable our steamer\n\t\t\t\tstreamer.enable();\n\t\t\t\t// Enable the sensor\n\t\t\t\tdroneApp.myDrone.quickEnable(qsSensor);\n\t\t\t\t\n\t\t\t\ton = true;\n\t\t\t\t\n\t\t\t\tint w = tvSensorValue.getWidth();\n\t\t\t\tint h = tvSensorValue.getHeight();\n\t\t\t\t\n\t\t\t\tif(firstTime) {\t\t\n\t\t\t\t\tfirstTime = false;\n\t\t\t\t\twarmUpWindow1 = new PopupWindow(layout2, w, h, true);\n\t\t\t\t\twarmUpWindow1.setOutsideTouchable(true);\n\t\t\t\t\twarmUpWindow1.setFocusable(false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(warmedUp) {\n\t\t\t\t\twarmedUp = false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tshowWarmupWindow(h);\n\t\t\t\tcountdown1Handler.post(countdown1Runnable);\n\t\t\t} else {\n\t\t\t\tresetAllOperations();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void leftClick(MouseEvent e) {\n\n\t}", "public void moveLeft()\n {\n if (xPos == 0)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - negative X because we are moving LEFT! \n movementX = -0.5;\n movementY = 0;\n }", "public boolean isLeftButtonPressed() {\n // checks if the left button of the mouse is pressed\n\n if (leftButtonPressed && released) {\n released = false;\n pressed = true;\n } else if (leftButtonPressed && !released) {\n pressed = false;\n released = false;\n } else {\n released = true;\n pressed = false;\n }\n\n return pressed;\n }", "public void left(){\n\t\tmoveX=-1;\n\t\tmoveY=0;\n\t}", "public void moveLeft()\n\t{\n\t\tmoveLeft = true;\n\t}", "@Override\n\tpublic void LeftButtonClick() {\n\t\t\n\t}", "@Override\n\tpublic void mousePressed(MouseEvent event) {\n\t\tif( event.getButton() == MouseEvent.BUTTON1 ){\n\t\t\tleftClickDrag = true;\n\t\t}else if (event.getButton() == MouseEvent.BUTTON3){\n\t\t\tleftClickDrag = false;\n\t\t}else{\n\t\t\treturn;\n\t\t}\n\t\t// Set the drag start point.\n\t\tcurrentPositionBeforeDrag = getCurrentPosition();\n\t\tdragStartPosition = event.getPoint();\n\t}", "public void leftPressed()\r\n {\r\n worldPanel.newMapPos(-zoom,0);\r\n miniMap.newMapPos(-1,0);\r\n }", "public void moveLeft(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.LEFT;\n\t\tif(animation!=ANIMATION.MOVELEFT) {\n\t\t\tanimation=ANIMATION.MOVELEFT;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tfacing=FACING.LEFT;\n\t\tdirection=\"left\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelX=-1*spd/2;\n\t\tvelY=0;\n\t}", "public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n isRightPressed = true;\n }\n }", "public void leftPressed() {\n\t\tif (edit) {\n\t\t\tcurrentDeck.left();\t\n\t\t}\n\t}", "boolean onLeftClick(double mouseX, double mouseY);", "private void leftButtonKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_leftButtonKeyReleased\n this.leftButton.setEnabled(false);\n this.controller.setLeft(false);\n this.left = false;\n }", "private void moveLeft(){\n \n setGlobalLocation(getGlobalX() - speed, getGlobalY());\n animationSpeedLeft();\n }", "void moveLeft() {\n\t\tsetX(x-1);\r\n\t\tdx=-1;\r\n\t\tdy=0;\r\n\t}", "public void moveLeft() {\n\t\tsetPosX(getPosX() - steps);\n\t}", "public void onSwipeLeft() {\n\t\t\t\tdoneButtonEvent();\n\t\t\t}", "public void moveCursorLeft();", "default public void clickLeft() {\n\t\tremoteControlAction(RemoteControlKeyword.LEFT);\n\t}", "public void moveLeft() {\n this.x -= 10;\n repaint();\n }", "public void moveLeft()\n {\n if (!this.search_zone.isLeftBorder(this.x_position))\n {\n this.x_position = (this.x_position - 1);\n }\n }", "void keyLeft();", "private void LeftLeftLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n\t\t}", "public void moveLeft() {\r\n\t\t\r\n\t\tint leftSteps=10;\r\n\t\t\ttopX-= leftSteps;\r\n\t}", "public void mousePressed(MouseEvent e) {\n if (gameover)\n return;// if game is over, do nothing\n\n if ((e.getModifiersEx() == 5120)) // Both left and right buttons\n // are pressed\n watchAroundCell(x, y);\n else if ((e.getModifiersEx() == 1024)) // Left button is pressed\n if (fieldManager.isCellOpenable(x, y))\n fieldInerface.putBlankButton(x, y);\n }", "void onLeftMouseButtonReleased(double mouseX, double mouseY);", "public SceneState handleLeftClick(PVector position) {\n \n mContext.mManager.fireMissile(position); \n return this;\n\n }", "public void moveLeft() {\n\t\t\n\t}", "public void setLeft() {\n\t\tstate = State.LEFT;\n\t}", "private void playerMoveLeft()\n {\n \n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentX(getCurrentX() - 1);\n if (this.getCurrentX() > -1) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentX(this.getCurrentX() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else {\n this.setCurrentX(getCurrentX() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n }", "public void moveLeft() {\n this.accelerateXL();\n this.moveX(this.getxSpeed());\n this.setPicX(0);\n this.setPicY(141);\n this.setLoopCells(true);\n }", "protected void left() {\n move(positionX - 1, positionY);\n orientation = BattleGrid.RIGHT_ANGLE * 2;\n }", "public void moveLeft() {\n locX = locX - 1;\n }", "public void moveLeft() {\n\t\tposX -= speed;\n\t}", "public void left() {\n if (x - movementSpeed > -55) {\r\n x = x - movementSpeed;\r\n }\r\n }", "private void LeftRightLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}", "public void moveLeft() {\n \tif(!move.moveLeft()) {\n \t\tif(physinteractor(getX()-1,getY())) {\n \t\t\tmove.moveLeft();\n \t\t\tnonphysinteractor(getX(),getY());\n \t\t\tupdatemove();\n \t\t}\n }else {\n \tupdatemove();\n \tnonphysinteractor(getX(),getY());\n }\n }", "public void mousePressed(MouseEvent e) {\r\n\t\tmouseMoved(e);\r\n\t\tmenuControl();\r\n\t\t\r\n\t}", "private void leftBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_leftBtnActionPerformed\n if (rotateR == 0) {\n rotateR = 1;\n\n l.stop();\n r.start();\n } else {\n rotateR = 0;\n r.stop();\n }\n }", "@Override\n public void onLeftClicked(int position) {\n }", "@Override\n public void onDirectLeftKeyPress() {\n \n }", "@Override\n public void onDirectLeftKeyPress() {\n \n }", "public void moveLeft() {\n speedX -= (speedX > 0) ? acceleration * 2 : acceleration;\n if (speedX < -maxSpeed) {\n speedX = -maxSpeed;\n }\n direction = Direction.LEFT;\n }", "public void moveLeft() {\n if (xcoor >= movingSpeed) {\n xcoor = xcoor - movingSpeed * 2;\n }\n }", "public void mousePressed(MouseEvent e) {\n \t // Click gauche enfoncé\n \t if (e.getButton() == 1) {\n\t \t app.modifierCurseurVue(Cursor.MOVE_CURSOR);\n\t \t prevX = e.getX();\n\t \t prevY = e.getY();\n \t }\n }", "@Override\r\n\tpublic void onLeft() {\n\t\tif (snakeView.smer != snakeView.VZHOD) {\r\n\t\t\tsnakeView.naslednjaSmer = snakeView.ZAHOD;\r\n\t\t}\r\n\t}", "public void goLeft() {\n\t\tx -= dx;\n\t\tbgBack.setDx(true);\n\t\tbgBack.move();\n\t\tif(x < 200) {\n\t\t\tif(!bgBack.getReachBegin()) {\n\t\t\t\tx = 200;\n\t\t\t\tbgFront.setDx(true);\n\t\t\t\tbgFront.move();\n\t\t\t}\n\t\t\telse if(x < 50) {\n\t\t\t\tx = 50;\n\t\t\t}\n\t\t}\n\n\t}", "public void slideLeft() {\n turnLeft();\n move();\n turnRight();\n }", "public void moveLeft(){\n myRectangle.setX(myRectangle.getX() - PADDLE_SPEED);\n }", "private void leftServoButtonKeyPressed(java.awt.event.KeyEvent evt) { \n this.lServoWarn.setEnabled(true);\n if(!this.leftServo){\n this.controller.setLeftServo(true);\n this.leftServo = true;\n }\n }", "private void LeftLeftRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}", "@Override\r\n\tpublic void setLeft(MoveLeftCommand left) {\n\r\n\t}", "@Override\n\tpublic void onLeftClick(Player p) {\n\t\t\n\t}", "public void moveLeft() {\n this.velocity = this.velocity.add(leftVelocity());\n }", "public void mousePressed() {\n\t\tif(detectCollision(this.p.mouseX,this.p.mouseY)) {\n\t\t\tthis.isPressed = true;\n\t\t\tclick();\n\t\t}\n\t}", "public void moveLeft() {\n if (rec.getUpperLeft().getX() - 5 < leftBorder) {\n rec.getUpperLeft().setX(leftBorder);\n } else {\n rec.getUpperLeft().setX(rec.getUpperLeft().getX() - 5);\n }\n\n }", "@Override\n public void mousePressed(MapEventMouse e) {\n if (SwingUtilities.isLeftMouseButton(e)) {\n start = e.getPoint();\n startCoordinate = e.getLocation();\n isDragging = true;\n end = null;\n }\n }", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\tl1.setText(\"You pressed the mouse\");\r\n\t}", "public void moveLeft() {\r\n\t\tif (x > 0) x--; \r\n\t}", "public void left () {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(Location.WEST);\n if (canMove(next)) {\n moveTo(next);\n }\n }", "public boolean isLeftDown() {\n return pm.pen.getButtonValue(PButton.Type.LEFT);\n }", "void left() {\n startAnimation(leftSubCubes(), Axis.X, Direction.ANTICLOCKWISE);\n leftCubeSwap();\n }", "public void moveLeft()\n\t{\n\t\tx = x - STEP_SIZE;\n\t}", "public void moveLeft() {\n if (!this.state.equals(\"onLeftWall\")) {\n this.dir = -1;\n this.xTargetSpeed = this.X_MAX_SPEED;\n }\n }", "private void turnLeft() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n switch (direction) {\n case EAST:\n direction = Position.Direction.NORTH;\n break;\n case WEST:\n direction = Position.Direction.SOUTH;\n break;\n case NORTH:\n direction = Position.Direction.WEST;\n break;\n case SOUTH:\n direction = Position.Direction.EAST;\n break;\n }\n\n currentPosition.setDirection(direction);\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n mouseXPosition = e.getX();\n }", "public void selectionLeft() {\n\t\tselectedSlotPosX = (selectedSlotPosX == 0) ? C.MENU_INVENTORY_ITEM_SLOT_WIDTH - 1 : selectedSlotPosX-1;\n\t}", "public void setXLeft(int left) {\n this.xLeft = left;\n }", "public void goLeft()\r\n\t{\r\n\t\tthis.X--;\r\n\t}", "public void setKeyMoveLeft(KeyCode moveLeft) {\n this.moveLeft = moveLeft;\n }", "public void mousePressed(MouseEvent e)\n { \n this.startX=e.getX();\n this.startY=e.getY();\n\n }", "private void onLeftSwipe()\n {\n things.previous();\n showThing();\n }", "private void RightLeftLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<.5) {\n\t\t\t\tRobot.cubebase.clickdown();//pay attention: maybe this is clickup()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\tif (Robot.autotime.get()>=.5&&Robot.autotime.get()<2.5) {\n \t\t\tRobot.cubebase.clickstop();\n\t\t\t\tRobot.cubebase.liftdown();//pay attention: maybe this is liftdown()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\t //about 300cm note: 0.08*2->90*2=180cm 0.08*3->90*3=270cm 270+45=315cm->0.08*3+0.08/2=0.28s\n \t\tif (Robot.autotime.get()>=2.5&&Robot.autotime.get()<3.9) {\n\t\t\t\tRobot.cubebase.stoplift();\n\t\t\t\tRobot.drivebase.run(.53, -.53 );\n\t\t\t}\n \t\tif (Robot.autotime.get()>=3.9&&Robot.autotime.get()<5.9) {\n\t\t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t}\n \t\tif (Robot.autotime.get()>5.9&&Robot.autotime.get()<6.2) {\n\t\t\t\tRobot.pneumatics_drive.close1();\n\t\t\t}\n \t\tif (Robot.autotime.get()>6.2) {\n \t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\t\n \t\t\n \t\n \t}\n \t}", "public boolean moveLeft() throws EatableObjectOnPlaceException {\r\n\t\tif (!treeOnLeft() && !mouseOnLeft()) {\r\n\t\t\tif (!onLeftBorder(positionX)) {\r\n\t\t\t\tpositionX = positionX - 1;\r\n\t\t\t\teatPerformingStep();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn moveRight();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean isLeftButtonEvent(MouseEvent me) {\r\n\t\treturn ((me.getModifiers() & MouseEvent.BUTTON1_MASK) == MouseEvent.BUTTON1_MASK);\r\n\t}", "void moveLeft();", "public void goLeft() {\n if(page.left == null)\n {\n if(editText.getText().toString().equals(\"\")) {\n return;\n }\n page.addRelation(\"left\",editText.getText().toString());\n editText.setText(\"\");\n }\n\n page = page.left;\n addQueue();\n }", "public static void turnLeft() {\n LEFT_MOTOR.backward();\n RIGHT_MOTOR.forward();\n }", "public void mousePressed(MouseEvent mEvent) \n {\n /* take no action while game running */\n if(GAME_RUNNING)\n return;\n\n /* only respond to button 1 */\n if(mEvent.getButton() != MouseEvent.BUTTON1)\n return;\n \n /* TODO: remove debug msg */\n\t\t//System.out.println(\"Mouse pressed on the \"+ mEvent.getComponent().getClass().getName() +\" @ \"+ mEvent.getX() + \", \" + mEvent.getY());\n\t\t\n\t\tif(SELECT_MODE != SelectMode.DRAGGING && SELECT_MODE != SelectMode.ADDING)\n\t\t{\n\t\t\tpressX = mEvent.getX();\n\t\t\tpressY = mEvent.getY();\n\t\t}\n\t}", "public void moveLeft(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //Try to move the cursor\n characterIndex -= 1;\n //If the cursor did not wrap onto a new line then update it's position\n if (characterIndex >= 0) {\n updateXPosition(true);\n }\n //If the cursor wrapped onto a new line\n else {\n //If this was not the very first line move to the end of the previous line\n if (lineIndex > 0) {\n lineIndex--;\n currentText = texts.get(lineIndex);\n characterIndex = currentText.getCharacterEdges().length - 1;\n if (characterIndex < 0) {\n characterIndex = 0;\n }\n updatePosition();\n }\n //If this is the first line character index should not change and position does not need to be updated\n else {\n characterIndex = 0;\n }\n }\n }\n }", "public void setLeftPressed(int x, int y) {\n if (!map.canSelectPoint(x, y)) {\n return;\n }\n\n selectionX = x;\n selectionY = y;\n if (lastSelectionX != -1 && lastSelectionX == selectionX\n && lastSelectionY == selectionY) {\n useSelectedAbility();\n }\n lastSelectionX = selectionX;\n lastSelectionY = selectionY;\n selectionChanged = true;\n }", "public boolean getLeftButton() {\n\t\treturn getRawButton(LEFT_BUTTON);\n\t}", "public void moveLeft()\n {\n if (this.x >= 2) {\n --x;\n } else {\n System.out.println(\"Move is outside of the field! Try again.\");\n }\n }", "public void mousePressed(MouseEvent e) {\n oldX = e.getX();\r\n oldY = e.getY();\r\n }", "private boolean moveLeft() {\n\t\tint moduleSpeed = stats.getSPEED();\n\n\t\tgetTorax().setRotationg(getTorax().getRotationg() - rotationRate);\n\t\tgetLegs().setRotationg(getLegs().getRotationg() - rotationRate);\n\n\t\tgetSpeed().setX(Math.cos(Math.toRadians(getTorax().getRotationg() - 90)) * moduleSpeed);\n\t\tgetSpeed().setY(Math.sin(Math.toRadians(getTorax().getRotationg() - 90)) * moduleSpeed);\n\n\t\tincreaseInfection();\n\n\t\treturn true;\n\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\t\t\tswitch(num){\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tright.setIcon(right1);\n\t\t\t\t\t\t\t//右移\n\t\t\t\t\t\t\tRightMove();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tsearchButton.setIcon(search1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void mousePressed(MouseEvent e) {\n int modifiers = e.getModifiers();\n Point point = e.getPoint();\n \n if ((modifiers & MouseEvent.BUTTON1_MASK) != 0) {\n startPoint = point;\n }\n }", "public void mousePressed() {\n }", "@Override\n public void mousePressed(MouseEvent me) {\n mouse_x = me.getX();\n mouse_y = me.getY();\n super.mousePressed(me);\n }", "public int getLeft(){\n\t\treturn platformHitbox.x;\n\t}", "public boolean getLeftJoystickClick() {\n\t\treturn getRawButton(LEFT_JOYSTICK_CLICK);\n\t}", "@Override\n\tpublic void mouseEntered() {\n\t\t\n\t}" ]
[ "0.80773836", "0.78720784", "0.78706515", "0.7828887", "0.767323", "0.765479", "0.7563547", "0.7483099", "0.7448818", "0.73291934", "0.722309", "0.7198471", "0.7193276", "0.71789134", "0.7145986", "0.7143278", "0.7130844", "0.71255434", "0.7121563", "0.71034837", "0.70668775", "0.70644903", "0.7053099", "0.70391303", "0.7015697", "0.69927", "0.695212", "0.6932677", "0.69051373", "0.68982285", "0.68909466", "0.68826646", "0.6874162", "0.68691885", "0.68500507", "0.6837605", "0.6819854", "0.68163633", "0.68026644", "0.68017924", "0.67930835", "0.6771496", "0.6748051", "0.6740844", "0.67382973", "0.6730359", "0.67104834", "0.67067707", "0.67033976", "0.66993135", "0.66993135", "0.66932446", "0.66698045", "0.66690046", "0.6646345", "0.6637917", "0.66117084", "0.6611491", "0.6596383", "0.6596002", "0.65909", "0.6572086", "0.65697783", "0.65685976", "0.65597504", "0.6548792", "0.6534979", "0.65336883", "0.65324295", "0.6532145", "0.65242994", "0.6522742", "0.65120506", "0.65091723", "0.65014213", "0.64971715", "0.64814806", "0.64725804", "0.645716", "0.64507246", "0.6440516", "0.6438453", "0.64286894", "0.6408729", "0.6404994", "0.6401362", "0.6388645", "0.6376061", "0.6365326", "0.6362828", "0.6354933", "0.63458955", "0.6341201", "0.6338887", "0.6322687", "0.63163185", "0.63150126", "0.629874", "0.62941116", "0.62940276", "0.6275479" ]
0.0
-1
This method runs when no mouse button is pressed and mouse is moving
void onMouseMoved(double mouseX, double mouseY, double prevMouseX, double prevMouseY);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mousePressed() {\n\t\tif(detectCollision(this.p.mouseX,this.p.mouseY)) {\n\t\t\tthis.isPressed = true;\n\t\t\tclick();\n\t\t}\n\t}", "private void mouseMove() {\n if (this.holding) {\n Point point = new Point(mousex, mousey);\n this.addPixel(point);\n }\n }", "private static void OnMouseMove(Object sender, MouseEventArgs e)\r\n {\r\n // Un-vanish the cursor on any mouse move. \r\n _ShowCursor();\r\n }", "@Override\n\tpublic boolean onMouseMove(MouseEvent event) {\n\t\treturn false;\n\t}", "boolean _mousePressed(MouseEvent ev) {\n\t\treturn false;\n\t}", "public void mousePressed() {\n }", "private void formMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseMoved\n \n /*Pon la bandera para saber que ya hubó un evento y no se desloguie*/\n bIdle = true;\n \n }", "private void formMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseMoved\n \n /*Pon la bandera para saber que ya hubó un evento y no se desloguie*/\n bIdle = true;\n \n }", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tisMoved = false;\n\t}", "public void mouseReleased() {\n\t\tthis.isPressed = false;\n\t}", "@Override\n\tpublic boolean onMousePressed(MouseButtonEvent event) {\n\t\treturn false;\n\t}", "public void checkMouse(){\n if(Greenfoot.mouseMoved(null)){\n mouseOver = Greenfoot.mouseMoved(this);\n }\n //Si esta encima se volvera transparente el boton en el que se encuentra\n if(mouseOver){\n adjTrans(MAX_TRANS/2);\n }\n else{\n adjTrans(MAX_TRANS);\n }\n \n }", "@Override\n public void handle(MouseEvent event) {\n if( robberWillMove ){\n System.out.println(\"robber1\");\n robberWillMove = false;\n robberIsMoving = true;\n }\n }", "@Override\n\tpublic boolean mouseMoved(int arg0, int arg1) {\n\t\treturn false;\n\t}", "boolean _mouseMoved(MouseEvent ev) {\n\t\treturn false;\n\t}", "public void mouseReleased() {\n super.mouseReleased();\n pressed = false;\n properties.post_mouseReleased(1);\n }", "@Override\n public void mousePressed(MouseEvent me) {\n mouse_x = me.getX();\n mouse_y = me.getY();\n super.mousePressed(me);\n }", "public void mousePressed(MouseEvent e) {\n if (gameover)\n return;// if game is over, do nothing\n\n if ((e.getModifiersEx() == 5120)) // Both left and right buttons\n // are pressed\n watchAroundCell(x, y);\n else if ((e.getModifiersEx() == 1024)) // Left button is pressed\n if (fieldManager.isCellOpenable(x, y))\n fieldInerface.putBlankButton(x, y);\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\tclear_mousePressed();\n\t\t}", "@Override\n public void mouseMoved(MouseEvent arg0) {\n \n }", "@Override\n\t\tpublic void mousePressed(MouseEvent e)\n\t\t{\n\t\t\treturn;\n\t\t}", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tmouseDown = false;\n\t}", "public void mouseMoved(MouseEvent event) {\n }", "public void mousePressed(MouseEvent event)\n {\n mouseClicked = true;\n if(gameOver)\n {\n mouseClicked = false;\n gameOver = false;\n gameStarted = false;\n score = 0;\n restartGame();\n pipeTimer.stop();\n startGame.start();\n }\n }", "@Override\n\tpublic boolean onMouse(MouseEvent buttonEvent) {\n\t\treturn false;\n\t}", "@Override\r\n public void mouseMoved(MouseEvent e) {\n }", "public void mouseMoved(MouseEvent e){}", "@Override\r\n public void mouseMoved(MouseEvent e) {\r\n\r\n }", "public void mouseEntered(MouseEvent e)\n {\n resetCursor();\n }", "public void mousePressed(MouseEvent e) {\n \t // Click gauche enfoncé\n \t if (e.getButton() == 1) {\n\t \t app.modifierCurseurVue(Cursor.MOVE_CURSOR);\n\t \t prevX = e.getX();\n\t \t prevY = e.getY();\n \t }\n }", "@Override\n public void mouseMoved(MouseEvent e){\n \n }", "public void mouseMoved() {\n\t\tif(detectCollision(this.p.mouseX,this.p.mouseY)) {\n\t\t\tthis.isHovered = true;\n\t\t}else {\n\t\t\tthis.isHovered = false;\n\t\t}\n\t}", "@Override\r\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\r\n\t}", "public void mousePressed(MouseEvent e) {\r\n\t\tmouseMoved(e);\r\n\t\tmenuControl();\r\n\t\t\r\n\t}", "public void mousePressed(MouseEvent event)\r\n {\n }", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public boolean mouseMoved(int screenX, int screenY) {\n return false;\n }", "@Override\n public boolean mouseMoved(int screenX, int screenY) {\n return false;\n }", "private void formMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseDragged\n \n /*Pon la bandera para saber que ya hubó un evento y no se desloguie*/\n bIdle = true;\n \n }", "private void formMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseDragged\n \n /*Pon la bandera para saber que ya hubó un evento y no se desloguie*/\n bIdle = true;\n \n }", "@Override\r\n public void handleMouseMovedEvent(Mouse.MotionEvent event) {\n }", "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\tif(holding) {\n\n\t\t\t\tif(checkPlayer != holdingPlayer) {\n\t\t\t\t\t\n\t\t\t\t\tif(holdingPlayer != null) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcheckPlayer = holdingPlayer;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsetHoldPlayer(SmallTable.curPlayer);\n\t\t\t\t\tselectX = currentX;\n\t\t\t\t\tselectY = currentY;\n\t\t\t\t\tinputWait = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\trepaint();\n\t\t}", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\r\n\t\t\t}", "public void mousePressed(MouseEvent mEvent) \n {\n /* take no action while game running */\n if(GAME_RUNNING)\n return;\n\n /* only respond to button 1 */\n if(mEvent.getButton() != MouseEvent.BUTTON1)\n return;\n \n /* TODO: remove debug msg */\n\t\t//System.out.println(\"Mouse pressed on the \"+ mEvent.getComponent().getClass().getName() +\" @ \"+ mEvent.getX() + \", \" + mEvent.getY());\n\t\t\n\t\tif(SELECT_MODE != SelectMode.DRAGGING && SELECT_MODE != SelectMode.ADDING)\n\t\t{\n\t\t\tpressX = mEvent.getX();\n\t\t\tpressY = mEvent.getY();\n\t\t}\n\t}", "public void mousePressed (MouseEvent event) {}", "@Override\n public void mousePressed(MouseEvent arg0) {\n \n }", "@Override\n public void mouseMoved(MouseEvent e) {\n }", "void mouseReleased() {\n firing = false;\n}", "void onLeftMouseButtonReleased(double mouseX, double mouseY);", "public void mouseMoved(MouseEvent e) {\n mouseX = e.getX(); // get the x, y coordinate of the mouse \r\n mouseY = e.getY();\r\n if (menuStatus == 1) { // if the player is on the main menu\r\n if (playButton.contains(mouseX, mouseY)) { // if the mouse is inside the play button box \r\n inPlay = true; // set inPlay boolean as true, ackowledging the mouse is inside the box \r\n } else {\r\n inPlay = false; // else inPlay remains false \r\n }\r\n }\r\n if (quitButton.contains(mouseX, mouseY)) { // if the mouse is inside the quit button box \r\n inQuit = true; // set inQuit boolean as true, ackowledging the mouse is inside the box \r\n } else {\r\n inQuit = false; // else inQuit remains false \r\n }\r\n }", "public void mouseMoved(MouseEvent e) {}", "public void mouseMoved(MouseEvent e) {}", "public void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mousePressed(MouseEvent e) {\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n\n }", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\n\r\n\t}", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "@Override\n\tpublic void mouseMoved(MouseEvent e)\n\t{\n\t}", "@Override\n\tpublic void mousePressed(MouseEvent event) {\n\t\t\n\t}", "public void mousePressed(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\r\n public void mousePressed(MouseEvent e) {\n }", "@Override\n\tpublic void mouseEntered() {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseLeft() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t}", "public void mousePressed(MouseEvent arg0) {\n\n }", "public void mousePressed(MouseEvent arg0) {\n\n }", "@Override\n\tpublic void mouseUp() {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "public void mouseDown(MouseEvent e, int x, int y)\n {\n // Do nothing.. \n }", "public void mouseMoved(MouseEvent e) {}", "public void mousePressed(MouseEvent e) {\n \t\t\r\n \t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\n\t}", "public void mousePressed(MouseEvent e) {}", "public void mousePressed(MouseEvent e) {}", "public void mousePressed(MouseEvent e) {}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\n\t}" ]
[ "0.7443426", "0.7394581", "0.733862", "0.72732335", "0.727271", "0.7260847", "0.72453684", "0.72453684", "0.72093153", "0.72070295", "0.72028875", "0.71952045", "0.71487176", "0.71469456", "0.71332467", "0.71093065", "0.7098375", "0.70906556", "0.7089404", "0.708448", "0.70496774", "0.7020092", "0.70167613", "0.70101285", "0.6996694", "0.6990297", "0.6989935", "0.6977304", "0.6975178", "0.6972454", "0.6957318", "0.6953838", "0.6947106", "0.6947106", "0.69401", "0.69398713", "0.6939504", "0.69374216", "0.6932324", "0.6932324", "0.69266695", "0.69266695", "0.6924111", "0.69213945", "0.691208", "0.69101346", "0.6909502", "0.69055676", "0.69052225", "0.6904846", "0.6897007", "0.6895677", "0.6894503", "0.6894503", "0.68935287", "0.68935287", "0.68913877", "0.68867093", "0.6883856", "0.6883481", "0.68814397", "0.6880361", "0.6872632", "0.6872462", "0.6871812", "0.68674237", "0.68674237", "0.68674237", "0.68674237", "0.6862872", "0.6861632", "0.6861632", "0.6861632", "0.6861632", "0.6861452", "0.68614256", "0.68614256", "0.6856589", "0.6856033", "0.6856033", "0.6856033", "0.6856033", "0.6856033", "0.6856033", "0.6856033", "0.6856033", "0.6856033", "0.6856033", "0.6856033", "0.6852324", "0.6852324", "0.6852324", "0.6851797", "0.6850572", "0.6850025", "0.68483657", "0.68483657", "0.68483067", "0.68483067", "0.68483067", "0.6848142" ]
0.0
-1
This method runs when mouse wheel is moving
void onMouseScrolled(int rotation);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void mouseWheelMoved(int arg0) {\n\t}", "@Override\n\tpublic void mouseWheelMoved(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n public void mouseWheelMoved(MouseWheelEvent e){\n \n }", "@Override\r\n public void mouseWheelMoved(MouseWheelEvent e) {\r\n\r\n }", "@Override\n public native void mouseWheel(int wheelAmt);", "@Override\r\n public void mouseWheelMoved(MouseWheelEvent e) {\r\n System.out.println(\"wheel\");\r\n }", "public abstract void mouseWheel(MouseWheelEvent mouseWheelEvent);", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n if (getChart().getView().is2D()) {\n return;\n }\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n stopThreadController();\n float factor = 1 + (e.getWheelRotation() / 10.0f);\n zoomZ(factor);\n }", "public void mouseWheelMoved(MouseWheelEvent e) {\n double timeStep = TIME_STEP_MIN;\n if (e.isShiftDown()) {\n timeStep = TIME_STEP_MIN * 10;\n }\n if (e.getWheelRotation() > 0) {\n prevTime(timeStep);\n } else {\n nextTime(timeStep);\n }\n }", "public void mouseWheel(MouseEvent event) {\n ackEvent();\n float e = event.getCount();\n verticalScroll -= 10 * e;\n if (verticalScroll >= MAX_SCROLL) verticalScroll = MAX_SCROLL;\n else if (verticalScroll <= MIN_SCROLL) verticalScroll = MIN_SCROLL;\n }", "@Override\n\tpublic void nativeMouseWheelMoved(NativeMouseWheelEvent e) {\n\t\t\n\t}", "@Override\n\t\tpublic void mouseWheelMoved(MouseWheelEvent e) {\n\t\t\tif(telaAtiva!=null){\n\t\t\t\ttelaAtiva.mouseWheelMoved(e);\n\t\t\t}\n\t\t}", "boolean _mouseWheel(MouseWheelEvent ev) {\n\t\treturn false;\n\t}", "public abstract void update(MouseWheelEvent evt, int mode);", "@Override\n public void onScrollingStarted(WheelView wheel) {\n\n }", "@Override\n public void onScrollingStarted(WheelView wheel) {\n\n }", "@Override\n public void onScrollingStarted(WheelView wheel) {\n\n }", "public void mouseWheelMoved(MouseWheelEvent e) {\n \t if (++nbTicks >= MOLETTE_TICKS) {\n \t\t nbTicks = 0;\n \t\t app.modifyZoom(e.getWheelRotation() * MOLETTE_TAUX);\n \t }\n }", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n if (isMouse1Down) inspectModeEnabled = false;\n }", "@Override\n\tpublic void mouseWheelMoved(MouseWheelEvent event) {\n\t\tshowmBox = false;\n\n\t\tint moved = event.getWheelRotation();\n\n\t\tint mousex = event.getX();\n\t\tint mousey = event.getY();\n\n\t\tdouble graphmousex = (double) mousex / getWidth() * (param.maxx - param.minx) + param.minx;\n\t\tdouble graphmousey = ((1 - (double) mousey / getHeight()) * (param.maxy - param.miny) + param.miny);\n\n\t\tdouble maxx = param.maxx, minx = param.minx, maxy = param.maxy, miny = param.miny;\n\n\t\tparam.maxx += moved * (maxx - graphmousex) / 10;\n\t\tparam.minx -= moved * (graphmousex - minx) / 10;\n\t\tparam.maxy += moved * (maxy - graphmousey) / 10;\n\t\tparam.miny -= moved * (graphmousey - miny) / 10;\n\n\t\trepaint();\n\t}", "public void mouseWheelMoved(MouseWheelEvent event) {\n\n\t\t\tint notches = event.getWheelRotation();\n\n\t\t\tif (SIZE > 0) {\n\n\t\t\t\tif (notches > 0)\n\t\t\t\t\tSIZE += 1;\n\t\t\t\telse\n\t\t\t\t\tSIZE -= 1;\n\t\t\t}\n\t\t\t\n\t\t\tif(SIZE <= 0)\n\t\t\t\tSIZE = 1;\n\t\t}", "void onScrollingStarted(RulerWheel wheel);", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n // Check direction of rotation\n if (e.getWheelRotation() < 0) {\n // Zoom in for up\n tr_z += 0.01f;\n } else {\n // Zoom out for down\n tr_z -= 0.01f;\n }\n }", "public void nativeMouseWheelMoved(NativeMouseWheelEvent nativeEvent);", "public void mouseWheel(MouseEvent event) {\n\n // checks if scrolled is within the texts size\n if ( scrolled >= 0 && scrolled < scenes.texts[scene].height) {\n\n //getCount returns a positive (+1) when scrolled up, and a negative (-1) when down.\n float e = event.getCount();\n scrolled += e * scrollSpeed;\n }\n\n // checks and make sure that scrolled is never below zero or above the texts size\n if (scrolled < 0) {\n scrolled = 0;\n } else if (scrolled > scenes.texts[scene].height - (scenes.textSizeHeight / 2) ) {\n scrolled = scenes.texts[scene].height - (scenes.textSizeHeight / 2);\n }\n}", "public void mouseWheelMoved(MouseWheelEvent e)\r\n\t{\r\n\t\t// Create an altered event to redispatch\r\n\r\n\t\tif (scrollAmount != 0)\r\n\t\t{\r\n\t\t\te = createScrollAmountEvent( e );\r\n\t\t}\r\n\r\n\t\t// Redispatch the event to original MouseWheelListener\r\n\r\n\t\tfor (MouseWheelListener mwl : realListeners)\r\n\t\t{\r\n\t\t\tmwl.mouseWheelMoved( e );\r\n\t\t}\r\n\t}", "private void mouseMove() {\n if (this.holding) {\n Point point = new Point(mousex, mousey);\n this.addPixel(point);\n }\n }", "public void updateInput() {\n int x = Mouse.getX();\n int y = GameApplication.getScreenHeight() - Mouse.getY();\n\n theHandler.mouseMoved(x, y);\n\n if (Mouse.isButtonDown(0)) {\n theHandler.mousePressed(x, y, MouseHelper.LEFT_CLICK);\n clickedLeft = true;\n return;\n }\n if (Mouse.isButtonDown(1)) {\n theHandler.mousePressed(x, y, MouseHelper.RIGHT_CLICK);\n clickedRight = true;\n return;\n }\n if (Mouse.isButtonDown(2)) {\n theHandler.mousePressed(x, y, MouseHelper.WHEEL_CLICK);\n clickedWheel = true;\n return;\n }\n\n if (clickedLeft) {\n theHandler.mouseClicked(x, y, MouseHelper.LEFT_CLICK);\n clickedLeft = false;\n }\n if (clickedRight) {\n theHandler.mouseClicked(x, y, MouseHelper.RIGHT_CLICK);\n clickedRight = false;\n }\n if (clickedWheel) {\n theHandler.mouseClicked(x, y, MouseHelper.WHEEL_CLICK);\n clickedWheel = false;\n }\n\n int i = Mouse.getDWheel();\n if (i < 0) {\n theHandler.mouseWheelMoved(false, true, i);\n }\n if (i > 0) {\n theHandler.mouseWheelMoved(true, false, i);\n }\n }", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n\n zoomer = true;\n\n //Zoom in\n if (e.getWheelRotation() < 0) {\n zoomFactor *= 1.1;\n repaint();\n }\n //Zoom out\n if (e.getWheelRotation() > 0) {\n zoomFactor /= 1.1;\n repaint();\n }\n }", "@Override\n\t\t\tpublic void onScrollingStarted(WheelView view) {\n\t\t\t}", "void onScrollingFinished(RulerWheel wheel);", "@Override\n\t\t\t\tpublic void mouseWheelMoved(MouseWheelEvent e)\n\t\t\t\t\t{\n\t\t\t\t\tchangeFont(JPanelSetMatrix.this, e.getWheelRotation());\n\t\t\t\t\t}", "@Override\n public void mouseMoved(MouseEvent arg0) {\n \n }", "@Override\r\n public void handleMouseMovedEvent(Mouse.MotionEvent event) {\n }", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void mouseMoved(MouseEvent e) {\n\n }", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n // Apply mouse drag\n Coord2d mouse = xy(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n // Rotate if left button down\n if (AWTMouseUtilities.isLeftDown(e)) {\n Coord2d move = mouse.sub(prevMouse).div(100);\n rotate(move);\n }\n\n // Shift if right button down\n else if (AWTMouseUtilities.isRightDown(e)) {\n Coord2d move = mouse.sub(prevMouse);\n if (move.y != 0)\n shift(move.y / 500);\n }\n\n }\n\n // 2D mode\n else {\n // Record the mouse selection in progress\n Coord2d dragMouse = xy(e);\n\n if (maintainInAxis)\n maintainInAxis(dragMouse);\n\n\n mouseSelection.stop2D = dragMouse;\n mouseSelection.stop3D = screenToModel(dragMouse.x, dragMouse.y);\n\n getChart().getView().shoot();\n\n }\n\n prevMouse = mouse;\n }", "private void mouseWheelChanged(MouseWheelEvent me) {\n\n\t\tif (index.data.getPictureSize() == 0) {\n\t\t\tremoveAllPictureViews(); // nothing to paint\n\t\t\treturn;\n\t\t}\n\t\t// calculate the new view port position\n\t\tDimension d = getPreferredSizePictureView();\n\t\tint vpPosY = indexViewPort.getViewPosition().y;\n\t\tint vpExtY = indexViewPort.getExtentSize().height;\n\t\tint rest = client.getHeight() - vpPosY - vpExtY;\n\t\tint rotation = me.getWheelRotation();\n\t\tif (rest > 0 && rotation == 1) {\n\t\t\t// forward\n\t\t\tvpPosY = vpPosY + d.height + hGap;\n\t\t} else if (rotation == -1 && vpPosY > 0) {\n\t\t\t// backward\n\t\t\tvpPosY = vpPosY - d.height - hGap;\n\t\t\tvpPosY = (vpPosY <= 0) ? 0 : vpPosY;\n\t\t} else {\n\t\t\treturn; // can't scroll\n\t\t}\n\t\t// correct position (cut not the picture at the top)\n\t\tif (vpPosY > 0 && (vpPosY % (d.height + hGap)) > 0) {\n\t\t\tint n = vpPosY / (d.height + hGap);\n\t\t\tif (rotation == 1) {\n\t\t\t\tvpPosY = n * (d.height + hGap);\n\t\t\t} else {\n\t\t\t\tvpPosY = (n + 1) * (d.height + hGap);\n\t\t\t}\n\t\t}\n\t\t// now change the view port position\n\t\tPoint vPos = indexViewPort.getViewPosition();\n\t\tvPos.y = vpPosY;\n\t\t// change view port position.\n\t\t// (the ComponentListener cause painting)\n\t\tindexViewPort.setViewPosition(vPos);\n\t}", "@Override\r\n public void mouseMoved(MouseEvent e) {\r\n\r\n }", "@Override\n public void mouseMoved(MouseEvent e){\n \n }", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\r\n\t\t\t}", "@Override\r\n public void mouseMoved(MouseEvent e) {\n }", "void onMouseMoved(double mouseX, double mouseY, double prevMouseX, double prevMouseY);", "public void mouseMoved(MouseEvent event) {\n }", "public static boolean onMouseWheel(int i) {\n/* */ try {\n/* 560 */ if (NEIConfig.isHidden() || !NEIConfig.isEnabled())\n/* */ {\n/* 562 */ return false;\n/* */ }\n/* 564 */ for (Widget widget : controlWidgets)\n/* */ {\n/* 566 */ if (widget.onMouseWheel(i, mousex, mousey))\n/* */ {\n/* 568 */ return true;\n/* */ }\n/* */ }\n/* */ \n/* 572 */ } catch (Exception exception) {\n/* */ \n/* 574 */ NEIUtils.reportException(exception);\n/* 575 */ NEIConfig.setEnabled(false);\n/* */ } \n/* 577 */ return false;\n/* */ }", "void mouseMoved(double x, double y, MouseEvent e );", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\n\r\n\t}", "@Override\n public void mouseMoved(MouseEvent e) {\n }", "public void mouseMoved(MouseEvent e){}", "private void cursorPosChanged( double x, double y )\n {\n }", "@Override\n\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\n\t}", "public void mouseMoved(MouseEvent e) {}", "public void mouseMoved(MouseEvent e) {}", "public void mouseMoved(MouseEvent e) {\n\t\tupdateHud();\r\n\t}", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override \n\tpublic void mouseMoved(MouseEvent e){\n\t}", "public void mouseMoved(MouseEvent e) {}", "public void mouseMoved(MouseEvent mouseMove)\r\n\t{\r\n\t\t\r\n\t}", "private void onScroll(double wheelDelta, Point2D mousePoint) {\n double zoomFactor = Math.exp(wheelDelta * zoomIntensity);\n\n Bounds innerBounds = zoomNode.getLayoutBounds();\n Bounds viewportBounds = getViewportBounds();\n\n // calculate pixel offsets from [0, 1] range\n double valX = this.getHvalue() * (innerBounds.getWidth() - viewportBounds.getWidth());\n double valY = this.getVvalue() * (innerBounds.getHeight() - viewportBounds.getHeight());\n scaleValue = scaleValue * zoomFactor;\n \n // calculate minimum zoom\n if(Math.max(target.getLayoutBounds().getWidth()*scaleValue, target.getLayoutBounds().getHeight()*scaleValue) < minViewPortSize) {\n\n \tscaleValue = minViewPortSize / Math.max(target.getLayoutBounds().getWidth(), target.getLayoutBounds().getHeight());\n updateScale();\n this.layout();\n \n } else if(scaleValue > zoom_max) {\n \tscaleValue = zoom_max;\n \tupdateScale();\n this.layout();\n }else {\n \tupdateScale();\n this.layout();\n\n // convert target coordinates to zoomTarget coordinates\n Point2D posInZoomTarget = target.parentToLocal(zoomNode.parentToLocal(mousePoint));\n\n // calculate adjustment of scroll position\n Point2D adjustment = target.getLocalToParentTransform().deltaTransform(posInZoomTarget.multiply(zoomFactor - 1));\n\n // convert back to [0, 1] range\n Bounds updatedInnerBounds = zoomNode.getBoundsInLocal();\n this.setHvalue((valX + adjustment.getX()) / (updatedInnerBounds.getWidth() - viewportBounds.getWidth()));\n this.setVvalue((valY + adjustment.getY()) / (updatedInnerBounds.getHeight() - viewportBounds.getHeight()));\n }\n }", "@Override\n\tpublic void mouseMoved(MouseEvent e)\n\t{\n\t}", "public void mouseMoved(MouseEvent e) {\n }", "@Override\n\t\tpublic void mouseMoved(MouseEvent e) \n\t\t{\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "void setKeyWheel(boolean keyWheel);", "@Override\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n public void mouseMoved(MouseEvent e) {}", "@Override\n\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t}", "@Override\r\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check whether left or right mouse is held\n if (SwingUtilities.isLeftMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Rotate for LMB\n rt_y -= (old_x - x) / 2;\n rt_x -= (old_y - y) / 2;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n } else if (SwingUtilities.isRightMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Translate for RMB\n tr_x -= ((float) old_x - (float) x) / 1000;\n tr_y += ((float) old_y - (float) y) / 1000;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n }\n }", "public void mouseMoved(MouseEvent e){\n\t\t\tt.rotateStick(e.getX(), e.getY());\n\t\t\tmx = e.getX();\n\t\t\tmy = e.getY();\n\t\t\trepaint();\n\n\t\t}", "public void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "public boolean isWheelScrollingEnabled() {\n/* 1305 */ return this.wheelScrollState;\n/* */ }", "public void wheelZoom(MouseWheelEvent e) {\n try {\n int wheelRotation = e.getWheelRotation();\n Insets x = getInsets(); //Top bar space of the application\n Point p = e.getPoint();\n p.setLocation(p.getX() , p.getY()-x.top + x.bottom);\n if (wheelRotation > 0 && zoomLevel != 0) {\n //point2d before zoom\n Point2D p1 = transformPoint(p);\n transform.scale(1 / 1.2, 1 / 1.2);\n //point after zoom\n Point2D p2 = transformPoint(p);\n transform.translate(p2.getX() - p1.getX(), p2.getY() - p1.getY()); //Pan towards mouse\n checkForZoomOut();\n repaint();\n\n } else if (wheelRotation < 0 && zoomLevel != 20) {\n Point2D p1 = transformPoint(p);\n transform.scale(1.2, 1.2);\n Point2D p2 = transformPoint(p);\n transform.translate(p2.getX() - p1.getX(), p2.getY() - p1.getY()); //Pan towards mouse\n checkForZoomIn();\n repaint();\n }\n } catch (NoninvertibleTransformException ex) {\n ex.printStackTrace();\n }\n\n }", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t}", "public void mouseMoved (MouseEvent me) { mouse_x = me.getX(); mouse_y = me.getY(); repaint(); }", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t}", "@Override\r\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\r\n\t\t}", "public MouseWheel getMouseWheel() {\n return mouseWheel;\n }" ]
[ "0.8112878", "0.8065777", "0.79509956", "0.79507977", "0.7862254", "0.78200865", "0.78015524", "0.737544", "0.7332983", "0.73006874", "0.7254583", "0.72222936", "0.72154915", "0.7208427", "0.7142663", "0.7142663", "0.7142663", "0.70443594", "0.70363253", "0.7034307", "0.6995091", "0.69545084", "0.6912813", "0.6793629", "0.6762586", "0.66625684", "0.6620726", "0.65452653", "0.6511944", "0.6505048", "0.64844865", "0.64008325", "0.639882", "0.63763857", "0.63724786", "0.63629174", "0.6355987", "0.6351021", "0.63456655", "0.63436294", "0.63308614", "0.6318922", "0.63158464", "0.6315219", "0.6307097", "0.6298709", "0.62965155", "0.62932396", "0.628992", "0.62854004", "0.6283763", "0.6283763", "0.62624097", "0.62624097", "0.62527853", "0.62527853", "0.62485343", "0.62466615", "0.6235573", "0.6235573", "0.6235573", "0.6235573", "0.6235573", "0.6235573", "0.6235573", "0.6235573", "0.6235573", "0.6235573", "0.6235573", "0.62296665", "0.6225486", "0.6223771", "0.6217358", "0.62171537", "0.6204474", "0.6203376", "0.61938024", "0.6185632", "0.61842895", "0.61842895", "0.61842895", "0.6181506", "0.6180457", "0.6169993", "0.6169993", "0.6159416", "0.6158497", "0.61584276", "0.61509925", "0.61492074", "0.6144621", "0.6144621", "0.6136466", "0.6136466", "0.6136466", "0.6136466", "0.61311454", "0.612199", "0.61037946", "0.6103014" ]
0.6523735
28
This method runs when some button is pressed
boolean onKeyPressed(KeyEvent event);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}", "public void buttonClicked();", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "public void onButtonAPressed();", "public void settingBtnClick() {\n\t}", "void mainButtonPressed();", "public void ipcallButtonPressed() {\n\t\tdialButtonPressed(true) ;\n\t}", "void buttonGo_actionPerformed(ActionEvent e) {\n\n\n }", "public void clickButton()\n {\n fieldChangeNotify( 0 );\n }", "private void devBtnActionPerformed(ActionEvent evt) {\n }", "protected abstract void pressedOKButton( );", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n \n // YOUR CODE HERE\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "void enablButtonListener();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "public void testing() {\n System.out.println(\"button pressed!\");\n }", "public void sButton() {\n\n\n\n }", "public abstract void buttonPressed();", "public abstract void executeRunButton();", "protected void execute() { \t\n// \tboolean toggle=true;\n// \tboolean grab = false;\n// \tif(toggle&&button.get()) {//execute once per button push\n// \t\ttoggle=false;//prevents code from being called again until button is released and pressed again\n// \t\tif(grab){\n// \t\t\tgrab=false;\n// \t\t\tclaw.open();\n// \t\t}else {\n// \t\t\tgrab=true;\n// \t\t\tclaw.close();\n// \t\t}\n// \t}else if(!button.get()) {\n// \t\ttoggle=true;//button has been released\n// \t}\n \tclaw.open();\n }", "private void designBtnActionPerformed(ActionEvent evt) {\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tButtonPress();\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n Main.switchViews();\n }", "@Override\n protected void actionPerformed(GuiButton button)\n {\n super.actionPerformed(button);\n }", "void viewButton_actionPerformed(ActionEvent e) {\n doView();\n }", "@Override\n public void run() {\n nextButtonAction(); // invoking next button //\n }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}", "String handleButtonPress(Button button);", "private void ViewActionPerformed(ActionEvent e) {\n\t}", "@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}", "private void button1MouseClicked(MouseEvent e) {\n\t}", "@Override\n public void onClick() {\n System.out.println(\"Button has been JUST clicked\");\n }", "void btnGenReport_actionPerformed(ActionEvent e) {\n JButtonQueryButtonAction(e);\r\n }", "public void onButtonBPressed();", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) \n\t\t{\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "public void submit_intsatpos(View button) {\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "void userPressConnectButton();", "@Override\n public void onClick(View view) {\n if(buttonHandler != null)\n {\n //we send out to our button handler\n buttonHandler.handleEvolve(wid);\n }\n Toast.makeText(getContext(), \"Evolve please!\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) \n\t\t{\n\t\t\t\n\t\t}", "protected void actionPerformed(GuiButton par1GuiButton)\n {\n if (par1GuiButton.id == 0)\n {\n this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));\n }\n\n if (par1GuiButton.id == 5)\n {\n this.mc.displayGuiScreen(new GuiLanguage(this, this.mc.gameSettings));\n }\n\n if (par1GuiButton.id == 1)\n {\n this.mc.displayGuiScreen(new GuiSelectWorld(this));\n }\n\n if (par1GuiButton.id == 2)\n {\n this.mc.displayGuiScreen(new GuiMultiplayer(this));\n }\n\n if (par1GuiButton.id == 3)\n {\n this.mc.displayGuiScreen(new GuiTexturePacks(this));\n }\n\n if (par1GuiButton.id == 4)\n {\n this.mc.shutdown();\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n }", "@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void onBoomButtonClick(int index) {\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tRun();\n\t}", "public void buttonPress(ActionEvent event) {\r\n Button clickedButton = (Button) event.getSource();\r\n String selectedButton = clickedButton.getId();\r\n System.out.print(selectedButton);\r\n \r\n // If the user correctly guesses the winning button\r\n if (correctButtonName.equals(selectedButton)) {\r\n \r\n //Displays a popup alerting the user that they won the game.\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"You Win!\");\r\n alert.setHeaderText(\"Congratulations, you found the treasure!\");\r\n alert.setContentText(\"Would you like to play again?\");\r\n ButtonType okButton = new ButtonType(\"Play again\");\r\n ButtonType noThanksButton = new ButtonType(\"No Thanks!\");\r\n alert.getButtonTypes().setAll(okButton, noThanksButton);\r\n Optional<ButtonType> result = alert.showAndWait();\r\n \r\n //If the user selects \"Play again\" a new button will be randomly selected\r\n if (result.get() == okButton ){\r\n //Chooses a random button from the list of buttons\r\n correctButtonName = buttonList[(int)(Math.random() * buttonList.length)];\r\n }\r\n //If the user does not select \"Play again\", the application will be closed\r\n else {System.exit(0);}\r\n \r\n }\r\n \r\n //If the user chooses any button except for the winning button\r\n else if (!selectedButton.equals(correctButtonName)) {\r\n \r\n //Displays a popup alerting the user that they did not find the treasure.\r\n Alert alert2 = new Alert(Alert.AlertType.INFORMATION);\r\n alert2.setTitle(\"No treasure!\");\r\n alert2.setHeaderText(\"There was no treasure found on that island\");\r\n alert2.setContentText(\"Would you like to continue searching for treasure?\");\r\n ButtonType ayeCaptain = new ButtonType (\"Continue Searching\");\r\n ButtonType noCaptain = new ButtonType (\"Quit\");\r\n alert2.getButtonTypes().setAll(ayeCaptain,noCaptain);\r\n Optional<ButtonType> result2 = alert2.showAndWait();\r\n \r\n if (result2.get() == ayeCaptain){\r\n //The search for treasure continues!\r\n }\r\n else{ \r\n System.exit(0);\r\n }\r\n }\r\n }", "abstract void botonAyuda_actionPerformed(ActionEvent e);", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "public void actionPerformed(ActionEvent arg0) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tborderSelected(dayNumber -1);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//show the event items in the box on the right\n\t\t\t\t\t\t\twriteEvents(dayNumber);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tchangeDateLabel(dayNumber);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//make these buttons available for use\n\t\t\t\t\t\t\tnextDay.setEnabled(true);\n\t\t\t\t\t\t\tprevDay.setEnabled(true);\n\t\t\t\t\t\t\tcreateButton.setEnabled(true);\n\t\t\t\t\t\t}", "void configureButtonListener();", "void actionButton ( ) throws IOException {\n String textOfField = this.gui.wdgInputText.getText();\n this.gui.widgOutput.append(\"Button1 \" + (++this.ctKeyStroke1) + \" time, text=\" + textOfField + \"\\n\");\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "void buttonPressed(ButtonType type);", "@Override\r\n \t\tpublic void actionPerformed(ActionEvent e) {\n \t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == button1) {\n\t\t prefDisplay();\n\t\t }\n\t}", "void okButtonClicked();", "public void buttonClick() {\n if (soundToggle == true) {\n buttonClick.start();\n } // if\n }", "public void onClicked();", "@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }", "@Override\r\n public void actionPerformed(ActionEvent e)\r\n {\n \r\n }", "@Override\n\tpublic void pressed(PushButton button) {\n\t\tvm.getConfigurationPanel().getButton(index);\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n\n JButton jb = (JButton) e.getSource();\n if(jb == next_button){\n\n layout.extractInformation(number_of_rows,number_of_cols,dataEntries);\n JOptionPane.showMessageDialog(this, \"Your input has been successfully acquired. Press OK to continue.\\n\");\n this.setVisible(false);\n AdminGUI startGui = new AdminGUI(dataEntries , layout);\n //TODO: Uncomment layout start\n layout.start();\n }\n\n\n }", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[0])){\n\t\t\tperformButton(0);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[1])){\n\t\t\tperformButton(1);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[2])){\n\t\t\tperformButton(2);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[3])){\n\t\t\tperformButton(3);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[4])){\n\t\t\tperformButton(4);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[5])){\n\t\t\tperformButton(5);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[6])){\n\t\t\tperformButton(6);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[7])){\n\t\t\tperformButton(7);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[8])){\n\t\t\tperformButton(8);\n\t\t}\n\t}" ]
[ "0.7636039", "0.76147777", "0.75225025", "0.7251148", "0.7189988", "0.71457624", "0.7142413", "0.71407974", "0.7127282", "0.7046499", "0.70372397", "0.7033729", "0.7023413", "0.7023413", "0.7023413", "0.7023413", "0.70218354", "0.6986218", "0.6964207", "0.6951137", "0.6951137", "0.6934682", "0.6934682", "0.6934682", "0.6932678", "0.6932531", "0.69299924", "0.6919999", "0.69171154", "0.6908371", "0.68959475", "0.6894546", "0.68830454", "0.6868325", "0.68585074", "0.6855712", "0.68553257", "0.68507636", "0.6846588", "0.68368316", "0.6828799", "0.6817731", "0.68121326", "0.6807795", "0.68041986", "0.6800189", "0.6776727", "0.6776649", "0.6776649", "0.67740965", "0.67740965", "0.67740965", "0.67740965", "0.67740965", "0.67740965", "0.67740965", "0.67740965", "0.67740965", "0.67740965", "0.6757872", "0.6757872", "0.6757767", "0.6757767", "0.6757767", "0.675258", "0.67496645", "0.67478997", "0.6747041", "0.67408496", "0.6738976", "0.6738784", "0.6730016", "0.6723776", "0.6721164", "0.6701087", "0.66968966", "0.6693272", "0.6687907", "0.6682571", "0.66774946", "0.66774076", "0.66687757", "0.66687757", "0.66687757", "0.66687757", "0.66687757", "0.66687757", "0.6663795", "0.66618854", "0.66586053", "0.66586053", "0.66571635", "0.66570526", "0.6654805", "0.6649284", "0.6645093", "0.66443104", "0.6643344", "0.66420966", "0.6624898", "0.6623641" ]
0.0
-1
LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
public String getEnabledLocationProvider() { Criteria criteria = new Criteria(); String bestProvider = locationManager.getBestProvider(criteria, true); boolean enabled = locationManager.isProviderEnabled(bestProvider); if (!enabled) { Log.i("TAG", "No location provider enabled!"); return null; } return bestProvider; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void locationManager()\n\t{\n mMap.setMyLocationEnabled(true);\n\n // Getting LocationManager object from System Service LOCATION_SERVICE\n LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n\n // Creating a criteria object to retrieve provider\n Criteria criteria = new Criteria();\n\n // Getting the name of the best provider\n String provider = locationManager.getBestProvider(criteria, true);\n\n // Getting Current Location\n Location location = locationManager.getLastKnownLocation(provider);\n\n if(location!=null){\n onLocationChanged(location);\n }\n locationManager.requestLocationUpdates(provider, 20000, 0, this);\n\t\t\n\t}", "@SuppressLint(\"MissingPermission\")\n private void doStuff() {\n LocationManager locationManager = (LocationManager) getApplicationContext().getSystemService(Context.LOCATION_SERVICE);\n if (locationManager != null) {\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, (LocationListener) this);\n }\n\n }", "private void getLocation() {\n //if you don't have permission for location services yet, ask\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_LOCATION_PERMISSION);\n //have the app ask for location permission\n } else {\n fusedLocationClient.requestLocationUpdates\n (getLocationRequest(), mLocationCallback,\n null /* Looper */);\n //uses the type of request and the location callback to update the location\n /**fusedLocationClient.getLastLocation().addOnSuccessListener(\n new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n TextView error = findViewById(R.id.errorMsg);\n error.setVisibility(View.VISIBLE);\n\n if (location != null) {\n lastLocation = location;\n error.setText(\"location: \" + lastLocation.getLatitude());\n } else {\n error.setText(\"location not available\");\n }\n }\n });**/\n }\n }", "private void getGPSLocation()\n {\n gps_ = new GPSLocator( LoginActivity.this );\n\n // check if GPS enabled\n if ( gps_.canGetLocation() )\n {\n latitude_ = gps_.getLatitude();\n longitude_ = gps_.getLongitude();\n\n // Raises a toast to show the location\n Toast.makeText(\n getApplicationContext(),\n \"Your Location is - \\nLat: \" + latitude_ + \"\\nLong: \"\n + longitude_, Toast.LENGTH_SHORT ).show();\n }\n else\n {\n // There was an error getting the gps information\n gps_.showSettingsAlert();\n }\n }", "protected void getLocation() {\n if (isLocationEnabled(Navigate.this)) {\n locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n criteria = new Criteria();\n bestProvider = String.valueOf(locationManager.getBestProvider(criteria, true)).toString();\n\n //You can still do this if you like, you might get lucky:\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n Location location = locationManager.getLastKnownLocation(bestProvider);\n if (location != null) {\n Log.e(\"TAG\", \"GPS is on\");\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n } else {\n //This is what you need:\n locationManager.requestLocationUpdates(bestProvider, 1000, 0, this);\n }\n } else {\n// final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n// builder.setMessage(\"Your GPS seems to be disabled, do you want to enable it?\")\n// .setCancelable(false)\n// .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n// public void onClick(final DialogInterface dialog, final int id) {\n// startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS));\n// }\n// })\n// .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n// public void onClick(final DialogInterface dialog, final int id) {\n// dialog.cancel();\n// }\n// });\n// final AlertDialog alert = builder.create();\n// alert.show();\n }\n }", "private void getLocation() { \n LocationManager locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); \n Criteria criteria = new Criteria(); \n criteria.setAccuracy(Criteria.ACCURACY_FINE); \n criteria.setAltitudeRequired(false); \n criteria.setBearingRequired(false); \n criteria.setCostAllowed(true);\n criteria.setPowerRequirement(Criteria.POWER_LOW); \n String provider = locationManager.getBestProvider(criteria,true); \n \n //In order to make sure the device is getting location, request updates. locationManager.requestLocationUpdates(provider, 1, 0, this); \n mostRecentLocation = locationManager.getLastKnownLocation(provider); \n }", "@SuppressLint(\"MissingPermission\")\n private void Locate(){\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 2000, 0, (LocationListener) this);\n\n // Obtain the SupportMapFragment and get notified when the map is ready to be used.\n mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n\n //Initialize fused location\n client = LocationServices.getFusedLocationProviderClient(this);\n }", "public Location getLocation() {\n /* if ( Build.VERSION.SDK_INT >= 23 &&\n ContextCompat.checkSelfPermission( mContext, android.Manifest.permission.ACCESS_FINE_LOCATION ) != PackageManager.PERMISSION_GRANTED ) {\n Toast.makeText(mContext,\"Permission is not granted so returning back \",Toast.LENGTH_LONG).show();\n// showSettingsAlert();\n return null ;\n }*/\n\n try {\n\n locationManager = (LocationManager) mContext.getSystemService(LOCATION_SERVICE);\n\n Criteria criteria = new Criteria();\n provider = locationManager.getBestProvider(criteria, false);\n if(provider != null) {\n Location location = locationManager.getLastKnownLocation(provider);\n\n // Initialize the location fields\n if (location != null) {\n System.out.println(\"Provider \" + provider + \" has been selected.\");\n onLocationChanged(location);\n resumeGpsService();\n }\n }else {\n// ISSUtils.checkPermission(mContext);\n }\n\n\n }catch (SecurityException secx) {\n secx.printStackTrace();\n// ISSUtils.checkPermission(mContext);\n showSettingsAlert();\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n\n return location;\n }", "private Location getLocation() {\n try {\n locationManager = (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);\n\n isGPSEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\n isNetworkEnabled = locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n\n\n if (!isGPSEnabled && !isNetworkEnabled) {\n\n } else {\n this.canGetLocation = true;\n\n if (isNetworkEnabled) {\n\n if (ActivityCompat.checkSelfPermission(getActivity(), android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n Log.d(TAG, \"nagy nulla\");\n return null;\n }\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 60000, 3, locationListener);\n\n if (locationManager != null){\n location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n if (location != null){\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n }\n\n if (isGPSEnabled){\n if (location == null){\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 60000, 3, locationListener);\n if (locationManager != null){\n location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location != null){\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n }\n } else {\n //showAlertDialog();\n }\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return location;\n }", "private void turnOnLocationManager(){\n mLocationManager=(LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n mLocationManager.addTestProvider(LocationManager.GPS_PROVIDER, false, false, false,\n false, true, true, true, 0, 5);\n mLocationManager.setTestProviderEnabled(LocationManager.GPS_PROVIDER, true);\n //mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, mLocationSource);\n }", "public Location getLocation(){\n try{\n\n locationManager = (LocationManager) context.getSystemService(LOCATION_SERVICE);\n isGPSEnabled = locationManager.isProviderEnabled(locationManager.GPS_PROVIDER);\n isNetworkEnabled=locationManager.isProviderEnabled(locationManager.NETWORK_PROVIDER);\n\n if(ContextCompat.checkSelfPermission(context, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED\n || ContextCompat.checkSelfPermission(context, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED ){\n\n if(isGPSEnabled){\n if(location==null){\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 10000,10,this);\n if(locationManager!=null){\n location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n }\n }\n }\n // if lcoation is not found from GPS than it will found from network //\n if(location==null){\n if(isNetworkEnabled){\n\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 10000,10,this);\n if(locationManager!=null){\n location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n }\n\n }\n }\n\n }\n\n }catch(Exception ex){\n\n }\n\n\n\n return location;\n }", "private void Location() {\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_ACCESS_FINE_LOCATION);\n }\n\n //Google Play Location stored in loc variable\n fusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n fusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<Location>() {\n\n\n @Override\n public void onSuccess(Location location) {\n\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n loc = location;\n getAddressFromLocation(loc.getLatitude(), loc.getLongitude());\n\n }\n }\n });\n }", "private void getLocation() {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.INTERNET}\n , 10);\n }\n return;\n }\n\n //Update location\n locationManager.requestLocationUpdates(\"gps\", 5000, 0, listener);\n }", "@SuppressLint(\"MissingPermission\")\n private void configureLocation() {\n\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1000, 1, (android.location.LocationListener) locationListener);\n location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n Toast.makeText(getApplicationContext(), \"net acquired\", Toast.LENGTH_LONG).show();\n }", "public void onLocationChanged(Location location){\n\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\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.main);\n\t\t// Otteniamo il riferimento al LocationManager\n\t\tLocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n\t\tLog.i(LOG_TAG,\"LocationManager created!\");\n\t\t// Registriamo il LocationListener al provider GPS\n\t\tlocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0,\n\t\t\t\t0, new LocationListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\t\t\tLog.i(LOG_TAG,\"onLocationChanged \"+location.getLatitude()+\":\"+location.getLongitude());\n\t\t\t\t\t\tToast.makeText(LocationManagerTest.this,\n\t\t\t\t\t\t\t\t\"onLocationChanged \"+location.getLatitude()+\":\"+location.getLongitude(), Toast.LENGTH_SHORT).show();\n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\t\t\tLog.i(LOG_TAG,\"onProviderDisabled \"+provider);\n\t\t\t\t\t\tToast.makeText(LocationManagerTest.this,\n\t\t\t\t\t\t\t\t\"onProviderDisabled \"+provider, Toast.LENGTH_SHORT).show();\n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\t\t\tLog.i(LOG_TAG,\"onProviderEnabled \"+provider);\n\t\t\t\t\t\tToast.makeText(LocationManagerTest.this,\n\t\t\t\t\t\t\t\t\"onProviderEnabled \"+provider, Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onStatusChanged(String provider, int status,Bundle extras) {\n\t\t\t\t\t\tLog.i(LOG_TAG,\"onStatusChanged \"+provider+\" status: \"+status);\n\t\t\t\t\t\tToast.makeText(LocationManagerTest.this,\n\t\t\t\t\t\t\t\t\"onStatusChanged \"+provider+\" status: \"+status, Toast.LENGTH_SHORT).show();\n\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t}", "private void getlocation() {\n\t\t\t\ttry {\n\n\t\t\t\t\tgps = new GPSTracker(RegisterActivity.this);\n\t\t\t\t\tLog.d(\"LOgggg\", \"inCurrentlocation\");\n\n\t\t\t\t\t// check if GPS enabled\n\t\t\t\t\tif (gps.canGetLocation()) {\n\n\t\t\t\t\t\tlatitude = gps.getLatitude();\n\t\t\t\t\t\tlongitude = gps.getLongitude();\n\n\t\t\t\t\t\tLog.i(\"latitude\", \"\" + latitude);\n\t\t\t\t\t\tLog.i(\"longitude\", \"\" + longitude);\n\n\t\t\t\t\t\tnew getLoc().execute(\"\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tgps.showSettingsAlert();\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}", "private void startLocationService() {\n\t\tmLocationMngr = (LocationManager) this\r\n\t\t\t\t.getSystemService(Context.LOCATION_SERVICE);\r\n\r\n\t\tmGpsListener = new GPSListener();\r\n\t\tlong minTime = 10000;\r\n\t\tfloat minDistance = 0;\r\n\r\n\t\tmLocationMngr.requestLocationUpdates(LocationManager.GPS_PROVIDER,\r\n\t\t\t\tminTime, minDistance, mGpsListener);\r\n\t\tmLocationMngr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,\r\n\t\t\t\tminTime, minDistance, mGpsListener);\r\n\r\n\t\ttry {\r\n\t\t\tLocation lastLocation = mLocationMngr\r\n\t\t\t\t\t.getLastKnownLocation(LocationManager.GPS_PROVIDER);\r\n\t\t\tif (lastLocation != null) {\r\n\t\t\t\tDouble latitude = lastLocation.getLatitude();\r\n\t\t\t\tDouble longitude = lastLocation.getLongitude();\r\n\t\t\t\tString msg = \"Your Current Location \\nLatitude: \" + latitude\r\n\t\t\t\t\t\t+ \", Longitude: \" + longitude;\r\n\t\t\t\tLog.i(TAG, msg);\r\n\t\t\t\t// this.showToastMsg(msg);\r\n\t\t\t\tshowCurrentLocation(latitude, longitude);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tString msg = \"Failed to get current location. Please try later.\";\r\n\t\t\tLog.e(TAG, msg);\r\n\t\t\tshowToastMsg(msg);\r\n\t\t}\r\n\r\n\t}", "private void getLocation() {\n LocationRequest mLocationRequestHighAccuracy = new LocationRequest();\n mLocationRequestHighAccuracy.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequestHighAccuracy.setInterval(UPDATE_INTERVAL);\n mLocationRequestHighAccuracy.setFastestInterval(FASTEST_INTERVAL);\n\n\n // new Google API SDK v11 uses getFusedLocationProviderClient(this)\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"getLocation: stopping the location service.\");\n stopSelf();\n return;\n }\n Log.d(TAG, \"getLocation: getting location information.\");\n mFusedLocationClient.requestLocationUpdates(mLocationRequestHighAccuracy, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n\n Log.d(TAG, \"onLocationResult: got location result.\");\n\n Location location = locationResult.getLastLocation();\n\n if (location != null) {\n\n saveUserLocation(new LatLng(location.getLatitude(),location.getLongitude()));\n }\n }\n },\n Looper.myLooper()); // Looper.myLooper tells this to repeat forever until thread is destroyed\n }", "private void getDeviceLocation(){\n mFusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n\n try {\n if (mLocationPermissionsGranted) {\n\n final Task location = mFusedLocationProviderClient.getLastLocation();\n location.addOnCompleteListener(new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if(task.isSuccessful()){\n\n Location currentLocation = (Location) task.getResult();\n\n if (currentLocation == null) {\n\n // Provide default current location\n\n currentLocation = new Location(\"\");\n currentLocation.setLatitude(51.454514);\n currentLocation.setLongitude(-2.587910);\n }\n\n } else {\n Helpers.showToast(getApplicationContext(), \"Could not get current location\");\n }\n }\n });\n }\n } catch (SecurityException e) {\n Helpers.showToast(getApplicationContext(), \"Could not get current location\");\n }\n }", "private void getLocation() {\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n\t\t\tif (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tFusedLocationProviderClient locationProviderClient = LocationServices.getFusedLocationProviderClient(getApplicationContext());\n\t\tlocationProviderClient.getLastLocation().addOnSuccessListener(new OnSuccessListener<Location>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(Location location) {\n\t\t\t\t\n\t\t\t\tfinal Location finalLocation = location;\n\t\t\t\t\n\t\t\t\tbtnGoToYou.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tLatLng userLocation = new LatLng(finalLocation.getLatitude(), finalLocation.getLongitude());\n\t\t\t\t\t\tmMap.addMarker(new MarkerOptions().position(userLocation).title(\"You are Here!\"));\n\t\t\t\t\t\tmMap.moveCamera(CameraUpdateFactory.newLatLng(userLocation));\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}\n\t\t});\n\t\t\n\t}", "private synchronized void initLocation() {\n if (locationManager == null) {\n LocationManager manager =\n (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);\n\n Criteria criteriaCoarse = new Criteria();\n /* \"Coarse\" accuracy means \"no need to use GPS\".\n * Typically a gShots phone would be located in a building,\n * and GPS may not be able to acquire a location.\n * We only care about the location to determine the country,\n * so we don't need a super accurate location, cell/wifi is good enough.\n */\n criteriaCoarse.setAccuracy(Criteria.ACCURACY_COARSE);\n criteriaCoarse.setPowerRequirement(Criteria.POWER_LOW);\n String providerName =\n manager.getBestProvider(criteriaCoarse, /*enabledOnly=*/true);\n \n \n List<String> providers = manager.getAllProviders();\n for (String providerNameIter : providers) {\n try {\n LocationProvider provider = manager.getProvider(providerNameIter);\n } catch (SecurityException se) {\n // Not allowed to use this provider\n Logger.w(\"Unable to use provider \" + providerNameIter);\n continue;\n }\n Logger.i(providerNameIter + \": \" +\n (manager.isProviderEnabled(providerNameIter) ? \"enabled\" : \"disabled\"));\n }\n\n /* Make sure the provider updates its location.\n * Without this, we may get a very old location, even a\n * device powercycle may not update it.\n * {@see android.location.LocationManager.getLastKnownLocation}.\n */\n manager.requestLocationUpdates(providerName,\n /*minTime=*/0,\n /*minDistance=*/0,\n new LoggingLocationListener(),\n Looper.getMainLooper());\n locationManager = manager;\n locationProviderName = providerName;\n }\n assert locationManager != null;\n assert locationProviderName != null;\n }", "@Override\n public void onLocationChanged(Location location) {\n\n }", "@Override\n public void onLocationChanged(Location location) {\n\n }", "public void init() {\n mLocationManager = (LocationManager) this.activity.getSystemService(Context\n .LOCATION_SERVICE);\n // checking run time location access permissions only for API version >= 23 (Marshmallow)\n if (ActivityCompat.checkSelfPermission(this.activity, Manifest.permission\n .ACCESS_FINE_LOCATION) !=\n PackageManager.PERMISSION_GRANTED) {\n // if permission is already granted request for permissions\n // ActivityCompat.requestPermissions(\n // this.activity, new String[]{Manifest.permission\n // .ACCESS_FINE_LOCATION},\n // MY_PERMISSIONS_REQUEST_ACCESS_LOCATION);\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,\n UPDATE_INTERVAL_IN_MILLISECONDS, MIN_DISTANCE, locationListener);\n mLocationManager.addGpsStatusListener(gpsStatusListener);\n mLocationManager.addNmeaListener(nmeaListener);\n }", "public Location getLocation() {\n\n try {\n\n locationManager = (LocationManager) mContext.getSystemService(LOCATION_SERVICE);\n\n isGPSEnabled = locationManager.isProviderEnabled(GPS_PROVIDER);\n isNetworkEnabled = locationManager.isProviderEnabled(NETWORK_PROVIDER);\n\n if (!isGPSEnabled && !isNetworkEnabled) {\n //Nothing is enabled...\n } else {\n canGetLocation = true;\n\n if (isNetworkEnabled) {\n if (ActivityCompat.checkSelfPermission(mContext, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(mContext, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n\n Intent trackingIntent = new Intent(CustomConstants.SEND_TRACKING_MAIL);\n sendBroadcast(trackingIntent);\n\n return null;\n }\n locationManager.requestLocationUpdates(NETWORK_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES, this);\n\n if (locationManager != null) {\n location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n location.setAccuracy(LOCATION_ACCURACY);\n\n if (location != null) {\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n }\n\n if (isGPSEnabled) {\n\n if (locationManager == null) {\n\n locationManager.requestLocationUpdates(GPS_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES, this);\n location.setAccuracy(LOCATION_ACCURACY);\n if (locationManager != null) {\n location = locationManager.getLastKnownLocation(GPS_PROVIDER);\n\n if (location != null) {\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return location;\n }", "private void getGpsLocation() {\n Log.d(LOG_TAG, \"In getGpsLocation\");\n mLocationMgr = (LocationManager) mContext.getSystemService(mContext.LOCATION_SERVICE);\n try {\n Location mLocation = mLocationMgr.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (null != mLocation) {\n mLatitude = mLocation.getLatitude();\n mLongitude = mLocation.getLongitude();\n }\n } catch (SecurityException se) {\n Log.d(LOG_TAG, \"Security Exception\", se);\n }\n }", "private void getLocationPermission(){\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED){\n locationAccess = true;\n } else {\n locationAccess = false;\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_LOCATION_PERMISSION);\n }\n }", "private boolean getLocation() {\n LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n\n // define listener responding to location updates\n LocationListener locationListener = new LocationListener() {\n public void onLocationChanged(Location location) {\n // new location is found by the network location provider\n }\n public void onStatusChanged(String provider, int status, Bundle extras) { }\n public void onProviderEnabled(String provider) { }\n public void onProviderDisabled(String provider) { }\n };\n\n // register listener with Location Manager to receive location updates\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"Location permission not granted\");\n requestLocationPermission();\n return false;\n }\n\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n String locationProvider = LocationManager.GPS_PROVIDER;\n Location lastKnownLocation = locationManager.getLastKnownLocation(locationProvider);\n\n // store values\n longitude = lastKnownLocation.getLongitude();\n latitude = lastKnownLocation.getLatitude();\n Log.d(TAG, \"Longitude: \" + longitude + \", Latitude: \" + latitude);\n\n return true;\n }", "private void getDeviceLocation() {\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = (Location) task.getResult();\n if (mLastKnownLocation != null) {\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n\n\n }\n\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n } catch (NullPointerException e) {\n Log.e(\"....\", \"Null pointer exception\");\n }\n }", "private void getLocation() {\n if(ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n if(ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION)){\n new AlertDialog.Builder(this)\n .setTitle(\"Location Permission Required\")\n .setMessage(\"This app needs permission to use your location\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(RestaurantsActivity.this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_LOCATIONS);\n }\n })\n .create()\n .show();\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_LOCATIONS);\n }\n }\n }", "public Location getLocation() {\r\n try {\r\n\r\n locationManager = (LocationManager) mContext\r\n .getSystemService(Context.LOCATION_SERVICE);\r\n\r\n // getting GPS status\r\n isGPSEnabled = locationManager\r\n .isProviderEnabled(LocationManager.GPS_PROVIDER);\r\n\r\n\r\n Log.v(\"isGPSEnabled\", \"=\" + isGPSEnabled);\r\n\r\n // getting network status\r\n isNetworkEnabled = locationManager\r\n .isProviderEnabled(LocationManager.NETWORK_PROVIDER);\r\n\r\n Log.v(\"isNetworkEnabled\", \"=\" + isNetworkEnabled);\r\n\r\n if (isGPSEnabled == false && isNetworkEnabled == false) {\r\n // no network provider is enabled\r\n } else {\r\n this.canGetLocation = true;\r\n if (isNetworkEnabled) {\r\n location=null;\r\n locationManager.requestLocationUpdates(\r\n LocationManager.NETWORK_PROVIDER,\r\n MIN_TIME_BW_UPDATES,\r\n MIN_DISTANCE_CHANGE_FOR_UPDATES, this);\r\n Log.d(\"Network\", \"Network\");\r\n if (locationManager != null) {\r\n location = locationManager\r\n .getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\r\n if (location != null) {\r\n latitude = location.getLatitude();\r\n longitude = location.getLongitude();\r\n }\r\n }\r\n }\r\n // if GPS Enabled get lat/long using GPS Services\r\n if (isGPSEnabled) {\r\n location=null;\r\n if (location == null) {\r\n locationManager.requestLocationUpdates(\r\n LocationManager.GPS_PROVIDER,\r\n MIN_TIME_BW_UPDATES,\r\n MIN_DISTANCE_CHANGE_FOR_UPDATES, this);\r\n Log.d(\"GPS Enabled\", \"GPS Enabled\");\r\n if (locationManager != null) {\r\n Criteria crit = new Criteria();\r\n crit.setAccuracy(Criteria.ACCURACY_FINE);\r\n// Gets the best matched provider, and only if it's on\r\n String provider = locationManager.getBestProvider(crit, true);\r\n float accuracy = locationManager.getProvider(provider).getAccuracy();\r\n Log.i(\"show teste\", provider +\" \"+ accuracy);\r\n location = locationManager\r\n .getLastKnownLocation(provider);\r\n location.getAccuracy();\r\n if (location != null) {\r\n latitude = location.getLatitude();\r\n longitude = location.getLongitude();\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return location;\r\n }", "public void getCurrentLoaction() {\n locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n locationListener = new LocationListener() {\n @Override\n public void onLocationChanged(Location location) {\n latitude = \"\" + location.getLatitude();\n TextView txtLatitude = (TextView) findViewById(R.id.txtLatitude);\n txtLatitude.setText(\"Latitud: \" + latitude);\n longitude = \"\" + location.getLongitude();\n TextView txtLongitude = (TextView) findViewById(R.id.txtLongitude);\n txtLongitude.setText(\"Longitud: \" + longitude);\n\n Geocoder gcd = new Geocoder(getBaseContext(), Locale.getDefault());\n List<Address> addresses;\n try {\n addresses = gcd.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n if (addresses.size() > 0) {\n cityName = addresses.get(0).getLocality();\n }\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onStatusChanged(String s, int i, Bundle bundle) {\n\n }\n\n @Override\n public void onProviderEnabled(String s) {\n\n }\n\n @Override\n public void onProviderDisabled(String s) {\n Toast.makeText(pantallaIdentificacion.this, \"Por favor, habilite el GPS para continuar\", Toast.LENGTH_LONG).show();\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n }\n };\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n locationManager.requestLocationUpdates(\"network\", 1000, 0, locationListener);\n }", "private void registerForGPS() {\n Log.d(NAMAZ_LOG_TAG, \"registerForGPS:\");\n Criteria criteria = new Criteria();\n criteria.setAccuracy(Criteria.ACCURACY_COARSE);\n criteria.setPowerRequirement(Criteria.POWER_LOW);\n criteria.setAltitudeRequired(false);\n criteria.setBearingRequired(false);\n criteria.setSpeedRequired(false);\n criteria.setCostAllowed(true);\n LocationManager locationManager = ((LocationManager) getSystemService(Context.LOCATION_SERVICE));\n String provider = locationManager.getBestProvider(criteria, true);\n\n if(!isLocationEnabled()) {\n showDialog(\"Location Access\", getResources().getString(R.string.location_enable), \"Enable Location\", \"Cancel\", 1);\n } else {\n ActivityCompat.requestPermissions(QiblaDirectionActivity.this,\n new String[]{Manifest.permission. ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }\n\n /* if (provider != null) {\n locationManager.requestLocationUpdates(provider, MIN_LOCATION_TIME,\n MIN_LOCATION_DISTANCE, qiblaManager);\n }\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,\n MIN_LOCATION_TIME, MIN_LOCATION_DISTANCE, qiblaManager);\n locationManager.requestLocationUpdates(\n LocationManager.NETWORK_PROVIDER, MIN_LOCATION_TIME,\n MIN_LOCATION_DISTANCE, qiblaManager);*/\n /*Location location = locationManager\n .getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location == null) {\n location = ((LocationManager) getSystemService(Context.LOCATION_SERVICE))\n .getLastKnownLocation(LocationManager.GPS_PROVIDER);\n }*/\n\n }", "private void startForegroundLocationManager() {\n foregroundLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n mlocListener = new MyLocationListener();\n // 0, 0, is minTime ms, minDistance meters\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n foregroundLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, mlocListener);\n }", "public void add_location() {\n if (currentLocationCheckbox.isChecked()) {\n try {\n CurrentLocation locationListener = new CurrentLocation();\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);\n Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location != null) {\n int latitude = (int) (location.getLatitude() * 1E6);\n int longitude = (int) (location.getLongitude() * 1E6);\n currentLocation = new GeoPoint(latitude, longitude);\n }\n } catch (SecurityException e) {\n e.printStackTrace();\n }\n } else {\n currentLocation = null;\n }\n\n }", "@Override\r\n public void onLocationChanged(Location location) {\n\r\n sendLocationUpdates(location);\r\n }", "public GPSManager(Activity context) {\n this.mContext = context;\n //Get the current location\n getLocation();\n }", "private void startService() {\r\n\r\n\t\t// ---use the LocationManager class to obtain GPS locations---\r\n\t\tlm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\r\n\t\tlocationListener = new MyLocationListener();\r\n\r\n\t\tlm.requestLocationUpdates(LocationManager.GPS_PROVIDER, minTimeMillis,\r\n\t\t\t\tminDistanceMeters, locationListener);\r\n\t\tlocationListener.onLocationChanged(lm.getLastKnownLocation(LocationManager.GPS_PROVIDER));\r\n\t}", "public LatLng getLocation() {\n LocationManager locationManager = (LocationManager) getActivity().getSystemService(LOCATION_SERVICE);\n String locationProvider = LocationManager.NETWORK_PROVIDER;\n Location location = locationManager.getLastKnownLocation(locationProvider);\n\n Double lat,lon;\n try {\n lat = location.getLatitude();\n lon = location.getLongitude();\n return new LatLng(lat, lon);\n }\n catch (NullPointerException e){\n e.printStackTrace();\n return null;\n }\n\n\n\n }", "@SuppressWarnings({\"MissingPermission\"})\n void getMyLocation() {\n mGoogleMap.setMyLocationEnabled(true);\n FusedLocationProviderClient locationClient = getFusedLocationProviderClient(getContext());\n locationClient.getLastLocation()\n .addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n onLocationChanged(location);\n moveCamera();\n drawCircle();\n drawMarkers();\n }\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"MapDemoActivity\", \"Error trying to get last GPS location\");\n e.printStackTrace();\n }\n });\n }", "public void checkLocationPermission() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n 99);\n }\n\n }", "private void findPosition() throws Exception {\n \tLocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n\n \t// Define a listener that responds to location updates\n \tLocationListener locationListener = new LocationListener() {\n \t public void onLocationChanged(Location location) {\n \t // Called when a new location is found by the network location provider.\n \t \n \t }\n\n \t public void onStatusChanged(String provider, int status, Bundle extras) {}\n\n \t public void onProviderEnabled(String provider) {}\n\n \t public void onProviderDisabled(String provider) {}\n \t };\n\n \t// Register the listener with the Location Manager to receive location updates\n \ttry {\n \t\tlocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n \tLocation loc = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n \tlatitude = (int)(loc.getLatitude()*1E6);\n \tlongitude = (int)(loc.getLongitude()*1E6);\n\t\t} catch (Exception e) {\n\t\t\tlocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0, 0, locationListener);\n\t \tLocation loc = locationManager.getLastKnownLocation(LocationManager.PASSIVE_PROVIDER);\n\t \tlatitude = (int)(loc.getLatitude()*1E6);\n\t \tlongitude = (int)(loc.getLongitude()*1E6);\n\t\t}\n \t//locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n \t//Location loc = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n \t\n \t\n \t\n\t\t\n\t}", "private void getDeviceLocation() {\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the customer_map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n getNearestDriver();\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "public Location myLocation() {\n\n // Acquire a reference to the system Location Manager\n LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n criteria.setHorizontalAccuracy(Criteria.ACCURACY_FINE);\n String provider = locationManager.getBestProvider(criteria, true);\n // Define a listener that responds to location updates\n LocationListener locationListener = new LocationListener() {\n\n //When the location of the device changes\n public void onLocationChanged(Location location) {\n\n //Display the current location\n double latitude = location.getLatitude();\n double longitude = location.getLongitude();\n MapProjection mapProjection = MapProjection.getDefault();\n GridPoint gp = mapProjection.toGridPoint(latitude,longitude);\n mGPSon.setText(\"Latitude: \"+Math.round(gp.x)+\"\\nLongitude: \"+Math.round(gp.y));\n\n }\n\n //When the status of the GNSS receiver changes\n public void onStatusChanged(String provider, int status, Bundle extras) {\n\n\n\n }\n\n //When the location provider is enabled\n public void onProviderEnabled(String provider) {\n\n\n\n }\n\n //When the location provider is disabled\n public void onProviderDisabled(String provider) {\n\n\n\n }\n\n };\n // Register the listener with the Location Manager to receive location updates\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,0,0,locationListener);\n // Obtain the current location\n Location myLocation = locationManager.getLastKnownLocation(provider);\n\n //Only if the current location is passed\n if (myLocation != null) {\n\n //Project the Location object to a GridPoint object\n double latitude = myLocation.getLatitude();\n double longitude = myLocation.getLongitude();\n MapProjection mapProjection = MapProjection.getDefault();\n GridPoint gp = mapProjection.toGridPoint(latitude, longitude);\n //Update the real-time latitude and longitude\n mGPSon.setText(\"Latitude: \" + Math.round(gp.x) + \"\\nLongitude: \" + Math.round(gp.y));\n return myLocation;\n\n } else {\n\n //If GPS is off, notify the user to turn it on\n Toast.makeText(MainActivity.this,\"Turn on GPS.\",Toast.LENGTH_SHORT).show();\n return null;\n\n }\n\n }", "public void getLocationInfo() {\n startLocationService();\n }", "void initializesLocationManager()\n {\n\n try\n {\n //Getting the location manager\n locationManager = (LocationManager)fragment.getActivity().getSystemService(Context.LOCATION_SERVICE);\n\n //Checking if network provider is enabled\n if(locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER))\n {\n //Requesting location updates\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, MIN_TIME, MIN_DISTANCE, this);\n currentProvider = LocationManager.NETWORK_PROVIDER;\n isListening = true;\n }\n //Checking if gps is enabled\n else if(locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER))\n {\n //Requesting location updates\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, MIN_TIME, MIN_DISTANCE, this);\n currentProvider = LocationManager.GPS_PROVIDER;\n isListening = true;\n }\n else\n {\n isListening = false;\n //Asking the user to enable location provider\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(fragment.getActivity()); //The dialog builder\n dialogBuilder.setTitle(R.string.switch_on_location_dialog_title)\n .setMessage(R.string.switch_on_location_dialog_msg)\n .setPositiveButton(R.string.permission_rationale_accept_btn, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which)\n {\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS); //The intent for switching on the location sources\n fragment.getActivity().startActivity(intent); //Switching on the location services\n }\n });\n dialogBuilder.show();\n }\n\n userLocation = locationManager.getLastKnownLocation(currentProvider);\n }\n catch (SecurityException e)\n {\n e.printStackTrace();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n\n }", "private void getDeviceLocation() {\n try {\n if (mLocationPermissionGranted) {\n Task locationResult = fusedLocationClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful() && task.getResult() != null) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n Log.d(TAG,\"Current location is null. Using defaults.\");\n Log.e(TAG, task.getException().toString());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch(SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "public Location getCurrentLocation();", "@Override\n public void onPermissionGranted(PermissionGrantedResponse response) {\n\n final ProgressDialog progressDialog = new ProgressDialog(InfoActivity.this);\n progressDialog.setMessage(\"Getting your location...\");\n progressDialog.show();\n SmartLocation.with(InfoActivity.this).location().oneFix().start(new OnLocationUpdatedListener() {\n @Override\n public void onLocationUpdated(Location location) {\n latitudeStr = String.valueOf(location.getLatitude());\n longitudeStr = String.valueOf(location.getLongitude());\n progressDialog.dismiss();\n Toast.makeText(InfoActivity.this, location.getLatitude() + \" \" + location.getLongitude(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "private void detectUserLocation(){\n \ttimestamp = System.currentTimeMillis();\n \tmLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n\t\tCriteria criteria = new Criteria();\n\t\tcriteria.setAccuracy(Criteria.ACCURACY_FINE);\n\t\tcriteria.setCostAllowed(false);\n\t\tcriteria.setAltitudeRequired(false);\n\t\tcriteria.setPowerRequirement(Criteria.POWER_MEDIUM);\n\t\tString providerName = mLocationManager.getBestProvider(criteria, true);\n\t\tLog.d(TAG,\"Provider selected based on given criteria: \"+providerName);\n\t\tif(providerName != null)\n\t\t\tmLocationManager.requestLocationUpdates(providerName, 10000, 10, this);\n\t\telse\n\t\t\tLog.w(TAG,\"No provider\");\n }", "Location getLocation();", "Location getLocation();", "Location getLocation();", "Location getLocation();", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n mFusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n try {\n if (mLocationPermissionGranted){\n Task location = mFusedLocationProviderClient.getLastLocation();\n location.addOnCompleteListener(new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if (task.isSuccessful()){\n Location currentLocation = (Location) task.getResult();\n if (currentLocation != null){\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(currentLocation.getLatitude(),currentLocation.getLongitude()), DEFAULT_ZOOM));\n\n } else {\n /*\n AlertDialog alertDialog = new AlertDialog.Builder(MapActivity.this).create();s\n alertDialog.setMessage(\"Activa ubicación\");\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n */\n Toast.makeText(MapActivity.this, \"Tu ubicación es nula\", Toast.LENGTH_SHORT).show();\n }\n } else Toast.makeText(MapActivity.this, \"Error al obtener la ubicación\", Toast.LENGTH_LONG).show();\n }\n });\n }else Toast.makeText(MapActivity.this, \"Da permiso para acceder a la ubicación\", Toast.LENGTH_LONG).show();\n } catch (SecurityException e){\n Toast.makeText(MapActivity.this, \"Seleciona un punto en el mapa primero\", Toast.LENGTH_LONG).show();\n }\n }", "private void activateLocationManager() {\r\n locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\r\n String bestProvider = getBestLocationProvider();\r\n locationAvailable = false;\r\n\r\n // If the bestProvider is not accessible and/or enabled\r\n if (!locationManager.isProviderEnabled(bestProvider)) {\r\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setMessage(\"Your LOCATION provider seems to be disabled, do you want to enable it?\")\r\n .setCancelable(false)\r\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\r\n public void onClick(final DialogInterface dialog, final int id) {\r\n startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS));\r\n }\r\n })\r\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\r\n public void onClick(final DialogInterface dialog, final int id) {\r\n dialog.cancel();\r\n }\r\n });\r\n final AlertDialog alert = builder.create();\r\n alert.show();\r\n }\r\n\r\n if (locationManager != null && bestProvider != \"\") {\r\n locationManager.requestLocationUpdates(bestProvider, 3000, 1, locationListener);\r\n }\r\n }", "private void getDeviceLocation() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n if (mLocationPermissionGranted) {\n mLastKnownLocation = LocationServices.FusedLocationApi\n .getLastLocation(mGoogleApiClient);\n if (world.geoHome == null && mLastKnownLocation != null) {\n world.geoHome = new Vector2f(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude());\n }\n }\n\n // Set the map's camera position to the current location of the device.\n /*if (mCameraPosition != null) {\n mMap.moveCamera(CameraUpdateFactory.newCameraPosition(mCameraPosition));\n } else if (mLastKnownLocation != null) {\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), mMap.getCameraPosition().zoom));\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }*/\n }", "private void initLocation() {\n\t\tlocationManager = (LocationManager) this\n\t\t\t\t.getSystemService(Context.LOCATION_SERVICE);\n\t\t// Define a listener that responds to location updates\n\t\tnetworkLocListener = new MyLocationListener();\n\t\tgpsLocListener = new MyLocationListener();\n\n\t\tlocationProvider2 = LocationManager.NETWORK_PROVIDER;\n\t\tlocationProvider1 = LocationManager.GPS_PROVIDER;\n\n\t\tgps_enabled = false;\n\t\tnetwork_enabled = false;\n\t\t// exceptions will be thrown if provider is not permitted.\n\n\t\t// try{gps_enabled=mlocManager.isProviderEnabled(LocationManager.GPS_PROVIDER);}catch(Exception\n\t\t// ex){}\n\t\tgps_enabled = locationManager\n\t\t\t\t.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\t\t// try{network_enabled=mlocManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);}catch(Exception\n\t\t// ex){}\n\t\tnetwork_enabled = locationManager\n\t\t\t\t.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n\n\t\t// don't start listeners if no provider is enabled\n\t\tif (!gps_enabled && !network_enabled) {\n\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\"Either network or GPS not enabled, please check\",\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t/*\n\t\t\t * Intent gpsOptionsIntent = new\n\t\t\t * Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS\n\t\t\t * ); startActivity(gpsOptionsIntent);\n\t\t\t */\n\t\t}\n\n\t\t// Define a listener that responds to location updates\n\t\t// LocationListener locationListener = new LocationListener() {\n\t\t// @Override\n\t\t// public void onLocationChanged(Location location) {\n\t\t// // Called when a new location is found by the network location\n\t\t// // provider.\n\t\t// if (D)\n\t\t// Log.i(TAG, \"Updating current location\");\n\t\t// Toast.makeText(getApplicationContext(),\n\t\t// \"Updating current location\", Toast.LENGTH_LONG).show();\n\t\t// }\n\t\t//\n\t\t// public void onStatusChanged(String provider, int status,\n\t\t// Bundle extras) {\n\t\t// if (D)\n\t\t// Log.i(TAG, \"status changed\");\n\t\t// }\n\t\t//\n\t\t// public void onProviderEnabled(String provider) {\n\t\t// if (D)\n\t\t// Log.i(TAG, \"location enabled\");\n\t\t// }\n\t\t//\n\t\t// public void onProviderDisabled(String provider) {\n\t\t// if (D)\n\t\t// Log.i(TAG, \"Location disabled\");\n\t\t// }\n\t\t// };\n\n\t\tif (network_enabled) {\n\t\t\tlocationManager.requestLocationUpdates(\n\t\t\t\t\tLocationManager.NETWORK_PROVIDER, 1, 1, networkLocListener);\n\t\t}\n\t\tif (gps_enabled) {\n\t\t\tlocationManager.requestLocationUpdates(\n\t\t\t\t\tLocationManager.GPS_PROVIDER, 1, 1, gpsLocListener);\n\t\t}\n\t}", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n mLocationPermissionGranted = false;\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n mLocationPermissionGranted = false;\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "@Override\n public void onConnected(@Nullable Bundle bundle) {\n Log.i(TAG, \"On Connected\");\n // May throw a security exception if the user did not give us permission to access the location\n try {\n Location location = LocationServices.FusedLocationApi.getLastLocation(googleApiClient);\n if(location != null){\n Log.i(TAG, \"Location Lat: \" + location.getLatitude());\n Log.i(TAG, \"Location Lng: \" + location.getLongitude());\n }\n\n locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n\n // Is GPS enabled\n if(locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)){\n Log.i(TAG, \"GPS is enabled\");\n }\n // Is Network enabled\n if(locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)){\n Log.i(TAG, \"Network Provider is enabled\");\n }\n\n }\n catch(SecurityException e){\n Log.i(TAG, \"Security Exception was thrown\");\n e.printStackTrace();\n }\n\n // Start updating the location\n startLocationUpdates();\n }", "private LatLng getCurrentLocation() {\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return new LatLng(0, 0);\n }\n LocationManager locationManager = (LocationManager) getSystemService(this.LOCATION_SERVICE);\n Location current_location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (current_location == null) {\n return new LatLng(0, 0);\n }\n return new LatLng(current_location.getLatitude(), current_location.getLongitude());\n }", "private void getDeviceLocation(){\n\n Log.d(TAG, \"getDeviceLocation: getting device current location\");\n mFusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n try{\n if(mLocationPermissionGaranted){\n\n final Task location = mFusedLocationProviderClient.getLastLocation();\n location.addOnCompleteListener(task -> {\n if(task.isSuccessful()){\n Log.d(TAG, \"onComplete: found location!\");\n Location currentLocation = (Location) task.getResult();\n System.out.println(currentLocation);\n if (currentLocation !=null) {\n if (numDispositivo==1) {\n disp_Lat1 = Double.toString(currentLocation.getLatitude());\n disp_Long1 = Double.toString(currentLocation.getLongitude());\n }\n if (numDispositivo==2) {\n disp_Lat2 = Double.toString(currentLocation.getLatitude());\n disp_Long2 = Double.toString(currentLocation.getLongitude());\n }\n }\n System.out.println(disp_Lat1+\"-\"+disp_Long1);\n System.out.println(disp_Lat2+\"-\"+disp_Long2);\n Guardar();\n\n }else{\n Log.d(TAG, \"onComplete: current location is null\");\n Toast.makeText(FormularioCurso.this, \"unable to get current location\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }catch (SecurityException e){\n Log.e(TAG, \"getDeviceLocation: SecurityException: \" + e.getMessage() );\n }\n }", "@SuppressLint(\"MissingPermission\")\n @Override\n public void onConnected(@Nullable Bundle bundle) {\n LocationAvailability locationAvailability = LocationServices.FusedLocationApi.getLocationAvailability(googleApiClient);\n if (locationAvailability.isLocationAvailable()) {\n // Call Location Services\n// LocationRequest locationRequest = LocationRequest.create().apply\n// {\n// priority = LocationRequest.PRIORITY_HIGH_ACCURACY;\n// interval = 5000;\n// }\n LocationRequest locationRequest = new LocationRequest()\n .setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY)\n .setInterval(5000);\n// LocationServices.FusedLocationApi.requestLocationUpdates(googleApiClient, locationRequest, this);\n// LocationServices.FusedLocationApi.requestLocationUpdates(googleApiClient, locationRequest, this);\n LocationServices.FusedLocationApi.requestLocationUpdates(googleApiClient, locationRequest, this);\n } else {\n // Do something when Location Provider not available\n }\n }", "private void getLocation() {\n\n }", "private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(activity.getApplicationContext(), android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(activity,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocation() {\n LocationRequest mLocationRequestHighAccuracy = new LocationRequest();\n mLocationRequestHighAccuracy.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequestHighAccuracy.setInterval(UPDATE_INTERVAL);\n mLocationRequestHighAccuracy.setFastestInterval(FASTEST_INTERVAL);\n\n\n // new Google API SDK v11 uses getFusedLocationProviderClient(this)\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"getLocation: stopping the location service.\");\n stopSelf();\n return;\n }\n Log.d(TAG, \"getLocation: getting location information.\");\n mFusedLocationClient.requestLocationUpdates(mLocationRequestHighAccuracy, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n Log.d(TAG, \"onLocationResult: got location result.\");\n Location location = locationResult.getLastLocation();\n if (location != null) {\n GeoPoint geoPoint = new GeoPoint(location.getLatitude(), location.getLongitude());\n userInfoDoc.get().addOnCompleteListener(task -> {\n Boolean av = (Boolean) task.getResult().get(\"Availability\");\n saveUserLocation(geoPoint , av);\n });\n saveDistance(geoPoint);\n\n }\n }\n },\n Looper.myLooper()); // Looper.myLooper tells this to repeat forever until thread is destroyed\n }", "private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "@Override\n public void onLocationChanged(Location location) {\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "@Override\r\n public void onConnected(Bundle bundle) { // Implemented Methods\r\n if (Build.VERSION.SDK_INT < 23) { // Lower than Marshmallow build\r\n mLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\r\n } else { // User to approve the permission\r\n if (ActivityCompat.checkSelfPermission(LocationActivity.this, Manifest.permission.ACCESS_FINE_LOCATION)\r\n == PackageManager.PERMISSION_GRANTED)\r\n mLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\r\n else\r\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION},0);\r\n }\r\n if (mLocation != null) {\r\n latitude = String.valueOf(mLocation.getLatitude());\r\n longitude = String.valueOf(mLocation.getLongitude());\r\n //Log.i(\"value\",\"Latitude: \" + latitude + \" Longitude: \" + longitude);\r\n // Pass location coordinate for user login\r\n Intent intent = new Intent(LocationActivity.this, UserActivity.class);\r\n intent.putExtra(\"latitude\", latitude);\r\n intent.putExtra(\"longitude\", longitude);\r\n LocationActivity.this.startActivity(intent);\r\n finish();\r\n } else {\r\n // Request user to turn on Location\r\n displayLocationSettingsRequest(LocationActivity.this);\r\n //Log.i(\"value\",\"Location not Detected\");\r\n }\r\n\r\n }", "@Override\n public void onSuccess(Location location) {\n Log.e(\"onRequestPermissions\", \"Success\");\n if (location != null) {\n wayLatitude = location.getLatitude();\n wayLongitude = location.getLongitude();\n Log.e(\"getLocation\", String.valueOf(wayLongitude));\n }\n }", "private UserLocation getLocation() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION)) {\n Toast.makeText(this, \"The Location Permission is needed to show the weather \", Toast.LENGTH_SHORT).show();\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_LOCATION_CODE_PERMISSION);\n }\n }\n\n } else {\n Log.d(TAG, \"getLocation: Permission Granted\");\n mFusedLocationClient.getLastLocation().addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n msLocation = location;\n userLocation.setLat(location.getLatitude());\n userLocation.setLon(location.getLongitude());\n\n mLocationText.setText(getString(R.string.location_text\n , msLocation.getLatitude()\n , msLocation.getLongitude()\n , msLocation.getTime()));\n RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n params.addRule(RelativeLayout.CENTER_HORIZONTAL);\n mLocationText.setGravity(Gravity.CENTER_HORIZONTAL);\n mLocationText.setLayoutParams(params);\n mLocationText.setTextSize(24);\n\n } else {\n mLocationText.setText(R.string.no_location);\n }\n }\n });\n\n }\n return userLocation;\n }", "void getMyCurrentLocation() { \r\n\t\t \r\n\t\t \r\n\t \t // map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lat, lon), 16));\r\n\t\t \r\n\t LocationManager locManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\r\n\t try{\r\n\t \t\tgps_enabled=locManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\r\n\t }catch(Exception ex){\r\n\t \t\r\n\t }\r\n\t try{\r\n\t \tnetwork_enabled=locManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\r\n\t }catch(Exception ex){\r\n\t \t\r\n\t }\r\n\r\n\t if(gps_enabled){\r\n\t location=locManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\r\n\r\n\t } \r\n\r\n\t \r\n\t if(network_enabled && location==null) {\r\n\t location=locManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\r\n\r\n\t }\r\n\r\n\t\t if (location != null) { \r\n\t\t \t//accLoc=location.getAccuracy();\r\n\t\t lat = location.getLatitude();\r\n\t\t\t lon= location.getLongitude();\r\n\t\t } \r\n\t \r\n\t try\r\n\t {\r\n\t \t //Getting address based on coordinates.\r\n\t Geocoder geocoder; \r\n\t List<Address> addresses;\r\n\t geocoder = new Geocoder(this, Locale.getDefault());\r\n\t addresses = geocoder.getFromLocation(lat, lon, 1);\r\n\t \r\n\t Address = addresses.get(0).getAddressLine(0);\r\n\t City = addresses.get(0).getAddressLine(1);\r\n\t }\r\n\t catch (Exception e)\r\n\t {\r\n\t e.printStackTrace();\r\n\t }\r\n\r\n\t if (Address != null && !Address.isEmpty()) {\r\n\t\t \t try\r\n\t\t \t {\r\n\t\t \t \t //Getting address based on coordinates.\r\n\t\t \t Geocoder geocoder; \r\n\t\t \t List<Address> addresses;\r\n\t\t \t geocoder = new Geocoder(this, Locale.getDefault());\r\n\t\t \t addresses = geocoder.getFromLocation(lat, lon, 1);\r\n\t\t \t\r\n\t\t \t Address = addresses.get(0).getAddressLine(0);\r\n\t\t \t City = addresses.get(0).getAddressLine(1);\r\n\t\t \t }\r\n\t\t \t catch (Exception e)\r\n\t\t \t {\r\n\t\t \t e.printStackTrace();\r\n\t\t \t }\r\n\t\t \t //mp.position(new LatLng(location.getLatitude(), location.getLongitude()));\r\n\t\t \t //mp.title(\"You are here\");\t\t \t \r\n\t\t \t //map.addMarker(mp).showInfoWindow();\t\r\n\t\t \t //map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(1.3667, 103.8), 10));\r\n\t }\r\n\t else{ \r\n\t /* AlertDialog.Builder builder1 = new AlertDialog.Builder(ArticleLatestMoreDetailActivity.this);\r\n\t builder1.setTitle(\"Service Unavailable\");\r\n\t \t\t builder1.setMessage(\"Unable to get your location, check if your GPS and Network are turned on.\");\r\n\t \t\t builder1.setCancelable(true);\r\n\t builder1.setNegativeButton(\"OK\",new DialogInterface.OnClickListener() {\r\n\t public void onClick(DialogInterface dialog, int id) {\r\n\t \t dialog.cancel();\r\n\t }\r\n\t });\r\n\t AlertDialog alert11 = builder1.create();\r\n\t alert11.show();\r\n\t \r\n\t lat=1.3667;\r\n\t lon=103.8; */ \r\n\t // mp.position(new LatLng(1.3667, 103.8));\r\n\t\t // mp.draggable(true);\r\n\t\t \t // map.addMarker(mp).showInfoWindow();\r\n\t\t \t \r\n\t\t \t //map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(1.3667, 103.8), 10));\r\n\t }\r\n\t \r\n\t \r\n\t \r\n\t Bundle extras = this.getIntent().getExtras();\r\n\t\t double dbLat = extras.getDouble(\"dbLat\");\r\n\t\t double dbLon = extras.getDouble(\"dbLon\");\r\n\t\t artLoc.position(new LatLng(dbLat, dbLon));\r\n\t\t artLoc.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\r\n\t\t artLoc.title(\"Place of occurrence\");\r\n\t\t map.addMarker(artLoc).showInfoWindow();\r\n\t\t map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(dbLat, dbLon), 18));\r\n\t \r\n\t \r\n\t \r\n\t }", "@Override\n public void onConnected(Bundle bundle) {\n LocationRequest locationRequest = LocationRequest.create()\n .setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY)\n .setInterval(UPDATE_INTERVAL_MS)\n .setFastestInterval(FASTEST_INTERVAL_MS);\n\n\n // Send request for location updates\n LocationServices.FusedLocationApi\n .requestLocationUpdates(mGoogleApiClient, locationRequest, this)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(Status status) {\n if (status.getStatus().isSuccess()) {\n Log.d(\"YAY\", \"Successfully requested\");\n } else {\n Log.e(\"OH NOOOO\", status.getStatusMessage());\n }\n }\n });\n\n\n Location location = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n onLocationChanged(location);\n }", "private void setupLocationProvider() {\n final LocationManager locManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n mGPSLocationProvider = new AppLocationProvider(locManager, LocationManager.GPS_PROVIDER, 1000L);\n mGPSLocationProvider.start();\n\n mActiveLocationProvider = new AppLocationProvider(locManager, LocationManager.NETWORK_PROVIDER, 1000L);\n mActiveLocationProvider.start();\n }", "@Override\n public void onLocationChanged(Location location) {\n Toast.makeText(getApplicationContext(), location.toString() + \"\", Toast.LENGTH_SHORT).show();\n Log.i(TAG, \"onLocationChanged: \" + location.toString());\n }", "private void getDeviceLocation( ) {\n\n if (searchLocationMarker != null) {\n searchLocationMarker.remove();\n }\n\n mFusedLocationProviderClient =\n LocationServices.getFusedLocationProviderClient(this);\n //Task locationResult = mFusedLocationProviderClient.getLastLocation();\n try {\n if (mLocationPermissionGranted) {\n Task locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n System.out.println(\"Current location retrieved successfully!\");\n mLastKnownLocation = (Location) task.getResult(); // location?\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n searchLocationMarker = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()))\n .title(\"Current Location\")\n .icon(BitmapDescriptorFactory.fromBitmap(\n getBitmapFromVectorDrawable(\n MainActivity.this, R.drawable.ic_current_location_marker))));\n getNearbyStations(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude());\n\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n searchLocationMarker = mMap.addMarker(new MarkerOptions()\n .position(mDefaultLocation)\n .title(\"Current Location\")\n .icon(BitmapDescriptorFactory.fromBitmap(\n getBitmapFromVectorDrawable(\n MainActivity.this, R.drawable.ic_current_location_marker))));\n }\n }\n });\n }\n } catch(SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n\n }", "private void startLoggerService() {\n\n // ---use the LocationManager class to obtain GPS locations---\n lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n GPSLoggerService.setLocationManager(lm);\n\n locationListener = new MyLocationListener();\n\n lm.requestLocationUpdates(LocationManager.GPS_PROVIDER,\n minTimeMillis,\n minDistanceMeters,\n locationListener);\n lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,\n minTimeMillis,\n minDistanceMeters,\n locationListener);\n\n }", "public Location getCurrentLocation() {\n\n Location location = null;\n\n try {\n mLocationManager = (LocationManager) mContext\n .getSystemService(Context.LOCATION_SERVICE);\n\n // get GPS status\n mIsGpsEnabled = mLocationManager\n .isProviderEnabled(LocationManager.GPS_PROVIDER);\n\n // get network status\n mIsNetworkEnabled = mLocationManager\n .isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n\n if (mIsGpsEnabled || mIsNetworkEnabled) {\n this.mGetLocationPossible = true;\n\n if (mIsNetworkEnabled) {\n mLocationManager.requestLocationUpdates(\n LocationManager.NETWORK_PROVIDER,\n MIN_TIME_BW_UPDATES,\n MIN_DISTANCE_CHANGE_FOR_UPDATES, this);\n\n if (mLocationManager != null) {\n location = mLocationManager\n .getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n }\n }\n\n // if GPS Enabled get lat/long using GPS Services\n if (mIsGpsEnabled) {\n location = null;\n\n if (location == null) {\n mLocationManager.requestLocationUpdates(\n LocationManager.GPS_PROVIDER,\n MIN_TIME_BW_UPDATES,\n MIN_DISTANCE_CHANGE_FOR_UPDATES, this);\n\n if (mLocationManager != null) {\n location = mLocationManager\n .getLastKnownLocation(LocationManager.GPS_PROVIDER);\n }\n }\n }\n }\n\n } catch (Exception aExc) {\n aExc.printStackTrace();\n }\n\n return location;\n }", "@SuppressWarnings(\"unused\")\n Location getCurrentLocation();", "private void getDeviceLocation() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n if (mLocationPermissionGranted) {\n mLastKnownLocation = LocationServices.FusedLocationApi\n .getLastLocation(mGoogleApiClient);\n }\n\n // Set the map's camera position to the current location of the device.\n if (mCameraPosition != null) {\n mMap.moveCamera(CameraUpdateFactory.newCameraPosition(mCameraPosition));\n } else if (mLastKnownLocation != null) {\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }", "private void getCurrentLocation() {\n try {\n if (locationPermissionGranted) {\n Task<Location> locationResult = fusedLocationClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n lastKnownLocation = task.getResult();\n if (lastKnownLocation != null) {\n map.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(lastKnownLocation.getLatitude(),\n lastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n updateCameraBearing(map, location.getBearing());\n }\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage(), e);\n }\n }", "public Location getLocation(){\n return location;\n }", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "public boolean getLocationNow(AppCompatActivity activity) {\n boolean connected;\n ActivityCompat.requestPermissions(activity, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_LOCATION);\n mLocationManager = (LocationManager) activity.getSystemService(Context.LOCATION_SERVICE);\n\n if (!mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n buildAlertMessageNoGps(activity);\n connected = false;\n } else if (mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n getLocation(activity);\n connected = true; }\n else {connected = false;}\n return connected;\n }", "private void checkLocationConnection() {\n LocationManager locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);\n String message = \"\";\n\n // prepare output message to indicate whether location services are enabled\n try {\n message = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER) ?\n \"Location Services are enabled!\" :\n \"Location Services are not enabled!\";\n } catch(Exception e) { e.printStackTrace(); }\n\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onLocationChanged(Location location) {\n Location location1 = location;\n\n }", "@Override\n public void onSuccess(Location location) {\n Log.d(TAG, \"onSuccess: Location : \" + location);\n if (location != null) {\n Toast.makeText(MainActivity.this, \"Location : \" + location, Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onConnected(Bundle connectionHint) {\n //LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, REQUEST, this); // LocationListener\n }", "private void startGettingLocation() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n //should check if location is enabled\n\n initializeGoogleApiClient();\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSION_ACCESS_LOCATION);\n }\n }", "void getDeviceLocation() {\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful() && task.getResult()!=null) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n getProfile(mLastKnownLocation);\n } else {\n Log.d(\"Map\", \"Current location is null. Using defaults.\");\n Log.e(\"Map\", \"Exception: %s\", task.getException());\n googleMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n googleMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "public void getDeviceLocation() {\n try {\n if (locationPermissionGranted) {\n Task<Location> locationResult = fusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n lastKnownLocation = task.getResult();\n\n if (lastKnownLocation != null) {\n if (checkInLACounty(lastKnownLocation) != -1) {\n // geofenceHelper(getContext());\n lastKnownLocationInLA = true;\n sharedViewModel.setCountyData(\"Los Angeles County\");\n backLA.setVisibility(View.INVISIBLE);\n } else if (lastKnownLocationInLA) {\n lastKnownLocationInLA = false;\n sharedViewModel.setCountyData(\"Not in Los Angeles County\");\n\n backLA.setVisibility(View.VISIBLE);\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getContext());\n alertDialogBuilder.setTitle(\"Friendly Warning\");\n alertDialogBuilder.setMessage(\"Out of Los Angeles County \\n(Current Service Area)\");\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show(); // Show Dialog\n }\n } else {\n sharedViewModel.setCountyData(\"Los Angeles County\");\n }\n\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n map.moveCamera(CameraUpdateFactory\n .newLatLngZoom(defaultLocation, DEFAULT_ZOOM));\n map.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage(), e);\n }\n }", "private void getUserCurrentLocation()\n\t {\n\t NicerLocationManager locationMgr = new NicerLocationManager(this.getApplicationContext());\n\t if (locationMgr.isAnyLocationServicesAvailble())\n\t {\n\t Log.i(\"MAIN\",\"retrieving current location...\");\n\n\t // get current location\n\t locationMgr.getBestGuessLocation(1000,\n\t new NicerLocationListener() {\n\n\t @Override\n\t public void locationLoaded(final Location location)\n\t {\n\t // parse the current site forecast for users current\n\t // location in the background\n\t //LocationForecastSetup currentForecast = new LocationForecastSetup();\n\t //currentForecast.execute(location);\n\n\t // QLog.i(\"location loaded. finding nearest location...\");\n\t //\n\t // // find nearest weather location\n\t // Site nearestLocation =\n\t // Utils.findNearestSite(mApp, location);\n\t //\n\t // // insert the new current user location site\n\t // SitesProviderHelper.addSavedSite(mApp,\n\t // Long.valueOf(nearestLocation.getmSiteId()), true);\n\t //\n\t Log.i(\"MAIN\",\"location found \"+location.getLatitude()+\" \"+location.getLongitude());\n\t dS.lat=(float) location.getLatitude();\n\t dS.lon=(float) location.getLongitude();\n\t //TextView versionText = (TextView) findViewById(R.id.info_area_string);\n\t //versionText.setText(\"lat \" + location.getLatitude()+\" lon \"+location.getLongitude());\n\t \n\t //\n\t // /*\n\t // * add blank site if user has no saved sites. a blank site\n\t // * forecast is also added in the WeatherService class\n\t // * (runWeatherService method) to display correctly in the\n\t // * view pager.this is later removed when a user adds a\n\t // site\n\t // * and added again when user removes last site.\n\t // */\n\t // SitesProviderHelper.addBlankSavedSite(mApp);\n\t //\n\t // // re-order sites so current location is first\n\t // SitesProviderHelper.setSiteOrder(mApp,\n\t // nearestLocation.getmSiteId(), \"0\");\n\t // SitesProviderHelper.setSiteOrder(mApp,\n\t // Consts.BLANK_SITE_ID, \"1\");\n\n\t }\n\n\t @Override\n\t public void error()\n\t {\n\t // give option to change location settings or select a\n\t // location manually\n\t Log.e(\"MAIN\",\"Error finding best guess location\");\n dS.lat=0;\n dS.lon=0;\n if(once)\n {\n\t //promptSetLocationService(MainActivity.this);\n }\n once=false;\n\t }\n\n\t @Override\n\t public void onFinished()\n\t {\n\t //runUpdateService(false, false);\n\t \tLog.i(\"MAIN\",\"onFinished\");\n\t }\n\t });\n\n\t }\n\t else\n\t {\n\t \n\t \tdS.lat=0;\n dS.lon=0;\n\t \n\t }\n\n\t }", "private void getLocationPermission() {\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n //request location permission\n ActivityCompat.requestPermissions(this, new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION\n }, LOCATION_REQUEST_CODE);\n }\n fetchLastLocation();\n }", "@Override\n public void onLocationChanged(Location location) {\n currentLatitude = location.getLatitude();\n currentLongitude = location.getLongitude();\n\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(getActivity().getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }" ]
[ "0.772985", "0.7607805", "0.73884755", "0.73540795", "0.73416543", "0.73339194", "0.7330041", "0.7236678", "0.7234796", "0.71882147", "0.71812236", "0.7149196", "0.714831", "0.7140763", "0.71398926", "0.7138349", "0.7109812", "0.7100695", "0.7091835", "0.7069499", "0.70635325", "0.7058686", "0.7012784", "0.69873637", "0.69873637", "0.69792837", "0.6965007", "0.69596857", "0.6958971", "0.6949576", "0.69217294", "0.69210666", "0.6911738", "0.6906393", "0.6904229", "0.6896398", "0.68577385", "0.68535364", "0.6848676", "0.68333566", "0.68232876", "0.68184626", "0.68094116", "0.679321", "0.6785959", "0.6777895", "0.6770188", "0.67578435", "0.6755021", "0.6744945", "0.6742268", "0.67394525", "0.6738884", "0.6738884", "0.6738884", "0.6738884", "0.673706", "0.67357856", "0.6731482", "0.6713258", "0.6702987", "0.6702987", "0.6697946", "0.6691748", "0.66836935", "0.6678568", "0.6677787", "0.66682893", "0.6666548", "0.665979", "0.665979", "0.6656515", "0.6655294", "0.6655294", "0.66521907", "0.66487384", "0.6647189", "0.6643759", "0.66382843", "0.66379946", "0.6636612", "0.6636448", "0.6635896", "0.66319567", "0.66305715", "0.66267496", "0.6625959", "0.6614588", "0.6613305", "0.66120833", "0.6610315", "0.6599071", "0.6598234", "0.6597345", "0.65970707", "0.6592247", "0.6589484", "0.6586282", "0.6580061", "0.65793645", "0.65791875" ]
0.0
-1
Get connection and return the page as a string.
public String connectAndGetPage(String url) throws IOException { URL page = new URL(url); HttpURLConnection conn = (HttpURLConnection) page.openConnection(); conn.connect(); InputStreamReader in = new InputStreamReader((InputStream) conn.getContent()); BufferedReader buff = new BufferedReader(in); String line; StringBuilder sb = new StringBuilder(""); while ((line = buff.readLine()) != null) { sb.append(line).append("\n"); } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getCurrentPage() throws ConfigurationException, IOException {\r\n return GetRunTimeData(\"currentPage\");\r\n }", "private String connectionToString(URLConnection con) throws IOException {\n\t\tStringWriter writer = new StringWriter();\n\t\tIOUtils.copy(con.getInputStream(), writer, \"UTF-8\");\n\t\treturn writer.toString();\n\t}", "public String getConnection() {\n Object ref = connection_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getConnection() {\n Object ref = connection_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getConnection() {\n Object ref = connection_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getConnection() {\n Object ref = connection_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getConnection()\n {\n return this.connection;\n }", "@Override\n public String getConnection() {\n Object ref = connection_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n }\n }", "@Override\n public String getConnection() {\n Object ref = connection_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n }\n }", "@Override\n public String getConnection() {\n Object ref = connection_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n }\n }", "@Override\n public String getConnection() {\n Object ref = connection_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n }\n }", "public static String getPage(String urlStr) throws IOException {\n\t\tURL url = new URL(urlStr);\n\t\tHttpURLConnection httpUrlConnection = (HttpURLConnection)url.openConnection();\n\t\thttpUrlConnection.connect();\n\t\tString page = getPageFromUrlConnection(httpUrlConnection);\n\t\thttpUrlConnection.disconnect();\n\t\treturn page;\n\t}", "public static String getContentString(HttpURLConnection con) throws IOException{\n\n //Read the http response from the url\n BufferedReader in = new BufferedReader( new InputStreamReader(con.getInputStream()));\n String response = \"\", inputLine;\n while ((inputLine = in.readLine()) != null) {\n response += inputLine;\n }\n in.close();\n\n return response;\n }", "private static String getResponseAsString(HttpURLConnection connection) throws Exception {\n InputStream in = connection.getInputStream();\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n int b;\n while ((b = in.read()) != -1) {\n out.write(b);\n }\n return out.toString();\n }", "public final String getPageContent() {\n\t\treturn pageContent;\n\t}", "private String responseString(HttpURLConnection con) throws IOException, NullPointerException {\r\n\t\t\t\r\n\tStringBuilder content = null;\r\n\ttry (BufferedReader in = new BufferedReader(\r\n new InputStreamReader(con.getInputStream()))) {\r\n\r\n\t\tString line;\r\n content = new StringBuilder();\r\n\r\n while ((line = in.readLine()) != null) {\r\n content.append(line);\r\n }\r\n }\r\n\treturn (content != null ? content.toString() : null);\r\n\t\r\n\t}", "String getConnection();", "String getConnection();", "String getConnection();", "String getConnection();", "public String getConnectionURL (CConnection connection);", "public String getConnectionURL (CConnection connection);", "public lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage() {\n return page_;\n }", "public String get() {\n return getImpl(this.url);\n }", "public lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage() {\n if (pageBuilder_ == null) {\n return page_;\n } else {\n return pageBuilder_.getMessage();\n }\n }", "public static String getPage(String surl){\n\r\n\t\t\r\n\t\tString sPage=\"\";\r\n\t\t\r\n\t\tURLConnection connection = null;\t\t\r\n\t\t// Zerlegt einen String und fügt jeweils ein Zeilenende ein\r\n\t\ttry {\t\t\t\r\n\t\t\tURL urlpage=new URL(surl);\t\t\t\r\n\t\t\tconnection = urlpage.openConnection();\r\n\t\t\t//connection = urlpage.openConnection(proxy);\r\n\t\t\tconnection.setDoOutput(true);\t\t\t\r\n BufferedReader rd = new BufferedReader(new InputStreamReader(connection.getInputStream()));\r\n\t\t\t \r\n\t\t\t String line = null;\r\n\t\t\t \r\n\t\t\t while ((line = rd.readLine()) != null) {\r\n\t\t\t\t sPage+=line+System.getProperty(\"line.separator\");\r\n\t\t\t\t} \t\t\r\n\t\t\t \r\n\t\t} catch (ConnectException e) {\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnknownHostException e) {\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\t\t\r\n\t\treturn sPage;\r\n\t}", "public PageTransporter() {\n System.out.println(ReadProperties.getInstance().getUrl());\n driver.get(ReadProperties.getInstance().getUrl());\n }", "lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage();", "public String getPageText();", "public String getCurrentPageSource() {\n return driver.getPageSource();\n }", "private String getPageContent(SlingHttpServletRequest request, String pagePath) {\n\n\t\tfinal int DEFAULT_PORT = 80;\n\t\tfinal String JCR_CONTENT_LOCATION = \"/_jcr_content/content.html\";\n\t\tfinal int TIMEOUT = 5000;\n\t\tfinal String HTTP_404_ERROR_RESPONSE = \"404\";\n\n\t\tResourceResolver resourceResolver = request.getResource().getResourceResolver();\n\t\tResource resource = resourceResolver.getResource(pagePath);\n\n\t\tif (resource != null) {\n\n\t\t\tString content = null;\n\n\t\t\t// Create a HttpClient object\n\t\t\t\n\t\t\tHttpClient client = new HttpClient();\n\t\t\t\n\t\t\t// Establish a connection within 5 seconds\n\t\t\tclient.getHttpConnectionManager().getParams().setConnectionTimeout(TIMEOUT);\n\n\t\t\tString url;\n\t\t\tif (request.getRemotePort() == DEFAULT_PORT) {\n\t\t\t\turl = \"http://\" + request.getServerName() + pagePath + JCR_CONTENT_LOCATION;\n\t\t\t} else {\n\t\t\t\turl = \"http://\" + request.getServerName() + \":\" + request.getServerPort() + pagePath\n\t\t\t\t + JCR_CONTENT_LOCATION;\n\t\t\t}\n\n\t\t\t// If user is working on author instance, there is gonna be a 404 code because of the credentials\n\t\t\tHttpMethod method = new GetMethod(url);\n\n\t\t\ttry {\n\t\t\t\tclient.executeMethod(method);\n\t\t\t\tif (method.getStatusCode() == HttpStatus.SC_OK\n\t\t\t\t && !StringUtils.containsIgnoreCase(method.getResponseBodyAsString(), \"http 404\")) {\n\t\t\t\t\tcontent = method.getResponseBodyAsString();\n\t\t\t\t\tcontent = content + \"<!-- Path of the content : \" + pagePath + \" -->\";\n\t\t\t\t} else {\n\t\t\t\t\tlog.info(\"Error 404 - Resource is not available\");\n\t\t\t\t\tcontent = HTTP_404_ERROR_RESPONSE;\n\t\t\t\t}\n\t\t\t} catch (HttpException e) {\n\t\t\t\tlog.error(e.getMessage(), e);\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(e.getMessage(), e);\n\t\t\t}\n\n\t\t\t// Clean up the connection resources\n\t\t\tmethod.releaseConnection();\n\n\t\t\t// Return the content\n\t\t\treturn content;\n\t\t} else {\n\t\t\tlog.info(\"Error 404 - Resource is not available\");\n\t\t\treturn HTTP_404_ERROR_RESPONSE;\n\t\t}\n\t}", "private Connection getConn(){\n \n return new util.ConnectionPar().getConn();\n }", "public static String getPageUrl() {\n\t\tLOG.info(\"Reading current page URL.\");\n\t\treturn Constants.driver.getCurrentUrl();\n\n\t}", "public String getWebPage() {\n\t\treturn webPage;\n\t}", "@Override\n public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Connection getConn() {return conn;}", "public String getCurrentPage(){\n\t\treturn sCurrentPage;\n\t}", "public String extractHtml(HttpURLConnection connection) {\n if (connection == null) return \"\";\n Scanner scanner = null;\n try {\n scanner = new Scanner(connection.getInputStream());\n } catch (IOException e) {\n return \"\";\n }\n scanner.useDelimiter(\"\\\\Z\");\n try {\n return scanner.next();\n } catch (Exception e) {\n return \"\";\n }\n }", "private static String getResponseString(URLConnection conn) throws IOException {\n\t\tReader in = new BufferedReader(new InputStreamReader(conn.getInputStream(), StandardCharsets.UTF_8));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int c; (c = in.read()) >= 0; )\n\t\t\tsb.append((char) c);\n\t\treturn sb.toString();\n\t}", "public String getConnection();", "public static String getSession(String commond,Connection connection ) throws IOException {\n Session session = null;\n InputStream inputStream = null;\n BufferedReader reader = null;\n StringBuffer buffer = new StringBuffer();\n try {\n// connection = getConnection(HOST_IP,USER_NAME,USER_PASSWORD);\n session = connection.openSession();\n session.execCommand(commond);\n inputStream = new StreamGobbler(session.getStdout());\n reader = new BufferedReader(new InputStreamReader(inputStream));\n String resultLine ;\n while ((resultLine =reader.readLine())!=null){\n buffer.append(resultLine).append(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n if(connection != null){\n connection.close();\n } if(session != null){\n session.close();\n } if(inputStream != null){\n inputStream.close();\n } if(reader != null){\n reader.close();\n }\n }finally {\n if(connection != null){\n connection.close();\n } if(session != null){\n session.close();\n } if(inputStream != null){\n inputStream.close();\n } if(reader != null){\n reader.close();\n }\n }\n return buffer.toString();\n }", "public io.dstore.values.StringValue getPage() {\n if (pageBuilder_ == null) {\n return page_ == null ? io.dstore.values.StringValue.getDefaultInstance() : page_;\n } else {\n return pageBuilder_.getMessage();\n }\n }", "private String readToString(URLConnection connection) throws IOException {\n\tBufferedReader reader = null;\n\ttry {\n\t\tInputStream inStream = connection.getInputStream();\n\t\tif (connection instanceof java.net.HttpURLConnection) {\n\t\t\tHttpURLConnection httpConnection = (HttpURLConnection) connection;\n\t\t\tif (httpConnection.getResponseCode() == 403) {\n\t\t\t\tthrow new IOException(\"Service does not accept the authentication credentials: \"\n\t\t\t\t\t+ httpConnection.getResponseCode() + httpConnection.getResponseMessage());\n\t\t\t} else if (httpConnection.getResponseCode() >= 400) {\n\t\t\t\tthrow new IOException(\"Service responded with a failure code: \"\n\t\t\t\t\t+ httpConnection.getResponseCode() + httpConnection.getResponseMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new IOException(\"Unexpected URI type encountered\");\n\t\t}\n\t\treader = new BufferedReader(new InputStreamReader(inStream));\n\t\tString str;\n\t\tStringBuilder buffer = new StringBuilder();\n\t\twhile ((str = reader.readLine()) != null) {\n\t\t\tbuffer.append(str);\n\t\t}\n\t\treturn buffer.toString();\n\t } finally {\n\t \tif (reader != null) {\n\t \t\treader.close();\n\t \t}\n\t}\n }", "public Page getPage() {return page;}", "public IBrowserConnection getSelectedConnection()\n {\n return selectedConnection;\n }", "public Connection ObtenirConnexion(){return cn;}", "public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "Page getPage();", "public String getContent() {\n String s = page;\n\n // Bliki doesn't seem to properly handle inter-language links, so remove manually.\n s = LANG_LINKS.matcher(s).replaceAll(\" \");\n\n wikiModel.setUp();\n s = getTitle() + \"\\n\" + wikiModel.render(textConverter, s);\n wikiModel.tearDown();\n\n // The way the some entities are encoded, we have to unescape twice.\n s = StringEscapeUtils.unescapeHtml(StringEscapeUtils.unescapeHtml(s));\n\n s = REF.matcher(s).replaceAll(\" \");\n s = HTML_COMMENT.matcher(s).replaceAll(\" \");\n\n // Sometimes, URL bumps up against comments e.g., <!-- http://foo.com/-->\n // Therefore, we want to remove the comment first; otherwise the URL pattern might eat up\n // the comment terminator.\n s = URL.matcher(s).replaceAll(\" \");\n s = DOUBLE_CURLY.matcher(s).replaceAll(\" \");\n s = HTML_TAG.matcher(s).replaceAll(\" \");\n\n return s;\n }", "public Connection getConn()\n\t{\n\t\treturn this.conn;\n\t}", "public Connection getConn()\r\n\t{\r\n\t\treturn this.conn;\r\n\t}", "public String getPageUrl() {\n return pageUrl;\n }", "public URLConnection getConnection(){\n return this.mConnection;\n }", "public String getPageUrl() {\n\t\treturn pageUrl;\n\t}", "protected Connection getConnection () {\n \t\treturn connection;\n \t}", "public Connection getConn() {\r\n return conn;\r\n }", "private String getContentStringFromURL(URL url) {\n\n HttpURLConnection con = null;\n //Versuch der Verbindung\n try {\n con = (HttpURLConnection) url.openConnection();\n\n\n // Optional\n con.setRequestMethod(\"GET\");\n\n // HTTP-Status-Code\n int responseCode = con.getResponseCode();\n //System.out.println(\"\\nSending 'GET' request to URL : \" + url);\n //System.out.println(\"Response Code : \" + responseCode);\n\n BufferedReader in = new BufferedReader(\n new InputStreamReader(con.getInputStream()));\n String inputLine;\n StringBuffer response = new StringBuffer();\n\n //Einlesen der Antwort\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine);\n }\n in.close();\n\n //Antwort wird in einen String gewandelt und zurück geliefert\n return response.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "private String getUrlContents(String theUrl) {\n StringBuilder content = new StringBuilder();\n try {\n URL url = new URL(theUrl);\n URLConnection urlConnection = url.openConnection();\n //reads the response\n BufferedReader br = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()), 8);\n String line;\n while ((line = br.readLine()) != null) {\n content.append(line + \"\\n\");\n }\n br.close();\n }catch (Exception e) {\n //error occured, usually network related\n e.printStackTrace();\n }\n return content.toString();\n }", "String pageDetails();", "public URLConnection getConnection() {\n return this.urlConnection;\n }", "public Connection getConnection()\n\t{\n\t\treturn wConn;\n\t}", "public Page getPage() {\n return page;\n }", "public Page getPage() {\n return page;\n }", "public String getPageSource() {\n \t\treturn getWebDriver().getPageSource();\n \t}", "public Page getPage() {\n\t\treturn page;\n\t}", "public String getConnectionURL (CConnection connection)\n\t{\n\t\t// jdbc:postgresql://hostname:portnumber/databasename?encoding=UNICODE\n\t\tStringBuffer sb = new StringBuffer(\"jdbc:postgresql:\");\n\t\tsb.append(\"//\").append(connection.getDbHost())\n\t\t\t.append(\":\").append(connection.getDbPort())\n\t\t\t.append(\"/\").append(connection.getDbName())\n\t\t\t.append(\"?encoding=UNICODE\");\n\t\tm_connection = sb.toString();\n\t\treturn m_connection;\n\t}", "public Connection getConnection() {\n \t\treturn this.connect;\n \t}", "public static String getResponseContent(URL url) throws IOException {\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n String encoding = conn.getContentEncoding();\n if (encoding == null) {\n encoding = \"UTF-8\";\n }\n int responseCode = conn.getResponseCode();\n InputStream stream;\n if (responseCode != HttpURLConnection.HTTP_OK) {\n stream = conn.getErrorStream();\n } else {\n stream = conn.getInputStream();\n }\n try {\n return IOUtils.toString(stream, encoding);\n }\n finally {\n stream.close();\n }\n }", "@UML(identifier=\"page\", obligation=OPTIONAL, specification=ISO_19115)\n String getPage();", "public String get(@PAGE int page) {\n if (!mPageSummary.containsKey(page)) {\n return \"\";\n }\n return mPageSummary.get(page).toString();\n }", "public static Connection getConn() {\n return conn;\n }", "public String getPageSource() {\n return driver.get().getPageSource();\n }", "public String getResponse() throws BooruEngineConnectionException {\n try {\n if (this.mResponse == null){\n StringBuilder response = new StringBuilder();\n BufferedReader reader = new BufferedReader(new InputStreamReader(mConnection.getInputStream()));\n String input;\n while ((input = reader.readLine()) != null) response.append(input);\n reader.close();\n this.mResponse = response.toString();\n }\n return this.mResponse;\n } catch (IOException e){\n mErrStream = mConnection.getErrorStream();\n throw new BooruEngineConnectionException(e);\n\n }\n }", "public String getCurrentURL () {\n synchronized (currentLock) {\n if (currentURL != null) {\n return currentURL;\n }\n }\n DataObject[] nodes = (DataObject[])resDataObject.allInstances().toArray(new DataObject[0]);\n // Lookup, as a side-effect, can call lookup listeners and do whatever it wants. Do not call under a lock.\n synchronized (currentLock) {\n if (currentURL == null) {\n currentURL = \"\";\n if (nodes.length != 1)\n return currentURL;\n \n DataObject dO = nodes[0];\n if (dO instanceof DataShadow)\n dO = ((DataShadow) dO).getOriginal ();\n \n try {\n currentURL = dO.getPrimaryFile ().getURL ().toString ();\n } catch (FileStateInvalidException ex) {\n //noop\n }\n }\n \n return currentURL;\n }\n }", "public io.dstore.values.StringValue getPage() {\n return page_ == null ? io.dstore.values.StringValue.getDefaultInstance() : page_;\n }", "private InputStream getHttpConnection(String urlString) throws IOException\n \t {\n \t InputStream stream = null;\n \t URL url = new URL(urlString);\n \n \t URLConnection connection = url.openConnection();\n \n \t try \n \t {\n \t HttpURLConnection httpConnection = (HttpURLConnection) connection;\n \t httpConnection.setRequestMethod(\"GET\");\n \t httpConnection.connect();\n \t stream = httpConnection.getInputStream();\n \n \t if (httpConnection.getResponseCode() == HttpURLConnection.HTTP_OK)\n \t {\n \t stream = httpConnection.getInputStream();\n \t }\n \t } \n \t catch (Exception ex)\n \t {\n \t ex.printStackTrace();\n \t }\n \t return stream;\n \t }", "public Connection getConnection() {\n\t\treturn this.connection;\n\t}", "@GET \n @Produces(\"text/plain\")\n public String getIt() {\n \tGraphDAO dao = GraphDAO.getInstance();\n \tdao.init(\"graphdbs/ComboBreaker\");\n \tString retVal = dao.outputGraphNodes();\n \treturn retVal;\n }", "public String getWebsite()\n\t{\n\t\treturn getWebsite( getSession().getSessionContext() );\n\t}", "private String getConnectionLine(boolean bPersistentConnection) {\n String sConnection = \"Connection: \";\n String sConnectionStatus = (bPersistentConnection ? \"keep-alive\" : \"close\");\n return sConnection + sConnectionStatus;\n }", "PageAgent getPage();", "int getCurrentPage();", "@Override\r\n\tpublic String getPage() {\n\t\ttry {\r\n\t\t\tWriter wr = new OutputStreamWriter(\r\n\t\t\t\t\tnew FileOutputStream(OutputPath), \"utf-8\");\r\n\t\t\tList<String> colleges = IOUtil.read2List(\r\n\t\t\t\t\t\"property/speciality.properties\", \"GBK\");\r\n\t\t\tfor (String college : colleges) {\r\n\t\t\t\tfor (int i = 1; i < 10000; i++) {\r\n\t\t\t\t\tString html = getSeach(college, null, null, 1, i);\r\n\t\t\t\t\tif (html.equals(\"\")) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tDocument page = Jsoup.parse(html);\r\n\t\t\t\t\tElements authors = page.getElementsByAttributeValue(\r\n\t\t\t\t\t\t\t\"class\", \"listBox wauto clearfix\");\r\n\t\t\t\t\tfor (Element author : authors) {\r\n\t\t\t\t\t\tElement e = author.getElementsByAttributeValue(\"class\",\r\n\t\t\t\t\t\t\t\t\"xuezheName\").get(0);\r\n\t\t\t\t\t\tElement a = e.getElementsByAttributeValue(\"target\",\r\n\t\t\t\t\t\t\t\t\"_blank\").first();\r\n\t\t\t\t\t\tString name = a.text();\r\n\t\t\t\t\t\tString school = author.getElementsByAttributeValue(\r\n\t\t\t\t\t\t\t\t\"class\", \"f14\").text();\r\n\t\t\t\t\t\tString id = a.attr(\"href\");\r\n\t\t\t\t\t\tString speciallity = author\r\n\t\t\t\t\t\t\t\t.getElementsByAttributeValue(\"class\",\r\n\t\t\t\t\t\t\t\t\t\t\"xuezheDW\").first().text();\r\n\t\t\t\t\t\twr.write(school + \"\\t\" + id + \"\\t\" + speciallity\r\n\t\t\t\t\t\t\t\t+ \"\\r\\n\");\r\n\t\t\t\t\t\tSystem.out.println(i + \":\" + school);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\twr.close();\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\treturn null;\r\n\t}", "private String getText(URL url){\n\tString parsedHtml=null;\n\ttry{\n\t\tHttpURLConnection urlConn = (HttpURLConnection) url.openConnection();\n\t\tString line = null;\n\t\tStringBuilder tmp = new StringBuilder();\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));\n\t\twhile ((line = in.readLine()) != null) {\n\t\t tmp.append(line);\n\t\t}\n\t\t \n\t\tDocument doc = Jsoup.parse(tmp.toString());\n\t\tparsedHtml = doc.title() + doc.body().text();\n\t\t\n\t}\n\tcatch(IOException e){\n\t\tSystem.out.println(\"Page not reached for: \"+url );\n\t}\n\tfinally{\n\t\treturn parsedHtml;\n\t}\n\t\n}", "public static String getWebPageSource(String webPage) throws Exception {\n URLConnection bc = new URL(webPage).openConnection();\r\n bc.setRequestProperty(\"user-Agent\", \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11\");\r\n BufferedReader in = new BufferedReader(new InputStreamReader(bc.getInputStream()));\r\n\r\n String inputLine = \"\";\r\n String text = \"\";\r\n while ((inputLine = in.readLine()) != null) {\r\n text += inputLine;\r\n }\r\n in.close();\r\n\r\n return text;\r\n }", "Connection getConnection() {\n\t\treturn connection;\n\t}", "public String getUrlSourcePage(String url) throws IOException {\n\t\t\t URL URL = new URL(url);\n\t\t\t URLConnection uc = URL.openConnection();\n\t\t\t \n\t\t\t // allow GZip encodings \n\t\t\t // the encoding type\n\t\t\t BufferedReader in = null;\n\t\t\t if (uc.getHeaderField(\"Content-Encoding\") != null && uc.getHeaderField(\"Content-Encoding\").equals(\"gzip\")) {\n\t\t\t in = new BufferedReader(new InputStreamReader(new GZIPInputStream(uc.getInputStream())));\n\t\t\t } else { in = new BufferedReader(new InputStreamReader(uc.getInputStream())); }\n\t\t\t \n\t\t\t String inputLine;\n\t\t\t StringBuilder sb = new StringBuilder();\n\t\t\t while ((inputLine = in.readLine()) != null)\n\t\t\t sb.append(inputLine);\n\t\t\t in.close();\n\t\t\t \n\t\t\t return sb.toString();\n\t\t\t }", "public Connection getConnection(){\r\n\t\treturn connection;\r\n\t}", "String getStartpage();", "String getPageFullName();", "private String sendGetRequest() throws IOException {\n\t\tString inline = \"\";\n\t\tURL url = new URL(COUNTRYAPI);\n\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\tconn.setRequestMethod(\"GET\");\n\t\tconn.connect();\n\t\tint responsecode = conn.getResponseCode();\n\t\tif (responsecode != 200) {\n\t\t\tthrow new RuntimeException(\"HttpResponseCode: \" + responsecode);\n\t\t} else {\n\t\t\tScanner sc = new Scanner(url.openStream());\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tinline += sc.nextLine();\n\t\t\t}\n\t\t\tsc.close();\n\t\t}\n\t\treturn inline.toString();\n\t}", "public static String GET(String urlString) {\n\t\ttry {\n\t\t\tURL url = new URL(urlString);\n\t\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\t\tconn.connect();\n\t\t\tInputStream inputStream = conn.getInputStream();\n\t\t\treturn convertInputStreamToString(inputStream);\n\t\t} catch (MalformedURLException e) {\n\t\t\t// e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// e.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public static Connection getConnection() {\n \t\treturn connPool.getConnection();\n \t}", "public io.dstore.values.StringValueOrBuilder getPageOrBuilder() {\n return getPage();\n }" ]
[ "0.61179185", "0.600058", "0.59582305", "0.59582305", "0.59582305", "0.59582305", "0.5938471", "0.5890702", "0.5890702", "0.5890702", "0.5890702", "0.5813391", "0.5771885", "0.5762539", "0.573082", "0.569613", "0.569216", "0.569216", "0.569216", "0.569216", "0.56801015", "0.56801015", "0.56785953", "0.5643717", "0.56209964", "0.55939496", "0.5580961", "0.55700356", "0.55598575", "0.5530088", "0.55122787", "0.54995775", "0.5497712", "0.5494589", "0.5494088", "0.5494088", "0.5494088", "0.5494088", "0.5487146", "0.54854614", "0.54686904", "0.5465556", "0.5440221", "0.54246444", "0.54238915", "0.5421723", "0.5418253", "0.54160863", "0.541069", "0.5407989", "0.5407989", "0.5407989", "0.5407989", "0.53758085", "0.5375536", "0.537445", "0.5361909", "0.5340109", "0.5334359", "0.5284823", "0.5284357", "0.5280822", "0.5273099", "0.52531064", "0.5251971", "0.52509356", "0.524238", "0.5237016", "0.5237016", "0.52312195", "0.5221405", "0.5198907", "0.51926124", "0.5184064", "0.51791835", "0.5177889", "0.517473", "0.5164854", "0.5160796", "0.51591706", "0.5147671", "0.51229405", "0.5119785", "0.510576", "0.5102543", "0.5102154", "0.51009333", "0.5078234", "0.50764406", "0.50678426", "0.5065904", "0.5051162", "0.5050652", "0.50418603", "0.50362825", "0.50340974", "0.5031512", "0.5028822", "0.5026808", "0.5023743" ]
0.6878513
0
Get all tags on page, excluding closing tags and comments.
public ArrayList<String> getTags(String url) { // Use hashset to remove duplicates Collection<String> tags = new HashSet<>(); try { String page = connectAndGetPage(url); Pattern p = Pattern.compile("<[^>]*>"); Matcher m = p.matcher(page); while (m.find()) { // Get match and add to hashset if not a comment or closing tag. String match = m.group(0); String characterAfterStart = String.valueOf(match.charAt(1)); if (!characterAfterStart.equals("/") && !characterAfterStart.equals("!")) { tags.add(match.trim()); } } } catch (IOException e) { System.out.println("IOException"); } return sortTags(tags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<Tag> getTags() {\r\n\r\n\t\treturn getTags(null);\r\n\r\n\t}", "public List<Tag> getAllTags() {\n\t\treturn DAO.getInstance().getTags().getTagList();\n\t}", "@Override\n\tpublic List<Tag> getAllTags() throws Exception {\n\t\treturn null;\n\t}", "public List<Tag> getTags() {\n return new ArrayList<>(tags);\n }", "public List<BzrTagBranch> listTags() {\n return Collections.emptyList();\n }", "public static List<Tag> getAllTags() {\n\t\treturn Arrays.asList(\n\t\t\t\tnew Tag(\"home\", Color.parseColor(\"#3F91EB\")),\n\t\t\t\tnew Tag(\"work\", Color.parseColor(\"#CF4647\")),\n\t\t\t\tnew Tag(\"other\", Color.parseColor(\"#85D95B\"))\n\t\t);\n\t}", "public ITag[] getTags() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}", "public Set<String> getCurrentTags() {\n\t\tSet<String> tags = new HashSet<String>();\n\t\t\n\t\tfor (int i=0;i<this.sentenceTable.size();i++) {\n\t\t\tSentenceStructure sentence = this.sentenceTable.get(i);\n\t\t\tString tag = sentence.getTag();\n\t\t\tif ((!StringUtils.equals(tag, \"ignore\"))){\n\t\t\t\ttags.add(tag);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn tags;\n\t}", "public TagInfo[] getTags() {\n/* 164 */ return this.tags;\n/* */ }", "public List<Tag> findAll() {\n\t\treturn tagRepository.findAll();\n\t}", "public List<ContentItem> getTaggedPages() {\r\n\t\tList<Tag> tagResources = taggingService.getAllTags();\r\n\t\tList<ContentItem> pagesX = new ArrayList<ContentItem>();\r\n\t\tList<ContentItem> pagesFinal = new ArrayList<ContentItem>();\r\n\t\tSet<String> pagesTitle = new HashSet<String>();\r\n\t\t\tfor (Tag tag : tagResources){\r\n\t\t\t\tpagesX = taggingService.listTaggedItems(tag.getTaggingResource());\r\n\t\t\t\tfor (ContentItem page: pagesX){\r\n\t\t\t\t\tif (page!=null && !pagesTitle.contains(page.getTitle()) ) {\r\n\t\t\t\t\t\tpagesTitle.add(page.getTitle());\r\n\t\t\t\t\t\tpagesFinal.add(page);\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn pagesFinal;\r\n\t}", "public String [] getTags() {\n\t\treturn null;\n\t}", "public List<ITag> getTags ();", "public List<Tag> getTags() {\n return fullPhoto.getTags();\n }", "UniqueTagList getTags();", "public java.util.List<Tag> getTags() {\n return tags;\n }", "public java.util.List<Tag> getTags() {\n return tags;\n }", "public java.util.List<Tag> getTags() {\n if (tags == null) {\n tags = new com.amazonaws.internal.SdkInternalList<Tag>();\n }\n return tags;\n }", "public java.util.List<Tag> getTags() {\n if (tags == null) {\n tags = new com.amazonaws.internal.SdkInternalList<Tag>();\n }\n return tags;\n }", "public java.util.List<Tag> getTags() {\n if (tags == null) {\n tags = new com.amazonaws.internal.SdkInternalList<Tag>();\n }\n return tags;\n }", "public java.util.List<Tag> getTags() {\n if (tags == null) {\n tags = new com.amazonaws.internal.SdkInternalList<Tag>();\n }\n return tags;\n }", "public java.util.List<Tag> getTags() {\n if (tags == null) {\n tags = new com.amazonaws.internal.SdkInternalList<Tag>();\n }\n return tags;\n }", "public List getTags();", "public List<Tag> getTags() {\n return tags;\n }", "public String getTags() {\n return tags;\n }", "public String getTags() {\n return tags;\n }", "List<Tag> getTagList();", "List<Tag> getTagList();", "public StringBuilder getTags () {\n return tags;\n }", "List<MetaTag> findAll();", "public Set<String> getTags(){\r\n\t\treturn tags.keySet();\r\n\t}", "public Set<String> getTags()\n {\n return tags;\n }", "public String getTags() {\n return this.tags;\n }", "public java.util.List<java.lang.String> getTags() {\n return tags;\n }", "@Override\n\tpublic List<Tags> getlist() {\n\t\treturn TagsRes.findAll();\n\t}", "public String getTags() {\n\t\treturn tags;\n\t}", "public String getTags() {\n\t\treturn tags;\n\t}", "public Object getTags() {\n return this.tags;\n }", "public java.util.List<java.lang.String> getTags() {\n return tags;\n }", "public static final Map<Integer, TiffTag> getAllTags()\n\t{\n\t return TagSetManager.getInstance().getAllTags();\n\t}", "public List<Tag> getTagList();", "public List<Tag> listTags() throws IOException, ClassNotFoundException {\n\t\treturn list(Tag.class);\n\t}", "public List<String> getTags() {\n\t\treturn tags;\n\t}", "Set<String> tags();", "public List<HTMLTagComponent> getNestedTags() {\n return nestedTagList;\n }", "public ArrayList<Tag> getTags() {\n return tags;\n }", "public Tag [] getTagSet() {\n return this.TagSet;\n }", "public String getTags() {\n if (tags.size() == 0) {\n return \"\";\n }\n StringBuilder result = new StringBuilder(\" (Tags:\");\n for (String t : tags) {\n result.append(\" \").append(t);\n }\n result.append(\")\");\n return result.toString();\n }", "@DialogField(fieldLabel = \"Tags\", fieldDescription = \"List of tags to filter on.\")\n @TagInputField\n public List<Tag> getTags() {\n if (tags == null) {\n tags = getAsList(PARAM_TAGS, String.class)\n .stream()\n .map(tagId -> tagManager.resolve(tagId))\n .filter(Objects:: nonNull)\n .collect(Collectors.toList());\n }\n\n return tags;\n }", "List<String> getTags() {\n return tags;\n }", "List<String> getTags() {\r\n return tags;\r\n }", "public Set<String> getTagNames()\r\n\t{\r\n\t\treturn Collections.unmodifiableSet(tagMap.keySet());\r\n\t}", "public Set<String> getTags(){return tags;}", "public List<String> getTags() {\n\n\t\tSet<String> tags = new TreeSet<>();\n\n\t\tString allTags = tagsTextField.getText();\n\n\t\tif (!allTags.isEmpty()) {\n\t\t\ttags.addAll(Arrays.asList(allTags.replaceAll(\"\\\\s+\", \"\").split(\",\")));\n\t\t}\n\t\t\n\t\ttags.addAll(allCurrentTagsListView.getSelectionModel().getSelectedItems());\n\t\t\n\t\tif(currentDateAsTag.isSelected()) {\n\t\t\ttags.add(LocalDate.now().format(DateTimeFormatter.ofPattern(\"dd.MM.yyyy\")).toString());\n\t\t}\n\n\t\treturn new ArrayList<>(tags);\n\n\t}", "private List<String> getTagNames() {\n String query = \"SELECT DISTINCT ?tagName WHERE { ?thing isa:tag [isa:tagName ?tagName; isa:tagDetail ?tagDetail]}\";\n List<Map<String, String>> results = moduleContext.getModel().executeSelectQuery(query);\n List<String> tags = new ArrayList<>();\n results.forEach(solution -> tags.add(solution.get(\"tagName\")));\n return tags;\n }", "public Set<TagDTO> getTags() {\n\t\treturn tags;\n\t}", "public String[] getTags() {\n return modifiedEditor.getTags ();\n }", "ArrayList<String> getAllTags() {\r\n return allTags;\r\n }", "public static Collection<Tag> getTagList( Plugin plugin )\r\n {\r\n return _dao.selectTagList( plugin );\r\n }", "public String[] getTags(IEntry entry);", "@Nullable\n public abstract List<String> tags();", "public Set<String> getTags() {\n\t\tSet<String> tags = tagToImg.keySet();\n\t\treturn tags;\n\t}", "public Map<String, String> getTags() {\n return this.tags;\n }", "public ArrayList<ArrayList<Tag>> getAllTagLists() {\n return tags;\n }", "public java.util.Map<String, String> getTags() {\n return tags;\n }", "public java.util.Map<String, String> getTags() {\n return tags;\n }", "public java.util.Map<String, String> getTags() {\n return tags;\n }", "public java.util.Map<String, String> getTags() {\n return tags;\n }", "com.google.cloud.compute.v1.Tags getTags();", "public List<Tag> getTag()\n\t{\n\t\treturn (List<Tag>) this.getKeyValue(\"Tag\");\n\n\t}", "public Tag inlineTags()[] {return inlineTags; }", "private String[] getTags() {\n String[] tags = new String[10];\n Node temp = head;\n int i = 0;\n\n while ((temp != null) && i < 10) {\n tags[i] = temp.message;\n temp = temp.next;\n i++;\n }\n return tags;\n }", "public Map<String, String> tags() {\n return this.tags;\n }", "public Map<String, String> tags() {\n return this.tags;\n }", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<DeviceTag> getAllDeviceTags() {\n return this.serviceClient.getAllDeviceTags();\n }", "@Override\n\tpublic List<TagInstance> searchTags(List<TagType> tags) {\n List<MarkedUpText> texts = getDescendantTexts();\n \n List<TagInstance> tagInstances = new LinkedList<TagInstance>();\n for(MarkedUpText t: texts) {\n tagInstances.addAll(t.searchTags(tags));\n }\n return tagInstances;\n\t}", "public ArrayList<String> getTags(){\n return (ArrayList<String>)tags.clone();\n }", "@XmlTransient\n Collection<Tag> getTagCollection();", "public ArrayList<String> getTags() {\n return (ArrayList<String>)this.tags.clone();\n }", "@NotNull\n @Generated\n @Selector(\"tags\")\n public native NSSet<String> tags();", "public TagCloudModel getTags() {\r\n return tags;\r\n }", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "public List<Tag> getTagList(Account account){\n return getAccountDetailUC.getTagList(account);\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<TagMapping> findAll() {\n\t\tList<TagMapping> tagMap = list(namedQuery(\"com.wpff.core.TagMapping.findAll\"));\n\t\treturn tagMap;\n\t}", "public ArrayList<String> getPopularTags() {\n\n\t\tif (m_db == null)\n\t\t\treturn null;\n\n\t\tCursor cursor = m_db.query(TAG_TABLE_NAME, new String[] {\n\t\t\t\tTAG_FIELD_NAME, TAG_FIELD_USAGE }, null, null, null, null,\n\t\t\t\tTAG_FIELD_USAGE + \" DESC\");\n\n\t\t//\n\t\t// construct array list\n\t\t//\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\t//\n\t\t// collect result\n\t\t//\n\t\tcollectResultSet(cursor, list);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// return result list\n\t\t//\n\t\treturn list;\n\t}", "public Set<RvtAoiMetadataKey> getTags() {\n return map.keySet();\n }", "private List<String> getAllTagsOfUser(Integer userId){\n \t List<String> openTags = new ArrayList<String>();\n \t DataLayerFactory factory = new DataLayerFactory(db);\n \t PostDataLayer postDataLayer = factory.createPostDataLayer();\n \t List<Question> userQuestions = postDataLayer.getQuestionsOfUser(userId, OrderCriteria.CREATION_DATE);\n \t for (Question question : userQuestions) \n \t\t for (String tag : question.getTags()) {\n\t\t\t\tif (!openTags.contains(tag)) {\n\t\t\t\t\topenTags.add(tag);\n\t\t\t\t}\n\t\t\t}\n \t\t\t\n \t return openTags;\n \t\t}", "String[] getTags() {\n if (sections == null) {\n return null;\n }\n\n Vector<String> tagV = new Vector<>(sections.length * 2);\n\n for (Section section : sections) {\n String[] names = section.getOutputNames();\n\n Collections.addAll(tagV, names);\n } // outer for\n\n return tagV.toArray(new String[tagV.size()]);\n }", "@DISPID(73)\r\n\t// = 0x49. The runtime will prefer the VTID if present\r\n\t@VTID(78)\r\n\tasci.activebatch.ITags tags();", "@Override\n\tpublic Set<HtmlTag> getChildren()\n\t{\n\t\tImmutableSet.Builder<HtmlTag> childrenBuilder = ImmutableSet.builder();\n\t\tfor(TreeNode<? extends HtmlTag> child : node.getChildren())\n\t\t{\n\t\t\tchildrenBuilder.add(child.getValue());\n\t\t}\n\t\treturn childrenBuilder.build();\n\t}", "public String[] getTags() {\n WindowManager wm = TopManager.getDefault().getWindowManager();\n Workspace[] wss = wm.getWorkspaces();\n if (!namesInitialized) {\n namesInitialized = true;\n initializeNamesMap(wss);\n }\n // exclude browsing, running and debugging workspaces\n java.util.Vector tagList = new java.util.Vector ();\n for (int i = wss.length; --i >= 0; ) {\n String name = wss[i].getName();\n if (!(\"Browsing\".equals (name) || \"Running\".equals (name) || \"Debugging\".equals (name))) { // NOI18N\n tagList.add(name);\n }\n }\n // XXX(-tdt)\n // tagList.add(NbBundle.getBundle(WorkspaceEditor.class).getString(\"VALUE_WORKSPACE_NONE\"));\n String[] names = new String [tagList.size()];\n for (int i=0, n=tagList.size(); i<n; i++)\n names[i] = (String)namesMap.get(tagList.get(i));\n return names;\n }", "public Map getUserDefinedTags()\n {\n return m_Tags;\n }", "@SuppressWarnings(\"unused\")\n\tprivate void removeTags(File file)\n\t{\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(Main.id + \".html\"));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString line = br.readLine();\n\t\t\tSystem.out.println(\"reading..\");\n\t\t\twhile (line != null) {\n\t\t\t\tsb.append(line);\n\t\t\t\tsb.append(System.lineSeparator());\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\tString everything = sb.toString();\n\n\t\t\tDocument doc = Jsoup.parse(everything);\n\t\t\tPrintWriter writer = new PrintWriter(Main.id + \".html\");\n\n\t\t\tString text = doc.text().replaceAll(\" \", System.getProperty(\"line.separator\"));\n\n\t\t\twriter.write(text);\n\t\t\twriter.close();\n\n\t\t\tSystem.out.println(doc.text());\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t} catch (IOException 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\n\t}" ]
[ "0.67621887", "0.6610038", "0.6578442", "0.63957345", "0.6363991", "0.636059", "0.6292399", "0.6280422", "0.6259053", "0.6248542", "0.6217898", "0.619962", "0.6187244", "0.6145864", "0.6141074", "0.613878", "0.613878", "0.61381316", "0.61381316", "0.61381316", "0.61381316", "0.61381316", "0.6136043", "0.6061357", "0.6036596", "0.6036596", "0.6029118", "0.6029118", "0.601918", "0.6010463", "0.59888476", "0.5987265", "0.5972395", "0.5949131", "0.59386116", "0.59377843", "0.59377843", "0.5905796", "0.5877683", "0.5873795", "0.58336556", "0.58168405", "0.58162177", "0.5815606", "0.5796947", "0.5790434", "0.57873255", "0.5773912", "0.5745311", "0.57142085", "0.5702813", "0.5659262", "0.5648635", "0.5641558", "0.563107", "0.5619721", "0.56151766", "0.5599325", "0.559925", "0.5597804", "0.5595998", "0.559243", "0.55856436", "0.55504084", "0.5549713", "0.5549713", "0.5549713", "0.5549713", "0.55453205", "0.54853654", "0.54812115", "0.5472042", "0.5469034", "0.5469034", "0.54648983", "0.54018945", "0.5387819", "0.53563374", "0.5341701", "0.53318524", "0.5331249", "0.53196377", "0.53196377", "0.53196377", "0.53196377", "0.53196377", "0.53196377", "0.53196377", "0.53196377", "0.53039217", "0.5272711", "0.5220842", "0.5216879", "0.52038467", "0.5190686", "0.5187256", "0.51807976", "0.5178513", "0.517567", "0.51694" ]
0.6464645
3
Method to put matches in alphabetical and length order.
public ArrayList<String> sortTags(Collection<String> tags) { // Transform set to list so can sort. ArrayList<String> list = new ArrayList<>(tags); // Sort alphabetically. Collections.sort(list); // Sort by length. Collections.sort(list, new Comparator<String>() { @Override public int compare(String x, String y) { int diff = x.length() - y.length(); if (diff < 0) { return -1; } else if (diff == 0) { return 0; } else { return 1; } } }); return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortMatches();", "private static void alphabetize() {\r\n Collections.sort(kwicIndex, String.CASE_INSENSITIVE_ORDER);\r\n }", "public void sortByWordLengthAsc() {\r\n\t\tcomparator = new WordLengthAsc();\r\n\t}", "public static void alphabetize() {\r\n\t\tArrayList<Patron> alphabetic = dblogic.getAlphabetic();\r\n\t\tresetTable();\r\n\t\tfor (int i = 0; i < alphabetic.size(); i++) {\r\n\t\t\ttable.setValueAt(alphabetic.get(i).getLastName(), i, COL_LAST);\r\n\t\t\ttable.setValueAt(alphabetic.get(i).getFirstName(), i, COL_FIRST);\r\n\t\t\ttable.setValueAt(alphabetic.get(i).getPatronEmail(), i, COL_EMAIL);\r\n\t\t\ttable.setValueAt(alphabetic.get(i).getPatronDOB(), i, COL_BIRTH);\r\n\t\t\ttable.setValueAt(alphabetic.get(i).getPatronSince(), i, COL_ADDED);\r\n\t\t\ttable.setValueAt(alphabetic.get(i).getAnniv().toString(), i, COL_ANNIV);\r\n\t\t}\r\n\t}", "private void sortAlphabet()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getTitle().compareTo(b.getTitle());\n if(result > 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n }\n }\n }", "private void populateLetterList() {\n int numberOfTabs = LETTERS_IN_ALPHABET / numberInGroup;\n\n if (LETTERS_IN_ALPHABET % numberInGroup != 0) {\n numberOfTabs++;\n }\n for (int i = 0; i < numberOfTabs; i++) {\n Character startLetter = (char) ((i * numberInGroup) + 65);\n Character endLetter = (char) (startLetter + numberInGroup - 1);\n if ((int) endLetter > (25 + 65)) {\n endLetter = (char) (25 + 65);\n }\n startLetterList.put(startLetter, endLetter);\n }\n }", "public static void viewPatientsStoredInAlphabetical() {\n\r\n String[] alphabeticalOrder = new String[6]; //Creates an array called 'alphabeticalOrder'\r\n for (int y=0; y<firstName.length; y++) {\r\n alphabeticalOrder[y] = firstName[y]; //Getting values from the 'vaccinationCenter' array and passing them to the 'alphabeticalOrder' array\r\n }\r\n for(int a=0; a<(alphabeticalOrder.length-1); a++)\r\n {\r\n for(int b=a+1; b<alphabeticalOrder.length; b++)\r\n {\r\n if((alphabeticalOrder[a].toLowerCase(Locale.ROOT)).compareTo(alphabeticalOrder[b].toLowerCase(Locale.ROOT))> 0)\r\n {\r\n String temp = alphabeticalOrder[a];\r\n alphabeticalOrder[a] = alphabeticalOrder[b];\r\n alphabeticalOrder[b] = temp;\r\n //Sorted elements of the array to alphabetical order\r\n }\r\n }\r\n }\r\n System.out.println(Arrays.toString(alphabeticalOrder));\r\n }", "void increaseSortLetter();", "public static void main(String[] args) {\n\n //challenge 1:\n\n List<String> topNames2015 = Arrays.asList(\n \"Amelia\",\n \"Olivia\",\n \"emily\",\n \"Isla\",\n \"Ava\",\n \"oliver\",\n \"Jack\",\n \"Charlie\",\n \"harry\",\n \"Jacob\"\n );\n\n Function<List<String>, List<String>> upperCase = (List<String> WordList) -> {\n for (String word : WordList) {\n String capitalWord = word.substring(0, 1).toUpperCase() + word.substring(1);\n WordList.set(WordList.indexOf(word), capitalWord);\n }\n return WordList;\n };\n\n Comparator<String> titleComparator = (FirstWord, SecondWord) -> FirstWord.compareTo(SecondWord);\n\n // makes the first letter upper case\n List<String> UppercaseWordList = upperCase.apply(topNames2015);\n // sorts the list in natural ordering\n Collections.sort(UppercaseWordList, titleComparator);\n for (String word : UppercaseWordList) {\n System.out.println(word);\n }\n\n //Challenge 2:\n\n List<String> topNames2016 = Arrays.asList(\n \"Amelia\",\n \"Olivia\",\n \"emily\",\n \"Isla\",\n \"Ava\",\n \"oliver\",\n \"Jack\",\n \"Charlie\",\n \"harry\",\n \"Jacob\"\n );\n\n // solution to challenge 2 it is commented out to allow for challenge 3\n// topNames2016.stream()\n// .map(obj -> {\n// String capitalWord = obj.substring(0, 1).toUpperCase() + obj.substring(1);\n// return capitalWord;\n// })\n// .sorted()\n// .forEach(System.out::println);\n//\n// }\n\n // challenge 3\n long countValue= topNames2016.stream()\n .map(obj -> {\n String capitalWord = obj.substring(0, 1).toUpperCase() + obj.substring(1);\n return capitalWord;\n })\n .filter(s -> s.startsWith(\"A\"))\n .count();\n\n System.out.println(\"Th number of names starting with A is: \"+countValue);\n\n }", "public static void sortStringsDictionary( ArrayList<String> lst )\n {\n PredicateStringPair p = (a, b) -> {\n String[] newA = a.split(\"\");\n String[] newB = b.split(\"\");\n int min;\n boolean mismatch = false;\n String adif = \"\";\n String bdif = \"\";\n if (a.length() < b.length()) {\n min = a.length();\n } else {\n min = b.length();\n }\n\n for (int i = 0; i < min; i++) {\n if (!newA[i].equals(newB[i])) {\n mismatch = true;\n adif = newA[i];\n bdif = newB[i];\n break;\n\n }\n }\n if (mismatch == false) {\n if(a.length() < b.length()) {\n return true;\n }\n else{\n return false;\n }\n }\n else{\n if(adif.matches(\"[a-zA-Z]\") && !bdif.matches(\"[a-zA-Z]\")) {\n return true;\n }\n else if (bdif.matches(\"[a-zA-Z]\") && !adif.matches(\"[a-zA-Z]\")) {\n return false;\n }\n else if (adif.matches(\"[a-zA-Z]\") && bdif.matches(\"[a-zA-Z]\")){\n //Automates the creation of the custom alphabetical ordering\n ArrayList<String> alph = new ArrayList<String>();\n for (int i = 0; i < 26; i++){\n alph.add(Character.toString(97 + i));\n alph.add(Character.toString(65 + i));\n }\n if (alph.indexOf(adif) < alph.indexOf(bdif)){\n return true;\n }\n else {\n return false;\n }\n }\n else {\n if (adif.compareTo(bdif) > 1) {\n return false;\n }\n else{\n return true;\n }\n\n\n }\n\n }\n\n };\n sortStrings(lst, p);\n }", "int getCharacterOrdering(char key);", "@Test\n public void testLetterCasePermutation() {\n System.out.println(\"testLetterCasePermutation\");\n LetterCasePermutation instance = new LetterCasePermutation();\n\n List<String> result1 = instance.letterCasePermutation(\"a1b2\");\n List<String> expect1 = ListUtil.buildList(new String[]{\"a1b2\", \"a1B2\", \"A1b2\", \"A1B2\"});\n assertTrue(ListUtil.equalsIgnoreOrder(expect1, result1));\n\n List<String> result2 = instance.letterCasePermutation(\"3z4\");\n List<String> expect2 = ListUtil.buildList(new String[]{\"3z4\", \"3Z4\"});\n assertTrue(ListUtil.equalsIgnoreOrder(expect2, result2));\n\n List<String> result3 = instance.letterCasePermutation(\"12345\");\n List<String> expect3 = ListUtil.buildList(new String[]{\"12345\"});\n assertTrue(ListUtil.equalsIgnoreOrder(expect3, result3));\n }", "Alphabet(String chars) {\n char[] newChars = chars.toCharArray();\n Map<Character, Integer> map = new HashMap<>();\n for (char c : newChars) {\n if (map.containsKey(c)) {\n int counter = map.get(c);\n map.put(c, ++counter);\n } else {\n map.put(c, 1);\n }\n }\n\n for (char c : map.keySet()) {\n if (map.get(c) > 1) {\n throw new EnigmaException(\"Duplicates Found\");\n } else {\n _letters = chars;\n }\n }\n }", "private static List<List<String>> groupAnagrams(String[] strs) {\n List<List<String>> result = new ArrayList<List<String>>();\n\n HashMap<Integer, ArrayList<String>> map = new HashMap<Integer, ArrayList<String>>();\n for(String str: strs){\n int key = 0;\n for(int i=0; i<str.length(); i++){\n key = key + (str.charAt(i)-'a');\n }\n\n if(map.containsKey(key)){\n map.get(key).add(str);\n }else{\n ArrayList<String> al = new ArrayList<String>();\n al.add(str);\n map.put(key, al);\n }\n }\n\n result.addAll(map.values());\n\n return result;\n }", "static int makeAnagram(String a, String b) {\n \n \tchar arr[] = a.toCharArray();\n char brr[] = b.toCharArray();\n Arrays.sort(arr);\n Arrays.sort(brr);\n Map<Character, Integer> aMap = new HashMap<>();\n Map<Character, Integer> bMap = new HashMap<>();\n for(int i =0 ;i <arr.length;i++){\n \tif(!aMap.containsKey(arr[i])){\n \t\taMap.put(arr[i], 1);\n \t}else{\n \t\taMap.put(arr[i], aMap.get(arr[i])+1);\n \t}\n }\n for(int i =0 ;i <brr.length;i++){\n \tif(!bMap.containsKey(brr[i])){\n \t\tbMap.put(brr[i], 1);\n \t}else{\n \t\tbMap.put(brr[i], bMap.get(brr[i])+1);\n \t}\n }\n int removeCharCount = 0;\n \n for(char ch = 'a'; ch<='z';ch++){\n \tif(aMap.containsKey(ch) && bMap.containsKey(ch)){\n \t\tif(aMap.get(ch) > bMap.get(ch)){\n \t\t\tint count = aMap.get(ch) - bMap.get(ch);\n \t\t\tremoveCharCount+=count;\n \t\t\taMap.put(ch, aMap.get(ch) - count);\n \t\t}else if(aMap.get(ch) < bMap.get(ch)){\n \t\t\tint count = bMap.get(ch) - aMap.get(ch);\n \t\t\tremoveCharCount+=count;\n \t\t\taMap.put(ch, bMap.get(ch) - count);\n \t\t}\n \t}else if(aMap.containsKey(ch) && !bMap.containsKey(ch)){\n \t\tint count = aMap.get(ch);\n \t\tremoveCharCount+=count;\n \t\taMap.remove(ch);\n \t}else if(!aMap.containsKey(ch) && bMap.containsKey(ch)){\n \t\tint count = bMap.get(ch);\n \t\tremoveCharCount+=count;\n \t\tbMap.remove(ch);\n \t}\n }\n /* if(removeCharCount == Math.min(arr.length, brr.length)){\n \treturn 0;\n }*/\n return removeCharCount;\n }", "public static void sortStringsNumAs( ArrayList<String> lst )\n {\n PredicateStringPair p = (a, b) -> {\n String[] A = a.split(\"\");\n String[] B = b.split(\"\");\n int acount = 0;\n int bcount = 0;\n for (String i : A){\n if (i == \"a\" || i == \"A\"){\n acount += 1;\n }\n }\n for (String i : B){\n if (i == \"a\" || i == \"A\"){\n bcount += 1;\n }\n }\n\n if (acount > bcount) return true;\n else return false;\n };\n sortStrings(lst, p);\n \n }", "public void buildMap()\n {\n for(int letterNum=0; letterNum < myText.length()-myNum; letterNum++) {\n String key = myText.substring(letterNum,letterNum+myNum);\n String nextLetter = String.valueOf(myText.charAt(letterNum + myNum));\n if (!map.containsKey(key)) {\n ArrayList<String> lettersArray = new ArrayList<String>();\n lettersArray.add(nextLetter);\n map.put(key,lettersArray);\n }else\n {\n map.get(key).add(nextLetter);\n }\n }\n }", "List<Integer> allAnagrams(String s, String l) {\n\t\t// Write your solution here.\n\t\tList<Integer> result = new ArrayList<Integer>();\n\t\tif (s == null || l == null || s.length() == 0 || l.length() == 0) {\n\t\t\treturn result;\n\t\t}\n\t\tif (s.length() > l.length()) {\n\t\t\treturn result;\n\t\t}\n\t\tMap<Character, Integer> map = countMap(s);\n\t\tint match = 0;\n\t\tfor (int i = 0; i < l.length(); i++) {\n\t\t\tchar temp = l.charAt(i);\n\t\t\tInteger count = map.get(temp);\n\t\t\tif (count != null) {\n\t\t\t\tmap.put(temp, count - 1);\n\n\t\t\t\tif (count == 1) {\n\t\t\t\t\tmatch++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (i >= s.length()) {\n\t\t\t\ttemp = l.charAt(i - s.length());\n\t\t\t\tcount = map.get(temp);\n\t\t\t\tif (count != null) {\n\t\t\t\t\tmap.put(temp, count + 1);\n\t\t\t\t\tif (count == 0) {\n\t\t\t\t\t\tmatch--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (match == map.size()) {\n\t\t\t\tresult.add(i - s.length() + 1);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "String init() {\n StringBuilder output = new StringBuilder();\n output.setLength(0);\n for (String word: wordList) {\n boolean hasMultipleMatches = false;\n boolean hasAmbiguousMatch = false;\n String bestMatch = null;\n List<String> matches = findExactMatches(word);\n if (matches.size()==1) {\n bestMatch = matches.get(0);\n } else if (matches.size()>1) { // One or more exact matches were found.\n // Multiple matches found. Check to see if there is one which is shorted than the others\n List<String> multipleSameLengthMatches = findLongestMatch(matches);\n bestMatch = multipleSameLengthMatches.get(0);\n if (multipleSameLengthMatches.size()>1) {\n hasMultipleMatches = true;\n }\n } else { // No exact match was found, find longest matching substring\n bestMatch = findBestMatch(word);\n hasAmbiguousMatch = true;\n }\n output.append(bestMatch);\n output.append(hasMultipleMatches?\"!\":\"\");\n output.append(hasAmbiguousMatch?\"?\":\"\");\n output.append(\"\\n\");\n }\n return output.toString();\n }", "public static void main(String[] args) {\n\n\n IntStream.range(1, 10).forEach(System.out::print);\n System.out.println();\n System.out.println();\n\n String[] fruits = {\"apple\", \"banana\", \"peach\", \"strawberry\", \"cherry\", \"avocado\", \"apricot\", \"pineapple\"};\n\n\n System.out.println(\"\\nStarts with a\");\n Arrays.stream(fruits).filter(x -> x.startsWith(\"a\")).sorted().forEach(x -> System.out.printf(\"-%s\\n\", x));\n\n\n List<String> fruits_startsWithA = Arrays.stream(fruits).filter(x -> x.startsWith(\"p\")).sorted().collect(Collectors.toList());\n System.out.println(\"\\nStarts with p\");\n fruits_startsWithA.stream().forEach(x -> System.out.printf(\"-%s\\n\", x));\n System.out.println(\"\\nContaining \\\"erry\\\"\");\n\n Arrays.stream(fruits).filter(f -> f.contains(\"erry\")).forEach(x -> System.out.printf(\"-%s\\n\", x));\n\n System.out.println();\n System.out.println(\"\\nSorted and uppercase\");\n\n Arrays.stream(fruits).map(String::toUpperCase).sorted().forEach(x -> System.out.printf(\"-%s\\n\", x));\n\n System.out.println(\"\\nSorted in reverse order\");\n Arrays.stream(fruits).sorted(Comparator.reverseOrder()).forEach(x -> System.out.printf(\"-%s\\n\", x));\n\n System.out.println(\"\\nLongest word is: \" + Arrays.stream(fruits).max(Comparator.comparing(String::length)).get());\n\n System.out.println(\"\\nThe elements with length more than 6 characters are: \");\n Arrays.stream(fruits).filter(x -> x.length() > 6).forEach(x -> System.out.printf(\"-%s\\n\", x));\n\n System.out.println(\"\\nSorting elements by length: \");\n Arrays.stream(fruits).sorted(Comparator.comparing(String::length)).forEach(x -> System.out.printf(\"-%s\\n\", x));\n\n\n }", "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nString s1=sc.nextLine();\r\nString s2=sc.nextLine();\r\ns1=s1.replaceAll(\"\\\\s\",\"\");\r\ns2=s2.replaceAll(\"\\\\s\",\"\");\r\ns1=s1.toLowerCase();\r\ns2=s2.toLowerCase();\r\nchar str1[]=s1.toCharArray();\r\nchar str2[]=s2.toCharArray();\r\nArrays.sort(str1);\r\nArrays.sort(str2);\r\nboolean k=true;\r\nif(s1.length()!=s2.length())\r\n\tk=false;\r\nelse\r\n{\r\nk=Arrays.equals(str1,str2);\t\r\n}\r\nif(k==false)\r\n\tSystem.out.print(\"not annagram\");\r\nelse\r\n\tSystem.out.print(\"annagram\");\r\n\t}", "private static String fixSorts(String strIn){\r\n\t // get a matcher object\r\n\t matches = ptrnNumbers.matcher(strIn);\r\n\t while (matches.find()){\r\n\t \tstrIn = strIn.substring(0,matches.start())+\" \"+strPrepend+strIn.substring(matches.start()+1);\r\n\t }\r\n\t //System.out.println(\">>>\"+strIn);\r\n\t\treturn strIn;\r\n\t}", "private static List<List<String>> groupAnagramsBestCase(String[] strings) {\n List<List<String>> result = new ArrayList<>();\n Map<String, List<String>> keyToValues = new HashMap<>();\n\n for(String str : strings) {\n String key = getKey(str);\n List<String> anagrams = keyToValues.getOrDefault(key, new ArrayList<>());\n anagrams.add(str);\n\n keyToValues.put(key, anagrams);\n }\n\n result.addAll(keyToValues.values());\n return result;\n }", "public void alphabetize() {\n\t\t// write you code for alphabetize using the specifications above\n\t\tif (numElements==0){\n\t\t\treturn;\n\t\t}\n\t\tNode nodref = head;\n\t\tNode nodref1 = head.next;\n\t\tint count = 0;\n\t\tboolean x1 = false;\n\t\t\n\t\twhile(nodref!=null){\n\t\t\tnodref1=nodref.next;\n\t\t\tx1 = false;\n\t\t\twhile(nodref1!=null){\n\t\t\t\tint boo = nodref.data.compareTo(nodref1.data);\n\t\t\t\tSystem.out.println(this + \"\\n\" + nodref + \" \" + nodref1+ \" \" + boo +\"\\n\");\n\t\t\t\t\n\t\t\t\tif (boo>0){\n\t\t\t\t\tthis.add(nodref1.data);\n\t\t\t\t\tnumElements--;\n\t\t\t\t\tNode x = head;\n\t\t\t\t\tfor(int counter=0; counter<=count; counter++){\n\t\t\t\t\t\tx=x.next;\n\t\t\t\t\t}\n\t\t\t\t\tnodref.next = nodref.next.next;\n\t\t\t\t\tx1 = true;\n\t\t\t\t}\n\t\t\t\tnodref1 = nodref1.next;\n\t\t\t}\n\t\t\tSystem.out.println(count + \" \" + head + \" \" + x1);\n\t\t\tcount++;\n\t\t\tif(x1!=true){\n\t\t\t\tnodref = nodref.next;\n\t\t\t}\n\t\t\telse\n\t\t\t\tnodref = head;\n\t\t}\n\t}", "public static void orderByFirstLetter(List<String> list) {\n\t\tlist.sort((s1, s2) -> s1.substring(0,1).toLowerCase().compareTo(\n\t\t\t\t\t\t\t s2.substring(0,1).toLowerCase()));\n\t}", "public static void main(String[] args) {\n Class<?> clazz = ReverseShuffleMerge.class;\r\n Scanner scanner = new Scanner(\r\n clazz.getResourceAsStream(clazz.getSimpleName() + \".txt\"));\r\n \r\n String input = scanner.next();\r\n scanner.close();\r\n \r\n // Gets letter occurrence\r\n char minLetter = MAX_ASCII_LOWER + 1;\r\n int[] letters = new int[MAX_ASCII_LOWER - MIN_ASCII_LOWER + 1];\r\n for (char letter : input.toCharArray()) {\r\n letters[letter - MIN_ASCII_LOWER]++;\r\n minLetter = (char) Math.min(minLetter, letter);\r\n }\r\n\r\n // Creates word string builder\r\n int wordSize = input.length() / 2;\r\n StringBuilder word = new StringBuilder(wordSize);\r\n \r\n // Loops through letters storing letters that already appeared\r\n int[] seenLetters = new int[MAX_ASCII_LOWER - MIN_ASCII_LOWER + 1];\r\n Queue<Character> buffer = new LinkedList<>();\r\n for (int i = input.length() - 1; i >= 0; i--) {\r\n char letter = input.charAt(i);\r\n int letterIndex = letter - MIN_ASCII_LOWER;\r\n \r\n seenLetters[letterIndex] += 2;\r\n if (letter == minLetter) {\r\n // Prints minimum letter as soon as it appears and is still\r\n // missing from word\r\n if (seenLetters[letterIndex] <= letters[letterIndex]) {\r\n word.append(letter);\r\n }\r\n } else if (seenLetters[letterIndex] > letters[letterIndex]) {\r\n // Prints other letters only when inevitable\r\n while (!buffer.isEmpty()) {\r\n char temp = buffer.poll();\r\n if (temp < letter) {\r\n word.append(temp);\r\n// seenLetters[temp - MIN_ASCII_LOWER] -= 2;\r\n }\r\n }\r\n word.append(letter);\r\n } else {\r\n // Sends letter to buffer\r\n if (seenLetters[letterIndex] < letters[letterIndex]) {\r\n buffer.offer(letter);\r\n }\r\n }\r\n }\r\n \r\n System.out.print(word.toString());\r\n }", "public void sortByWordLengthDesc() {\r\n\t\tcomparator = new WordLengthDesc();\r\n\t}", "public void sortChars(String[] array){\n HashMap<String, LinkedList<String>> list = new HashMap<String, LinkedList<String>>();\n\n for(String s: array){\n String key = sortChars(s);\n if(!list.containsKey(key)){\n list.put(key, new LinkedList<String>());\n }\n LinkedList<String> anagrams = list.get(key);\n anagrams.push(s);\n }\n\n int index = 0;\n for(String key: list.keySet()){\n LinkedList<String> anagrams = list.get(key);\n for(String val: anagrams){\n array[index] = val;\n index++;\n }\n }\n }", "public static void main(String[] args){\n \tunsortedWords = new ArrayList<String>();\n sortedWords = new ArrayList<String>();\n \ttry{\n \t\tInputStreamReader in = new InputStreamReader(System.in);\n \t\tBufferedReader input = new BufferedReader(in);\n \t\talphabetString = input.readLine();\n \t\tif (alphabetString == null || alphabetString == \"\"){\n \t\t\tthrow new IllegalArgumentException();\n \t\t}\n\n \t\tstr = input.readLine();\n if (str == null || str == \"\"){\n throw new IllegalArgumentException();\n }\n \n \t\twhile (str != null){\n \t\t\tunsortedWords.add(str);\n \t\t\tstr = input.readLine();\n numberOfWords += 1;\n \t\t}\n\n\n\n \t}\n \tcatch (IOException io){\n \t\tSystem.out.println(\"There are no words given\");\n \t\tthrow new IllegalArgumentException();\n\n \t}\n\n alphabetMap = new HashMap<String, Integer>();\n String[] alphabetLetters = alphabetString.split(\"\");\n \tint j = 0;\n \tString letter;\n \t// String[] alphabetLetters = alphabetString.split(\"\");\n \twhile (j < alphabetLetters.length){\n letter = alphabetLetters[j];\n if (alphabetString.length() - alphabetString.replace(letter, \"\").length() > 1) {\n System.out.println(letter);\n throw new IllegalArgumentException();\n }\n alphabetMap.put(alphabetLetters[j], j);\n j += 1;\n }\n //for checking the last value something is in the outputed list. \n lastArrayIndex = 0;\n\n //sorts words\n int k = 0;\n String chosenWord;\n while (k < unsortedWords.size()){\n chosenWord = unsortedWords.get(k);\n sorting(chosenWord, sortedWords);\n k += 1; \n }\n\n //prints words\n int l = 0;\n String printedWord;\n while (l < sortedWords.size()){\n printedWord = sortedWords.get(l);\n System.out.println(printedWord);\n l += 1;\n }\n\n\n \t//making the trie\n // usedTrie = makeATrie(unsortedWords);\n\n //printing out the order\n // recursiveAlphabetSorting(usedTrie, \"\", alphabetString);\n\n\n }", "public void step1(){\n\n Collections.sort(names, new Comparator<String>() {\n @Override\n public int compare(String a, String b) {\n return b.compareTo(a);\n }\n });\n }", "private ArrayList<String> allWords(int ret, ArrayList<Character> mustIn){\n String mustContain = \"\";\n for (int inde = 0; inde < mustIn.size(); inde++) {\n mustContain+=mustIn.get(inde);\n }\n \n ArrayList<String> allAnagrams = new ArrayList<String>();\n \n for (int inde = 0; inde < combinations.size(); inde++){\n ArrayList<Piece> temp = combinations.get(inde);\n if (temp.size()<=ret){\n String lettersToAdd = \"\";\n \n for (int i = 0; i < temp.size(); i++)\n lettersToAdd +=temp.get(i).theLetter();\n \n allAnagrams.add(mustContain+\"\"+lettersToAdd);\n }\n }\n \n return allAnagrams;\n }", "public List<String> match(List<String> someList)\n {\n char[] objectWord = this.aWord.toCharArray();\n Arrays.sort(objectWord);\n\n List<String> answer = new ArrayList<>();\n HashMap<String, Integer> mapForEachWord = new HashMap<>();\n\n for (int i = 0; i < someList.size(); i++)\n {\n String wordFromList = someList.get(i).toLowerCase();\n //mapForEachWord = processWord(wordFromList);\n\n char[] listWordArray = wordFromList.toCharArray();\n Arrays.sort(listWordArray);\n\n if (Arrays.equals(listWordArray, objectWord) && !this.aWord.equals(wordFromList))\n {\n answer.add(someList.get(i));\n }\n\n }\n\n return answer;\n }", "public static List<List<String>> groupAnagrams2(String[] strs) {\n Map<String, List<String>> map = new HashMap<>();\n for(String s : strs){\n char[] ch = s.toCharArray();\n Arrays.sort(ch);\n String key = String.valueOf(ch);\n if(!map.containsKey(key)) map.put(key, new ArrayList<>());\n map.get(key).add(s);\n }\n return new ArrayList<>(map.values());\n }", "public String sortBy();", "public static void main(String[] args){\n String[] inputStrings = null;\r\n if (args.length > 0)\r\n inputStrings = args;\r\n else\r\n inputStrings = new String[] {\"mama\", \"mia\", \"here\", \"we\", \"go\", \"again\", \"everyone\"};\r\n\r\n // requested sorts using the stream() API\r\n List<String> shortToLong = Arrays.stream(inputStrings)\r\n .sorted()\r\n .collect(Collectors.toList());\r\n\r\n List<String> longToShort = Arrays.stream(inputStrings)\r\n .sorted(Comparator.reverseOrder())\r\n .collect(Collectors.toList());\r\n\r\n List<String> alphabeticalFirst = Stream.of(inputStrings)\r\n .sorted(Comparator\r\n .comparingInt(str -> Character.toLowerCase(str.charAt(0))))\r\n .collect(Collectors.toList());\r\n\r\n Arrays.sort(inputStrings, (str1, str2) -> {\r\n if (str1.charAt(0) == 'e' && str2.charAt(0) == 'e') { return 0; }\r\n else if (str1.charAt(0) == 'e') { return -1; }\r\n else { return 1; }\r\n });\r\n\r\n List<String> eFirst = Arrays.asList(inputStrings);\r\n\r\n\r\n System.out.println(\"\");\r\n for (String s : shortToLong){ System.out.println(s); }\r\n System.out.println(\"\");\r\n for (String s : longToShort){ System.out.println(s); }\r\n System.out.println(\"\");\r\n for (String s : alphabeticalFirst){ System.out.println(s); }\r\n System.out.println(\"\");\r\n for (String s : eFirst){ System.out.println(s); }\r\n System.out.println(\"\");\r\n }", "public static void main(String[] args) {\n\n List<String> animals = new ArrayList <String>();\n\n animals.add(\"Elephatn\");\n animals.add(\"snake\");\n animals.add(\"Lion\");\n animals.add(\"Mongoose\");\n animals.add(\"Cat\");\n\n\n\n// Collections.sort(animals, new StringLengthComparator());\n// Collections.sort(animals, new AlphabeticalComparator());\n Collections.sort(animals, new ReverseAlphabeticalComparator());\n for(String animal:animals){\n System.out.println(animal);\n }\n\n//////////////Sorting Numbers ///////////\n List<Integer> numbers = new ArrayList <Integer>();\n\n numbers.add(54);\n numbers.add(1);\n numbers.add(36);\n numbers.add(73);\n numbers.add(9);\n\n Collections.sort(numbers, new Comparator <Integer>() {\n @Override\n public int compare(Integer num1, Integer num2) {\n return num1.compareTo(num2);\n }\n });\n\n for(Integer number: numbers){\n System.out.println(number);\n }\n\n\n///////////////Sorting Arbitrary objects////////\n\n\n List<Person> people = new ArrayList <Person>();\n\n people.add(new Person(1,\"Joe\"));\n people.add(new Person(5,\"Harry\"));\n people.add(new Person(2,\"Hermoine\"));\n people.add(new Person(4,\"Muffet\"));\n\n// Sort in order of ID\n Collections.sort(people, new Comparator <Person>() {\n @Override\n public int compare(Person p1, Person p2) {\n\n if(p1.getId()>p2.getId()){\n return 1;\n }else if(p1.getId()<p2.getId()){\n return -1;\n }\n return 0;\n\n }\n });\n\n\n // Sort in order of Name\n Collections.sort(people, new Comparator <Person>() {\n @Override\n public int compare(Person p1, Person p2) {\n\n return p1.getName().compareTo(p2.getName());\n\n\n }\n });\n\n for(Person person: people){\n System.out.println(person);\n\n }\n\n }", "private void createAA() {\r\n\r\n\t\tfor( int x = 0 ; x < dnasequence.size(); x++) {\r\n\t\t\tString str = dnasequence.get(x);\r\n\t\t\t//put catch for missing 3rd letter\r\n\t\t\tif(str.substring(0, 1).equals(\"G\")) {\r\n\t\t\t\taasequence.add(getG(str));\r\n\t\t\r\n\t\t\t}else if(str.substring(0, 1).equals(\"C\")) {\r\n\t\t\t\taasequence.add(getC(str));\r\n\t\t\t\t\r\n\t\t\t}else if(str.substring(0, 1).equals(\"A\")) {\r\n\t\t\t\taasequence.add(getA(str));\r\n\t\t\t\t\r\n\t\t\t}else if(str.substring(0, 1).equals(\"T\")) {\r\n\t\t\t\taasequence.add(getT(str));\r\n\t\t\t\t\r\n\t\t\t}else if(str.substring(0,1).equals(\"N\")) {\r\n\t\t\t\taasequence.add(\"ERROR\");\r\n\t\t\t}else\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n String s1,s2;\n s1=sc.nextLine();\n s2=sc.nextLine();\n s1=s1.toLowerCase();\n s2=s2.toLowerCase();\n if(s1.length()!=s2.length()) \n System.out.println(\"Not an anagram\");\n char[] c1=s1.toCharArray();\n char[] c2=s2.toCharArray();\n Arrays.sort(c1);\n Arrays.sort(c2);\n \tif(Arrays.equals(c1, c2))\n System.out.println(\"anagram\");\n \telse\n System.out.println(\"Not an anagram\");\n }", "public List<List<String>> groupAnagrams(String[] strs) {\n Map<String, List<String>> map = new HashMap<>();\n StringBuilder sb = new StringBuilder();\n for (String currStr : strs) {\n int[] counts = new int[26];\n for (int i = 0; i < currStr.length(); i++)\n counts[currStr.charAt(i) - 97]++;\n sb.setLength(0);\n for (int i = 0; i < counts.length; i++)\n for (int j = 0; j < counts[i]; j++)\n sb.append('a' + i);\n\n map.computeIfAbsent(sb.toString(), k -> new LinkedList<>()).add(currStr);\n }\n\n return new LinkedList<>(map.values());\n }", "public void addMatch() {\n totalMatches ++;\n }", "public void createHashTable() {\n\n String[] tempArray = new String[words.size()];\n\n for (int i = 0; i < words.size(); i++) {\n char[] word = words.get(i).toCharArray(); // char[] snarf\n Arrays.sort(word); // char[] afnrs\n tempArray[i] = toString(word); // String afnrs\n }\n\n for (int i = 0; i < words.size(); i++) {\n String word = tempArray[i];\n hashTable.put(word.substring(0, 4), i); // plocka bort bokstav nr 5\n String subString4 = (word.substring(0, 3) + word.substring(4, 5)); // plocka bort bokstav nr 4\n hashTable.put(subString4, i);\n String subString3 = (word.substring(0, 2) + word.substring(3, 5)); // plocka bort bokstav nr 3\n hashTable.put(subString3, i);\n String subString2 = (word.substring(0, 1) + word.substring(2, 5)); // plocka bort bokstav nr 2\n hashTable.put(subString2, i);\n hashTable.put(word.substring(1, 5), i); // plocka bort bokstav nr 1\n }\n }", "Match getMatches();", "public List<String> getPatternAuthors() {\n Set<String> authors = mapAuths.keySet();\r\n //int n = authors.size();\r\n List <String> authorList = new LinkedList<String>();\r\n //iterate through set and add to list\r\n for(String author : authors) {\r\n authorList.add(author);\r\n }\r\n\r\n Collections.sort(authorList, new Comparator<String>() {\r\n public int compare(String author1, String author2) {\r\n return author1.compareToIgnoreCase(author2);\r\n }\r\n });\r\n\r\n return authorList;\r\n }", "private static List<String> sort(String a)\n {\n String temp;\n List<String> list = new ArrayList<String>();\n for(int t = 0; t < a.length(); t++)\n {\n list.add(\"\"+a.charAt(t));\n }\n for(int i = 1; i < list.size(); i++)\n {\n for(int j = i ; j > 0; j--)\n {\n if(list.get(j).charAt(0) < list.get(j-1).charAt(0))\n {\n temp = list.get(j);\n list.set(j,list.get(j-1));\n list.set(j-1,temp);\n }\n \n }\n }\n return list;\n }", "public static void main(String[] args) {\n\t\tAnagrams q = new Anagrams();\r\n\t\tString s1 = \"abcd\";\r\n\t\tString s2 = \"acbd\";\r\n\t\tString s3 = \"bcad\";\r\n\t\tString s4 = \"acb\";\r\n\t\tString s5 = \"abc\";\r\n\t\tString s6 = \"abd\";\r\n\t\tString s7 = \"abdc\";\r\n\t\tString s8 = \"ac\";\r\n\t\t//ArrayList<String> result = new ArrayList<String>();\r\n\t\tString[] strs = {s1,s2,s3,s4,s5,s6,s7,s8};\r\n\r\n\t\tList<String> list = q.anagrams(strs);\r\n\t\t//char[] charArray = {'h','e','l','l','o'};\r\n\t\tfor(String s:list){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\t//System.out.println(charArray.toString());\r\n\t}", "public void toLower() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (char c : seq) {\n newSeq.add(Character.toLowerCase(c));\n }\n seq = newSeq;\n }", "public static void fillPossiblesWithResults()\n\t{\n\t\tfor(int i = 0; i < nextMatch; i++)\n\t\t{\n\t\t\tpossibleResults[i] = new String[1];\n\t\t\tpossibleResults[i][0] = results[i];\n\t\t}\n\t}", "public static void main(String[] args) {\n\n for(char ch='A'; ch<='Z'; ch++){\n System.out.print(ch+\" \");\n }\n System.out.println();\n\n //backword--descending\n for (char ch='Z'; ch>='A'; ch--){\n System.out.print(ch+\" \");\n }\n System.out.println();\n\n //lower case\n for(char ch ='a'; ch<='z'; ch++){\n System.out.print(ch+ \" \");\n }\n\n\n\n }", "public static boolean anagram() {\n\t\tboolean isAnagram = false;\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tSystem.out.println(\"enter first string\");\n\t\tString string1 = scanner.nextLine();\n\t\tSystem.out.println(\"enter second string\");\n\t\tString string2 = scanner.nextLine();\n\t\tString space1 = string1.replaceAll(\" \",\"\");\n\t\tString space2 = string2.replaceAll(\" \",\"\");\n\t\tString lower1 = string1.toLowerCase();\n\t\tString lower2 = string2.toLowerCase();\n\t\tchar[] array1 = space1.toCharArray();\n\t\tchar[] array2 = space2.toCharArray();\n\t\t\n\t\t\n\t\tif (array1.length == array2.length) \n\t\t{\n\t\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\t\tfor (int j = i+1; j < array1.length; j++) {\n\t\t\t\t\tif (array1[i] > array1[j]) {\n\t\t\t\t\t\tchar temp = array1[i];\n\t\t\t\t\t\tarray1[i] = array1[j];\n\t\t\t\t\t\tarray1[j] = temp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\t\tfor (int j = i+1; j < array1.length; j++) {\n\t\t\t\t\tif (array2[i] > array2[j]) {\n\t\t\t\t\t\tchar temp = array2[i];\n\t\t\t\t\t\tarray2[i] = array2[j];\n\t\t\t\t\t\tarray2[j] = temp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\t\tfor (int j = i; j <=i; j++) {\n\t\t\t\t\tif (array1[i] == array2[j]) {\n\t\t\t\t\t\tcount++;\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\tif (count == array1.length) {\n\t\t\t\tisAnagram=true;\n\n\t\t\t} \n\t\t\telse {\n\t\t\t\tisAnagram = false;\n\n\t\t\t}\n\t\t} \n\t\telse \n\t\t{\n\t\t\tisAnagram = false;\n\t\t}\n\t\treturn isAnagram;\n\t}", "public static void main(String[] args) {\n\n\t\tString a = \"aabbbc\", b =\"cbad\";\n\t\t// a=abc\t\t\t\tb=cab\n\t\t\n\t\t\n\t\tString a1 =\"\" , b1 = \"\"; // to store all the non duplicated values from a\n\t\t\n\t\tfor(int i=0; i<a.length();i++) {\n\t\t\tif(!a1.contains(a.substring(i,i+1)))\n\t\t\t\ta1 += a.substring(i,i+1);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<b.length();i++) {\n\t\t\tif(!b1.contains(b.substring(i,i+1)))\n\t\t\t\tb1 += b.substring(i,i+1);\n\t\t}\n\t\t\t\t\n\t\tchar[] ch1 = a1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\t\n\t\tchar[] ch2 = b1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tArrays.sort(ch1);\n\t\tArrays.sort(ch2);\n\t\t\n\t\tSystem.out.println(\"=====================================================\");\n\t\t\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tString str1 = Arrays.toString(ch1);\n\t\tString str2 = Arrays.toString(ch2);\n\t\t\n\t\tif(str1.contentEquals(str2)) {\n\t\t\tSystem.out.println(\"true, they build out of same letters\");\n\t\t}else { \n\t\t\tSystem.out.println(\"fasle, there is something different\");\n\t\t}\n\t\t\n\n\t\t\n\t\t// SHORTER SOLUTION !!!!!!!!!!!!!!!!!!!!\n\t\t\n//\t\tString Str1 = \"aaaabbbcc\", Str2 = \"cccaabbb\";\n//\t\t\n//\t\tStr1 = new TreeSet<String>( Arrays.asList(Str1.split(\"\"))).toString();\n//\t\tStr2 = new TreeSet<String>( Arrays.asList(Str2.split(\"\"))).toString();\n//\t\tSystem.out.println(Str1.equals(Str2));\n//\t\t\n//\t\t\n\t\t\n}", "@Test (priority = 1)\n public void sortAlphabetical(){\n\n for (int i = 0; i < allDepartments.getOptions().size()-1; i++) {\n String current = allDepartments.getOptions().get(i).getText();\n String next = allDepartments.getOptions().get(i+1).getText();\n\n System.out.println(\"comparing: \" + current + \" with \"+ next);\n\n Assert.assertTrue(current.compareTo(next)<=0);\n\n }\n }", "private void sortByLastName() {\n //selection sort\n for (int i = 0; i < size - 1; i++) {\n int alphaSmallerIndex = i;\n for (int j = i + 1; j < size; j++)\n if (accounts[j].getHolder().getLastNameFirstName().compareTo(accounts[alphaSmallerIndex].getHolder().getLastNameFirstName()) < 0) {\n alphaSmallerIndex = j;\n }\n Account acc = accounts[alphaSmallerIndex];\n accounts[alphaSmallerIndex] = accounts[i];\n accounts[i] = acc;\n }\n }", "private void fillSet() {\r\n\t\tString regex = \"\\\\p{L}+\";\r\n\t\tMatcher matcher = Pattern.compile(regex).matcher(body);\r\n\t\twhile (matcher.find()) {\r\n\t\t\tif (!matcher.group().isEmpty()) {\r\n\t\t\t\twords.add(matcher.group());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "static int makeAnagram(String a, String b) {\n int[] letters = new int[26];\n\n for (char c: a.toCharArray()){\n letters[c-'a']++;\n }\n\n for (char c: b.toCharArray()){\n letters[c-'a']--;\n }\n\n int sum = 0;\n\n for (int x:letters){\n sum+=Math.abs(x);\n }\n return sum;\n\n }", "public ArrayList<String> anagrams(String[] strs) {\n HashMap<String, ArrayList<String>> rec=new HashMap<String,ArrayList<String>>();\n ArrayList<String> ans=new ArrayList<String>();\n if(strs.length==0)return ans;\n for(int i=0;i<strs.length;i++){\n char[] key=strs[i].toCharArray();\n Arrays.sort(key);\n String newkey=new String(key);\n if(rec.containsKey(newkey)){\n rec.get(newkey).add(strs[i]);\n }\n else{\n ArrayList<String> ad=new ArrayList<String>();\n ad.add(strs[i]);\n rec.put(newkey,ad);\n }\n }\n for(ArrayList<String> value:rec.values()){\n if(value.size()>1)ans.addAll(value);\n }\n return ans;\n }", "@Test\n public void testMatch()\n {\n\n List<Match> matches;\n String password;\n PasswordMatcher matcher = new SpacialMatcher();\n\n password = \"aw3ennbft6y\";\n matches = matcher.match(configuration, password);\n\n assert matches.get(0).getToken().equals(\"aw3e\");\n assert matches.get(1).getToken().equals(\"ft6y\");\n assert SpacialMatch.class.cast(matches.get(0)).getShiftedNumber() == 0;\n assert SpacialMatch.class.cast(matches.get(1)).getShiftedNumber() == 0;\n assert SpacialMatch.class.cast(matches.get(0)).getTurns() == 2;\n assert SpacialMatch.class.cast(matches.get(1)).getTurns() == 2;\n\n\n password = \"aW3ennbfT6y\";\n matches = matcher.match(configuration, password);\n\n assert matches.get(0).getToken().equals(\"aW3e\");\n assert matches.get(1).getToken().equals(\"fT6y\");\n assert SpacialMatch.class.cast(matches.get(0)).getShiftedNumber() == 1;\n assert SpacialMatch.class.cast(matches.get(1)).getShiftedNumber() == 1;\n assert SpacialMatch.class.cast(matches.get(0)).getTurns() == 2;\n assert SpacialMatch.class.cast(matches.get(1)).getTurns() == 2;\n\n\n password = \"h\";\n matches = matcher.match(configuration, password);\n\n assert matches.isEmpty();\n\n\n password = \"hl5ca\";\n matches = matcher.match(configuration, password);\n\n assert matches.isEmpty();\n }", "public List<String> getSortedResults() {\r\n\t\tList<String> subset;\r\n\t\tif (filter == null) {\r\n\t\t\tsubset = allWords;\r\n\t\t} else {\r\n\t\t\tsubset = getFilteredWords();\r\n\t\t}\r\n\t\tsortResults(subset);\r\n\t\tint wordCount = Math.min(subset.size(), wordLimit);\r\n\t\tArrayList<String> result = new ArrayList<String>(wordCount);\t\r\n\t\tresult.addAll(subset.subList(0, wordCount));\r\n\t\treturn result;\r\n\t}", "public List<List<String>> groupAnagrams(String[] strs) {\n \n int len = strs.length;\n Hashtable<String, List<String>> anagrams = new Hashtable<>();\n \n for(int i=0; i<len; i++){\n char[] sorted = strs[i].toCharArray(); \n Arrays.sort(sorted);\n String key = String.valueOf(sorted);\n List<String> temp = new ArrayList<>();\n \n if(anagrams.containsKey(key)){\n temp = anagrams.get(key);\n \n }\n temp.add(strs[i]);\n anagrams.put(key, temp);\n }\n \n \n List<List<String>> answer = new ArrayList<>();\n \n for(List<String> item: anagrams.values() ){\n answer.add(item);\n }\n \n return answer;\n \n }", "public void strComp() {\n\t\tSystem.out.printf(\"total word: %d\", userstring.size());\n\t\tint i = 0, j = 0, k = 0;\n\t\twhile (i < userstring.size() ) {\n\t\t\tif (userstring.get(i++).equalsIgnoreCase(masterString.get(j++))) {\n\t\t\t\t// user said correct word. update the array and total number of\n\t\t\t\t// matches\n\t\t\t\tmatchValues[k] = true;\n\t\t\t\ttotalCorrectMatches++;\n\t\t\t} \n\t\t\tk++;\n\t\t}\n\n\t}", "@Override\n public LinkedList<String> orderAlphabetically(){\n LinkedList<String> stringLL = super.orderAlphabetically();\n stringLL.add(\"Years Until Tenure: \" + m_yearsUntilTenure);\n Collections.sort(stringLL);\n return stringLL;\n }", "public static void main(String[] args) throws Exception {\n java.io.File threeLetterFile = new java.io.File(\"three-letter-words.txt\");\n \n //create custom SearchArray object with my search Methods\n threeletterwords.SearchArray search = new SearchArray();\n \n //create Scanner objects\n Scanner loadList = new Scanner(threeLetterFile);\n Scanner input = new Scanner(System.in);\n \n //declare arrays\n String[] threeLetterList = new String[1012];\n char[] startWordArray = new char[3];\n char[] finalWordArray = new char[3];\n char[] wordHolderArray = new char[3];\n char[] partialMatchArray = new char[3];\n char[] firstTwoArray = new char[2];\n char[] lastTwoArray = new char[2];\n \n //declare String Variables\n String startWord;\n String finalWord;\n String wordHolder;\n String partialMatch;\n String firstTwoHolder;\n String lastTwoHolder;\n \n //initialize boolean variables\n boolean wordCheck = true;\n boolean partialCheck = false;\n boolean firstTwoCheck = true;\n \n //initialize integer variables\n \n int moves = 0;\n int index = 0;\n \n /*This while loop will transfer the three letter words to the array\n * threeLetterList\n */\n \n while(loadList.hasNextLine()){\n threeLetterList[index] = loadList.nextLine();\n threeLetterList[index] = threeLetterList[index].toLowerCase();\n index++;\n }\n loadList.close();\n \n \n \n /* These do ... while loops make sure user only inputs a valid 3 letter \n * word from the list. Will loop until user gets it right.\n */\n \n do{\n System.out.println(\"Type in a Three Letter word from the list\");\n startWord = input.next();\n if (startWord.length() != 3){\n System.out.println(\"Word must be three Letters!\");\n }\n if (search.searchList(threeLetterList, startWord) == false){\n System.out.println(\"Word must be in list!\");\n }\n }while(startWord.length() != 3 || search.searchList(threeLetterList, startWord) == false);\n \n do{\n System.out.println(\"Type in a Second Three Letter word from the list\");\n finalWord = input.next();\n if (finalWord.length() != 3){\n System.out.println(\"Word must be three Letters!\");\n }\n if (search.searchList(threeLetterList, finalWord) == false){\n System.out.println(\"Word must be in list!\");\n }\n }while(finalWord.length() != 3 || search.searchList(threeLetterList, finalWord) == false);\n \n //initialize strings and arrays\n System.arraycopy(startWord.toCharArray(), 0, startWordArray, 0, 3);\n System.arraycopy(startWord.toCharArray(), 0, wordHolderArray, 0, 3);\n System.arraycopy(finalWord.toCharArray(), 0, finalWordArray, 0, 3);\n System.arraycopy(startWord.toCharArray(), 0, firstTwoArray, 0, 2);\n System.arraycopy(startWord.toCharArray(), 1, lastTwoArray, 0, 2);\n wordHolder = String.copyValueOf(wordHolderArray);\n firstTwoHolder = String.copyValueOf(firstTwoArray);\n lastTwoHolder = String.copyValueOf(lastTwoArray);\n \n /*the following section of code is what makes the \"moves\"\n * \n */\n while(wordHolder.toLowerCase().contentEquals(finalWord.toLowerCase()) == false){ \n for(int k = 0; k < finalWordArray.length; k++){\n if(wordHolderArray[k] != finalWordArray[k]){\n wordHolderArray[k] = finalWordArray[k];\n wordHolder = String.copyValueOf(wordHolderArray);\n if (search.searchList(threeLetterList, wordHolder) == true){\n moves++;\n System.out.println(\"Move \" + moves + \":\\t\" + wordHolder);\n }\n else{\n wordHolderArray[k] = startWordArray[k];\n wordHolder = String.copyValueOf(wordHolderArray);\n }\n }\n }\n if(wordHolder.toLowerCase().contentEquals(startWord.toLowerCase())){\n \n }\n } \n }", "public int compareTo(FontMatch match) {\n/* 710 */ return Double.compare(match.score, this.score);\n/* */ }", "public static void main(String[] args) {\n String str1 = \"listen\";\n String str2 = \"silent\";\n for (int i = 0; i < str1.length(); i++) {\n str2 = str2.replaceFirst(\"\" + str1.charAt(i), \"\");\n }\n System.out.println(str2.isEmpty() ? \"Anagram\" : \"NOT Anagram\");\n\n/*\n //Approach Two:\n String str1 = \"listen\";\n String str2 = \"silent\";\n String str11 = \"\";\n String str22 = \"\";\n char[] ch1 = str1.toCharArray();\n char[] ch2 = str2.toCharArray();\n Arrays.sort(ch1);\n Arrays.sort(ch2);\n for (char each:ch1) {\n str11+=each;\n }\n for (char each:ch2) {\n str22+=each;\n }\n System.out.println(str11.equalsTo(str22)? \"Anagram\" : \"NOT Anagram\");\n\n */\n/*\n\n //Approach Three:\n public static boolean Same(String str12, String str2) {\n str1 = new TreeSet<String>(Arrays.asList( str1.split(\"\") ) ).toString( );\n str2 = new TreeSet<String>(Arrays.asList( str2.split(\"\") ) ).toString( );\n return str1.equals(str2); }\n*/\n }", "public static void refreshStringSearchResults() {\n\t\tString fullSearchText = stringSearchTextField.getText();\n\t\tint fullSearchTextLength = fullSearchText.length();\n\t\t//get rid of any spaces, they're only good for loosening length verification\n\t\tchar[] searchText = fullSearchText.replace(\" \", \"\").toLowerCase().toCharArray();\n\t\tint searchTextLength = searchText.length;\n\t\tif (searchTextLength < 1)\n\t\t\tstringSearchResultsList.setEnabled(false);\n\t\telse {\n\t\t\tstringSearchResultsListModel.removeAllElements();\n\t\t\tsearchableStringsFoundIndices.clear();\n\t\t\t//go through every string and see if it matches the input\n\t\t\tint searchableStringsLength = searchableStrings.length;\n\t\t\tchar startChar = searchText[0];\n\t\t\tfor (int i = 0; i < searchableStringsLength; i++) {\n\t\t\t\tchar[] resultString = searchableStrings[i];\n\t\t\t\tint resultStringLength = resultString.length;\n\t\t\t\t//it can't start at an index if it would go past the end of the string\n\t\t\t\tint maxSearchIndex = resultStringLength - searchTextLength;\n\t\t\t\t//keep track of stats so that we can sort\n\t\t\t\tboolean stringPasses = false;\n\t\t\t\tint matchedLength = Integer.MAX_VALUE;\n\t\t\t\t//first, look for this char in the string\n\t\t\t\tfor (int k = 0; k <= maxSearchIndex; k++) {\n\t\t\t\t\t//we found a spot where it starts\n\t\t\t\t\t//now go through and see if we found our string here\n\t\t\t\t\t//if we find one, keep looking through the string to see if we can find a shorter match\n\t\t\t\t\tif (resultString[k] == startChar) {\n\t\t\t\t\t\t//1 character strings always match single characters\n\t\t\t\t\t\tif (searchTextLength == 1) {\n\t\t\t\t\t\t\tstringPasses = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfor (int j = 1, newK = k + 1; newK < resultStringLength;) {\n\t\t\t\t\t\t\t\tif (searchText[j] == resultString[newK]) {\n\t\t\t\t\t\t\t\t\tj++;\n\t\t\t\t\t\t\t\t\t//if we got through all our characters, the string matches\n\t\t\t\t\t\t\t\t\tif (j == searchTextLength) {\n\t\t\t\t\t\t\t\t\t\tstringPasses = true;\n\t\t\t\t\t\t\t\t\t\tmatchedLength = Math.min(matchedLength, newK - k + 1);\n\t\t\t\t\t\t\t\t\t\tbreak;\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\tnewK++;\n\t\t\t\t\t\t\t\t//the string appears not to match, stop searching here\n\t\t\t\t\t\t\t\tif (newK - k >= fullSearchTextLength * 2)\n\t\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}\n\t\t\t\tif (stringPasses)\n\t\t\t\t\tsearchableStringsFoundIndices.add(new mark(i, matchedLength, resultStringLength));\n\t\t\t}\n\t\t\tif (searchableStringsFoundIndices.size() <= MAX_SEARCH_RESULTS) {\n\t\t\t\tstringSearchResultsList.setEnabled(true);\n\t\t\t\tCollections.sort(searchableStringsFoundIndices);\n\t\t\t\tfor (mark foundIndexStats : searchableStringsFoundIndices)\n\t\t\t\t\tstringSearchResultsListModel.addElement(allStringsListModel.get(foundIndexStats.searchableStringFoundIndex));\n\t\t\t} else {\n\t\t\t\tstringSearchResultsList.setEnabled(false);\n\t\t\t\tstringSearchResultsListModel.addElement(\"Please narrow your search to no more than \" +\n\t\t\t\t\tMAX_SEARCH_RESULTS + \" results (got \" + searchableStringsFoundIndices.size() + \")\");\n\t\t\t}\n\t\t}\n\t}", "private SortCaseOrder(String strName) { m_strName = strName; }", "@Override\npublic int compare(String first, String second) {\n\tint ans= Integer.compare(first.length(), second.length());\n\t//\n\t\n\t\n\t\n\t\n\treturn ans;\n\t//\n\t\n\t\n}", "public void insertionStringSort()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t int possibleIndex = j;\n\t\t \n\t\t while(possibleIndex>0 && AL.get(possibleIndex - 1).toString().compareTo(temp.toString())>0)\n\t\t {\n\t\t\t AL.set(possibleIndex, AL.get(possibleIndex -1));\n\t\t\t possibleIndex--;\n\t\t\t \n\t\t }\n\t\t \n\t\t AL.set(possibleIndex, temp);\n\t }\n \n }", "static int makeAnagram(String a, String b) {\r\n int[] charCount = new int[26];\r\n int deletions = 0;\r\n\r\n for(char c : a.toCharArray()) {\r\n charCount[c-'a'] += 1;\r\n }\r\n for(char c : b.toCharArray()) {\r\n charCount[c-'a'] -= 1;\r\n }\r\n for(int count : charCount) {\r\n deletions += Math.abs(count);\r\n }\r\n return deletions;\r\n }", "public static ArrayList<Integer> findAnagrams(String s, String p) {\r\n\t \t \r\n\t \t //write your code here\r\n\t\t if(s.length()<p.length()) {\r\n\t\t\t ArrayList<Integer> arr = new ArrayList<>();\r\n\t\t\t return arr;\r\n\t\t }\r\n\t\t ArrayList<Integer> result = new ArrayList<>();\r\n\t\t HashMap<Character,Integer> P = new HashMap<>();\r\n\t\t HashMap<Character,Integer> H = new HashMap<>();\r\n\t\t \r\n\t\t for(int i=0;i<p.length();i++) {\r\n\t\t\t char ch = p.charAt(i);\r\n\t\t\t if(!P.containsKey(ch)) {\r\n\t\t\t\t P.put(ch,1);\r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t P.put(ch,P.get(ch)+1);\r\n\t\t\t }\r\n\t\t }\r\n\t\t int start =0;\r\n\t\t int end=0;\r\n\t\t int mcount=0;\r\n\t\t for(int i=0;i<p.length();i++) {\r\n\t\t\t char ch = s.charAt(i);\r\n\t\t\t if(!H.containsKey(ch)) {\r\n\t\t\t\t H.put(ch,1);\r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t H.put(ch,H.get(ch)+1);\r\n\t\t\t }\r\n\t\t\t if(P.containsKey(ch)) {\r\n\t\t\t\t if(P.get(ch)>=H.get(ch)) {\r\n\t\t\t\t\t mcount++;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t end=i;\r\n\t\t }\r\n\t\t if(mcount==p.length()) {\r\n\t\t\t result.add(start);\r\n\t\t }\r\n\t\t while(end<s.length()-1) {\r\n\t\t\t char ch=s.charAt(start);\r\n\t\t\t int hfreq = H.get(ch)-1;\r\n\t\t\t H.put(ch,hfreq);\r\n\t\t\t if(H.get(ch)==0) {\r\n\t\t\t\t H.remove(ch);\r\n\t\t\t }\r\n\t\t\t int pfreq=0;\r\n\t\t\t if(P.containsKey(ch)) {\r\n\t\t\t\t pfreq=P.get(ch);\r\n\t\t\t }\r\n\t\t\t if(hfreq<pfreq) {\r\n\t\t\t\t mcount--;\r\n\t\t\t }\r\n\t\t\t ch=s.charAt(end+1);\r\n\t\t\t int hfreqend=0;\r\n\t\t\t if(H.containsKey(ch)) {\r\n\t\t\t\t hfreqend = H.get(ch);\r\n\t\t\t }\r\n\t\t\t hfreqend++;\r\n\t\t\t H.put(ch, hfreqend);\r\n\t\t\t int pfreqend=0;\r\n\t\t\t if(P.containsKey(ch)) {\r\n\t\t\t\t pfreqend = P.get(ch);\r\n\t\t\t }\r\n\t\t\t if(hfreqend<=pfreqend) {\r\n\t\t\t\t mcount++;\r\n\t\t\t }\r\n\t\t\t start++;\r\n\t\t\t end++;\r\n\t\t\t if(mcount==p.length()) {\r\n\t\t\t\t result.add(start);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t }\r\n\t\t return result;\r\n\t\t \r\n\t \t \r\n\t }", "public Set<Character> alphabet(){\n\t\tSet<Character> a = new HashSet<Character>();\n\t\ta.addAll(gauche.alphabet());\n\t\ta.addAll(droit.alphabet());\n\t\treturn a;\n\t}", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint k = input.nextInt();\n\t\tString s = input.next();\n\t\tString smallest = \" \";\n\t\tString largest = \" \";\n\t\tList<String> SubStringsOf_k_Length = new ArrayList<String>();\n\t\tfor(int i=0;(i+k)<=s.length();i++) {\n\t\t\tSubStringsOf_k_Length.add(s.substring(i,i+k));\n\t\t}\n//\t\tSystem.out.println(\"Before Sorting\");\n\t\tSystem.out.println(SubStringsOf_k_Length);\n\t\tSystem.out.println(SubStringsOf_k_Length.size());\n//\t\tCollections.sort(SubStringsOf_k_Length);\n//\t\tSystem.out.println(\"After Sorting\");\n//\t\tSystem.out.println(SubStringsOf_k_Length);\n\t\t\n//\t\tIterator itr = SubStringsOf_k_Length.iterator();\n//\t\t\n//\t\twhile(itr.hasNext()) {\n//\t\t\t\n//\t\t}\n\t\tString temp_largest = SubStringsOf_k_Length.get(0);\n\t\tString temp_smallest = SubStringsOf_k_Length.get(0);\n\t\tfor(int i=0;i<SubStringsOf_k_Length.size();i++) {\n\t\t\tif(temp_largest.compareTo(SubStringsOf_k_Length.get(i))>0 || temp_smallest.compareTo(SubStringsOf_k_Length.get(i))<0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor(int j=i+1;j<SubStringsOf_k_Length.size();j++) {\n\t\t\t\t\tif(SubStringsOf_k_Length.get(i).compareTo(SubStringsOf_k_Length.get(j))>0) {\n\t\t\t\t\t\tlargest = SubStringsOf_k_Length.get(i);\n\t\t\t\t\t\tsmallest=SubStringsOf_k_Length.get(j);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//smallest = SubStringsOf_k_Length.get(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp_largest = largest;\n\t\t\t\ttemp_smallest = smallest;\n\t\t\t\t\n\t\t\t}\t\n\t\t}\n\t\tSystem.out.println(largest);\n\t\tSystem.out.println(smallest);\n//\t\tfor(int i=1;i<subStrings_Of_k_Length.length;i++) {\n//\t\t\tSystem.out.println(subStrings_Of_k_Length[i-1]);\n//\t\t\tsmallest = subStrings_Of_k_Length[i-1];\n//\t\t\tif((subStrings_Of_k_Length[i].compareTo(smallest))<0) {\n//\t\t\t\tlargest = subStrings_Of_k_Length[i-1];\n//\t\t\t\tsmallest = subStrings_Of_k_Length[i];\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println(\"Smallest:\" +smallest);\n//\t\tSystem.out.println(\"Largest:\" +largest);\n\t}", "public static void searchZodiacLetter() {\n\t\t//String message = \"This is the Zodiac speaking. I am rather unhappy because you people will not wear some nice buttons. So I now have a little list, starting with the woeman + her baby that I gave a rather intersting ride for a couple howers one evening a few months back that ended in my burning her car where I found them.\";\n\t\tString message = \"San Francisco Chronicle S.F. Mon. Oct 5, 1970 Dear Editor, You'll hate me, but I've got to tell you. The pace isn't any slower! In fact it's just one big thirteenth 13 'Some of them fought it was horrible' P.S. THERE ARE REPORTS city police pig cops are closeing in on me. Fk I'm crackproof, What is the price tag now? Zodiac\";\n\t\t\n\t\t// try to anagram into portions of the Unabomber manifesto\n\t\tStringBuffer corpus = FileUtil.loadSBFrom(\n\t\t\t\t\"/Users/doranchak/projects/zodiac/github/zodiac-killer-ciphers/docs/corpus/unabomber-manifesto.txt\");\n\t\t\n\t\tString[] tokens = FileUtil.tokenizeAndConvert(corpus.toString());\n\t\tsearch(tokens, message, 50, true);\n\t}", "public HashMap<String, Integer> getOrder(){\n\t\t\n\t\tHashMap<String, Integer> hm2 = getHashMap();\n\t\n\t\tArrayList fq = new ArrayList<>();\n\t\t\n\t\tHashMap<String, Integer> top10 = new HashMap<String, Integer>();\n\t\t\n\t\tfor(String key : hm2.keySet()){\n\t\t\t\n\t\t\tfq.add(hm2.get(key));\n\t\t}\n\t\t// use Collection to get the order of frequency\n\t\tCollections.sort(fq);\n \tCollections.reverse(fq);\n \t\n \tfor(int i = 0; i<11; i++){\n \t\t\n \t\tfor(String key : hm2.keySet()){\n \t\t// make sure the word not equals to balck space\n \t\tif(hm2.get(key) == fq.get(i) && !key.equals(\"\") ){\n \t\t\t\n \t\t top10.put(key, hm2.get(key));\n \t\t\t\t\n \t\t}\n \t}\t\n\t}\n\t\treturn top10;\n\t}", "@Override\n public void evaluate(Word word, ResultStore<WordWithKey> resultStore) {\n findAlphabeticalSequences(word, resultStore, FORWARDS);\n findAlphabeticalSequences(word, resultStore, BACKWARDS);\n }", "public static void main(String[] args) {\n\t\tString str=\"army\";\n\t\tString str1=\"mary\";\n\t\tchar arr[]=str.toLowerCase().toCharArray();\n\t\tchar arr1[]=str1.toLowerCase().toCharArray();\n\t\tArrays.sort(arr);\n\t\tArrays.sort(arr1);\n\t\tif(Arrays.equals(arr, arr1))\n\t\t{\n\t\t\tSystem.out.println(\"given strings are anagrams\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"given strings are not anagram\");\n\t\t}\n\t\t\n\n\t}", "public void updateResults(String s) {\n ArrayList<String> tempName = new ArrayList<String>();\n ArrayList<String> tempUid = new ArrayList<String>();\n for(int i=0;i<userName.size();i++){\n if(userName.get(i).toLowerCase().contains(s.toLowerCase())){\n tempName.add(userName.get(i));\n tempUid.add(uid.get(i));\n }\n }\n userName.clear();\n uid.clear();\n userName.addAll(tempName);\n uid.addAll(tempUid);\n }", "public static void main(String[] args) {\n\t\tString abd = \"The lines are here to sort.\";\n\t\tabd = abd.toLowerCase();\n\t\tabd = abd.substring(0, abd.length()-1);\n\t\tString[] abdArr = abd.split(\" \");\n\t\tList<String> list = Arrays.asList(abdArr);\n\t\tCollections.sort(list, new compare());\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tString fir = list.get(0);\n\t\t//list.remove(0);\n\t\tsb.append(fir.substring(0, 1).toUpperCase() + fir.substring(1) + \" \");\n\t\tfor(int i=1; i< list.size(); i++){\n\t\t\tsb.append(list.get(i) + \" \" );\n\t\t}\n\t\tString result = sb.toString();\n\t\tresult = result.substring(0, result.length()-1);\n\t\tresult = result+ \".\";\n\t\tSystem.out.println(result);\n\t\t\n\t}", "public List<List<String>> groupAnagrams(String[] strs) {\n Map<Map<Character, Integer>, List<String>> keyToAnagrams = Arrays\n .stream(strs)\n .collect(\n Collectors.groupingBy(\n this::letterFrequency\n )\n );\n return new ArrayList<>(keyToAnagrams.values());\n }", "public void composeAlphabet() {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter a name for this alphabet: \");\n\t\tString alphabetName = scanner.nextLine();\n\t\tSystem.out.println(\"Please enter the location of the window dumps \" + \"(relative to the current folder): \");\n\t\tString alphabetLoc = scanner.nextLine();\n\t\tscanner.close();\n\t\tcomposeAlphabet(alphabetName, alphabetLoc);\n\t}", "public static void main(String[] args) {\n\t\tfindCaps(\"Hello\");\r\n\t\tfindCaps(\"hello\");\r\n\t\treplaceCaps(\"HeLlO\");\r\n\t\tadd10(\"10\");\r\n\t}", "String LetterCount(String str) {\n String strr1[]=str.split(\" \");\n String strr[]= strr1;\n String strt=\"\";\n int count=0;\n int count1=0;\n int maxi=0;\n \n for(int i=0; i<strr.length; i++){\n char[] crr=strr[i].toCharArray();\n java.util.Arrays.sort(crr);\n strt=new String(crr);\n for(int j=0; j<strt.length()-1; j++){\n while(strt.charAt(j)==strt.charAt(j+1) && j<strt.length()-2){\n count++;\n j++;\n }\n }\n if(count>count1){\n count1=count;\n maxi=i;\n }\n count=0;\n }\n return strr1[maxi];\n \n }", "public void allCombinations(){\n // Sorts the AI's rack\n combinations = new ArrayList<ArrayList<Piece>>();\n ArrayList<Piece> pieces = playersPieces;\n this.removeNulls(numOfNulls());\n for (int index = 0; index < pieces.size();index++){\n Piece temp = pieces.get(index);\n char compareWord = pieces.get(index).theLetter();\n int lowerIndex = index-1;\n\n while (lowerIndex >=0 && compareWord < pieces.get(lowerIndex).theLetter()){\n pieces.set(lowerIndex+1, pieces.get(lowerIndex));\n lowerIndex--;\n }\n\n pieces.set(lowerIndex+1,temp);\n }\n \n // Makes a list of all combinations through the recursive combine method\n combine(pieces, 0, new ArrayList<Piece>());\n insertionSort(combinations);\n combinations.remove(0);\n \n return;\n }", "@Override\n\tpublic int compare(Letter o1, Letter o2) {\n\t\treturn o2.getWidth() - o2.getWidth();\n\t}", "static int makeAnagram(String a, String b) {\n int[] arr1 = new int[26];\n int[] arr2 = new int[26];\n\n for (int i = 0; i < a.length() ; i++) {\n arr1[a.charAt(i) - 'a']++;\n }\n\n for (int i = 0; i < b.length(); i++)\n arr2[b.charAt(i) - 'a']++;\n\n int times = 0;\n for (int i = 0; i < 26; i++)\n times += Math.abs(arr1[i] - arr2[i]);\n\n\n return times;\n }", "@Override\n public int compare(String o1, String o2) {\n return Integer.compare(o2.length(), o1.length());\n }", "public static void main(String[] args) {\n\t\tString[] abc = {\"abc\",\"aab\",\"bbc\",\"ccd\",\"eef\",\"efg\",\"hij\"};\r\n\t\tint length = abc.length;\r\n\t\tfor(int i=0;i<length;i++){\r\n\t\t\tfor(int j=i;j<length;j++){\r\n\t\t\t\tif(abc[i].compareTo(abc[j])>1){\r\n\t\t\t\t\tString temp = abc[i];\r\n\t\t\t\t\tabc[i] = abc[j];\r\n\t\t\t\t\tabc[j]= temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tList<String> xyz = new ArrayList<String>();\r\n\t\txyz.add(\"abc\");\r\n\t\txyz.add(\"aab\");\r\n\t\txyz.add(\"bbc\");\r\n\t\txyz.add(\"ccd\");\r\n\t\txyz.add(\"ccd\");\r\n\t\txyz.add(\"eef\");\r\n\t\txyz.add(\"efg\");\r\n\t\txyz.add(\"hij\");\r\n\t\tCollections.sort(xyz);\r\n\t\tfor(Iterator i = xyz.iterator();i.hasNext();){\r\n\t\t\tSystem.out.println(i.next());\r\n\t\t}\r\n\t\t\r\n\t}", "public List<String> letterCombinations(String digits) {\n List<String> bags = new ArrayList<>();\n\n Map<Character, String> keys = new HashMap<>();\n keys.put('2', \"abc\");\n keys.put('3', \"def\");\n keys.put('4', \"ghi\");\n keys.put('5', \"jkl\");\n keys.put('6', \"mno\");\n keys.put('7', \"pqrs\");\n keys.put('8', \"tuv\");\n keys.put('9', \"wxyz\");\n\n lc(digits, 0, bags, \"\", keys);\n return bags;\n }", "private static void Print(String s, AnagramDictionary ADictionary) {\r\n\t\tRack r = new Rack(s);\r\n\t\tArrayList<String> Subsets = r.getAllSubsets();\r\n\t\tArrayList<Word> words = new ArrayList<Word>();\r\n\t\tfor (int i = 0; i < Subsets.size(); i++) {\r\n\t\t\tArrayList<String> Anagrams = ADictionary.getAnagramsOf(Subsets.get(i));\r\n\t\t\tfor (int j = 0; j < Anagrams.size(); j++) {\r\n\t\t\t\twords.add(new Word(Anagrams.get(j)));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Sorting\r\n\t\tCollections.sort(words, new Comparator<Word>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Word i, Word j) {\r\n\t\t\t\tScoreTable table = new ScoreTable();\r\n\t\t\t\tString iString = i.toString();\r\n\t\t\t\tString jString = j.toString();\r\n\t\t\t\t// For words with the same scrabble score\r\n\t\t\t\tif (table.getScore(jString) - table.getScore(iString) == 0) {\r\n\t\t\t\t\tint trials = (jString.length() > iString.length()) ? iString.length() : jString.length();\r\n\t\t\t\t\tfor (int t = 0; t < trials; t++) {\r\n\t\t\t\t\t\tif (iString.charAt(t) != jString.charAt(t)) {\r\n\t\t\t\t\t\t\treturn iString.charAt(t) - jString.charAt(t);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t\t// For words with the different scrabble score\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn table.getScore(j.toString()) - table.getScore(i.toString());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Print out\r\n\t\tSystem.out.println(\"We can make \" + words.size() + \" words from \\\"\" + s + \"\\\"\");\r\n\t\tif (words.size() > 0) {\r\n\t\t\tSystem.out.println(\"All of the words with their scores (sorted by score):\");\r\n\t\t}\r\n\t\tfor (int i = 0; i < words.size(); i++) {\r\n\t\t\tWord word = words.get(i);\r\n\t\t\tScoreTable table = new ScoreTable();\r\n\t\t\tSystem.out.println(table.getScore(word.toString()) + \": \" + word.toString());\r\n\t\t}\r\n\t}", "public void Q5_7() {\n\t\tString[] strings = {\"Marketing\", \"Boss of director\", \"waiting room\", \"Accounting\", \"Sale\"};\n\t\tString[] str1 = strings[0].split(\"\\\\s+\");\n\t\tString[] str2 = strings[1].split(\"\\\\s+\");\n\t\tString[] str3 = strings[2].split(\"\\\\s+\");\n\t\tString[] str4 = strings[3].split(\"\\\\s+\");\n\t\tString[] str5 = strings[4].split(\"\\\\s+\");\n\t\t\n\t\tfor (int i = 0; i < strings.length - 1; i++) {\n\t\t\tfor (int j = i + 1; j < strings.length; j++) {\n\t\t\t\tif(strings[i].charAt(0) > strings[j].charAt(0)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\t\t\n\t}", "public static void main(String[] args) {\n\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"\\n\\nEnter the string to find all possible arrangements (Eg : 'xyz', 'pals', 'palsj' )\\n\\n\");\n\t\t\n\t\tString str = scan.nextLine();\n\t\tscan.close();\n\n\t\tchar[] chArr = str.toCharArray();\n\t\tchar[] temp1 = new char[chArr.length];\n\n\t\ttemp1 = chArr;\n\n\t\tint len = chArr.length;\n \n \n\t\tfor (int cnt = 0; cnt < len; cnt++) {\n\t\t\t\n\t\t\tSystem.out.println(\"letter : \" + temp1[0]);\n\n\t\t\t\n\t\t\tfor (int i = 1; i < len; i++) {\n\n\t\t \ttemp1 = printString(temp1); // to print the first swap\n\t\t\t}\n\n\t\t\ttemp1 = moveString1(temp1, 0);\n\n \n\t\t}\n\n\t}", "public List<List<String>> groupAnagramsApproach2(String[] strs) {\n\t\tif (strs.length == 0) return new ArrayList();\n\t\tMap<String, List> ans = new HashMap<String, List>();\n\t\tint[] count = new int[26];\n\t\tfor (String s : strs) {\n\t\t\tArrays.fill(count, 0);\n\t\t\tfor (char c : s.toCharArray()) count[c - 'a']++;\n\n\t\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\tsb.append('#');\n\t\t\t\tsb.append(count[i]);\n\t\t\t}\n\t\t\tString key = sb.toString();\n\t\t\tif (!ans.containsKey(key)) ans.put(key, new ArrayList());\n\t\t\tans.get(key).add(s);\n\t\t}\n\t\treturn new ArrayList(ans.values());\n\t}", "public void step3(){\n\n Collections.sort(names,(String a, String b) -> a.compareTo(b));\n }", "@Override\n public int compareTo(@Nonnull Letter other) {\n return ComparisonChain.start().compare(this.getContent(), other.getContent()).result();\n }", "public String[] sortingwords(String p1)\n {\n String[] splitedword;\n splitedword = p1.split(\"\\\\s\");\n //splits the string\n\n for (int i = 0; i < splitedword.length; i++)\n {\n for (int j = i + 1; j < splitedword.length; j++)\n {\n if (splitedword[i].compareTo(splitedword[j]) > 0)\n {\n String temp = splitedword[i];\n splitedword[i] = splitedword[j];\n splitedword [j] = temp;\n }\n }\n }\n return splitedword;\n // return splited word\n }", "public String alphabeticalTitle(String title){\n if ( title.toLowerCase().startsWith(\"the \") ) {\n \t String titlePrefix = title.substring(0, 3);\n \t String titleSuffix = title.substring(4, title.length());\n \t title = titleSuffix + \", \" + titlePrefix;\n \t }\n\t\t return title;\n\t }", "public static void main(String[] args) {\n\t\tStringBuilder sb=new StringBuilder();\n\t\tString str=\"xheixhixhi\";\n\t\tint x=0;\n\t\tfor(int i=0;i<str.length();i++)\n\t\t{\n\t\t\tif(str.charAt(i)=='x')\n\t\t\t\tx++;\n\t\t\n\t\t\telse\n\t\t\t\tsb.append(str.charAt(i));\n\t\t}\n\t\tfor(int i=0;i<x;i++)\n\t\t\tsb.append('x');\n\t\tSystem.out.println(sb);\n\t\t\n\t\tString str1=\"xxxyyy\";\n\t\tStringBuffer sb1=new StringBuffer(str1);\n\t\tSystem.out.println(sb1.toString());\n\t\tfor(int i=0;i<(str1.length());i++)\n\t\t{\n\t\t\tif(sb1.charAt(i)==sb1.charAt(i+1))\n\t\t\t{\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tsb1.insert(++i,'*');\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(sb1.toString());\n\t\t\n\t\t//anagram\n\t\tString s1=\"niveda\";\n\t\tString s2=\"Nivedas\";\n\t\tString s4=s2.toLowerCase();\n\t\tchar[] s3=s1.toCharArray();\n\t\tchar[] s5=s4.toCharArray();\n\t\tArrays.sort(s3);\n\t\tArrays.sort(s5);\n\t\tboolean result=Arrays.equals(s3, s5);\n\t\tSystem.out.println(\"result is \"+result);\n\t\t\n\t\t//check all digits\n\t\tString s=\"09779\";\n\t\tif (s.isEmpty())\n\t\t\tSystem.out.println(\"empty\");;\n\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\tint temp = s.charAt(i) - (int)'0';\n\t\tSystem.out.println(temp);\n\t\tif (temp < 0 || temp > 9)\n\t\t\tSystem.out.println(\"false\");\n\t\t\n\t\t}\n\n\t\tSystem.out.println(\"true\");\n\n\t\t//reverse a string\n\t\tString s6=\"niveda is\";\n\t\tString sb4=new StringBuffer(s6).reverse().toString();\n\t\tSystem.out.println(sb4);\n\t\t\n\t\tStringBuilder s7=new StringBuilder();\n\t\tchar[] c1=s6.toCharArray();\n\t\tfor(int i=c1.length-1;i>=0;i--)\n\t\t{\n\t\t\ts7.append(c1[i]);\n\t\t}\n\t\tSystem.out.println(s7);\n\t\t\n\t\t//replace with space\n\t\tString str5=\"xxx yyy\";\n\t\tStringBuilder sb6=new StringBuilder(str5);\n\t\tSystem.out.println(sb6.toString());\n\t\tfor(int i=0;i<(str5.length());i++)\n\t\t{\n\t\t\tif(sb6.charAt(i)==32)\n\t\t\t{\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tsb6.replace(i,i+1,\"%20\");\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(sb6.toString());\n\t\t\n\t\tString sentence=\"my name is niveda\";\n\t\tList< String> words = Arrays.asList(sentence.split(\"\\\\s\")); \n\t\tCollections.reverse(words); \n\t\t\n\t\tSystem.out.println(words);\n\t\tStringBuilder sb8 = new StringBuilder(sentence.length()); \n\t\t\n\t\tfor (int i = 0; i <=words.size() - 1; i++)\n\t\t{ \n\t\t\tsb8.append(words.get(i)); \n\t\t\t\n\t\tsb8.append(' ');\n\t\t}\n\t\tSystem.out.println(sb8.toString().trim());\n\t\t\n\t\tStringBuffer sb9=new StringBuffer(sentence);\n\t\tString sb10=sb9.reverse().toString();\n\t\tSystem.out.println(\"old \"+sb10.toString().trim());\n\t\t\n\t\tStringBuilder reverse = new StringBuilder(); \n\t\tString[] sa = sentence.trim().split(\"\\\\s\"); \n\t\tString newest=\"\";\n\t\tfor (int i = sa.length - 1; i >= 0; i--) \n\t\t{ \n\t\t\tString newword=sa[i]; \n\t\t\t//reverse.append(' '); \n\t\t\tString newstring=\"\";\n\t\t\tfor(int n=newword.length()-1;n>=0;n--)\n\t\t\t{\n\t\t\t\tnewstring=newstring+newword.charAt(n);\n\t\t\n\t\t\t}\n\t\t\tnewest=newest+newstring+\" \";\n\t\t} \n\t\tSystem.out.println( reverse.toString().trim());\n\t\tSystem.out.println(\"newest \"+newest);\n\t\tSystem.out.println(\"number of words in the string \"+sa.length);\n\n\t\t\n\t\t//reverse chars in the word in place\n\t\tString s11=\"my name is niveda\";\n\t\tString reversestring=\"\";\n\t\tString[] c11=s11.trim().split(\"\\\\s\");\n\t\tfor(int k=0;k<c11.length;k++)\n\t\t{\n\t\t\tString word=c11[k];\n\t\t\tString reverseword=\"\";\n\t\t\tfor(int m=word.length()-1;m>=0;m--)\n\t\t\t{\n\t\t\t\t\n\t\t\treverseword=reverseword+word.charAt(m);\n\t\t\t}\n\t\t\treversestring=reversestring+reverseword+\" \";\n\t\t}\n\t\t\n\t\tSystem.out.println( reversestring);\n\t}", "private void sortByLastName() { \r\n\t\tfor ( int i = 0; i < size-1; i++) {\r\n\t\t\tint minIndex = i; \r\n\t\t\tfor(int j = i + 1; j < size; j++) {\r\n\t\t\t\tif ( accounts[j].getHolder().getLname().compareTo(accounts[minIndex].getHolder().getLname()) < 0 ) { \r\n\t\t\t\t\tSystem.out.println(accounts[j].getHolder().getLname());\r\n\t\t\t\t\tminIndex = j;\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t\tAccount temp = accounts[minIndex];\r\n\t\t\taccounts[minIndex] = accounts[i];\r\n\t\t\taccounts[i] = temp;\r\n\t\t}\r\n\t\treturn;\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner sc=new Scanner(System.in);\r\n\t int n=sc.nextInt();\r\n\t ArrayList<String> listofar=new ArrayList<String>();\r\n\t for(int i=1;i<=n;i++)\r\n\t {\r\n\t \tlistofar.add(sc.next());\r\n\t \tCollections.sort(listofar);\r\n\t }\r\n\t //System.out.println(listofar);\r\n\t List<String> first = new ArrayList<String>(); \r\n List<String> second = new ArrayList<String>(); \r\n int size = listofar.size(); \r\n for (int i = 0; i < size / 2; i++) \r\n first.add(listofar.get(i)); \r\n for (int i = size / 2; i < size; i++) \r\n second.add(listofar.get(i));\r\n first.replaceAll(String::toUpperCase);\r\n System.out.println(first);\r\n System.out.println(second);\r\n first.addAll(second);\r\n System.out.println(first);\r\n\t sc.close();\r\n\t}", "public void orderAlphabet(){\n market.orderAlphabet();\n car = market.products;\n }", "@Test\n public void putAll() throws Exception {\n SortedSet<String> sortedNames = new TreeSet<>();\n sortedNames.add(\"Java\");\n sortedNames.add(\"SQL\");\n sortedNames.add(\"HTML\");\n sortedNames.add(\"CSS\");\n int counter = underTest.putAll(sortedNames);\n assert (counter == 4);\n }", "private void insertionSort(ArrayList<ArrayList<Piece>> combinations2) {\n for (int index = 1; index < combinations2.size(); index++) {\n ArrayList<Piece> compareWord = combinations2.get(index);\n\n int lowerIndex = index-1;\n\n while (lowerIndex >=0 && compareWord.size()<combinations2.get(lowerIndex).size()){\n combinations2.set(lowerIndex+1, combinations2.get(lowerIndex));\n lowerIndex--;\n }\n\n combinations2.set(lowerIndex+1,compareWord);\n }\n }" ]
[ "0.69396436", "0.65091705", "0.6005988", "0.5941149", "0.5921374", "0.57800984", "0.5709244", "0.5587424", "0.55082715", "0.55020934", "0.5436293", "0.53636056", "0.53230685", "0.5307376", "0.5281779", "0.5272742", "0.5214402", "0.5211972", "0.5205541", "0.51939833", "0.51917654", "0.51772255", "0.51710963", "0.51647425", "0.5161569", "0.51517695", "0.5137713", "0.51316655", "0.5097774", "0.50895494", "0.50847185", "0.5074098", "0.5072036", "0.50551206", "0.50467354", "0.5026495", "0.50187457", "0.5007143", "0.5004488", "0.49988106", "0.49917904", "0.4990065", "0.49862772", "0.49843693", "0.49825525", "0.49779853", "0.49763826", "0.497479", "0.49638072", "0.49629933", "0.49481514", "0.49472988", "0.49468538", "0.49413022", "0.4935254", "0.49346405", "0.4926556", "0.49113426", "0.4909887", "0.49053276", "0.489908", "0.4895518", "0.48950526", "0.4891737", "0.48860613", "0.4881876", "0.48756337", "0.48691997", "0.48691717", "0.4867709", "0.48627976", "0.4860951", "0.48608848", "0.48590964", "0.48554334", "0.4851641", "0.48450017", "0.48449954", "0.4842718", "0.4834763", "0.48241076", "0.48209277", "0.48195586", "0.4815037", "0.48132804", "0.48128712", "0.48126036", "0.48085883", "0.4807472", "0.48027676", "0.4801893", "0.47992828", "0.4794377", "0.47914928", "0.47888535", "0.4786444", "0.47854757", "0.47835317", "0.47813812", "0.47804296", "0.47789034" ]
0.0
-1
Metodo per la gestione dei comandi in input
public void startSocial() { Scanner scanner = new Scanner(System.in); System.out.println(Constants.Message.WELCOME_MESSAGE); System.out.println(Constants.Message.DO_ACTION_MESSAGE); while(scanner.hasNext()) { String command = scanner.nextLine(); CommandStrategy commandStrategy = chooseStrategy(command); if(commandStrategy != null) { commandStrategy.execute(command); } System.out.println(Constants.Message.DO_ACTION_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void soustraire() throws IOException {\n\t\tScanner clavier = new Scanner(System.in);\n\t\tint nb1, nb2, resultat;\n\t\tnb1 = lireNombreEntier();\n\t\tnb2 = lireNombreEntier();\n\t\tresultat = nb1 - nb2;\n\t\tSystem.out.println(\"\\n\\t\" + nb1 + \" - \" + nb2 + \" = \" + resultat);\n\t}", "public void intro(){Scanner teclado = new Scanner(System.in);\nSystem.out.println(\"Introduzca la unidad de medida a la que transformar \"\n + \"pies, cm o yardas\");\nSystem.out.println(\"o escriba salir si quiere volver al primer menu\");\nopcion=teclado.nextLine();}", "public static void main(String[] args) throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\n\n\n // De aqui \n int t=1;\n while(true){\n\n String datos[] = br.readLine().split(\"[ ]+\");\n\n int n = Integer.parseInt(datos[0]);\n int m = Integer.parseInt(datos[1]);\n\n if (n==0 & m==0){break;}\n\n char[][] field = new char[n][m];\n\n // Esta funcion esta Bien! \n\n for (int i = 0; i < n; ++i) {\n field[i] = br.readLine().toCharArray();\n }\n \n \n if (t>1){\n System.out.println();\n }\n System.out.println(\"Field\"+\" \"+\"#\"+t+\":\");\n \n convertidor(field, n, m);\n t++;\n \n }\n \n //Hasta aqui es Nuevo\n \n \n\n }", "public static void main(String[] args) {\n\t \t\n GestionQuestion question = new GestionQuestion();\t \n String[] tab;\n int alea = question.getRdmNumber(); \n \n Scanner sc = new Scanner(System.in);\n \n \n System.out.println(question.getQuestion());\n System.out.println(\"Duo Carre Hexa\");\n String str = sc.nextLine();\n// while(str.equals(\"Duo\") || str.compareTo(\"Carre\")!=0 || str.compareTo(\"Hexa\")!=0){\n// \tstr = sc.nextLine();\n// \tSystem.out.println(\"Vous avez tapé :\" + str);\n// \tSystem.out.println(\"Duo Carre Hexa\");\n// }\n \n if(str.compareTo(\"Duo\")==0){\n \tSystem.out.println(question.getQuestion());\n \ttab=question.getAleaObjectQuestion(alea).duo();\n \t\n }else if(str.compareTo(\"Carre\")==0){\n \tSystem.out.println(question.getQuestion());\n \ttab=question.getAleaObjectQuestion(alea).carre();\n }else{\n \tSystem.out.println(question.getQuestion());\n \ttab=question.getAleaObjectQuestion(alea).hexa();\n }\n for(int i=0; i<tab.length;i++){\n \tSystem.out.println(tab[i]);\n }\n int nb = sc.nextInt();\n String[] tabReponse;\n tabReponse = question.getAleaObjectQuestion(alea).getQuestionReponse();\n \n if(question.getAleaObjectQuestion(alea).bonneReponse(tabReponse[nb])){\n \tSystem.out.println(\"Bravo !\");\n }\n else{\n \tSystem.out.println(\"Faux !\");\n }\n\t}", "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"isminizi giriniz\");\n//\t\tString isim=scan.nextLine().toLowerCase();\n//\t\tSystem.out.println(\"soyadinizi giriniz\");\n//\t\tString soyisim=scan.nextLine().toLowerCase();\n//\t\tSystem.out.print(isim.substring(0, 1).toUpperCase()+isim.substring(1, isim.length()));\n//\t\tSystem.out.print(\" \" +soyisim.substring(0, 1).toUpperCase() +soyisim.substring(1, soyisim.length()));\n\n\t\t/// hocanin cozumu\n\t\t// int ikinciBasNok = isimSoyIsim.indexOf(\" \");\n// System.out.print(isimSoyIsim.substring(0,1).toUpperCase());\n// System.out.print(isimSoyIsim.substring(1, ikinciBasNok+1).toLowerCase());\n// System.out.print(isimSoyIsim.substring(ikinciBasNok+1, ikinciBasNok+2).toUpperCase());\n// System.out.println(isimSoyIsim.substring(ikinciBasNok+2).toLowerCase());\n\n\t\t/// Array ile cozum\n\t\tString isimSoyIsim = scan.nextLine();\n\t\t\n// 0/fedai 1/ocak //isimler.length => 2 - 1 1 != 1\n\t\tString[] isimler = isimSoyIsim.split(\" \");\n\n\t\tfor (int i = 0; i < isimler.length; i++) {\n\t\t\tisimler[i] = isimler[i].toLowerCase();\n\t\t\t\tif(isimler.length-1 != i ) //\n\t\t\tSystem.out.print(isimler[i].substring(0, 1).toUpperCase() + isimler[i].substring(1) + \" \");\n\t\t\t\telse\n\t\t System.out.print(isimler[i].substring(0,1).toUpperCase()+isimler[i].substring(1));\n\t\t}\nscan.close();\n\t}", "static int setCon(String input){\n if (input.equals(\"little\")||input.equals(\"1\")) return 1;\n if (input.equals(\"average\")||input.equals(\"2\"))return 2;\n if (input.equals(\"lot\") || input.equals(\"3\")) return 3;\n if (input.equals(\"manual\") || input.equals(\"4\")) return 4;\n throw new RuntimeException(\n \"Illigal second paramter on command line, use : <little,average,lot>\");\n }", "public static void afficherProduit() {\r\n Scanner myObj = new Scanner(System.in);\r\n System.out.print(\"Entrez le nom du produit ............................. \");\r\n String input = myObj.nextLine();\r\n int indice = Catalogue.chercher(input);\r\n if(indice == -1) {\r\n System.out.println(\"Le produit demandé n'est pas dans le catalogue\");\r\n } else {\r\n System.out.println(\"Le produit demandé : \" + Catalogue.getNom(indice) + \" est bien dans le catalogue\");\r\n }\r\n System.out.println();\r\n }", "static int lireNombreEntier() throws IOException {\n\t\tScanner clavier = new Scanner(System.in);\n\t\tSystem.out.print(\"\\n\\nEntrez le nombre : \");\n\t\tint nb = clavier.nextInt();\n\t\treturn nb;\n\t}", "public static void main(String[] args) throws IOException {\n BufferedReader br= new BufferedReader(new InputStreamReader(System.in));\r\n System.out.println(\" Escribe : \");\r\n String texto=br.readLine().toUpperCase();\r\n String alfabeto = \"ABCDEFGHIJKLMNÑOPQRSTUVWXYZ\";\r\n\r\n int[] recuento=new int[alfabeto.length()];\r\n contarLetra(texto,alfabeto,recuento);\r\n visualizarRecuento(alfabeto,recuento);\r\n\r\n }", "static void additionner() throws IOException {\n\t\tScanner clavier = new Scanner(System.in);\n\t\tint nb1, nb2, resultat;\n\t\tnb1 = lireNombreEntier();\n\t\tnb2 = lireNombreEntier();\n\t\tresultat = nb1 + nb2;\n\t\tSystem.out.println(\"\\n\\t\" + nb1 + \" + \" + nb2 + \" = \" + resultat);\n\t}", "@Override\n public void input() {\n super.input();\n Scanner sc = new Scanner(System.in);\n System.out.printf(\"Nhập số trang sách giáo khoa: \");\n amountPage = Integer.valueOf(sc.nextLine());\n System.out.printf(\"Nhập tình trạng sách giáo khoa: \");\n status = sc.nextLine();\n System.out.printf(\"Nhập số lượng mượn: \");\n amountBorrow= Integer.valueOf(sc.nextLine());\n }", "public static void main(String[] args) {\n String frase;\n String frase2 = \"\";//debe ser inicializada\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"Ingrese una frase\");\n frase = sc.nextLine();\n\n int i = 0;\n\n while (i < frase.length()) {//ou con for et if y else, los i++ estarian solo en el for\n if (frase.charAt(i) != ' ') {\n frase2 = frase2.concat(frase.substring(i, i + 1));\n } else {//el else solo pedia tranformar los espacios en alterisco que se hace solo con\n frase2 = frase2.concat(\"*\");//esto//y esto\n while (frase.charAt(i) == ' ') {\n i++;\n }\n frase2 = frase2.concat(frase.substring(i, i + 1));\n }\n i++;\n }//faltaria una primera condicion como en los 2 ejercicios precedentes pa que no imprima asteriscos antes de la 1era letra\n System.out.println(frase2);\n }", "String getInput();", "public static void main(String[] args) {\n\t\tScanner entrada = new Scanner(System.in);\n\t\tint numEntero;\n\t\tfloat numFlotante;\n\t\tchar caracter;\n\t\tString cadena;\n\t\t\n\t\tSystem.out.print(\"Ingrese un numero entero: \");\n\t\tnumEntero = entrada.nextInt();\n\t\tSystem.out.println(\"El numero ingresado es: \" + numEntero);\n\t\t\n\t\tSystem.out.print(\"Ingrese un numero float: \");\n\t\tnumFlotante = entrada.nextFloat();\n\t\tSystem.out.println(\"El numero ingresado es: \" + numFlotante);\n\t\t\n\t\t//CharaAt con indice 0 hace que el primer caracter ingresado sea \n\t\t//el que se va a guardar\n\t\tSystem.out.print(\"Ingrese un caracter: \");\n\t\tcaracter = entrada.next().charAt(0); \n\t\tSystem.out.println(\"El numero ingresado es: \" + caracter);\n\t\t\n\t\tSystem.out.print(\"Ingrese una cadena: \");\n\t\tcadena = entrada.next();\n\t\tSystem.out.println(\"El numero ingresado es: \" + cadena);\n\t\t\n\t\t\n\t\t\n\t}", "private static char readOperation() {\n\t\tOut.println();\n\t\tOut.print(\"Bitte Operation auswaehlen: (a, z, e, n, l, p, x): \");\n\n\t\tString line = In.readLine().trim();\n\t\t//Student (Simon Sternbauer): I have added a method to show all appointments by typing in \"p\"\n\t\twhile (line.length() == 0 || ! line.startsWith(\"a\") && ! line.startsWith(\"z\") && \n\t\t\t\t! line.startsWith(\"e\") && ! line.startsWith(\"n\") && \n\t\t\t\t! line.startsWith(\"l\") && ! line.startsWith(\"x\") &&\n\t\t\t\t! line.startsWith(\"p\")) {\n\t\t\t// wrong operation code, repeat input of operation code\n\t\t\tOut.println();\n\t\t\tOut.print(\" Falsche Eingabe! Bitte Eingabe wiederholen: (a, z, e, n, l, x): \");\n\t\t\t \n\t\t\tline = In.readLine().trim();\n\t\t}\n\t\treturn line.charAt(0);\n\t}", "public String elegirtipoqueso(){\n //es un metodo void, o string?\n \n Scanner entrada = new Scanner(System.in);\n int queso;\n System.out.println(\"Elije el queso que deseas\");\n System.out.println(\"1.- Parmesano\");\n System.out.println(\"2.- Mozzalera\");\n queso = entrada.nextInt();\n if (queso==1){\n \n Scanner entrada2 = new Scanner(System.in);\n System.out.println(\"¿Cuantas pizzas deses comprar?\");\n int valor2 = entrada2.nextInt();\n int tamano;\n int c1=75*valor2,m1=89*valor2,g1=112*valor2,f1=135*valor2;\n System.out.println(\"Elije el tamaño\");\n System.out.println(\"1.- Chica \"+c1/valor2+\"$\"); \n System.out.println(\"2.-Mediana \"+m1/valor2+\"$\"); \n System.out.println(\"3.-Grande \"+g1/valor2+\"$\");\n System.out.println(\"4.-Familiar \"+f1/valor2+\"$\");\n tamano = entrada2.nextInt();\n String t2 = String.valueOf(tamano);\n if (tamano==1){\n System.out.println(\"La pizza se corta en 4 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+c1+\"$\");\n }\n else if(tamano==2){\n System.out.println(\"La pizza se corta en 8 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+m1+\"$\");\n }\n else if(tamano==3){\n System.out.println(\"La pizza se corta en 12 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+g1+\"$\");\n }\n else if(tamano==4){\n System.out.println(\"La pizza se corta en 16 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+f1+\"$\");\n }\n return t2;\n }\n if (queso==2){\n Scanner entrada3 = new Scanner(System.in);\n int tamano2;\n System.out.println(\"¿Cuantas pizzas desea comprar?\");\n int valor2 = entrada3.nextInt();\n int c2=89*valor2,m2=115*valor2,g2=135*valor2,f2=175*valor2;\n System.out.println(\"Elije el tamaño\");\n System.out.println(\"1.- Chica \"+c2/valor2+\"$\"); \n System.out.println(\"2.-Mediana \"+m2/valor2+\"$\"); \n System.out.println(\"3.-Grande \"+g2/valor2+\"$\");\n System.out.println(\"4.-Familiar \"+f2/valor2+\"$\");\n tamano2 = entrada3.nextInt();\n String t2 = String.valueOf(tamano2);\n if (tamano2==1){\n System.out.println(\"La pizza se corta en 4 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+c2+\"$\");\n }\n else if(tamano2==2){\n System.out.println(\"La pizza se corta en 8 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+m2+\"$\");\n }\n else if(tamano2==3){\n System.out.println(\"La pizza se corta en 12 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+g2+\"$\");\n }\n else if(tamano2==4){\n System.out.println(\"La pizza se corta en 16 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+f2+\"$\");\n }\n return t2;\n }\n String q = String.valueOf(queso);\n return q;\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t \n\t\t//Chiede di introdurre nome e cognome\n\t\tSystem.out.println(\"Introduci nome :\");\n\t\tString nome = scan.next(); //qui il programma attende l'immissione dei dati\n\t\tSystem.out.println(\"introduci cognome:\");\n\t\tString cognome= scan.next(); \n\t\t//Chiede di introdurre la cittą\n\t\tSystem.out.println(\"Introduci cittą:\");\n\t\tString citta = scan.next(); \n\t\t \n\t\tSystem.out.println(\"Nome e cognome : \" + nome+\" \"+cognome);\n\t\tSystem.out.println(\"Cittą : \" + citta);\n\t\tscan.close();\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner lector= new Scanner(System.in);\n\t System.out.println(\"Escriu una frase, et donare info:\");\n\t \n\t String primera = lector.nextLine();\n\t int [] lala = new int[26];\n\t int contador = 0;\n\t \n\t for(int i=0;i<primera.length();i++){\n\t \tchar a = primera.charAt(i);\n\t \tfor (int j=0;j<abe.length();j++){\n\t \t\tchar e = abe.charAt(j);\n\t \t\tif(a==e){lala[j]=lala[j]+1;}\n\t \t}\n\t \n\t }\n\t \n\t for(int i=0;i<lala.length;i++){\n\t \t\tif(lala[i]!=0){\n\t \t\tchar e = abe.charAt(i);\n\t \t\tSystem.out.print(e+\" aparaeix: \");\n\t \t\n\t \tSystem.out.println(lala[i]+ \"vegades.\");}}\n\t }", "public String inseriscinome()\n {\n String nome;\n \n do\n {\n System.out.println(\"--Inserisci il nome utente--\");\n nome=input.nextLine();\n }\n while(nome.isEmpty());\n \n return nome;\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString operador = \"\";\n\t\tboolean bandeirinha = false;\n\t\t\n\t\t\n\t\t//Complete com a condicional necessária para sair deste laço\n\t\t//quando o usuario digitar o seu nome e seu email\n\n\t\tdo {\n\n\t\t\tSystem.out.print(\"Digite seu nome: \");\n\t\t\tString nome = sc.nextLine();\n\n\t\t\tSystem.out.print(\"Digite seu email: \");\n\t\t\tString email = sc.nextLine();\n\n\t\t\tif(nome.length() > 1 && email.length() > 1)\n\t\t\t\tbandeirinha = true;\t\n\n\t\t} while (_____________________);\n\n\n\t\twhile(operador != \"sair\") {\n\t\t\t\n\n\t\t\tSystem.out.print(\"Digite o operador matematico: \");\n\t\t\toperador = sc.next();\n\n\t\t\tSystem.out.print(\"Digite o primeiro numero: \");\n\t\t\tint b1 = Integer.parseInt(sc.next());\n\n\t\t\tSystem.out.print(\"Digite o segundo numero: \");\n\t\t\tint b2 = Integer.parseInt(sc.next());\n\n\t\t\tint resultado;\n\t\t\t\n\t\t\t//Identifique a condiçao que fará o switch não ser chamado\n\t\t\tif(_______________) {\n\n\t\t\t\t// O que será testado dentro deste switch ?\n\t\t\t\t//Alias, complete todos os casos possiveis\n\t\t\t\tswitch (_____) {\n\t\t\t\tcase \"+\":\n\t\t\t\t\tSystem.out.println(\"____________________\" + );\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-\":\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"*\":\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"/\":\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Você não selecionou uma opção valida\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private static String[] collectInput() {\n\t\tString command = sc.next();\n\t\tString i = sc.next();\n\t\tString destination = sc.next();\n\t\treturn new String[] { command, destination };\n\t\t\n\t}", "private void mostrarPorMarca() {\n Scanner leer = new Scanner(System.in);\n String marca; //marca a buscar\n int cont = 0;\n System.out.print(\"Introduce la marca de coche a buscar: \");\n marca = leer.next();\n\n System.out.print(\"Las posiciones con coches con esa marca son: \");\n\n for (int i = 0; i < this.coches.size(); i++) {\n if (coches.get(i).getMarca().equalsIgnoreCase(marca)) {\n if (cont != 0) {\n System.out.print(\", \");\n }\n System.out.print(i);\n cont = 1;\n }\n }\n System.out.println();\n }", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tScanner teclado= new Scanner(System.in);\r\n\t\t\r\n\t\tString pedido;\r\n\t\tint armz;\r\n\t\t\r\n\t\tSystem.out.println(\" Digite uma palavra \");\r\n\t\tpedido=teclado.nextLine();\r\n\t\t\r\n\t\tarmz=Contar2(pedido);\r\n\t\t\r\n\t\tSystem.out.println(\"QUANTIDADE DE CARACTERES ENCONTTRADOS \"+armz);\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n Scanner leitor = new Scanner(System.in);\n String primeiroNome = leitor.next();\n String segundoNome = leitor.next();\n\n primeiroNome = segundoNome+\" \"+primeiroNome;\n segundoNome = \"\";\n\n System.out.println(primeiroNome +\" \"+ segundoNome);\n }", "public static void main(String[] args) {\n\t\t Scanner scan = new Scanner (System.in);\n\t\t \n\t\t System.out.println(\"tam isminizi giriniz\");\n\t String tamisim = scan.nextLine();\n\t \n \n System.out.println(\"Yasinizi giriniz\");\n int yas = scan.nextInt();\n System.out.println(yas);\n \n System.out.println(\"Isminizın ilk harfini girin\");\n char ilkHarf = scan.next().charAt(0);\n System.out.println(ilkHarf);\n\t\t\n\t\t\n\t}", "public static void OrdenarNumeros(){\n\t\t//Variables\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tString tomar;\n\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese tres numeros numero\");\n\t\ta=reader.nextInt();\n\t\tb=reader.nextInt();\n\t\tc=reader.nextInt();\n\t\tif(a>b && b>c){\n\t\t\tTexto=a+\",\"+b+\",\"+c;\n\t\t}else if(a>c && c>b){\n\t\t\tTexto=a+\",\"+c+\",\"+b;\n\t\t}else if(b>a && a>c){\n\t\t\tTexto=b+\",\"+a+\",\"+c;\n\t\t}else if(b>c && c>a){\n\t\t\tTexto=b+\",\"+c+\",\"+a;\n\t\t}else if(c>a && a>b){\n\t\t\tTexto=c+\",\"+a+\",\"+b;\n\t\t}else if(c>b && b>a ){\n\t\t\tTexto=c+\",\"+b+\",\"+a;\n\t\t}\n\t\tSystem.out.println(Texto);\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner reader = new Scanner(System.in);\n System.out.print(\"Informe dois números: \");\n\n double primeiro = reader.nextDouble();\n double segundo = reader.nextDouble();\n System.out.print(\"Informe um operador (+, -, *, /): \");\n char operador = reader.next().charAt(0);\n double resultado;\n switch(operador)\n {\n case '+':\n resultado = primeiro + segundo;\n break;\n case '-':\n resultado = primeiro - segundo;\n break;\n case '*':\n resultado = primeiro * segundo;\n break;\n case '/':\n resultado = primeiro / segundo;\n break;\n\n default:\n System.out.printf(\"Erro! operador não está correto\");\n return;\n }\n System.out.printf(\"%.1f %c %.1f = %.1f\", primeiro, operador, segundo, resultado);\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\tScanner scan = new Scanner(System.in);\n\tSystem.out.println(\"lutfen bir cumle giriniz\");\n\tString cumle = scan.nextLine();\n\t\n\tSystem.out.println(\"Lutfen saymak istediginiz harfi giriniz\");\n\tString harf = scan.next().substring(0,1);//0.index dahil 1. index haric yani\n\t //ilk bas harfini aliyoruz\n\t\n\tint count = 0;\n\tint index = 0;//whileloop'un baslangici icin (baslangic variable)\n\t\n\twhile(index<cumle.length()) {//esitlik kullanmadigimiz icin length()demek\n\t\t\t\t\t\t\t\t//yeterli 0<cumle -1 oldugunu gosterir\n\t\t\n\t\t\n\t\tif(cumle.substring(index, index+1).equals(harf)) {\n\t\t\t\t\t\t//\t0\t\t1 -> 0. index'deki harfi olacak->a'ya esit mi\n\t\tcount++;\t\t// 1 2 -> 1. index'deki harfi olacak->a'ya esit mi\n\t\t\t\t\t\t// 2\t\t3 -> 2. index'deki harfi olacak->a'ya esit mi\n\t\t\t// Eger a'ya esitse count'umu 1 artiracak,degilse birsey yapmayacak\n\t\t\t\n\t\t}\n\t\tindex++;\n\t\t\n\t}\n\tSystem.out.println(\"cumlede \" + harf + \" harfi \" + count + \" defa kullanilmis\");\n\t\n\tscan.close();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "private Coche pedirDatosCoche() {\n Scanner leer = new Scanner(System.in);\n String matricula, marca, modelo;\n int km;\n Coche auxCoche; // guardará coche antes de ponerlo en ArrayList\n System.out.print(\" Introduce matricula: \");\n matricula = leer.next();\n System.out.print(\" Introduce marca: \");\n marca = leer.next();\n System.out.print(\" Introduce modelo: \");\n modelo = leer.next();\n System.out.print(\" Introduce kilometraje: \");\n km = leer.nextInt();\n return new Coche(matricula, marca, modelo, km);\n }", "public static void main(String[] args) {\n\t\tString out =\"n\";\n\t\twhile (!out.equals(\"o\") && !out.equals(\"O\"))\n\t\t{\n\t\t\tScanner keyboard = new Scanner(System.in);\n\t\tSystem.out.print(\"Veuillez saisir la somme : \");\n\t\t\n\t\tint x = keyboard.nextInt();\n\t\t\n\t\tSystem.out.print(\"e pour euro d pour dollar : \");\n\t\tkeyboard = new Scanner(System.in);\n\t\tString s = keyboard.nextLine();\n\t\t\n\t\t\n\t\t\tif (s.equals(\"e\") || s.equals(\"E\"))\n\t\t\t\tSystem.out.println(\"la somme en dinar est : \" + x*211);\n\t\t\telse \n\t\t\t{\n\t\t\t\tif (s.equals(\"d\") || s.equals(\"D\"))\n\t\t\t\t\tSystem.out.println(\"la somme en dinar est : \" + x*180);\n\t\t\t\telse \n\t\t\t\t\tSystem.out.println(\"Symbole non reconu \");\n\t\t\t}\n\t\t\tkeyboard = new Scanner(System.in);\n\t\t\t\n\t\t\tSystem.out.print(\"Voulez vous sortir? n(Non) ou o(Oui) : \");\n\t\t\tout = keyboard.nextLine();\n\t\t\t\n\t\t}\n\t}", "public static void NumeroAmigo(){\n\t\tint a;\n\t\tint b;\n\t\tString tomar;\n\t\tint resultado;\n\t\tScanner reader= new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese dos numeros\");\n\t\ta=reader.nextInt();\n\t\tb=reader.nextInt();\n\t\tif(a>=0 && b>=0){\n\t\t\tresultado=RepetidorFor(a);\n\t\t\t\tif(resultado==b){\n\t\t\t\tresultado=RepetidorFor(b);\n\t\t\t\tif(resultado==a){\n\t\t\t\t\tSystem.out.println(\"Son numeros amigos\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"No son numeros amigos\");\n\t\t\t}\n\t\t}else{\n\t\t\tSystem.out.println(\"Ingrese numeros positivos\");\n\t\t}\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}", "@Override\n\tpublic void nhap() {\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\" nhap ten:\");\n\t\tString ten = reader.nextLine();\n\t\tSystem.out.println(\" nhap tuoi:\");\n\t\ttuoi = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" nhap can nang:\");\n\t\tcanNang = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\"nhap chieu chieuCao\");\n\t\tchieuCao = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" nhap chieu chieuDai:\");\n\t\tchieuDai = Double.parseDouble(reader.nextLine());\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Ingrese la opción deseard: \");\n\t\tScanner teclado = new Scanner(System.in);\n\t\tint vector [] = {11,8,33,14,5 };\n\t\tint elementoABuscar = teclado.nextInt();\n\t\tint posicion = 0;\n\t}", "static String lireClavier() {\n\ttry {\n\t BufferedReader clavier =\n\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t return clavier.readLine();\n\t} catch (Exception e) {\n\t return \"erreur dans fonction lireClavier\";\n\t}\n }", "@Override\n\tpublic void input() {\n\t\t// TODO Auto-generated method stub\n\t\tSystem.out.println(\"=================\");\n\t\tSystem.out.println(\"매입 매출 등록\");\n\t\tSystem.out.println(\"-----------------\");\n\t\tString pname = null;\n\t\twhile (true) {\n\t\t\tSystem.out.print(\"상품명(QUIET:입력중단)>>\");\n\t\t\tpname = scan.nextLine();\n\t\t\tif (pname.equals(\"QUIET\")) {\n\t\t\t\treturn;\n\t\t\t} else if (pname.equals(\"\")) {\n\t\t\t\tSystem.out.println(\"상품명은 반드시 입력해야합니다\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\tSystem.out.print(\"거래일자(yyyy-mm-dd)\");\n\t\tString date = scan.next();\n\n\t\tSystem.out.print(\"거래처 명 >>\");\n\t\tString dname = scan.next();\n\n\t\tSystem.out.print(\"매입매출구분>>\");\n\t\tString iout = scan.next();\n\n\t\tSystem.out.print(\"수량>>\");\n\t\tInteger qty = scan.nextInt();\n\t\tInteger iprice = this.inputPrice(\"매입\");\n\t\tif (iprice == null) {\n\t\t\treturn;\n\t\t}\n\t\tInteger oprice = this.inputPrice(\"매출\");\n\t\tif (oprice == null) {\n\t\t\treturn;\n\t\t}\n\t\tIolistVO VO = new IolistVO();\n\t\tVO.setPname(pname);\n\t\tVO.setDate(date);\n\t\tVO.setDname(dname);\n\t\tVO.setInout(iout);\n\t\tVO.setIprice(iprice);\n\t\tVO.setOprice(oprice);\n\t\tVO.setQty(qty);\n\t\tiolist.add(VO);\n\t}", "public static void main(String []args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int N = Integer.parseInt(br.readLine());\n String[] imeDobriDeca = new String[N];\n // tuka se zachuvuvaat soodvetnite adresi na decata\n String[] poklonDobriDeca = new String[N];\n String pom;\n CBHT<String,String> hashTable = new CBHT<String, String>((int)(N/0.7));\n for (int i = 0; i < N; i++) {\n pom = br.readLine();\n String[] del = pom.split(\" \");\n imeDobriDeca[i] = del[0];\n poklonDobriDeca[i] = del[1];\n hashTable.insert(del[0],del[1]);\n }\n //tuka se zapishuva imeto na deteto shto treba da se proveri\n String deteZaProverka = br.readLine();\n deteZaProverka = evaluate(deteZaProverka);\n if ( hashTable.search(deteZaProverka) != null ){\n System.out.println(hashTable.search(deteZaProverka).element.value);\n }\n else System.out.println(\"Nema poklon\");\n }", "public int pedirElemento(){\n int opcion = -1;\n\n do {\n Lib.limpiarPantalla();\n System.out.println(\"Cual elemento quieres alquilar?\");\n System.out.println(\"1. Nueva pelicula\");\n System.out.println(\"2. Nuevo Videojuego\");\n System.out.println(\"0. Cancelar\\n\");\n System.out.println(\"Elija una opción: \");\n try {\n opcion = Integer.parseInt(Lib.lector.nextLine());\n if (opcion < 0 || opcion > 2) {\n System.out.println(\"Elija una opción del menú [0-2]\");\n Lib.pausa();\n }\n } catch (NumberFormatException nfe) {\n System.out.println(\"Solo números por favor\");\n Lib.pausa();\n }\n } while (opcion < 0 || opcion > 2);\n return opcion;\n\n }", "static int leerOpcion()throws java.io.IOException{\n\t\t\n\t\tint opcion;\n\n\t\tout.print(\"Seleccione su opcion: \");\n\t\topcion = Integer.parseInt(in.readLine()); \n\t\tout.println();\n\n\t\treturn opcion;\n\t}", "private String[] condicionGeneral(String condicion) {\n String retorno[] = new String[2];\n try {\n String[] simbolos = {\"<=\", \">=\", \"==\", \"!=\", \"<\", \">\"};\n String simbolo = \"0\";\n\n if (condicion.length() > 3) {\n condicion = condicion.substring(1, condicion.length());\n for (int i = 0; i < simbolos.length; i++) {//selecciona el simbolo de la condicion\n if (condicion.contains(simbolos[i])) {\n simbolo = simbolos[i];\n break;\n }\n }\n if (simbolo.equals(\"0\")) {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n } else {\n String var[] = condicion.split(simbolo);\n if (var.length == 2) {\n if (esNumero(var[0])) {\n if (esNumero(var[1])) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n if (var[1].matches(\"[a-zA-Z]*\")) { //comprueba que solo contenga letas \n byte aux = 0;\n\n for (int i = 0; i < codigo.size(); i++) {\n if (var[1].equals(codigo.get(i).toString())) {\n aux++;\n }\n }\n if (aux > 0) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[1] + \".\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n }\n } else {\n if (var[0].matches(\"[a-zA-Z]*\")) { //comprueba que solo contenga letras \n byte aux = 0;\n for (int i = 0; i < codigo.size(); i++) {\n if (var[0].equals(codigo.get(i).toString())) {\n aux++;\n }\n }\n if (aux > 0) {\n if (esNumero(var[1])) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n if (var[0].matches(\"[a-zA-Z]*\")) { //comprueba que solo contenga letas \n aux = 0;\n\n for (int i = 0; i < codigo.size(); i++) {\n if (var[1].equals(codigo.get(i).toString())) {\n aux++;\n }\n }\n if (aux > 0) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[1] + \".\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[0] + \".\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n\n\n\n } catch (Exception e) {\n System.out.println(\"Error en condicion \" + e.getClass());\n } finally {\n return retorno;\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //Leer entrada\n\t\tString st; \t//Variable auxiiar\n\t\tStringBuilder rta= new StringBuilder();\t\t\n\t\twhile (!(st = br.readLine()).equals(\"0\")) {\t\t\t\n\t\t\tst=br.readLine();\n\t\t\tString[] b = st.split(\" \");\n\t\t\tint longitudHastai=1;\n\t\t\tint longitudMaxima=1;\n\t\t\tint decrecei=0;\n\t\t\tint numeroi=0;\n\t\t\tint anterior=Integer.parseInt(b[0]);\t\n\t\t\tint ultimoDecrecimiento=0;\n\t\t\tfor (int i = 1; i < b.length; i++) {\t\t\t\t\n\t\t\t\tnumeroi=Integer.parseInt(b[i]);\n\t\t\t\tif(!(numeroi>=anterior)) {\n\t\t\t\t\tdecrecei++;\n\t\t\t\t\tif(decrecei==1) {\n\t\t\t\t\t\tultimoDecrecimiento=i;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t\tif(decrecei<=1) { //Sigue existiendo un arreglo casi creciente\n\t\t\t\t\tlongitudHastai++;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlongitudHastai=i-ultimoDecrecimiento+1;\n\t\t\t\t\tdecrecei=1;\n\t\t\t\t\tanterior=numeroi;\n\t\t\t\t\tultimoDecrecimiento=i;\n\t\t\t\t\tif(longitudHastai>=longitudMaxima) {\n\t\t\t\t\t\tlongitudMaxima=longitudHastai;\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(longitudHastai>=longitudMaxima) {\n\t\t\t\t\tlongitudMaxima=longitudHastai;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tanterior=numeroi;\n\t\t\t}\n\t\t\trta.append(longitudMaxima+\"\\n\");\n\t\t}\n\t\tSystem.out.println(rta);\n\t}", "public static void main(String[] args) {\n\n\t\tScanner s = new Scanner(System.in);\n\t\tString ime;\n\t\tString poruka1 = \" happy \";\n\t\tSystem.out.println(\"Unesite reci 'choose' ili 'be', a rec 'end' za prestanak petlje\");\n\t\tdo {\t\t\t\n\t\t\time = s.nextLine();\n\t\t\tswitch (ime.toLowerCase()) {\n\t\t\tcase \"choose\":\n\t\t\t\tSystem.out.println(ime + poruka1);\n\t\t\t\tbreak;\n\n\t\t\tcase \"be\":\n\t\t\t\tSystem.out.println(ime + \" kind \");\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Niste uneli trazeno ime\");\n\t\t\t}\n\t\t} while (!ime.equals(\"end\"));\n\n\t}", "public static void criaEleicao() {\n\t\tScanner sc = new Scanner(System.in);\t\t\n\t\tString tipo, id, titulo, descricao, yesno;\n\t\tString dataI, dataF;\n\t\tString dept = \"\";\n\t\tint check = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o tipo de eleicao:\\n(1)Nucleo de Estudantes\\n(2)Conselho Geral\");\n\t\t\ttipo = sc.nextLine();\n\t\t\tif(tipo.equals(\"1\") || tipo.equals(\"2\")) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nA opcao so pode conter digitos de 1 a 2\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tif (tipo.equals(\"1\")) {\n\t\t\tdo {\n\t\t\t\tSystem.out.println(\"\\nInsira o nome do departamento:\");\n\t\t\t\tdept = sc.nextLine();\n\t\t\t\tif(verificarLetras(dept) && dept.length()>0) {\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"\\nO departamento apenas pode conter letras\");\n\t\t\t\t}\n\t\t\t}while(check==0);\n\t\t\t\t\n\t\t\tcheck = 0;\n\t\t}\n\n\t\tSystem.out.println(\"\\nInsira o id:\");\n\t\tid = sc.nextLine();\n\n\t\tdo {\n\t\t\tSystem.out.println(\"Insira o titulo da eleicao:\\n\");\n\t\t\ttitulo = sc.nextLine();\n\t\t\tif(verificarLetras(titulo) && titulo.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO titulo apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\t\n\t\tcheck = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira a descricao da eleicao:\");\n\t\t\tdescricao = sc.nextLine();\n\t\t\tif(verificarLetras(descricao) && descricao.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nA descricao apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\t\n\t\tcheck = 0;\n\t\t\n\t\tSystem.out.println(\"Insira a data de inicio da eleicao (DD/MM/AAAA HH:MM):\\n\");\n\t\tdataI = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"Insira a data do fim da eleicao (DD/MM/AAAA HH:MM):\\n\");\n\t\tdataF = sc.nextLine();\n\t\t\n\t\tString msgServer = \"\";\n\t\t\n\t\tcheck = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tmsgServer = rmiserver.criaEleicao(Integer.parseInt(tipo), id, titulo, descricao, dataI, dataF, dept);\n\t\t\t\tSystem.out.println(msgServer);\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI alteraFac\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\n\t\tif (msgServer.equals(\"\\nEleicao criada com sucesso\")){\n\t\t\tdo {\n\t\t\t\tSystem.out.println(\"\\nDeseja criar uma lista de candidatos para associar a eleicao?\\n(1) Sim (2) Nao\");\n\t\t\t\tyesno = sc.nextLine();\n\t\t\t\tif(verificarNumeros(yesno)) {\n\t\t\t\t\tif (yesno.equals(\"1\")) {\n\t\t\t\t\t\tcriaListaCandidatos();\n\t\t\t\t\t}\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"\\nA opcao so pode conter digitos\");\n\t\t\t\t}\n\t\t\t}while(check==0);\n\t\t\t\n\t\t\tcheck = 0;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner teclado=new Scanner(System.in);\r\n\t\tString frase=\"\"; \r\n\t\tint i=1;\r\n\t\t\r\n\t\tdo{\r\n\t\t\tSystem.out.println(\"Introduce la frase: \");\r\n\t\t\tfrase=teclado.nextLine();\r\n\t\t}while(frase.length()>80); //Max. 80 carácteres\r\n\t\t\r\n\t\tdo{\r\n\t\t\t//imprimo desde 0 a i\r\n\t\t\tSystem.out.println(frase.substring(0,i));\r\n\t\t\ti++;\r\n\t\t}while(i<=frase.length()); //Mientras i sea menor que la longitud de frase\r\n\t\r\n\t}", "private void nuskaitymas() {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Iveskite zodi\");\n zodis = sc.nextLine();\n patikrinimas(zodis);\n }", "public void podaj_cene() {\n\t\tdo{System.out.print(\"Podaj cene średniej pizzy:\");\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner odczyt= new Scanner(System.in);\n\t\tcena= odczyt.nextInt();\n\t\tif(cena<6){\n\t\t\tSystem.out.println(\"Zbyt niska cena!\");\n\t\t }\n\t\t}while(cena<6);\n\t\t}", "@Override\n\tpublic void muestraInfo() {\n\t\tSystem.out.println(\"Adivina un número par: Es un juego en el que el jugador\" +\n\t\t\t\t\" deberá acertar un número PAR comprendido entre el 0 y el 10 mediante un número limitado de intentos(vidas)\");\n\t}", "public static void main(String args[]) {\n var edad = Integer.parseInt(\"20\");\n System.out.println(\"edad = \" + edad);\n \n double valorPI = Double.parseDouble(\"3.1416\");\n System.out.println(\"valorPI = \" + valorPI);\n \n //Convertir un char a un String\n //Realmente no es convertir toda la cadena \"hola\"\n //sino seleccionar uno de los elementos un caracter de este string\n char c = \"hola\".charAt(3);\n System.out.println(\"c = \" + c);\n \n var scanner = new Scanner(System.in);\n edad = Integer.parseInt(scanner.nextLine());\n System.out.println(\"edad = \" + edad);\n \n char caracter = scanner.nextLine().charAt(0);\n System.out.println(\"caracter = \" + caracter);\n \n //Conversion de tipos enteros a string\n String edadTexto = String.valueOf(25);\n System.out.println(\"edadTexto = \" + edadTexto);\n \n \n \n }", "public static String lireMessageAuClavier() throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString messa = sc.nextLine();\n\t\treturn messa;\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 }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint numero;\n\t\tString [] meses= {\"enero\",\"febrero\",\"marzo\",\"abril\",\"mayo\",\"junio\",\"julio\",\"agosto\",\"stiembre\",\"ocubre\",\"noviembre\",\"diciembre\"};\n\t\tSystem.out.println(\"ingrese el numero del mes\");\n\t\tnumero=sc.nextInt();\n\t\tnumero =numero-1;\n\t\tSystem.out.println(meses[numero]);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.print(\"Unesi ime: \");\n\t\tScanner unos = new Scanner(System.in);\n\t\tString ime = unos.next();\n\t\t\n\t\t//prvi red crtica\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t System.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t//drugi red crtica\n\t\tSystem.out.println(\": : : TABLICA MNOZENJA : : :\");\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t\tSystem.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\tSystem.out.print(\" * |\");\n\t\tfor(int j=1;j<=9;j++){\n\t\t\tSystem.out.printf(\"%3d\",j);\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t//treci red crtica\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t\tSystem.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\tfor(int i=1;i<=9;i++){\n\t\t\tSystem.out.printf(\"%2d |\",i);\n\t\t\tfor(int j=1;j<=9;j++){\n\t\t\t\tSystem.out.printf(\"%3d\",i*j);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t//cetvrti red crtica\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t\tSystem.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t\tfor(int k=0;k<8;k++){\n\t\t\tSystem.out.printf(\": \");\n\t\t}\n\t\tSystem.out.print(\":by \"+ime);\n\t\tSystem.out.println();\n\t\t\n\t\t//peti red crtica\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t\tSystem.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\tunos.close();\n\t}", "public int consultaMesa(int mesa){\n \n int val;\n if(mesas[mesa-1] == 0){\n System.out.println(\"¡¡¡mesa disponible!!!\");\n \n System.out.println(\"¿desea asignar esta mesa a algun comensal?\\n1.-si\\n2.-no \"); //pregunta si quiere agregar comensal \n val = num.nextInt();\n \n if(val < 1 || val > 2){\n System.out.println(\"el valor es invalido\");\n }else if(val == 1){ //ingresa si es necesario\n //llamar funcion\n \n System.out.println(\"ingrese nombre de comensal: \");\n num.nextLine();\n comensal = num.nextLine();\n asignaMesa(comensal,mesa);\n }else if(val == 2){\n System.out.println(\"estas son las mesas disponibles: \");\n for(int i=0;i<mesas.length;i++){ \n System.out.print(\" \"+mesas[i]);\n }\n }\n }else if(mesas[mesa-1] == 1){\n System.out.println(\"mesa ocupada\");\n System.out.println(\"estas son las mesas disponibles: \");\n for(int i=0;i<10;i++){\n System.out.print(\" \"+mesas[i]);\n }\n }\n return 0;\n }", "@Override\n\tpublic void nhap() {\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\" so cmnd:\");\n\t\tthis.cmnd = reader.nextLine();\n\t\tSystem.out.println(\" nhap ho ten khach hang:\");\n\t\tthis.hoTenKhachHang = reader.nextLine();\n\t\tSystem.out.println(\" so tien gui:\");\n\t\tthis.soTienGui = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" nhap ngay lap:\");\n\t\tthis.ngayLap = reader.nextLine();\n\t\tSystem.out.println(\" lai suat:\");\n\t\tthis.laiSuat = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" so thang gui:\");\n\t\tthis.soThangGui = Integer.parseInt(reader.nextLine());\n\t\tSystem.out.println(\" nhap ky han:\");\n\t\tthis.kyHan = Integer.parseInt(reader.nextLine());\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tSystem.out.println(\"Veillez saisir une phrase :\");\n\t\tString phrase = sc.nextLine();\n\t\tSystem.out.println(phrase);\n\t\tSystem.out.println(\"M : \" + phrase.toUpperCase());\n\t\tfor(int i = 0; i < phrase.length(); i++)\n\t\t{\n\t\t\tif(phrase.charAt(i) == 'e')\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(\"C : \" + phrase.length());\n\t\tSystem.out.println(\"Le nombre de 'e' dans la phrase : \" + count);\n\t\tif(count > 0)\n\t\t\tSystem.out.println(\"R : \" + phrase.replace('e', '*'));\n\t}", "public static int iLlegirOpcioMenu(){\r\n /**/\r\n Scanner sc = new Scanner(System.in);\r\n \r\n System.out.print(\"Introdueixi una opció:\\n -> \");\r\n int iOpcioMenu = sc.nextInt();\r\n \r\n return iOpcioMenu; \r\n }", "public static void main(String[] args) {\n\t\t\tScanner tastiera=new Scanner(System.in);\r\n\t\t\tint k=0, j=0;\r\n\t\t\tint conta=0;\r\n\t\t\tString risposta=\"\";\r\n\t\t\tRandom r=new Random();\r\n\t\t\tArrayList<Giocatore> partecipantiOrdinati=new ArrayList<Giocatore>();\r\n\t\t\tArrayList<Giocatore> partecipantiMescolati=new ArrayList<Giocatore>();\r\n\t\t\tArrayList<Giocatore> perdenti=new ArrayList<Giocatore>();\r\n\t\t\tfor(int i=0;i<GIOCATORI.length;i++) {\r\n\t\t\t\tpartecipantiOrdinati.add(new Giocatore(GIOCATORI[i]));\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<GIOCATORI.length;i++) {\r\n\t\t\t\tint indice=Math.abs(r.nextInt()%partecipantiOrdinati.size());\r\n\t\t\t\tpartecipantiMescolati.add(partecipantiOrdinati.get(indice));\r\n\t\t\t\tpartecipantiOrdinati.remove(indice);\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"INIZIA IL TORNEO DI BRISCOLA!\");\r\n\t\t\twhile(partecipantiMescolati.size()!=1) {\r\n\t\t\t\tSystem.out.println(\"Fase \"+(j+1));\r\n\t\t\twhile(conta<partecipantiMescolati.size()) {\r\n\t\t\t\tMazzo m=new Mazzo();\r\n\t\t\t\tm.ordinaMazzo();\r\n\t\t\t\tm.mescolaMazzo();\r\n\t\t\t\tGiocatore g1=partecipantiMescolati.get(conta);\r\n\t\t\t\tGiocatore g2=partecipantiMescolati.get(conta+1);\r\n\t\t\t\tPartita p=new Partita(g1,g2,m);\r\n\t\t\t\tSystem.out.println(\"Inizia la partita tra \"+g1.getNickName()+\" e \"+g2.getNickName());\r\n\t\t\t\tSystem.out.println(\"La briscola è: \"+p.getBriscola().getCarta());\r\n\t\t\t\tSystem.out.println(\"Vuoi skippare la partita? \"); risposta=tastiera.next();\r\n\t\t\t\tif(risposta.equalsIgnoreCase(\"si\")) {\r\n\t\t\t\t\tg1.setPunteggio(p.skippa());\r\n\t\t\t\t\tg2.setPunteggio(PUNTI_MASSIMI-g1.getPunteggio());\r\n\t\t\t\t\tif(p.vittoria()) {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto \"+g1.getNickName());//vince g1\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g1.getPunteggio());\r\n\t\t\t\t\t\tp.aggiungiPerdente(g2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto \"+g2.getNickName());// vince g2\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g2.getPunteggio());\r\n\t\t\t\t\t\tp.aggiungiPerdente(g1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tp.daiLePrimeCarte();\r\n\t\t\t\t\tCarta c1=new Carta(g1.gioca().getCarta());\r\n\t\t\t\t\tCarta c2=new Carta(g2.gioca().getCarta());\r\n\t\t\t\t\tg1.eliminaDaMano(c1); g2.eliminaDaMano(c2);\r\n\t\t\t\t\tint tracciatore=1; //parte dal giocatore 1\r\n\t\t\t\t\twhile(!m.mazzoMescolato.isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(c1.getCarta()+\" \"+c2.getCarta());\r\n\t\t\t\t\t\tif(p.chiPrende(c1, c2) && tracciatore==1){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g1.getNickName());\r\n\t\t\t\t\t\t\tg1.setPunteggio(g1.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tp.pesca(g1); p.pesca(g2);\r\n\t\t\t\t\t\t\tc1=g1.gioca(); c2=g2.gioca();\r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(p.chiPrende(c2, c1)) {\r\n\t\t\t\t\t\t\ttracciatore=2;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g2.getNickName());\r\n\t\t\t\t\t\t\tg2.setPunteggio(g2.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tp.pesca(g2); p.pesca(g1);\r\n\t\t\t\t\t\t\tc2=g2.gioca(); c1=g1.gioca();\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2); \r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{tracciatore = 1; k--;}\r\n\t\t\t\t\t\tSystem.out.println(g1.getPunteggio()+\" \"+g2.getPunteggio());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"Manche Finale\");\r\n\t\t\t\t\twhile(!g1.carteInMano.isEmpty() || !g2.carteInMano.isEmpty()) {\r\n\t\t\t\t\t\tSystem.out.println(c1.getCarta()+\" \"+c2.getCarta());\r\n\t\t\t\t\t\tif(p.chiPrende(c1, c2) && tracciatore==1){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g1.getNickName());\r\n\t\t\t\t\t\t\tg1.setPunteggio(g1.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tc1=g1.gioca(); c2=g2.gioca();\r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(p.chiPrende(c2, c1)) {\r\n\t\t\t\t\t\t\ttracciatore=2;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g2.getNickName());\r\n\t\t\t\t\t\t\tg2.setPunteggio(g2.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tc2=g2.gioca(); c1=g1.gioca();\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2);\r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\ttracciatore = 1;\r\n\t\t\t\t\t\tSystem.out.println(g1.getPunteggio()+\" \"+g2.getPunteggio());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(p.chiPrende(c1, c2) && tracciatore==1) {\r\n\t\t\t\t\t\tSystem.out.println(\"Prende \"+g1.getNickName());\r\n\t\t\t\t\t\tg1.setPunteggio(g1.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.println(\"Prende \"+g2.getNickName());\r\n\t\t\t\t\t\tg2.setPunteggio(g2.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"Situazione: \"+g1.getNickName()+\": \"+g1.getPunteggio());\r\n\t\t\t\t\tSystem.out.println(g2.getNickName()+\": \"+g2.getPunteggio());\r\n\t\t\t\t\tif(p.vittoria()) {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto il giocatore \"+g1.getNickName());\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g1.getPunteggio());\r\n\t\t\t\t\t\tperdenti.add(g2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto il giocatore \"+g2.getNickName());\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g2.getPunteggio());\r\n\t\t\t\t\t\tperdenti.add(g1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tconta+=2;\r\n\t\t\t\tSystem.out.println(\"Premi una lettera per continuare: \"); risposta=tastiera.next();\r\n\t\t\t}\r\n\t\t\tj++;\r\n\t\t\tconta=0;\r\n\t\t\tfor(int i=0;i<perdenti.size();i++)\r\n\t\t\t\tpartecipantiMescolati.remove(perdenti.get(i));\r\n\t\t\tSystem.out.println(\"Restano i seguenti partecipanti: \");\r\n\t\t\tfor(int i=0;i<partecipantiMescolati.size();i++) {\r\n\t\t\t\tSystem.out.println(partecipantiMescolati.get(i).getNickName());\r\n\t\t\t\tpartecipantiMescolati.get(i).setPunteggio(0);\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Il vincitore del torneo è: \"+partecipantiMescolati.get(0).getNickName());\r\n\t\t\t\t\r\n\t}", "public void CasoChar(String caracter) throws IOException, Exception\r\n {\r\n String palabra = caracter + leerCaracter() + leerCaracter() + leerCaracter();\r\n switch (palabra.toUpperCase())\r\n {\r\n case \"CHR(\":\r\n String[] numero = leerPalabra(leerCaracter(), \")\");\r\n Matcher matcher = patronNUM.matcher(numero[0]);\r\n if (matcher.matches())\r\n {\r\n switch (numero[1])\r\n {\r\n case \")\":\r\n if (leerRango)\r\n {\r\n if (AnalizarRango(contenidoConjunto.get(contenidoConjunto.size() - 1), Integer.parseInt(numero[0])))\r\n {\r\n int inicio = contenidoConjunto.size() - 1; int fin = Integer.parseInt(numero[0]);\r\n for (int i = contenidoConjunto.get(inicio); i <= fin; i++)\r\n {\r\n contenidoConjunto.add(i);\r\n }\r\n leerRango = false;\r\n AnalizarSimbolo(leerCaracter());\r\n }\r\n }\r\n else\r\n {\r\n contenidoConjunto.add(Integer.parseInt(numero[0]));\r\n AnalizarSimbolo(leerCaracter());\r\n }\r\n break;\r\n default:\r\n Caracteres -= numero[1].length(); debeContinuar = false;\r\n E1(\"Se esperaba final de la definición del caracter en ASCII, no se cerro el parentesis.\");\r\n break;\r\n }\r\n }\r\n else\r\n {\r\n Caracteres -= numero[0].length(); debeContinuar = false;\r\n E1(\"No se definió de forma correcta el char por el método ASCII, se esperaba un número dentro de los parentesis.\");\r\n }\r\n break;\r\n default:\r\n Caracteres -= palabra.length(); debeContinuar = false;\r\n E1(\"Se esperaba la definición por código ASCII del elemento del conjunto \" + nombreConjunto);\r\n break;\r\n }\r\n }", "public static <Soplo_Humano> void main(String args[])throws Exception{\r\n\t\tScanner entry = new Scanner (System.in);\r\n\t\tString Instrumentos = null;\r\n\t\tSystem.out.print(\"Flauta\"+ \"\\n\" + \"Trompeta\"+ \"\\n\" +\"Marimba\");\r\n\t\tSystem.out.print(\"Ingrese instrumento: \");\r\n\t\t Instrumentos = entry.next();\r\n\t\tif(Instrumentos.equals(\"Flauta\"))\r\n\t \tSystem.out.println(\"Tiene un orificio donde pasa el aire\");\r\n\t\tif(Instrumentos.equals(\"Trompeta\"))\r\n\t\t\tSystem.out.println(\"Tiene un orificio donde pasa el aire\");\r\n\t\tthrow new Exception(\"No tiene orificio por lo tanto no es del tipo Aerofono\");\r\n}", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tMap<String, Legion> legions = new LinkedHashMap<>();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] input = sc.nextLine().split(\" -> \");\n\t\t\tLegion legion = new Legion(input[0]);\n\t\t\tSoldier soldier = new Soldier(input[1]);\n\t\t\tString name = legion.name;\n\t\t\tif(legions.containsKey(name)){\n\t\t\t\tlegions.get(name).addSoldier(soldier);\n\t\t\t\tif(legion.lastActivity > legions.get(name).lastActivity ){\n\t\t\t\t\tlegions.get(name).lastActivity = legion.lastActivity ;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tlegion.addSoldier(soldier);\n\t\t\t\tlegions.put(name, legion);\n\t\t\t}\t\t\t\n\t\t}\n\t\tsc.close();\n//\t\tSystem.out.println(legions);\n\t\tString[] commands = sc.nextLine().split(\"\\\\\\\\\");\t\t\n\t\tif(commands.length == 2){\n\t\t\tint activity = Integer.parseInt(commands[0]);\n\t\t\tString type = commands[1];\n\t\t\tList<Soldier> outputList = new ArrayList<>();\n\t\t\t\n\t\t\tlegions.entrySet().stream().filter(me -> me.getValue().lastActivity < activity)\t\t\t\t\t\n\t\t\t.forEach(me ->{\n\t\t\t\toutputList.add(me.getValue().soldiers.get(type));\n\t\t\t});\n\t\t\t\n\t\t\toutputList.stream().sorted((s1, s2) -> Long.compare(s2.count, s1.count))\n\t\t\t.forEach(s -> {\n\t\t\t\tSystem.out.printf(\"%s -> %d%n\", s.legion.name, s.count);\n\t\t\t\t});\t\t\t\n\t\t}else {\t\t\t\n\t\t\tString type = commands[0];\n\t\t\tlegions.entrySet().stream().filter(me -> me.getValue().soldiers.containsKey(type))\n\t\t\t.sorted((me1, me2) -> Long.compare(me2.getValue().lastActivity, me1.getValue().lastActivity))\n\t\t\t.forEach(me -> {\n\t\t\t\tSystem.out.printf(\"%d : %s%n\", me.getValue().lastActivity, me.getKey());\n\t\t\t\t});\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\n\n\t\tScanner myInput = new Scanner(System.in);\n\t\tString[] name = new String[100];\n\t\tint[] englishPoint = new int[100];\n\t\tint[] mathPiont = new int[100];\n\t\tint count = 0, type, engTotal = 0, mathTotal = 0, sumTotal = 0;\n\t\tfloat engAve = 0, mathAve = 0, classAve = 0;\n\t\t\n\t\tdo {\t\n\t\t\tSystem.out.print(\"이름을 입력하세요 : \");\n\t name[count] = myInput.next();\n\t System.out.print(\"영어점수는 몇점입니까? \");\n\t englishPoint[count] = myInput.nextInt();\n\t System.out.print(\"수학점수는 몇점입니까? \");\n\t mathPiont[count] = myInput.nextInt();\n\t System.out.print(\"추가 입력하시겠습니까? (1.추가 2.종료) : \");\n\t type = myInput.nextInt();\n\t engTotal = engTotal + englishPoint[count];\n\t mathTotal = mathTotal + mathPiont[count];\n\t count++;\n\t\t}while(type == 1);\n\t\t\tSystem.out.printf(\"%s \\t %s \\t %s \\t %s \\t %s\\n\", \"이름\", \"영어\", \"수학\", \"총점\", \"평균\");\t\t\n\t\t\n\t\tfor(int index = 0; index < count; index++) {\n\t\t\tint persnalSum = englishPoint[index] + mathPiont[index];\n\t\t\tfloat personalAverage = persnalSum / 2;\n\t\t\tSystem.out.printf(\"%s \\t %d \\t %d \\t %d \\t %.2f\\n\", name[index], englishPoint[index], mathPiont[index], persnalSum, personalAverage);\n\t\t\tsumTotal = sumTotal + englishPoint[index] + mathPiont[index];\n\t\t\tengAve = engTotal / count;\n\t\t\tmathAve = mathTotal / count;\n\t\t\tclassAve = (engAve + mathAve) / 2;\n\t\t}\n\n\t\tSystem.out.printf(\"%s \\t %d \\t %d \\n\", \"총점\", engTotal, mathTotal);\n\t\tSystem.out.printf(\"%s \\t %.2f \\t %.2f \\t\\t %.2f\\n\", \"학급평균\", engAve, mathAve, classAve);\n\t\t\t\n\t\tmyInput.close();\n\t}", "public int chercherCouleur(String nom){\n // Lecture dans le fichier \"utilisateurs.txt\"\n try (BufferedReader reader = new BufferedReader(new FileReader(\"utilisateurs.txt\"))) {\n String line = \"\";\n\n // Tant qu'on lit des choses dans le fichier\n while ((line = reader.readLine()) != null) {\n String[] tmp = (line.split(\":\")); // decoupage de la chaine pour recuperer le nom et la couleur associee\n\n String s = tmp[0]; // on recupere le nom de la personne\n if(s.equalsIgnoreCase(nom)){\n return Integer.valueOf(tmp[1]); // on recupere la couleur de la personne\n }\n }\n\n } catch (Exception ex) {\n ex.printStackTrace();\n System.out.println(ex.getMessage());\n }\n return 0; //retourne 0 si on n'a pas trouve le nom dans la liste\n }", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble firstNumber, secondNumber;\n\t\tchar operant;\n\t\tboolean calulateIsStillOn = true;\n\t\t// String end;\n\n\t\twhile (calulateIsStillOn) {\n\n\t\t\tSystem.out.println(\"Unesite prvi broj: \");\n\t\t\tfirstNumber = sc.nextDouble();\n\n\t\t\tif (firstNumber == 0) {\n\t\t\t\tSystem.out.println(\"Kraj programa !\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(\"Unesite drugi broj: \");\n\t\t\tsecondNumber = sc.nextDouble();\n\n\t\t\tSystem.out.println(\"Unesite operaciju: \");\n\t\t\tsc.nextLine();\n\t\t\toperant = sc.nextLine().charAt(0);\n\n\t\t\tswitch (operant) {\n\t\t\tcase '+':\n\t\t\t\tSystem.out.println(\"Zbir brojeva \" + firstNumber + \" i \" + secondNumber + \" je \"\n\t\t\t\t\t\t+ (firstNumber + secondNumber) + '\\n' + \"Ukucaj nulu za prekid programa\" + \"\\n\\n\");\n\t\t\t\tbreak;\n\t\t\tcase '/':\n\t\t\t\tif (firstNumber != 0 & secondNumber != 0) {\n\t\t\t\t\tSystem.out.println(\"Kolicnik brojeva \" + firstNumber + \" i \" + secondNumber + \"jednako je \"\n\t\t\t\t\t\t\t+ (firstNumber / secondNumber) + '\\n' + \"Ukucaj nulu za prekid programa\" + \"\\n\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Deljenje nulom nije dozvoljeno\" + '\\n' + \"Ukucaj nulu za prekid programa\" + \"\\n\\n\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase '-':\n\t\t\t\tSystem.out.println(\"Razlika brojeva \" + firstNumber + \" i \" + secondNumber + \"jednako je \"\n\t\t\t\t\t\t+ (firstNumber - secondNumber) + '\\n' + \"Ukucaj nulu za prekid programa\" + \"\\n\\n\");\n\t\t\t\tbreak;\n\t\t\tcase '*':\n\t\t\t\tSystem.out.println(\"Proizvod brojeva \" + firstNumber + \" i \" + secondNumber + \"jednako je \"\n\t\t\t\t\t\t+ (firstNumber * secondNumber) + '\\n' + \"Ukucaj nulu za prekid programa\" + \"\\n\\n\");\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Nekorektan unos !!\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\n\t}", "public static void main(String[] args) {\n int numeros[] = {2, 3, 4, 2, 4, 5, 6, 2, 1, 2};\n //Creamos segundo arreglo con iguall tamaño que el arreglo nùmeros\n int cuadrados[] = new int[numeros.length];\n //Arreglo para almacenar el proceso de la operación\n String procesos[] = new String[numeros.length];\n //Creamos ciclo de repeticiòn para recorrer arreglo \n for (int indice = 0; indice < numeros.length; indice++) {\n int cuadrado = numeros[indice] * numeros[indice];\n //Almacenamos el proceso de la opreaciòn en el arreglo cuadrados\n cuadrados[indice] = cuadrado;\n \n //Almacenar resultado en el arreglo procesos\n procesos[indice] = numeros[indice] + \"x\" + numeros[indice];\n }\n //Ciclo de repetición para mostrar arreglos\n String print_numeros = \"numeros - \";\n String print_cuadrados = \"cuadrados - \";\n String print_procesos = \"procesoss - \";\n for (int indice = 0; indice < numeros.length; indice++) {\n print_numeros = print_numeros + numeros[indice] + \", \";\n print_cuadrados = print_cuadrados + cuadrados[indice] + \", \";\n print_procesos = print_procesos + procesos[indice] + \", \";\n\n }\n System.out.println(print_numeros);\n System.out.println(print_cuadrados);\n System.out.println(print_procesos);\n \n //suma solo numeros pares\n int acumulador_pares=0;\n for (int indice = 0; indice < 10; indice++) {\n boolean par= detectar_par(numeros[indice]);\n if (par == true) {\n acumulador_pares = acumulador_pares + numeros[indice];\n \n }\n }\n System.out.println(\"La suma de los nùmeros pares es: \"+acumulador_pares);\n \n }", "public static void main(String[] args) {\n\t\t\n\t\tint op;\n\t\t\n\t\tScanner leia = new Scanner(System.in);\n\t\t\n\t\tArrayList<String> estoqueLoja = new ArrayList();\n\t\t\n\t\tdo\n\t\t{\n\t\t\tSystem.out.println(\"\\n************************\");\n\t\t\tSystem.out.println(\"\\nSelecione uma das seguintes opções: \");\n\t\t\tSystem.out.println(\"\\n1 - Acrescentar produto ao estoque\");\n\t\t\tSystem.out.println(\"\\n2 - Remover produto do estoque\");\n\t\t\tSystem.out.println(\"\\n3 - Atualizar o estoque\");\n\t\t\tSystem.out.println(\"\\n4 - Mostrar estoque completo\");\n\t\t\tSystem.out.println(\"\\n0 - Encerrar programa\");\n\t\t\tSystem.out.println(\"\\nQual opção deseja?: \");\n\t\t\top = leia.nextInt();\n\t\t\t\n\t\t\tswitch(op)\n\t\t\t{\n\t\t\tcase 1:\n\t\t\t\tleia.nextLine();\n\t\t\t\tSystem.out.println(\"\\nQual o produto a ser adicionado?: \");\n\t\t\t\tString produto = leia.nextLine();\n\t\t\t\testoqueLoja.add(produto);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tleia.nextLine(); \n\t\t\t\tSystem.out.println(\"\\nQual produto remover?: \");\n\t\t\t\tString produto1 = leia.nextLine();\n\t\t\t\t\n\t\t\t\tif(estoqueLoja.contains(produto1))\n\t\t\t\t{\n\t\t\t\t\testoqueLoja.remove(produto1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\\nEste produto não existe neste estoque!!!\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tleia.nextLine(); \n\t\t\t\tSystem.out.println(\"\\nQual produto atualizar no estoque?: \");\n\t\t\t\tString verifica = leia.nextLine();\n\t\t\t\tSystem.out.println(\"\\nQual novo produto adicionar?: \");\n\t\t\t\tString novo = leia.nextLine();\n\t\t\t\t\n\t\t\t\tif(estoqueLoja.contains(verifica))\n\t\t\t\t{\n\t\t\t\t\testoqueLoja.remove(verifica);\n\t\t\t\t\testoqueLoja.add(novo);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\\nEste produto não existe neste estoque!!!\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tSystem.out.println(\"\\nLista de produtos do estoque: \");\n\t\t\t\tSystem.out.println(estoqueLoja);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"\\nEncerrando o programa...\");\n\t\t\t}\n\t\t}while(op!=0);\n\n\t}", "public void llenarnumerodecimales(java.awt.event.KeyEvent evt, int tamanioEntero, int tamanioDecimal, String txt){\n char c = evt.getKeyChar();\r\n int bDecimal = 0, bEntero = 0;\r\n// if ((c >= '0') || (c <= '9') && bEntero)\r\n// bEntero++;\r\n if (((c < '0') || (c > '9')) && (c != KeyEvent.VK_BACK_SPACE) && (c != '.')) {\r\n evt.consume();\r\n JOptionPane.showMessageDialog(null, \"Debe ingresar sólo números!!!\", \"Mensaje del sistema\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n if (c == '.' && txt.contains(\".\")) {\r\n evt.consume();\r\n JOptionPane.showMessageDialog(null, \"No puede ingresar más puntos!!!\", \"Mensaje del sistema\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "public static void main(String[] args) {\n\t\tint howMany = 0; //��ū�� ���� ���� ����\n\t\tString output = \"\"; //��ȯ String ����\n\t\tString[] temp = new String[10]; //output�� ��������� �ӽ÷� ����ϴ� �迭\n\n\t\tSystem.out.println(\"검색어 입력 : \");\n\t\tinput = sc.nextLine(); // ���ڿ� �Է�\n\t\tcheckSearchingOperator(input); // ���ڿ� Ȯ��\n\t\t\n\t\t\n\t\t//�������� ������ ���� �˻�� �ڸ���, temp��� �迭�� �� ��ū���� �����Ѵ�.\n\t\tif (hasAnd) { // \"+\" ��ȣ�� ���� ���\n\t\t\tStringTokenizer tokens = new StringTokenizer(input, \"+\");\n\t\t\tfor (int i = 0; tokens.hasMoreElements(); i++) {\n\t\t\t\ttemp[i] = new String(tokens.nextToken());\n\t\t\t\thowMany++;\n\t\t\t}\n\t\t} else if (hasOr) {\n\t\t\tStringTokenizer tokens = new StringTokenizer(input, \"|\");\n\t\t\tfor (int i = 0; tokens.hasMoreElements(); i++) {\n\t\t\t\ttemp[i] = new String(tokens.nextToken());\n\t\t\t\thowMany++;\n\t\t\t}\n\t\t\t// �� ������ ������ �迭�� + Ȥ�� |�� �������� �߸� �������� ����ִ�.\n\t\t} else { //������ ���°��\n\t\t\ttemp[0] = new String(input);\n\t\t\thowMany++;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t// �˻����ʵ� �ȳ������ defalut �� bi �ʵ带 �־��ش�.\n\t\tfor (int i = 0; i < howMany; i++) {\n\t\t\tif (!(temp[i].contains(\":\"))) {\n\t\t\t\ttemp[i] = \"bi:\" + temp[i]; \n\t\t\t}\n\t\t}\n\t\t// �� ������ ������ �� ��ū�� ��� : �� �����ϰ� �ȴ�.\n\t\t\n\t\t\n\t\t//�� ��ū�� ���鼭 �˻��� �ʵ尡 �ȵ� ��ū�� ã�Ƽ� ����Ʈ���� bi: �� �־��ָ鼭 ���� ������ش�.\n\t\tfor (int i = 0; i < howMany; i++) {\n\t\t\tStringTokenizer tokens = new StringTokenizer(temp[i], \":\");\n\t\t\tString tmp1 = tokens.nextToken();\n\t\t\tif ((!Field.isMember(tmp1))) {\n\t\t\t\ttemp[i] = \"bi:(\" + tokens.nextToken().trim() + \")\";\n\t\t\t} // Field�� �޴��� �ִ��� Ȯ���ϰ� ������ ��bƮ���� bi ����\n\t\t\telse {\n\t\t\t\ttemp[i] = tmp1 + \":(\" + tokens.nextToken().trim() + \")\";\n\t\t\t}\n\t\t}\n\t\t// ������� �ϸ� temp�� �ϼ��� token���� �� ���ִ�.\n\t\t\n\t\tString query = \"\";\n\t\tif (hasAnd) { //And�� ���\n\t\t\tfor (int i = 0; i < howMany; i++) {\n\t\t\t\tif (i != 0) {\n\t\t\t\t\tquery = query.concat(\" and \"); // �� ó���� and ������ �ȵȴ�.\n\t\t\t\t}\n\t\t\t\tquery = query.concat(temp[i]);\n\t\t\t}\n\t\t} else if (hasOr) { //or�� ���\n\t\t\tfor (int i = 0; i < howMany; i++) {\n\t\t\t\tif (i != 0) {\n\t\t\t\t\tquery = query.concat(\" or \"); // �� ó���� and ������ �ȵȴ�.\n\t\t\t\t}\n\t\t\t\tquery = query.concat(temp[i]);\n\t\t\t}\n\t\t} else { //������ ���� ���\n\t\t\tquery = query.concat(temp[0]);\n\t\t}\n\t\n\t\t\n\n\t\t\n\t\t\n\t\ttry {\n\t\t\tquery= URLEncoder.encode(query, \"UTF-8\");\n\t\t\t// encoding�ؼ� query�� ����\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t//output file�� urlhead �����ϰ�\n\t\toutput = new String(url_head);\n\t\t\n\t\toutput = output.concat(query);\n\t\toutput = output.concat(url_tail);\n\t\t\n\t\t\t\n\t\toutput = output.replaceAll(\" \", \" \");\n\t\t//������ �ι����ٸ� �ٿ��ش�.\n\t\t\n\t\t\n\t\t\n\n\t\tNTISDataParser parser = new NTISDataParser();\n\t\tList<ResultModel> list = parser.getNtisData(output);\n\t\t\n\t\tfor(ResultModel m : list) {\n\t\t\tSystem.out.println(m.getManager());\n\t\t}\n\t\t\n\t}", "private static int buscarEntero(Scanner s) {\n\t\tint Temp = -1;\n\n\t\tif (!s.hasNextLine() || !s.hasNextInt()) {\n\t\t\treturn -1;\n\t\t}\n\n\t\tString ValorLeido = s.nextLine();\n\t\tif (ValorLeido.length() != 0) {\n\t\t\tScanner Aux = new Scanner(ValorLeido);\n\t\t\twhile (Aux.hasNextInt()) {\n\t\t\t\tTemp = Aux.nextInt();\n\t\t\t}//fin while\n\t\t\tAux.close();\n\t\t}\n\t\treturn Temp;\n\t}", "public static void main(String[] args) {\n PetriNet inst = new CoffeeMachinePetri();\r\n Scanner scanner = new Scanner(System.in);\r\n int input ;\r\n input = scanner.nextInt();\r\n while(input!=0)\r\n {\r\n System.out.println(\"Introduceti optiunea: \");\r\n input = scanner.nextInt();\r\n inst.exec(input);\r\n \r\n System.out.println(inst.getStareCurenta());\r\n\t\t}\r\n inst.exec(0);\r\n }", "public static void main(String[] args) \n\t\n\t{\n\t\tScanner leia = new Scanner(System.in);\n\t\tint anoNasc,idade;\n\t\tchar sexo, chefe;\n\t\tString nome;\n\t\t\n\t\tSystem.out.print(\"Digite seu nome: \\n\");\n\t\tnome = leia.next();\n\t\tSystem.out.print(\"Digite seu ano de Nascimento: \\n\");\n\t\tanoNasc = leia.nextInt();\n\t\tSystem.out.print(\"Digite seu sexo Masculino ou Feminino: M ou F \\n\");\n\t\tsexo = leia.next().toUpperCase().charAt(0);\n\t\tSystem.out.print(\"Você é chefe(a) de família: S ou N\\n\");\n\t\tchefe = leia.next().toUpperCase().charAt(0);\n\t\tidade = 2020-anoNasc;\n\t\t\t\t\n\t\tif((sexo == 'M' || sexo == 'm') && (idade >= 18) && (chefe == 'S' || chefe == 's') ){\n\t\t\tSystem.out.printf(\"\\nOlá %s, sua idade é de %d você é do sexo Masculino e chefe de familia;\\nEntão você tem direito aos R$ 600,00 mensais.\\n\", nome, idade); \n\t\t\t\t\t\t;\n\t\t}else if( sexo == 'F' || sexo == 'f' && (idade >= 18) && (chefe == 'S' || chefe == 's') ){\n\t\t\tSystem.out.printf(\"\\nOlá %s, sua idade é de %d você é do sexo feminino e chefa de familia;\\nEntão você tem direito aos R$ 1.200,00 mensais.\\n\", nome, idade);\n\t\t}\n\t\t\n\t\telse { System.out.println(\"\\nEntão você não tem direito...\");}\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\tScanner inInt = new Scanner(System.in);\n\t\t\n\t\t\n\t\tString opcion = \"\";\n\t\tString categoria = \"\";\n\t\tString descripcion = \"\";\n\t\tString beneficio = \"\";\n\t\tString nombreABuscar = \"\";\n\t\tint posicion = 0;\n\t\tString nombre = \"\";\n\t\t\n\t\tPoliza listaPoliza[] = new Poliza[50];\n\t\t\n\t\n\t\tdo {\n\t\t\tSystem.out.println(\"Elija una Opcion: \");\n\t\t\tSystem.out.println(\"1. Ingresar Poliza \");\n\t\t\tSystem.out.println(\"2. Buscar Poliza \");\n\t\t\tSystem.out.println(\"3. SALIR \");\n\t\t\topcion = in.nextLine();\n\n\t\t\tswitch (opcion) {\n\n\t\t\tcase \"1\":\n\t\t\t\tSystem.out.println(\"****************************\");\n\t\t\t\tSystem.out.println(\"Ingresar Nombre: \");\n\t\t\t\tnombre = in.nextLine();\n\t\t\t\tSystem.out.println(\"Ingrese la Categoria: \");\n\t\t\t\tSystem.out.println(\"1. Economico\");\n\t\t\t\tSystem.out.println(\"2. DE Vida\");\n\t\t\t\tcategoria = in.nextLine();\n\t\t\t\tif (categoria.equals(\"1\")) {\n\t\t\t\t\tSystem.out.println(\"Ingrese Codigo de Descuento: \");\n\t\t\t\t\tString descuento = in.next();\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Ingrese Codigo de Salud: \");\n\t\t\t\t\tString codigo = in.next();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"3. Ingrese descripcion: \");\n\t\t\t\tdescripcion = in.next();\n\t\t\t\tSystem.out.println(\"4. Ingresar el beneficio: \");\n\t\t\t\tbeneficio = in.nextLine();\n\t\t\t\tSystem.out.println(\"****************************\");\n\n\t\t\t\tPoliza poliza1 = new Poliza(\"nombre=\" + nombre + \", categoria=\" + categoria + \", descripcion=\"\n\t\t\t\t\t\t+ descripcion + \", beneficio=\" + beneficio);\n\t\t\t\tpoliza1.setNombre(nombre);\n\t\t\t\tpoliza1.setCategoria(categoria);\n\t\t\t\tpoliza1.setDescripcion(descripcion);\n\t\t\t\tpoliza1.setBeneficio(beneficio);\n\n\t\t\t\tlistaPoliza[posicion] = poliza1;\n\t\t\t\tposicion++;\n\t\t\t\tSystem.out.println(Arrays.toString(listaPoliza));\n\t\t\t\tSystem.out.println(\"La informacion ha sido guardada exitosamente\");\n\t\t\t\tbreak;\n\n\t\t\tcase \"2\":\n\t\t\t\tSystem.out.println(\"****************************\");\n\t\t\t\tSystem.out.println(\"Ingresar el nombre: \");\n\t\t\t\tnombreABuscar = in.nextLine();\n\t\t\t\tfor (int i = 0; i<50; i++) {\n\t\t\t\t\tPoliza poliza = listaPoliza[i];\n\t\t\t\t\t\n\t\t\t\t\tnombreABuscar.equals(nombre);\n\t\t\t\t\t\n\t\t\t\tboolean resultado = poliza.contains(nombreABuscar);\n\t\t\t\tSystem.out.println(\"Poliza Encontrada: \" + Arrays.toString(listaPoliza));\n\t\t\t\t\n//\t\t\t\t\tif(nombreABuscar.equals(listaPoliza)){\n//\t\t\t\t\t\tSystem.out.println(\"Poliza Encontrada: \");\n//\t\t\t\t\t\tSystem.out.println(Arrays.toString(listaPoliza));\n//\t\t\t\t\n//\t\t\t\t\t\t}else {\n//\t\t\t\t\t\t\tSystem.out.println(\"Nombre no encontrado\");\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t}while(!opcion.equals(\"3\"));\n\t\tSystem.out.println(\"Usted ha salido del sistema\");\n\t\tSystem.out.println(\"BUEN DIA\");\n\t\t\n\t\t}", "public boolean interpreta(String com[]){\n\t\tint i, contv = 0, j;\n\t\tchar tok;\n\t\tString aux;\n\t\t\n\t\tfor(i = 0 ; i < com.length && com[i] != null; i++){\n\t\t\tcom[i]=com[i].trim();\n\t\t\tcom[i]=com[i].trim();\n\t\t\tcom[i]=com[i].replace(\"fimenquanto\",\"#\");\n\t\t\tcom[i]=com[i].replace(\"fimse\",\"*\");\n\t\t\tcom[i]=com[i].replace(\"else\",\",\");\n\t\t\tcom[i]=com[i].replace(\"se\",\".\");\n\t\t\tcom[i]=com[i].replace(\"op\",\"$\");\n\t\t\tcom[i]=com[i].replace(\":\",\"[\");//Para chamar a funcao abacaxi:\n\t\t\tcom[i]=com[i].replace(\"{\",\"+\");\n\t\t\tcom[i]=com[i].replace(\"}\",\"-\");\n\t\t\tcom[i]=com[i].replace(\"end\",\":\");//Fim do ELSE\n\t\t\tcom[i]=com[i].replace(\"enquanto\",\"@\");\n\t\t\tcom[i]=com[i].replace(\"imprime\",\"%\");\n\t\t\tcom[i]=com[i].replace(\"le\",\"?\");\n\t\t}\n\t\tboolean baleado=false;\n\t\tint salvaFuncao = 0, jaEntrou = 1;\n\t\tMate mat = new Mate();\n\n\t\tfor(i = 0; i < (com.length - 1) && com[i] != null; ++i){\n\t\t\ttok = com[i].charAt(0);\n\t\t\taux = com[i].substring(1);\n\t\t\taux = aux.trim();\n\t\t\t\n\t\t\tswitch(tok){//Caso IF\n\t\t\t\tcase '.':\n\t\t\t\t\tbaleado = Logico.funcaoSe(var, aux, 2);\n\t\t\t\t\tif(baleado == false){\n\t\t\t\t\t\ti = Logico.linha(com, i);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase ',': //Caso ELSE IF\n\t\t\t\t\tif(baleado){\n\t\t\t\t\t\ti = Logico.linha(com, i);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase '*': \t//fim if\n\t\t\t\t\tbreak;\n\t\t\t\tcase ':': //fim ELSE\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase '$': \t//criar variavel\n\t\t\t\t\tString[] nova = aux.split(\"=\");\n\t\t\t\t\tString nok = new String();\n\t\t\t\t\tnova[1] = nova[1].trim();\n\t\t\t\t\tnok = nova[1].substring(0);\n\t\t\t\t\t//double valor = Mate.soma(nova[1], var);\n\t\t\t\t\tint jaka,contador;\n\t\t\t\t\tdouble value;\n\t\t\t\t\tchar jui = ' ';\n\t\t\t\t\tfor(jaka=0,contador=0; jaka < nok.length(); ++jaka){\n\t\t\t\t\t\tjui = nova[1].charAt(jaka);\n\t\t\t\t\t\tif(jui == '+' || jui == '-' || jui == '*' || jui == '/')\n\t\t\t\t\t\t\tcontador++;\n\t\t\t\t\t}\n\t\t\t\t\tif(contador > 0){\n\t\t\t\t\t\tvalue = mat.calcula(nok, 0, var);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tvalue = Mate.soma(nova[1], var);\n\t\t\t\t\t}\n\t\t\t\t\tnova[0] = nova[0].trim();\n\t\t\t\t\tvar.atlVar( nova[0] , value);\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase '@':\t//while\n\t\t\t\t\tif(Logico.funcaoSe(var, aux, 1) == true){\n\t\t\t\t\t\tlaco.push(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\ti = Logico.linha(com, i);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase '#':\t//fim while\n\t\t\t\t\tif(laco.vazio() == true){\n\t\t\t\t\t\t//if(com[laco.pop()].charAt(0) == '@'){\n\t\t\t\t\t\t\ti = (laco.pop() - 1);\n\t\t\t\t\t\t//}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase '[': //Onde está a FUNCAO. Necessário guardar essa posicao\n\t\t\t\t\tsalvaFuncao = i;\n\t\t\t\t\tString[] nome = aux.split(\";\");\n\t\t\t\t\tnome[0] = nome[0].trim();\n\t\t\t\t\t//System.out.println(\"NOME = \"+nome[0]);\n\t\t\t\t\ti = Logico.achaFuncao(com, i, nome[0]);\n\t\t\t\t\tjaEntrou++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase '-':\n\t\t\t\t\tjaEntrou--;\n\t\t\t\t\tif(jaEntrou == 0)\n\t\t\t\t\t\treturn true;\n\t\t\t\t\ti = salvaFuncao;\n\t\t\t\t\tbreak;\n\t\t\t\tcase '+':\n\t\t\t\t\treturn true;\n\t\t\t\tcase '%':\t//imprime\n\t\t\t\t\taux = aux.trim();\n\t\t\t\t\tImp.imprime(aux, var);\n\t\t\t\t\tbreak;\n\n\t\t\t\t\t\n\t\t\t\tcase '?':\t//scaner leitur\n\t\t\t\t\tdouble get = scan.nextDouble();\n\t\t\t\t\tvar.atlVar(aux, get);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn true;\n\t}", "public static void main (String[] args)\n\t{\n\t\tString bat;\n\t\tString bi;\n\n\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.print(\"\\n Intruoduce el el primer string: \");\n\t\tbat = sc.nextLine();\n\n\t\n\t\tSystem.out.print(\"\\n Introduce el segundo string: \");\n\t\tbi = sc.nextLine();\n\n\n\n\t\t// con el siguiente objeto concatena el string bat con el string 2\n \t\tString concatenado = bat.concat(bi);\n \t\tSystem.out.println(\"\\n El texto concatenado es: \" + concatenado);\n\n\t\t\n\t\t// para imprimir los dos strings ya concatenados\n\t\tSystem.out.println(\"\\n Primer valor de la cadena concatenada: \" + concatenado);\n\t\t\n\n\t\t//para convertir en mayusculas o minusculas los caracteres del string\n\t\tString minus = concatenado.toLowerCase();\n\t\tString mayus = concatenado.toUpperCase();\n\n\t\tSystem.out.print(\"lo concatenado en minuscula: \" + minus);\n\t\tSystem.out.print(\"\\nlo concatenado en mayuscula: \" + mayus);\n\n\n\n\n\n\t\t//para comparar los dos Strings si son iguales da igual mayuscula o minuscula\n\t\tif (bat.equalsIgnoreCase(bi) ) // igual con mayuscula y minusculas bat.equals(bi)\n\t\t\tSystem.out.println(\"\\nLos dos strings son iguales\");\n\t\telse\n\t\t\tSystem.out.println(\"\\nlos dos strings son diferentes\");\n\n\t\t//si el string esta vacio para ello lo escrito por teclado tiene que ser de tipo nextLine\n\t\tif (bat.isEmpty())\n\t\t\tSystem.out.println(\"el string bat esta vacio\");\n\n\t\tif (bi.isEmpty())\n\t\t\tSystem.out.println(\"el string bi esta vacio\");\n\n\t\t//para convertir datos de cualquier tipo a string\n\t\tSystem.out.print(\"\\n Intruoduce un numero para convertirlo a string \");\n\t\tint zenbaki = sc.nextInt();\n\n\t\tString berria = String.valueOf(zenbaki);\n\t\tSystem.out.print(zenbaki);\n\t\t\n\n\t\t\n\t\t\t\n\t}", "public static void main(String[] args) {\n \n int op = -1;\n \n while(op != 0){ \n System.out.println(\" >> Digite a opção desejada! << \");\n System.out.println(\" >> 1 << - Preencher vetor automaticamente\");\n System.out.println(\" >> 2 << - Imprimir vetor\");\n System.out.println(\" >> 3 << - Trocando os valores do vetor de posição\");\n System.out.println(\" >> 4 << - Buscar valor do vetor\");\n System.out.println(\" >> 5 << - Apagar valor do vetor\");\n System.out.println(\" >> 0 << - Sair\");\n try{\n System.out.print(\"Opção: \");\n op = scanf.nextInt();\n scanf.nextLine();\n }\n catch (Exception ex){\n System.out.println(\"Erro: \" + ex.getMessage());\n scanf.nextLine();\n }\n switch(op){\n case 1:\n Preencher_vetor();\n System.out.println(\"Vetor preenchido!\");\n System.out.println(\"\");\n break;\n case 2:\n Imprimir_vetor(vet_n); \n break;\n case 3:\n System.out.println(\"Vamos trocar os valores de posição!\");\n System.out.println(\"Valores do vetor atuais: \");\n Imprimir_vetor(vet_n);\n Invertendo_vetor();\n System.out.println(\"Valores do depois da troca: \");\n Imprimir_vetor(vet_n2); \n break;\n case 4:\n int valor_buscar;\n System.out.print(\"Informe o valor que pretende buscar: \");\n valor_buscar = scanf.nextInt();\n System.out.println(\"Valor encontrado na posição: \" + Buscar(valor_buscar));\n break;\n case 5:\n int valor_remover;\n System.out.print(\"Informe o valor que pretende remover: \");\n valor_remover = scanf.nextInt();\n System.out.println(\"Valor a ser removido = \"+ Remover(valor_remover));\n break;\n case 0:\n System.out.println(\"Até mais!!!\");\n break;\n default:\n System.out.println(\"Opção não existente, por favor informe outra opção\");\n break; \n }\n }\n }", "public static void main(String[] args) {\n\t\tString interger = \"\";\r\n\t\tint r = 0;\r\n\t\tint oper = 0;\r\n\t\twhile (true) {\r\n\t\t\tScanner s = new Scanner(System.in);\r\n\t\t\tSystem.out.print(\"숫자 한개, 연산자, d, e\");\r\n\t\t\tString firstInt = s.next();\r\n\t\t\tif (firstInt.equals(\"+\")) {\r\n\t\t\t\toper = 1;\r\n\t\t\t\tr = r + Integer.parseInt(interger);\r\n\t\t\t\tinterger = \"\";\r\n\t\t\t} else if (firstInt.equals(\"-\")) {\r\n\t\t\t\toper = 2;\r\n\t\t\t\tr = r - Integer.parseInt(interger);\r\n\t\t\t\tinterger = \"\";\r\n\t\t\t} else if (firstInt.equals(\"=\")) {\r\n\t\t\t\tif (oper == 1) {\r\n\t\t\t\t\tr = r + Integer.parseInt(interger);\r\n\t\t\t\t\tSystem.out.println(r);\r\n\t\t\t\t} else if (oper == 2) {\r\n\t\t\t\t\tr = r - Integer.parseInt(interger);\r\n\t\t\t\t\tSystem.out.println(r);\r\n\t\t\t\t}\r\n\t\t\t\tinterger = \"0\";\r\n\t\t\t} else if (firstInt.equals(\"d\")) {\r\n\t\t\t\tinterger = interger.substring(0, interger.length() - 1);\r\n\t\t\t} else {\r\n\t\t\t\tinterger = interger + firstInt;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public static void NumeroCapicua(){\n\t\tint numero,resto,falta,invertido;\n\t\tString tomar;\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese un numero\");\n\t\tnumero=reader.nextInt();\n\t\tfalta=numero;\n\t\tinvertido=0;\n\t\tresto=0;\n\t\twhile(falta!=0){\n\t\t\tresto=(falta%10);\n\t\t\tinvertido=(invertido*10)+resto;\n\t\t\tfalta=(int)(falta/10);\n\t\t}\n\t\tif(invertido==numero){\n\t\t\tSystem.out.println(\"Es Capicua\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No es Capicua\");\n\t\t}\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}", "public void main(String[] args) {\n \n Scanner entrada = new Scanner(System.in); \n String nombre;\n \n System.out.println(\"¿Cual es tu Nombre? \");\n nombre = entrada.nextLine();\n mensaje(nombre);\n \n \n \n imprimir(28, 12);\n imprimir(67, 6);\n imprimir(84, 16);\n imprimir(57, 23);\n imprimir(92, 12);\n \n \n\n \n int resultado=sumar(1, 2);\n System.out.println(\n concatenar(\"El resultado es\", \"\" +resultado));\n \n int resultado2= sumar(sumar(1, 2), 7);\n\n boolean mayor= comprobar(resultado2);\n \nif(comprobar(resultado2))\n System.out.println(\"Es mayor\");\n else\n System.out.println(\"No es mayor\");\n}", "public static void main(String[] args) {\n //variable tipo local que recibe la opcion de nombre para el jugador\n int numeroDeOpcion;\n //acreditacion de los puntos iniciales\n puntosDeVida= 150*(nivel+1);\n puntosDeMana= 10*(nivel+1);\n //inicializacion del juego y preguntando si desea un nombre para el personaje\n \tSystem.out.println(\" ---->BIENVENIDO AL JUEGO<----\");\n \tSystem.out.println(\"\\nDesea ingresar un nombre a su personaje [S]si, [N]no\");\n \tScanner caracterNombre=new Scanner(System.in);\n \tString opcionTemp = caracterNombre.nextLine();\n \topcion = opcionTemp.charAt(0); //leyendo opcion\n \t//Ingresando un nombre por el jugador\n \tif(opcion=='s'||opcion=='S'){\n \t\tSystem.out.println(\"Ingrese el nombre:\");\n \t\tScanner cadenaNombre=new Scanner(System.in);\n \t\tnombrePersonaje=cadenaNombre.nextLine();\n \t}\n //Estableciendo nombre predeterminado por el juego\n else{\n \tnombrePersonaje=\"Jugador1\";\n \tSystem.out.printf(\"\\nSe le a asignado el personaje:\\t\"+nombrePersonaje); \n \t}\n do{\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n //Menu de opciones principales para el jugador\n System.out.println(\"\\n..MENU DE OPCIONES..\");\n System.out.println(\"1. A la carga.\"); //Inicia la battalla\n System.out.println(\"2.Tienda.\"); //Permite comprar articulos para la batalla\n System.out.println(\"3.zzZzzZzzZ(Dormir).\");//Permite recuperar al jugador a su estado inicial \n System.out.println(\"4.Status.\"); //Muestra las estadisticas del juego\n System.out.println(\"5.Mas Poder!!!.\"); //Para aumento de nivel del juego \n System.out.println(\"6.Salir.\"); //finaliza las acciones y sale del juego\n do{//validando el numero de opcion\n System.out.println(\"Ingrese el numero de opcion:\");\n numeroDeOpcion= scanner.nextInt();\n }\n while(numeroDeOpcion<1 || numeroDeOpcion>6);\n //comparando la opcion ingresada\n switch(numeroDeOpcion){\n //mostrando los casos existentes por comparar\n case 1:{\n do{\n batalla();//llamando a la funcion batalla\n //Validando la repeticion de la fuencion o su finalizacion\n System.out.println(\"\\nDesea otra Batalla? [S]i, [N]o\");\n Scanner caracterBatalla=new Scanner(System.in);\n String opcionTemp1 = caracterBatalla.nextLine();\n repetirOpcion = opcionTemp1.charAt(0);\n opcionMiedo=0; //reiniciando la opcion miedo\n } \n //condicion del bucle para la funcion batalla \n while(repetirOpcion=='s'||repetirOpcion=='S');\n break;\n }\n case 2:{\n do{\n tienda();//llamando a la funcion tienda\n //validando la repeticion de la funcion\n System.out.println(\"\\nDesea realizar otra compra? [S]i, [N]o\");\n Scanner caracterTienda=new Scanner(System.in);\n String opcionTemp2 = caracterTienda.nextLine();\n repetirOpcion2 = opcionTemp2.charAt(0);\n }\n //condicion de bucle para la funcion tienda\n while(repetirOpcion2=='s'||repetirOpcion2=='S');\n break;\n }\n case 3:{\n do{\n dormir();//llamando a la funcion dormir\n //validando la repeticion de la funcion\n System.out.println(\"\\nDesea volver a dormir? [S]i, [N]o\");\n Scanner caracterDormir=new Scanner(System.in);\n String opcionTemp3 = caracterDormir.nextLine();\n repetirOpcion3 = opcionTemp3.charAt(0);\n }\n //condicion de bucle para la funcion dormir \n while(repetirOpcion3=='s'||repetirOpcion3=='S');\n break;\n }\n case 4:{\n do{\n status();//llamando a la funcion status\n //validando su repeticion\n System.out.println(\"\\nMostrar nuevamente? [S]i, [N]o\");\n Scanner caracterStatus=new Scanner(System.in);\n String opcionTemp4 = caracterStatus.nextLine();\n repetirOpcion4 = opcionTemp4.charAt(0);\n }\n //condicion de bucle para la funcion status \n while(repetirOpcion4=='s'||repetirOpcion4=='S');\n break;\n }\n case 5:{\n do{\n poder();//llamando a la funcion poder\n //validando la repeticion de la funcion\n System.out.println(\"\\nDesea mas poder? [S]i, [N]o\");\n Scanner caracterPoder=new Scanner(System.in);\n String opcionTemp5 = caracterPoder.nextLine();\n repetirOpcion5 = opcionTemp5.charAt(0);\n }\n //condion de bucle para la funcion poder \n while(repetirOpcion5=='s'||repetirOpcion5=='S');\n break;\n }\n \tdefault:{\n System.exit(0);//saliendo del juego\n break;\n }\n }\n //validacion del retorno al menu principal\n System.out.println(\"volver al menu [S]si, [N]no?\");\n Scanner caracterVolver=new Scanner(System.in);\n String opcionTemp6 = caracterVolver.nextLine();\n opcionSalir=opcionTemp6.charAt(0);\n }\n //condicion del bucle para menu principal\n while(opcionSalir=='S'||opcionSalir=='s'); \n }", "public static void main(String[] args) {\n\t\tint primero=0;\n\t\tint segundo=0;\n\t\tint dato;\n\t\tboolean SRE=false;\n\t\tScanner entrada=new Scanner(System.in);\n\t\tSystem.out.println(\"Dame una serie de números\");\n\t\tdato=entrada.nextInt();\n\t\tif(dato!=0){\n\t\t\tprimero=dato;\n\t\t\tdato=entrada.nextInt();\n\t\t\tif(dato!=0){\n\t\t\t\tsegundo=dato;\n\t\t\t\tdato=entrada.nextInt();\n\t\t\t\twhile(dato!=0){\n\t\t\t\t\tif(primero<segundo){\n\t\t\t\t\t\tif(dato>primero && dato<segundo){\n\t\t\t\t\t\t\tSRE=true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(dato<segundo && dato>primero){\n\t\t\t\t\t\t\tSRE=true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tprimero=segundo;\n\t\t\t\t\tsegundo=dato;\n\t\t\t\t\tdato=entrada.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(SRE){\n\t\t\tSystem.out.println(\"Es una serie ritmica de enteros\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No es una serie rítmica de enteros\");\n\t\t}\n\t\tentrada.close();\n\t}", "public static void letra(){\n\t\tScanner sc=new Scanner(System.in);\n\t\tchar letra;\n\t\tSystem.out.println(\"Introduzca una letra: \");\n\t\tletra=sc.next().charAt(0);\n\t\t\n\t\tswitch(letra){\n\t\t\tcase 'a': case 'A':\n\t\t\tcase 'e':case 'E':\n\t\t\tcase 'i':case'I':\n\t\t\tcase 'o': case'O':\n\t\t\tcase'u': case 'U':\n\t\t\t\tSystem.out.println(\"Es una vocal\");\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Es una consonante.\");\n\t\t}\n\t\t\n\t\t\n\t}", "public void estado3(char elemento){\n\t\tif(esperandoConector){\n\t\t\tif(elemento == '&' || elemento == '|'){\n\t\t\t\tesperandoAtomo = true;\n\t\t\t\tesperandoConector = false;\n\t\t\t\tif(i+1 < linea.length()){\n\t\t\t\t\ti++;\n\t\t\t\t\testado1(linea.charAt(i));\n\t\t\t\t}else{\n\t\t\t\t\trevisarErrores();\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tesperandoAtomo = true;\n\t\t\t\tif(elemento == '<'){\n\t\t\t\t\tesperandoGuion = true;\n\t\t\t\t\tif(i+1 < linea.length()){\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\testado3(linea.charAt(i));\n\t\t\t\t\t}else{\n\t\t\t\t\t\trevisarErrores();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(elemento == '-'){\n\t\t\t\t\tesperandoGuion = false;\n\t\t\t\t\tesperandoCierreImplicacion = true;\n\t\t\t\t\tif(i+1 < linea.length()){\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\testado3(linea.charAt(i));\n\t\t\t\t\t}else{\n\t\t\t\t\t\trevisarErrores();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(elemento == '>' && esperandoCierreImplicacion && !esperandoGuion){\n\t\t\t\t\tesperandoCierreImplicacion = false;\n\t\t\t\t\tesperandoConector = false;\n\t\t\t\t\tif(i+1 < linea.length()){\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\testado1(linea.charAt(i));\n\t\t\t\t\t}else{\n\t\t\t\t\t\trevisarErrores();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\trevisarErrores();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\trevisarErrores();\n\t\t}\n\t}", "public void estado1(char elemento){\n\t\tif(elemento == '!' && !esperandoConector){\n\t\t\tif(i+1 < linea.length()){\n\t\t\t\ti++;\n\t\t\t\testado1(linea.charAt(i));\n\t\t\t}else{\n\t\t\t\trevisarErrores();\n\t\t\t}\n\t\t}\n\t\telse if(elemento >= 'A' && elemento <= 'Z'){\n\t\t\testado2(elemento);\n\t\t}\n\t\telse if(elemento == '(' && !esperandoConector){\n\t\t\tparentesis.add(1);\n\t\t\tif(i+1 < linea.length()){\n\t\t\t\ti++;\n\t\t\t\testado1(linea.charAt(i));\n\t\t\t}else{\n\t\t\t\trevisarErrores();\n\t\t\t}\n\t\t}\n\t\telse if(elemento == ')' && !esperandoAtomo){\n\t\t\tif(parentesis.size() > 0){\n\t\t\t\tparentesis.remove(parentesis.size()-1);\n\t\t\t\tif(i+1 < linea.length()){\n\t\t\t\t\ti++;\n\t\t\t\t\testado1(linea.charAt(i));\n\t\t\t\t}else{\n\t\t\t\t\tesperandoConector = false;\n\t\t\t\t\trevisarErrores();\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Error: Los parentesis no estan balanceados\");\n\t\t\t\trevisarErrores();\t\n\t\t\t}\n\n\t\t}\n\t\telse{\n\t\t\testado3(elemento);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tFile file = new File(\"src/day/d16/input.txt\");\n\t\tString line = \"\";\n\t\tList<Register> before = new ArrayList<>();\n\t\tList<Integer> ins = new ArrayList<>();\n\t\tList<Register> after = new ArrayList<>();\n\t\t\n\t\tint count = 0;\n\t\tint countOpNum = 0;\n\t\ttry (Scanner sc = new Scanner(file)) {\n\t\t\twhile (sc.hasNext() && count <= 1) {\n\t\t\t\tline = sc.nextLine().trim();\n\t\t\t\tif(line.isEmpty()) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} \n\t\t\t\tcount = 0;\n\t\t\t\tline = line.replaceAll(\"[^0-9]+\", \" \");\n\t\t\t\tbefore = Arrays.stream(line.split(\" \")).filter(p -> !p.isEmpty()).map(Integer::parseInt).map(Register::new).collect(Collectors.toList());\n\t\t\t\t\n\t\t\t\tline = sc.nextLine();\n\t\t\t\tins = Arrays.stream(line.split(\" \")).map(Integer::parseInt).collect(Collectors.toList());\n\n\t\t\t\tline = sc.nextLine();\n\t\t\t\tline = line.replaceAll(\"[^0-9]+\", \" \");\n\t\t\t\tafter = Arrays.stream(line.split(\" \")).filter(p -> !p.isEmpty()).map(Integer::parseInt).map(Register::new).collect(Collectors.toList());\n\n\t\t\t\tif(findNumOfOp(before, ins, after) >= 3 ) {\n\t\t\t\t\tcountOpNum++;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Broj operacija: \" + countOpNum);\n\t}", "public static int obterOpcaoMenu(Scanner sc) {\n\t\t//flag iniciando com o valor false\n\t\tboolean entradaValida = false;\n\t\t//opcao comeca com valor 3\n\t\tint opcao =3;\n\t\t//coletar dados para o menu\n\t\twhile(!entradaValida) {\n\t\tSystem.out.println(\"Digite a opcao desejada\");\n\t\tSystem.out.println(\"Digite (1) Consultar Contato\");\n\t\tSystem.out.println(\"Digite (2) Criar Contato\");\n\t\tSystem.out.println(\"Digite (3) Sair\");\n\t\t\n\t\t\n\t\ttry {\n\t\t\tString entrada= sc.nextLine();\n\t\t\t//mudando o valor de String para int\n\t\t\topcao = Integer.parseInt(entrada);\n\t\t\t//se qualquer uns desses botoes for selecionado mude para true a flag\n\t\t\tif(opcao ==1 || opcao ==2 || opcao==3) {\n\t\t\t\tentradaValida = true;\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tentradaValida = false;\n\t\t\t\tthrow new Exception(\"Entrada invalida\");\n\t\t\t}\n\t\t}catch(Exception e) {\n\t\t\tSystem.out.println(\"entrada invalida digite novamente\\n\");\n\t\t}\n\t\t}\n\t\treturn opcao;\n\t}", "private static String[] checkInput(String input) throws Exception{\n String[] in = input.trim().split(\" \");\n\n if(in.length == 0){\n throw new CommandException(ExceptionEnum.INCORRECT_COMMAND_EXCEPTION);\n }\n\n if(CommandEnum.getCommandEnumFrom(in[0]) == null){\n throw new CommandException(ExceptionEnum.INCORRECT_COMMAND_EXCEPTION);\n }\n\n if(isSpecificCommandENum(in[0],BYE)){\n return in;\n }\n if(isSpecificCommandENum(in[0],TERMINATE)){\n return in;\n }\n\n if(in.length < MIN_PARAM){\n throw new CommandException(ExceptionEnum.LESS_INPUT_EXCEPTION);\n }\n\n if(in.length > MAX_PARAM){\n throw new CommandException(ExceptionEnum.EXTRA_INPUT_EXCEPTION);\n }\n\n //check input value\n for(int i = 1; i < in.length; i++){\n try{\n Integer.parseInt(in[i]);\n }catch(NumberFormatException e){\n throw new CommandException(ExceptionEnum.INVALID_INPUT_EXCEPTION);\n }\n }\n\n return in;\n }", "public void main(String[] args) {\n\t\tManipulationChaine car = new ManipulationChaine();\n\n\t\tchar premierCaractere = car.chaine.charAt(0);\n\t\tint longueur = car.chaine.length();\n\t\tint index = car.chaine.indexOf(';');\n\t\tString familyName = car.chaine.substring(0,index);\n\t\tString majName = familyName.toUpperCase();\n\t\tString minName = familyName.toLowerCase();\n\t\tString[] allChar = car.chaine.split(\";\");\n\t\tSystem.out.println(\"Premier caractère: \" + premierCaractere);\n\t\tSystem.out.println(\"Le longueur de la chaine est de: \" + longueur);\n\t\tSystem.out.println(\"Le caractère ; se trouve a l'index: \" + index);\n\t\tSystem.out.println(\"Le nom de famille est : \" + familyName);\n\t\tSystem.out.println(\"Le nom de famille en majuscule est: \" + majName);\n\t\tSystem.out.println(\"Le nom de famille en minuscule est: \" + minName);\n\t\tSystem.out.println(Arrays.toString(allChar));\n\t\tallChar[2] = allChar[2].replace(\" \",\"\");\n\t\tdouble salaire = Double.parseDouble(allChar[2]); \n\t\tSalarie newSalarie = new Salarie(allChar[0],allChar[1],salaire);\n\t\t\n\t\tSystem.out.println(newSalarie.toString());\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Ingrese un texto: \");\n\t\tScanner sc = new Scanner(System.in);\n\t\tString texto = sc.nextLine();\n\t\tSystem.out.println(\"escribio: \".concat(texto));\n\t\tStringHandle sH = new StringHandle();\n\t\tsH.ImprimirCantidadDeCaracteres(texto);\n\t\tsH.ImprimirPrimeraMitadDeLosCaracteres(texto);\n\t\tsH.ImprimirUltimoCaracter(texto);\n\t}", "Input getObjetivo();", "public String getPrimoCampo(){\n return descrizione.split(\",\")[0];\n }", "@Override\r\n public void solicitarDatos(){\r\n Scanner lector = new Scanner(System.in);\r\n super.solicitarDatos(); //llamo al metodo solicitar datos de la clase padre\r\n this.setEstado(true);\r\n this.setNumeroLicencia(licencias);\r\n licencias++;\r\n System.out.println(\"Introduce el numero de taxistas que conducen este\"\r\n + \"taxi\");\r\n this.setNumeroTaxistas(lector.nextInt());\r\n \r\n }", "public static String input(int mode,int i,int player){\n\tScanner input = new Scanner(System.in);\r\n\tString inp = null;\r\n\tint a = 0,b=0;\r\n\tif(mode==1)\r\n\t inp = input.nextLine();\r\n\telse if(mode==2)\r\n\t{\r\n\t\tif(i%2==0){\r\n\t\t\tinp=input.nextLine();\r\n\t\t\t}\r\n\t\telse{\r\n\t\tinp = searchSmart(player,mode,i);\r\n\t\tSystem.out.println(inp);\r\n\t}\r\n\t\t}\r\n\telse if(mode==3)\r\n\t{\r\n\t\tif(i%2==0){\r\n\t\t\tinp = searchSmart(player,mode,i);\r\n\t\t\tSystem.out.println(inp);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tinp=input.nextLine();\t\r\n\t\t}\r\n\t\t\t\r\n\t}\r\n\treturn inp;\r\n}", "public void realizaSimulacion() {\n do {\n \tif (mundo != null) {\n \t\tSystem.out.println(mundo.toString());\n \t}\n \t\n \tSystem.out.println(\"Elija un comando: \"); // solicitud del comando\n System.out.println(\"Comando > \");\n String opcion = in.nextLine();\n opcion = opcion.toUpperCase();\n\n String[] words = opcion.split(\" \");\n \n try {\n \tif((mundo != null) || (mundo == null && !comandosNoPermitidos(opcion))){\n\t \tComando comando = ParserComandos.parseaComandos(words); //busca el comando comparandolo\n\t \t\n\t\t if (comando != null) {\t\n\t\t\t\t\t\tcomando.ejecuta(this); // Si lo encuentra, lo ejecuta\n\t\t }\n\t\t else {\n\t\t \tSystem.out.println(\"Comando incorrecto\");\n\t\t }\n \t}\n \n } catch (IOException | PalabraIncorrecta | ErrorLecturaTipoCelula | FormatoNumericoIncorrecto | IndicesFueraDeRango | InputMismatchException | PosicionVacia | PosicionOcupada | CelulaIncorrecta e) {\n \t\te.printStackTrace();\n \t}\n \n \n GuiaEjecucion.textoAyuda();\t\t//muestra codigos de mensaje que no afecten a evoluciona\n GuiaEjecucion.pasosDados(); //muestra codigos de mensajes que tengan que ver con los movimientos de las celulas\n } while (!this.simulacionTerminada);\t//en casod e que el usuario esciba el comando SALIR, se termina la ejecuci�n\n }", "public static void main(String[] args) {\n\t\tScanner input=new Scanner (System.in);\r\n\t\t//referentna vrijednost za kontorolisanje do while bloka\r\n\t\tboolean process=true;\r\n\t\tint num=0;\r\n\t\t//do while blok (i try catch) za sprecavanje pogresnog unosa, broj treba da je cijei i veci od 1\r\n\t\tdo{try{System.out.println(\"Enter one number\");\r\n\t\tnum=input.nextInt();\r\n\t\tprocess=false;}\r\n\t\tcatch(Exception e){\r\n\t\t\t//ispis poruke u slucaju pogreske\r\n\t\t\tSystem.out.println(\"Pogresan unos\");\r\n\t\t\tinput.nextLine();\r\n\t\t}}while(process||num<2);\r\n\t\tint n=num;\r\n\t\tint count=0;\r\n\t\tint prostBroj=0;\r\n //pomocu petlje nalazimo najmanje djeljitelje unesenog broja\r\n for(int i=2; i<=n; i++){\r\n \tcount=0;\r\n \t//obzirom da petlja ide od manjih brojeva ukoliko se pronadje djeljitelj on ce biti trenutno ujedno i najmanji djeljitelj\r\n while(n%i==0){\r\n n = n/i;\r\n count++;\r\n prostBroj++;\r\n }\r\n \r\n //ukoliko je djeljitelj pronadjen vrsi se ispis\r\n if (count != 0) {\r\n for (int j = count; j > 0; j--) {\r\n System.out.print(i);\r\n //ukoliko je preostali broj razlicit od 1, vrsi se ispis znaka za mnozenje\r\n //time sprjevamo dodavanje znaka nakon ispisa zadnjeg broja\r\n if (n != 1) {\r\n System.out.print(\"*\");\r\n } else System.out.print(\"=\"+num);\r\n \r\n }\r\n\r\n\t}\r\n }//ukoliko broj ima samo jednog djeljitelja onda se dijeli sa samim sobom, to je prost broj\r\n //takodje se moze pisati kao 1*num\r\n if (prostBroj==1)System.out.println(\"\\nUneseni broj je prost broj\");\r\n input.close();\r\n }", "public static String validarinfo(String message, String tipo) {\n\n //Variable para capturar Info por consola\n String infoval;\n\n Scanner in = new Scanner(System.in);\n\n System.out.println(message);\n infoval = in.nextLine();\n\n switch (tipo){\n case \"N\":\n while (!isNumeric(infoval)) {\n System.out.println(message);\n infoval = in.nextLine();\n }\n break;\n\n case \"A\":\n break;\n }\n return infoval;\n }", "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String[] procesador = {\"6500K\", \"6700K\", \"3570K\", \"2600K\"};\n \n System.out.println(\"Introduzca el número de la acción que desea realizar:\");\n System.out.println(\" 1. Listado\");\n System.out.println(\" 2. Nueva memoria\");\n System.out.println(\" 3. Editar\");\n System.out.println(\" 4. Borrar\");\n \n int accion = Integer.parseInt(s.nextLine());\n switch (accion) {\n case 1:\n listar(procesador);\n break;\n case 2:\n \n break;\n case 3:\n break;\n case 4:\n break;\n }\n }", "public void q0() {\n\r\n if(cont < car.length) { //cuantos espacios tiene mi arreglo \r\n\r\n if(car[cont]!='0'&&car[cont]!='1'&&car[cont]!=' ') { //el arreglo car en el contador 0 lo vamos a comparar si es = a \r\n\r\n System.out.println(\"Error\");\r\n //cont++; //incrememnto mi contador \r\n //q0(); //si no lo dejo en 0 \r\n }\r\n\r\n else if (car[cont]=='0') { //si es una b me muevo al q1 \r\n \r\n System.out.println(\"q0-----> \"+car[cont]+\" ----->q1\");\r\n cont++;\r\n cont0++;\r\n q1(); //nos va a mover al estado uno \r\n }\r\n\r\n else if (car[cont]=='1') { //si es una b me muevo al q1 \r\n \r\n System.out.println(\"q0-----> \"+car[cont]+\" ----->q3\");\r\n cont++;\r\n cont1++;\r\n q3(); //nos va a mover al estado uno \r\n } \r\n\r\n else if (car[cont]==' ') { //si es una b me muevo al q1 \r\n \r\n System.out.println(\"q0-----> \"+car[cont]+\" ----->q0\");\r\n cont++;\r\n Space();\r\n q0(); //nos va a mover al estado uno \r\n } \r\n } \r\n\r\n else if (cont == car.length) {\r\n\r\n Paridad();\r\n }\r\n }", "public void actionPerformed(ActionEvent evento) {\n\t\t \t \t\tString por = numpor.getText().trim();\n\t\t \t \t\tif (Integer.parseInt(por)>0) {\n\t\t \t\t\t\n\t\t \t \t\tInteger count = quantita.getPiatto(indicecorrente).getNumcategory() - 1;\n\t\t \t \t\tquantita.getPiatto(indicecorrente).setNumcategory(count);\n\t\t \t \t\tString porz = count.toString();\n \t \t\t\t\tnumpor.setText(\" \" + porz);\n \t \t\t\t\tcontatore_quantita=count;\n\t\t \t \t\t}\n\t\t \t \t}", "public void comppar(String user){\r\n if(pos1==pos2){\r\n if(user.equals(\"Jugador\")==true)\r\n pj++;\r\n }\r\n else{\r\n switch(this.opc){\r\n case 1:\r\n mfacil[pos[0]][pos[1]]=\"*\";\r\n mfacil[pos[2]][pos[3]]=\"*\";\r\n break;\r\n case 2:\r\n mmedio[pos[0]][pos[1]]=\"*\";\r\n mmedio[pos[2]][pos[3]]=\"*\";\r\n break;\r\n case 3:\r\n mdificil[pos[0]][pos[1]]=\"*\";\r\n mdificil[pos[2]][pos[3]]=\"*\";\r\n break;\r\n }\r\n }\r\n }", "public String[] pedirDatosNuevoCarro(){\n String[] nuevoCarro = new String[3];\n boolean paso = false;//Pedimos los datos de un carro, con su verificacion y luego se la enviamos en una String\n while (paso == false){\n try {\n System.out.println(\"Ingrese el numero de placa\");\n nuevoCarro[0] = scan.nextLine();\n paso = true;\n } catch (Exception e) {\n System.out.println(\"Ingrese un valor correcto, por favor\");\n }\n }\n paso = false;\n while (paso == false){\n try {\n System.out.println(\"Ingrese la marca de su vehiculo\");\n nuevoCarro[1] = scan.nextLine();\n paso = true;\n } catch (Exception e) {\n System.out.println(\"Ingrese un valor correcto, por favor\");\n }\n }\n paso = false;\n while (paso == false){\n try {\n System.out.println(\"Ingrese el modelo de su auto, elija el numero antes del modelo ([1 'European|U.S. Compact'], [2 'U.S. Standard'], [3 'U.S. Standard Large'])\");\n String valorString = scan.nextLine();\n int valor = Integer.parseInt(valorString);\n if (valor == 1){\n nuevoCarro[2] = \"European|U.S. Compact\";\n }\n else if (valor == 2){\n nuevoCarro[2] = \"U.S. Standard\";\n }\n else if (valor == 3){\n nuevoCarro[2] = \"U.S. Standard Large\";\n }\n paso = true;\n } catch (Exception e) {\n System.out.println(\"Ingrese un numero de 1 a 3, por favor\");\n }\n }\n\n return nuevoCarro;\n }", "public static void main(String[] args) {\n Dni dni= new Dni();\n Scanner sc = new Scanner(System.in);\n \n System.out.println(\"Digitos del dni:\");\n dni.setNumero(sc.nextInt());\n \n if(dni.getNumero()!=0){\n System.out.println(\"Letra:\"+dni.getLetra());\n }else{\n System.out.println(\"El numero introducido no es válido\");\n }\n }", "public void setopcion(){\n this.opciones=read.next().charAt(0);\n System.out.println();\n }" ]
[ "0.62312925", "0.61390334", "0.6118257", "0.61093646", "0.59476304", "0.5911161", "0.5863412", "0.5838957", "0.5836871", "0.58126986", "0.57929754", "0.5792445", "0.57421523", "0.57197106", "0.5711319", "0.57105356", "0.5700021", "0.5696954", "0.56797785", "0.5678834", "0.56758267", "0.5663468", "0.5637067", "0.5598968", "0.55875856", "0.5579013", "0.55659056", "0.5559604", "0.555927", "0.55574393", "0.5555311", "0.5545366", "0.554386", "0.5524074", "0.55160385", "0.5503636", "0.55016476", "0.5497297", "0.54963297", "0.54927284", "0.54870415", "0.5482704", "0.5482469", "0.5479049", "0.5477699", "0.5472497", "0.547052", "0.5465911", "0.54612064", "0.5458397", "0.5457337", "0.5455933", "0.5454097", "0.5449466", "0.54456073", "0.5444774", "0.54312545", "0.54236984", "0.5423676", "0.54222506", "0.5419518", "0.5416738", "0.54140735", "0.5407304", "0.54006314", "0.54004574", "0.5399994", "0.53994113", "0.5391507", "0.5383699", "0.537267", "0.53566664", "0.5352458", "0.5346469", "0.5343196", "0.5342581", "0.53424215", "0.5341689", "0.5339345", "0.5328125", "0.5327966", "0.53276783", "0.5325568", "0.5325128", "0.5321512", "0.53200525", "0.53199387", "0.53194857", "0.5319067", "0.53189296", "0.53185135", "0.5317366", "0.53120947", "0.5311745", "0.53108597", "0.530567", "0.53039676", "0.53004503", "0.52995795", "0.5298803", "0.5298282" ]
0.0
-1
open a new activity, showing detailed view of the donation details to the delivery agent
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { DonationData donationData = list.get(position); Intent intent = new Intent(getContext(), DonationDetailsActivity.class); intent.putExtra("donationData",donationData); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent intent = new Intent(context, CustomerDueDetails.class);\n\t\t\t\t\tintent.putExtra(\"shopper_id\", \"\"+list.get(position).get_shopper_id());\n\t\t\t\t\tintent.putExtra(\"name\", \"\"+list.get(position).get_shopper_name());\n\t\t\t\t\tintent.putExtra(\"amount\", \"\"+list.get(position).get_outstanding_amount());\n\t\t\t\t\tintent.putExtra(\"order_id\", \"\"+list.get(position).getOrder_id());\n\t\t\t\t\tintent.putExtra(\"strdt\", txt_str_date.getText().toString());\n\n\t\t\t\t\tintent.putExtra(\"enddt\", txt_str_end.getText().toString());\n\n\t\t\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\tcontext.startActivity(intent);\n\t\t\t\t}", "public boolean openCreateGoal(){\n Intent intent = new Intent(this, GoalNewActivity.class);\n startActivity(intent);\n return true;\n }", "public void onDealsClick(View view){\n Intent intent = new Intent(user_history_activity.this, Deals_Display.class);\n startActivity(intent);\n }", "public void openNewActivity(){\n Intent intent = new Intent(this, InventoryDisplay.class);\n startActivity(intent);\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(getActivity(),\r\n\t\t\t\t\t\tTransportationActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(context, ProdDescActivity.class);\n context.startActivity(intent);\n }", "private void toViewBudget(){\n // intent for view budget screen\n Intent viewBudgetScreen = new Intent(this, ViewBudget.class);\n startActivity(viewBudgetScreen);\n }", "private void showCreateWalkActivity() {\n Intent intent = new Intent(this, ActivityNewWalk.class);\n this.startActivityForResult(intent, CREATE_WALK_REQUEST);\n }", "private void buildIntent() {\n ReportLogic.report(this, \"POST\", mInfo.c_rpt, 0, null);\n Intent intent = new Intent();\n Bundle bundle = new Bundle();\n bundle.putString(PKG_NAME, mInfo.href);\n bundle.putString(APP_NAME, mInfo.name);\n intent.putExtra(DetailActivity.DETAIL, bundle);\n intent.setClass(this, DetailActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n incidentalIntent = new Intent(getApplicationContext(),IncidentalTaskActivity.class);\n startActivity(incidentalIntent);\n }", "public void GotoReceipts(View view) {\n mFirebaseAnalytics.logEvent(\"engagement_party\", new Bundle());\n Intent intent = new Intent(this, AddReceipt.class);\n startActivity(intent);\n }", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),\tDue_list.class);\r\n\t\t\t\tintent.putExtra(\"rep_ind\", 15);\r\n\t\t\t\tintent.putExtra(\"asha_id\", asha_id);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),\tDue_list.class);\r\n\t\t\t\tintent.putExtra(\"rep_ind\", 14);\r\n\t\t\t\tintent.putExtra(\"asha_id\", asha_id);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),\tDue_list.class);\r\n\t\t\t\tintent.putExtra(\"rep_ind\", 13);\r\n\t\t\t\tintent.putExtra(\"asha_id\", asha_id);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "public void salesReport(View view) {\n String dbString = dbHandler.databaseToString();\n// start a new intent an ddisplay the output there\n Intent saleseIntent = new Intent(this, DisplaySalesDetails.class);\n saleseIntent.putExtra(\"db\",dbString);\n startActivity(saleseIntent);\n }", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),\tDue_list.class);\r\n\t\t\t\tintent.putExtra(\"rep_ind\", 12);\r\n\t\t\t\tintent.putExtra(\"asha_id\", asha_id);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "@Override\n public void onClick(View v)\n {\n Intent viewIntent =\n new Intent(\"android.intent.action.VIEW\",\n Uri.parse(\"https://datadiscovery.nlm.nih.gov/Drugs-and-Supplements/Pillbox/crzr-uvwg\"));\n startActivity(viewIntent);\n }", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),\tDue_list.class);\r\n\t\t\t\tintent.putExtra(\"rep_ind\", 11);\r\n\t\t\t\tintent.putExtra(\"asha_id\", asha_id);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n// QPManager.startRecordActivity(MainActivity.this);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(DonationActivity.this, DonationProjectActivity.class);\n startActivity(intent);\n //finish();\n }", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),\tDue_list.class);\r\n\t\t\t\tintent.putExtra(\"rep_ind\", 6);\r\n\t\t\t\tintent.putExtra(\"asha_id\", asha_id);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "private void openNewActivity() {\n Intent intent = new Intent(this, NewNoteActivity.class);\n startActivityForResult(intent, SECOND_ACTIVITY_REQUEST);\n }", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),\tDue_list.class);\r\n\t\t\t\tintent.putExtra(\"rep_ind\", 1);\r\n\t\t\t\tintent.putExtra(\"asha_id\", asha_id);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),\tDue_list.class);\r\n\t\t\t\tintent.putExtra(\"rep_ind\", 4);\r\n\t\t\t\tintent.putExtra(\"asha_id\", asha_id);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),\tDue_list.class);\r\n\t\t\t\tintent.putExtra(\"rep_ind\", 2);\r\n\t\t\t\tintent.putExtra(\"asha_id\", asha_id);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),\tDue_list.class);\r\n\t\t\t\tintent.putExtra(\"rep_ind\", 5);\r\n\t\t\t\tintent.putExtra(\"asha_id\", asha_id);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),\tDue_list.class);\r\n\t\t\t\tintent.putExtra(\"rep_ind\", 10);\r\n\t\t\t\tintent.putExtra(\"asha_id\", asha_id);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "@Override\n public void onClick(View view) {\n Intent nationIntent = new Intent(MainActivity.this, NationActivity.class);\n startActivity(nationIntent);\n }", "public void openDialogCovidlanding(){\n DialogforCovidImageonlandingpage dialogfortotalIrish = new DialogforCovidImageonlandingpage();\n dialogfortotalIrish.show(getSupportFragmentManager(), \"Covid Info\");\n }", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),\tDue_list.class);\r\n\t\t\t\tintent.putExtra(\"rep_ind\", 9);\r\n\t\t\t\tintent.putExtra(\"asha_id\", asha_id);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(mCtx, ClaimPage.class);\n intent.putExtra(\"ClaimID\", String.valueOf(claim.getClaimID()));\n intent.putExtra(\"ClaimNum\", String.valueOf(claim.getClaimNum()));\n intent.putExtra(\"InvoiceNum\", String.valueOf(claim.getInvoiceNum()));\n intent.putExtra(\"offercode\", String.valueOf(claim.getoffercode()));\n intent.putExtra(\"Cus_Name\", String.valueOf(claim.getCus_Name()));\n intent.putExtra(\"Creator\", String.valueOf(claim.getCreator()));\n intent.putExtra(\"creation_date\", String.valueOf(claim.getcreation_date()));\n intent.putExtra(\"Currency\", String.valueOf(claim.getCurrency()));\n intent.putExtra(\"amount\", String.valueOf(claim.getamount()));\n intent.putExtra(\"invoice_date\", String.valueOf(claim.getinvoice_date()));\n intent.putExtra(\"settlement\", String.valueOf(claim.getsettlement()));\n intent.putExtra(\"Overage\", String.valueOf(claim.getOverage()));\n intent.putExtra(\"claim_type\", String.valueOf(claim.getclaim_type()));\n intent.putExtra(\"BillTo\", String.valueOf(claim.getBillTo()));\n intent.putExtra(\"BillToAcc\", String.valueOf(claim.getBillToAcc()));\n intent.putExtra(\"ShipTo\", String.valueOf(claim.getShipTo()));\n intent.putExtra(\"ShipToAcc\", String.valueOf(claim.getShipToAcc()));\n intent.putExtra(\"Processor\", String.valueOf(claim.getProcessor()));\n intent.putExtra(\"request_id\", String.valueOf(claim.getrequestid()));\n intent.putExtra(\"notes\", String.valueOf(claim.getnotes()));\n intent.putExtra(\"approval_level\", String.valueOf(claim.getapproval_level()));\n\n\n mCtx.startActivity(intent);\n\n Log.d(TAG, \"Claim \" + String.valueOf(claim.getClaimNum())+ \" Clicked\");\n }", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),\tDue_list.class);\r\n\t\t\t\tintent.putExtra(\"rep_ind\", 3);\r\n\t\t\t\tintent.putExtra(\"asha_id\", asha_id);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),\tDue_list.class);\r\n\t\t\t\tintent.putExtra(\"rep_ind\", 7);\r\n\t\t\t\tintent.putExtra(\"asha_id\", asha_id);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),\tDue_list.class);\r\n\t\t\t\tintent.putExtra(\"rep_ind\", 8);\r\n\t\t\t\tintent.putExtra(\"asha_id\", asha_id);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "void navigateToOrderingDonut() {\n Intent gotoOrderDonut = new Intent(this, OrderingDonutActivity.class);\n startActivity(gotoOrderDonut);\n }", "@Override\n public void goToEvent() {\n startActivity(new Intent(AddGuests.this, DetailEventRequest.class)); }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(context,DetailsActivity.class);\n intent.putExtra(\"commodityId\", commodityListBeanXX.getCommodityId());\n context.startActivity(intent);\n }", "public ViewDeliveryDetailManagedBean() {\n deliveryDetailToView = new DeliveryDetail();\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(SubmitPaymentActivity.this, PatientHomeActivity.class);\n //start activity\n startActivity(intent);\n }", "public void onClickDelivery(View view) {\n savePreferences();\n Intent intent = new Intent(this, ActDelivery.class);\n\n // Passing order information using Intent.putString();\n intent.putExtra(\"items\", new String[]{(String) spEntree.getSelectedItem(),\n (String) spDrink.getSelectedItem(), (String) spDessert.getSelectedItem()});\n intent.putExtra(\"subtotal\", subtotal);\n\n startActivity(intent);\n }", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),\tDue_list.class);\r\n\t\t\t\tintent.putExtra(\"rep_ind\", 0);\r\n\t\t\t\tintent.putExtra(\"asha_id\", asha_id);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "@Override\n public void onClick(View view) {\n // Create a new intent to open the {@link Classical}\n Intent classicalIntent = new Intent(getApplicationContext(), Classical.class);\n\n // Start the new activity\n startActivity(classicalIntent);\n }", "private void startBookingDetails() {\n\t\t\n\t\n\t Intent launchBookingDetails = new Intent(this, BookingDetails.class);\n\t launchBookingDetails.putExtra(\"obj\", obj);\n\t startActivity(launchBookingDetails);\n\n\t }", "@OnClick(R.id.btnDetailsLKP)\n public void onClickDetailsLKP() {\n Intent i = new Intent(getActivity(), ActivityDetailsLKPSummary.class);\n\n// i.putExtra(ActivityDetailsLKPSummary.PARAM_IS_LKP_INQUIRY, isLKPInquiry);\n// i.putExtra(ActivityDetailsLKPSummary.PARAM_LKP_DATE, this.lkpDate.getTime());\n i.putExtra(ActivityDetailsLKPSummary.PARAM_COLLECTOR_ID, this.collectorCode);\n\n startActivity(i);\n }", "@Override\n public void viewDetails(Object object) {\n Member member = (Member) object;\n\n Intent detailsIntent = new Intent(getContext(), MemberActivity.class);\n detailsIntent.putExtra(\"MEMBER\", member);\n startActivity(detailsIntent);\n }", "@Test\n public void openTaskDetails_startsActivity() {\n String taskId = \"id\";\n\n // When opening the task details\n mTasksNavigator.openTaskDetails(taskId);\n\n // The AddEditTaskActivity is opened with the correct request code\n verify(mNavigationProvider).startActivityForResultWithExtra(eq(TaskDetailActivity.class),\n eq(-1), eq(TaskDetailActivity.EXTRA_TASK_ID), eq(taskId));\n }", "@Override\n public void onClick(View view) {\n // Create a new intent\n Intent new_release_intent = new Intent(VietPopActivity.this, MainActivity.class);\n new_release_intent.putExtra(\"uniqueid\",\"from_viet\");\n // Start the new activity\n startActivity(new_release_intent);\n }", "@Override\n public void displayDetailsActivity(CommonPersonObjectClient client, String notificationId, String notificationType) {\n }", "public void goToRestaurantDetails(View view) {\n\t\t// Get current restaurant being displayed\n\t\tIntent intent = new Intent(this, RestaurantDetails.class);\n\t\tList<Business> currentSearchList = ApplicationData.getInstance().getListCurrentSearch();\n\n\t\t// Add restaurant information to the restaurant selection screen\n\t\tintent.putExtra(\"restaurantName\", currentSearchList.get(0).name());\n\t\tintent.putExtra(\"businessStreetAddress\", currentSearchList.get(0).location().displayAddress().get(0)); // example street address: 235 Boulevard St-Jean\n\t\tintent.putExtra(\"businessRegionalAddress\", currentSearchList.get(0).location().displayAddress().get(2)); // example regional address: Pointe-Claire, QC H9R 3J1\n\t\tintent.putExtra(\"restaurantDescription\", currentSearchList.get(0).snippetText());\n\t\tintent.putExtra(\"restaurantImage\", currentSearchList.get(0).imageUrl());\n\n\t\t// Transition to restaurant details screen\n\t\tstartActivity(intent);\n\t}", "public void onClickOrderDate(View view){\n Intent intent = new Intent(this, ViewOrderedCWListActivity.class); //create a new intent and point it at the ViewOrderedCWList activity\n intent.putExtra(EXTRA_MESSAGE, \"Date\"); //add the \"Date\" string as a message in the intent, used to differentiate the calls to ViewOrderedCWList\n startActivity(intent); //start the new activity\n\n }", "@Override\n public void onClick(View v) {\n ArticleUtil.launchDetailActivity(mContext, bean.getAid(), bean.getSid(), bean.getAl(), false, bean);\n GoogleAnalyticsTracker.setGoogleAnalyticsEvent(mContext, \"Related Article\", \"Related article: Article Clicked\", \"Article detail page\");\n FlurryAgent.logEvent(\"Related Article: \" + \"Article Clicked\");\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(DonationActivity.this, NewsActivity.class);\n startActivity(intent);\n finish();\n }", "@Override\r\n public void onClick(View view) {\r\n Intent paymentsIntent = new Intent(MainActivity.this, PaymentActivity.class);\r\n startActivity(paymentsIntent);\r\n }", "private void showAddWayPointActivity() {\n Intent intent = new Intent(this, ActivityNewWaypoint.class);\n this.startActivityForResult(intent,CREATE_WAYPOINT_REQUEST);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(mContext, DemandDetailActivity.class);\n //intent.putExtra(\"id\",String.valueOf(item.getPid()));\n intent.putExtra(\"pid\", String.valueOf(item.getPid()));\n intent.putExtra(\"uid\", String.valueOf(item.getUid()));\n mContext.startActivity(intent);\n }", "void clickOnDelivery(Delivery delivery);", "public void ClickAgentInformationPage() {\r\n\t\tagentinfo.click();\r\n\t\t\tLog(\"Clicked the \\\"Agent Information\\\" button on the Birthdays page\");\r\n\t}", "public void startPayment() {\r\n final Activity activity = this;\r\n\r\n final Checkout co = new Checkout();\r\n\r\n try {\r\n JSONObject options = new JSONObject();\r\n options.put(\"name\", \"Farm2Home\");\r\n options.put(\"description\", \"Consumption charges\");\r\n //You can omit the image option to fetch the image from dashboard\r\n // options.put(\"image\", \"https://rzp-mobile.s3.amazonaws.com/images/rzp.png\");\r\n options.put(\"currency\", \"INR\");\r\n options.put(\"amount\", \"500\");\r\n\r\n // JSONObject preFill = new JSONObject();\r\n // preFill.put(\"email\", \"[email protected]\");\r\n // preFill.put(\"contact\", \"9876543210\");\r\n\r\n // options.put(\"prefill\", preFill);\r\n\r\n co.open(activity, options);\r\n } catch (Exception e) {\r\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\r\n .show();\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView,\n View view, int position, long rowId) {\n Traffic traffic = resultsOfIncidents.get(position);\n\n Intent intent = new Intent(IncidentsClass.this, DetailsClass.class);\n intent.putExtra(\"title\", traffic.getTitle());\n intent.putExtra(\"description\", traffic.getDescription());\n intent.putExtra(\"link\", traffic.getLink());\n intent.putExtra(\"georss\", traffic.getGeorss());\n intent.putExtra(\"author\", traffic.getAuthor());\n intent.putExtra(\"comments\", traffic.getComments());\n intent.putExtra(\"pubDate\", traffic.getPubDate());\n startActivity(intent);\n }", "public void gotoDetailSalesOrder() {\n\t}", "private void openActivity() {\n }", "public void gotonewpatient(View view)\n {\n Intent i=new Intent(this,AddNewPatient.class);\n startActivity(i);\n }", "public void startViewTripActivity() {\r\n\t\t\r\n\t\t// TODO - fill in here\r\n Intent intent = new Intent(this,TripHistoryActivity.class);\r\n startActivity(intent);\r\n\t}", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }", "@Override\n\t\t\t// On click function\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tIntent intent = new Intent(view.getContext(),\n\t\t\t\t\t\tAgentActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\tfinish();\n\t\t\t}", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(context, SingleVacancyActivity.class);\n intent.putExtra(\"vacancyid\",vacancy.getId());\n context.startActivity(intent);\n Log.i(\"VacancyAdapter\", \"onClick: \"+ vacancy.getId());\n\n }", "public void openReserveSeat(){\n Intent intent = new Intent(this, ReserveSeatActivity.class);\n startActivity(intent);\n }", "public void onClick(View v) {\n Intent reg = new Intent(RegDetailsPersonal.this, RegDetailsEmployment.class);\n RegDetailsPersonal.this.startActivity(reg);\n }", "public void openCreateAccount(){\n Intent intent = new Intent(this, createAccountActivity.class);\n startActivity(intent);\n }", "private void onAddGoalsClicked() {\n Intent intent = new Intent(this, GoalCreationActivity.class);\n startActivity(intent);\n }", "@Override\n public void onExpandingClick(View v) {\n View view = v.findViewById(R.id.image);\n Travel travel = generateTravelList().get(viewPager.getCurrentItem());\n startInfoActivity(view,travel);\n }", "@Override\n public void onClick(View view) {\n Intent detail = new Intent(getBaseContext(), DetailArticle.class);\n detail.putExtra(\"webURL\", webHotURL);\n startActivity(detail);\n }", "public void ClickCommissionInformationPage() {\r\n\t\tcommissioninfo.click();\r\n\t\t\tLog(\"Clicked the \\\"Commission Information\\\" button on the Birthdays page\");\r\n\t}", "@Override\n public void onClick(View view) {\n // Create a new intent to open the {@link Electronic}\n Intent electronicIntent = new Intent(getApplicationContext(), Electronic.class);\n\n // Start the new activity\n startActivity(electronicIntent);\n }", "@Override\n public void onClick(View arg0) {\n ((CreateDocketActivityPart2) activity).openMachineDetails(position);\n }", "@Override\n public void onClick(View view) {\n // Create a new intent to open the {@link dumoActivity}\n Intent dumoIntent = new Intent(MainActivity.this, dumoActivity.class);\n // Start the new activity\n startActivity(dumoIntent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(DonationActivity.this, VolunteerActivity.class);\n startActivity(intent);\n finish();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(context, MeetingDetailActivity.class);\n intent.putExtra(MeetingDetailActivity.ARG_MEETING_ID, message.meetingId);\n context.startActivity(intent);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(context, MeetingDetailActivity.class);\n intent.putExtra(MeetingDetailActivity.ARG_MEETING_ID, message.meetingId);\n context.startActivity(intent);\n }", "public void transferActivity() {\n Intent intent = new Intent(this, AddInfoActivity.class);\n this.startActivity(intent);\n }", "private void showViewToursActivity() {\n//\t\tIntent intent = new intent(this, ActivityViewTours.class);\n System.out.println(\"Not Yet Implemented\");\n }", "public void goToDonorInfoPage() throws InterruptedException {\n setLocatorByXpathAndClick(newSessionPageLocator);\n Thread.sleep(500);\n }", "public void openPromotion() {\n myActivity.setContentView(R.layout.promotion);\n Button promotionButtonToGame = myActivity.findViewById(R.id.button6);\n\n promotionButtonToGame.setOnClickListener(\n new View.OnClickListener() {\n\n public void onClick(View v) {\n ShogiHumanPlayer.this.setAsGui(myActivity);\n usingRulesScreen = false;\n if (state != null) {\n receiveInfo(state);\n }\n }\n }\n\n\n );\n\n\n }", "public void onClick(View v) {\n\t\t\tstartActivity(MorePassengerActivity.createIntent(\n\t\t\t\t\tTicketActivity.this.getApplicationContext(),\n\t\t\t\t\tclickToCallScenarioIdIs4,\n\t\t\t\t\tdossierAftersalesResponse, order));\n\t\t}", "public void onClick(View v) {\n\t\t\tstartActivity(MorePassengerActivity.createIntent(\n\t\t\t\t\tTicketActivity.this.getApplicationContext(),\n\t\t\t\t\tclickToCallScenarioIdIs5,\n\t\t\t\t\tdossierAftersalesResponse, order));\n\t\t}", "@Override\n public void onClick(View view) {\n // Create a new intent to open the {@link Rap}\n Intent rapIntent = new Intent(getApplicationContext(), Rap.class);\n\n // Start the new activity\n startActivity(rapIntent);\n }", "public void onClickedNet(View view) {\n Class<?> next = \"cage\".equals(ca.getCageType()) ? EnterNetCheckActivity.class : EnvironmentalContainerMenuActivity.class; \n Intent i = new Intent(this, next);\n i.putExtra(\"cageAllocationId\", cageAllocationId);\n startActivity(i);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.putExtra(\"actid\", actid);\n\t\t\t\tintent.setClass(Activity_detail.this, BaoMing.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "public void ClickAgentContactInformationPage() {\r\n\t\tagentcontactinfo.click();\r\n\t\t\tLog(\"Clicked the \\\"Agent Contact Information\\\" button on the Birthdays page\");\r\n\t}", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(getApplicationContext(), DetailActivity.class);\n intent.putExtra(Constant.INTENT_WEB_URL, webHotUrl);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n startActivity(new Intent(getActivity(), AwaitingParkingActivity.class));\n }", "public void goToBonusActivity(View view) {\n Intent intent = new Intent(ChooseDifficulty.this, ExtraActivity.class);\n intent.putExtra(\"statisticsManager\", getIntent().getSerializableExtra(\n \"statisticsManager\"));\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent intent = AlarmPagerActivity.newIntent(sApplicationContext, mAlarm.getId());\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n if (!TextUtils.isEmpty(typecode.getSelectId())) {\n Intent intent = null;\n if (toothType != null)\n intent = new Intent(getActivity(), VisitDrugDentalActivity.class);\n else\n intent = new Intent(getActivity(), ToothSelectorActivity.class);\n\n intent.setData(Uri.withAppendedPath(VisitDrugDental.CONTENT_URI, VisitDrug.NO));\n intent.putExtra(PersonColumns._PID, \"00000\");\n intent.putExtra(PersonColumns._PCUCODEPERSON, \"00000\");\n intent.putExtra(VisitDrugDental.DENTCODE, typecode.getSelectId());\n intent.putExtra(Drug.TOOTHTYPE, toothType);\n//\t\t\t\t\t\tToast.makeText(getActivity(), \"SELECT \"+typecode.getSelectId(), Toast.LENGTH_LONG).show();\n VisitDrugForDentalActivity go = (VisitDrugForDentalActivity) getActivity();\n go.StartDrugDental(intent);\n } else {\n Toast.makeText(getActivity(), R.string.err_no_dentcode, Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onClick(View view) {\n Intent intent = MainActivity.newIntent(getActivity(), mMonitor.getId());\n startActivity(intent);\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),Routine.class);\n\t\t\t\tintent.putExtra(\"pdf\", \"http://www.aust.edu/bba/class_routine_mba.pdf\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onClick(View arg0)\n {\n\n ExtendedNewController extendedNewController = new ExtendedNewController();\n startNewControllerActivity(extendedNewController, 0, 0);\n }", "@Override\n /**\n * User clicked something---launch the browser\n */\n public void propertyChange(PropertyChangeEvent propertyChangeEvent) {\n CardData cardData = (CardData) propertyChangeEvent.getNewValue();\n String url = cardData.getUrl();\n //showErrorMessage(\"clicked on \" + propertyChangeEvent.getNewValue());\n Uri uri = Uri.parse(url);\n\n // log the activity\n\n // TODO: Map the current feed's url\n String sourceUrlPath = getCurrentStrategy().getUrlPath(); // e,g, \"/news/home\"\n String idStr = String.format(\"%d\", cardData.getId());\n\n EventDispatchService dispatchService = _dispatchPaymentFactory.createEventDispatch(idStr);\n dispatchService.sendConfirmation(getDispatchSuccessCallback(), getDispatchFailureCallback());\n\n\n AuthEventPublicDispatch eventDispatchService = _dispatchPaymentFactory.createDispatch(sourceUrlPath, uri.getPath(), url);\n eventDispatchService.sendConfirmation(getEventDispatchSuccessCallback(), getEventDispatchFailureCallback());\n\n Intent browserLaunchIntent = new Intent(Intent.ACTION_VIEW, uri);\n startActivity(browserLaunchIntent);\n\n }", "@Override\n public void onClick(View v) {\n Intent ticketInfo = new Intent(mContext, BusInformationsCard.class);\n\n ticketInfo.putExtra(\"busLine\", getTickets().get(position).getBusLine());\n ticketInfo.putExtra(\"companyName\", getTickets().get(position).getCompany());\n ticketInfo.putExtra(\"driverName\", getTickets().get(position).getName());\n ticketInfo.putExtra(\"driverPhone\", getTickets().get(position).getDriverPhone());\n ticketInfo.putExtra(\"seatNum\", getTickets().get(position).getSeatNum());\n ticketInfo.putExtra(\"leavingTime\", getTickets().get(position).getLeavingTime());\n ticketInfo.putExtra(\"latitude\", getTickets().get(position).getLatitude());\n ticketInfo.putExtra(\"longitude\", getTickets().get(position).getLongitude());\n ticketInfo.putExtra(\"driverId\", getTickets().get(position).getDriverId());\n ticketInfo.putExtra(\"keyId\", getTickets().get(position).getId());\n ticketInfo.putExtra(\"busNum\", getTickets().get(position).getBusNum());\n ticketInfo.putExtra(\"expectedTime\", getTickets().get(position).getExpectedTime());\n\n\n mContext.startActivity(ticketInfo);\n\n\n }", "public String viewDetail() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tif (currentUser.getStaffRoot() == null) {\n\t\t\t\treturn PAGE_NOT_PERMISSION;\n\t\t\t}\n\t/*\t\tprivate Boolean isDiscount;\n\t\t\tprivate Boolean isReward*/\n\t\t\tlstTypeCode = apParamMgr.getListApParam(ApParamType.PROMOTION, ActiveType.RUNNING);\n\t\t\tif (promotionId == null || promotionId == 0) {\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t\n\t\t\tpromotionProgram = promotionProgramMgr.getPromotionProgramById(promotionId);\n\t\t\tif (promotionProgram == null) {\n\t\t\t\tisError = true;\n\t\t\t\terrMsg = ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"CTKM\");\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t//get promotion newcus config\n\t\t\tpromotionNewcusConfig = promotionNewcusConfigMgr.getPromNewcusConfigByProgramId(promotionId);\n\t\t\t// kiem tra CTKM co het han hay khong\n\t\t\tDate sysDate = commonMgr.getSysDate();\n\t\t\tif (promotionProgram.getToDate() != null) {\n\t\t\t\t//flagStatusExpire\n\t\t\t\tif (DateUtil.compareDateWithoutTime(promotionProgram.getToDate(), sysDate) < 0) {\n\t\t\t\t\tpromotionProgram.setFlagStatusExpire(ActiveType.HET_HAN.getValue());\n\t\t\t\t}\n\t\t\t}\n\t\t\tApParam apListDist = apParamMgr.getApParamByCode(\"LIST_VISIBLE_DISCOUNT\", ApParamType.ACTIVE_TYPE);\n\t\t\tString[] listDist;\n\t\t\tif(apListDist != null) {\n\t\t\t\tString strListDist = apListDist.getValue();\n\t\t\t\tstrListDist = strListDist.replace(\" \", \"\");\n\t\t\t\tlistDist = strListDist.split(\",\");\n\t\t\t} else {\n\t\t\t\tString strZVDist = \"ZV19,ZV20,ZV22,ZV23\";\n\t\t\t\tString strZVDistRep = strZVDist.replace(\" \", \"\");\n\t\t\t\tlistDist = strZVDistRep.split(\",\");\n\t\t\t}\n\t\t\t\n\t\t\tApParam apListRew = apParamMgr.getApParamByCode(\"LIST_VISIBLE_REWARD\", ApParamType.ACTIVE_TYPE);\n\t\t\tString[] listRew;\n\t\t\tif(apListRew != null){\n\t\t\t\tString strListRew = apListRew.getValue();\n\t\t\t\tstrListRew = strListRew.replace(\" \", \"\");\n\t\t\t\tlistRew = strListRew.split(\",\");\n\t\t\t} else {\n\t\t\t\tString strZV = \"ZV01,ZV02,ZV04,ZV05,ZV07,ZV08,ZV10,ZV11,ZV13,ZV14,ZV16,ZV17,ZV19,ZV20,ZV22,ZV23\";\n\t\t\t\tString strListZV = strZV.replace(\" \", \"\");\n\t\t\t\tlistRew = strListZV.split(\",\");\n\t\t\t}\n\t\t\tisReward = false;\n\t\t\tisDiscount = false;\n\t\t\tif(Arrays.asList(listDist).contains(promotionProgram.getType())){\n//\t\t\t\tif(promotionProgram != null \n//\t\t\t\t\t\t&& (promotionProgram.getDiscountType() == null\n//\t\t\t\t\t\t\t|| promotionProgram.getDiscountType() == 0)){\n\t\t\t\t\tisDiscount = true;\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tisDiscount = false;\n\t\t\t}\n\t\t\t\n\t\t\tif(Arrays.asList(listRew).contains(promotionProgram.getType())){\n\t\t\t\t/*if(promotionProgram != null\n\t\t\t\t\t\t&& (promotionProgram.getRewardType() == null\n\t\t\t\t\t\t\t|| promotionProgram.getRewardType() == 0)){\n\t\t\t\t\t\n\t\t\t\t}*/\n\t\t\t\tisReward = true;\n\t\t\t}else{\n\t\t\t\tisReward = false;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tObjectVO<Product> listProductVO = productMgr.getListProduct(null, ActiveType.RUNNING);\n\t\t\tif (listProductVO != null) {\n\t\t\t\tlistProduct = listProductVO.getLstObject();\n\t\t\t} else {\n\t\t\t\tlistProduct = new ArrayList<Product>();\n\t\t\t}\n\n\t\t\tid = promotionId;\n\t\t\tif (promotionProgramMgr.checkExistPromotionShopMapByListShop(getStrListShopId(), promotionId)) {\n\t\t\t\tisViewCustomerTab = 1;\n\t\t\t}\n\t\t\tisShowCompleteDefinePromo = false;\n\t\t\tList<ApParam> lstSendEmail = apParamMgr.getListApParam(ApParamType.COMPLETE_DEFINE_PROMOTION, ActiveType.RUNNING);\n\t\t\tif (lstSendEmail != null && lstSendEmail.size() > 0) {\n\t\t\t\tfor (int i = 0, n = lstSendEmail.size(); i < n; i++) {\n\t\t\t\t\tApParam apParam = lstSendEmail.get(i);\n\t\t\t\t\tif (apParam != null && !StringUtil.isNullOrEmpty(apParam.getApParamCode())) {\n\t\t\t\t\t\tString[] arrApParamCode = apParam.getApParamCode().split(\",\");\n\t\t\t\t\t\tfor (String string : arrApParamCode) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(string) && string.trim().equalsIgnoreCase(currentUser.getStaffRoot().getStaffCode())) {\n\t\t\t\t\t\t\t\tisShowCompleteDefinePromo = true;\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}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.viewDetail\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t\treturn SUCCESS;\n\t\t}\n\t\treturn SUCCESS;\n\t}" ]
[ "0.62729853", "0.62641054", "0.6261335", "0.6215469", "0.6211717", "0.62113917", "0.6184838", "0.6119944", "0.61123484", "0.59868366", "0.5971958", "0.59059304", "0.5885276", "0.5871364", "0.5864765", "0.58637637", "0.58502245", "0.5846597", "0.58425295", "0.5841446", "0.5839422", "0.5839068", "0.58287704", "0.5826753", "0.5823643", "0.5820981", "0.58113587", "0.58092135", "0.5804931", "0.5802387", "0.5797608", "0.5795357", "0.57888275", "0.5788758", "0.57825786", "0.57759345", "0.5771887", "0.57640004", "0.57556593", "0.57273334", "0.57264835", "0.57197607", "0.5719659", "0.57168096", "0.57049066", "0.57041454", "0.56892705", "0.56882805", "0.568725", "0.56862795", "0.5682644", "0.56760263", "0.5675804", "0.5667194", "0.5665176", "0.5660887", "0.5652168", "0.56455636", "0.5638594", "0.5637156", "0.56207114", "0.56083167", "0.5606887", "0.56016684", "0.5600737", "0.56003094", "0.5599125", "0.559043", "0.55852836", "0.55813754", "0.5575523", "0.5573764", "0.5573732", "0.55726856", "0.5569958", "0.5554999", "0.5551365", "0.5547872", "0.5547872", "0.5547542", "0.55471176", "0.55423754", "0.55289716", "0.55288124", "0.5527289", "0.55207014", "0.5518125", "0.5514576", "0.5512507", "0.5508615", "0.55070686", "0.550431", "0.54916584", "0.54902047", "0.54888153", "0.5488056", "0.54878354", "0.5481469", "0.5480444", "0.5469381" ]
0.6252566
3
create nbyn grid, with all sites blocked
public Percolation(int n) { if (n <= 0) throw new IllegalArgumentException(); // sitsUF's n*n site is up virtual site // n*n+1 site is down virtual site sitesUF = new WeightedQuickUnionUF(n*n + 2); sidesFullUF = new WeightedQuickUnionUF(n*n + 1); sitesIsOpen = new boolean[n*n]; for (int i = 0; i < n*n; i++) sitesIsOpen[i] = false; side = n; upSiteIndex = side*side; downSiteIndex = side*side+1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void makeNborLists(){\n\t\t\tfor (int i = 0; i < N; i++){\n\t\t\t\tint ct = 0;\n\t\t\t\tint boundsCt = 0;\n\t\t\t\tfor (int j = 0; j < maxNbors; j++){\n\t\t\t\t\tint nborSite = nborList[i][j];\n\t\t\t\t\tif(nborSite>=1){\n\t\t\t\t\t\tif (aliveLattice[nborSite]){\n\t\t\t\t\t\t\tct += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tboundsCt += 1;\n\t\t\t\t\t}\n\t\t\t\t\tint noDead = maxNbors - ct;\n\t\t\t\t\tfracDeadNbors[i] = (double)noDead/maxNbors;\n\t\t\t\t\tif(deadDissipation==true) noNborsForSite[i] = noNbors; \n\t\t\t\t\telse if (deadDissipation==false){\n\t\t\t\t\t\tif(boundaryConditions==\"Open\")\n\t\t\t\t\t\t\tnoNborsForSite[i]=ct+boundsCt;\n\t\t\t\t\t\telse if(boundaryConditions == \"Periodic\")\n\t\t\t\t\t\t\tnoNborsForSite[i]=ct;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(deadDissipation==true){\n\t\t\t\tfor (int i = 0; i < N; i++)\tnoNborsForSite[i] = noNbors; \n\t\t\t\tfor (int i = 0; i < N; i++){\n\t\t\t\t\tint ct = 0;\n\t\t\t\t\tfor (int j = 0; j < maxNbors; j++){\n\t\t\t\t\t\tif (aliveLattice[nborList[i][j]]){\n\t\t\t\t\t\t\tct += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint noDead = maxNbors - ct;\n\t\t\t\t\t\tfracDeadNbors[i] = (double)noDead/maxNbors;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else if (deadDissipation==false){\n\t\t\t\tfor (int i = 0; i < N; i++){\n\t\t\t\t\tint ct = 0;\n\t\t\t\t\tfor (int j = 0; j < maxNbors; j++){\n\t\t\t\t\t\tif (aliveLattice[nborList[i][j]]){\n\t\t\t\t\t\t\tct += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint noDead = maxNbors - ct;\n\t\t\t\t\t\tfracDeadNbors[i] = (double)noDead/maxNbors;\n\t\t\t\t\t\tnoNborsForSite[i]=ct;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}", "public void createGrid() {\n\t\tint[][] neighbours = getIo().getNeighbours();\n\t\tsetGrid(new GridAlg(neighbours, animals));\n\t\tgetGrid().setStep(getStep());\n\t}", "public void createGrid() {\r\n generator.generate();\r\n }", "void ompleBlocsHoritzontals() {\r\n\r\n for (int i = 0; i < N; i = i + SRN) // for diagonal box, start coordinates->i==j \r\n {\r\n ompleBloc(i, i);\r\n }\r\n }", "private void makeGrid(JLabel moves, JLabel remainingBombs) {\r\n this.grid = new Tile[gridSize][gridSize]; \r\n for (int r = 0; r < gridSize; r++) {\r\n for (int c = 0; c < gridSize; c++) {\r\n if (solution[r][c] == 1) {\r\n grid[r][c] = new Tile(r, c, true);\r\n } else {\r\n grid[r][c] = new Tile(r, c, false);\r\n }\r\n final Tile t = grid[r][c];\r\n t.repaint();\r\n handleClicksAndMoves(t, moves, remainingBombs); \r\n }\r\n }\r\n }", "private void initIslandGrid()\n {\n // Add the grid\n int rows = game.getNumRows();\n int columns = game.getNumColumns();\n // set up the layout manager for the island grid panel\n pnlIsland.setLayout(new GridLayout(rows, columns));\n // create all the grid square panels and add them to the panel\n // the layout manager of the panel takes care of assigning them to the\n // the right position\n for ( int row = 0 ; row < rows ; row++ )\n {\n for ( int col = 0 ; col < columns ; col++ )\n {\n pnlIsland.add(new GridSquarePanel(game, row, col));\n }\n }\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 Gridder()\n\t{\n grid = new Cell[MapConstant.MAP_X][MapConstant.MAP_Y];\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n grid[row][col] = new Cell(row, col);\n\n // Set the virtual walls of the arena\n if (row == 0 || col == 0 || row == MapConstant.MAP_X - 1 || col == MapConstant.MAP_Y - 1) {\n grid[row][col].setVirtualWall(true);\n }\n }\n }\n\t}", "public BuildGrid()\n {\n System.out.print(\"Creating a new grid: \");\n\n m_grid = new double[1][5];\n setDimX(1);\n setDimY(5);\n\n this.fillWith(0);\n System.out.println(\"Done\");\n }", "private void initGrids() {\n grid0 = new Grid(100f, 50f, 100f, 0);\n grid1 = new Grid(100f, 150f, 100f, 1);\n grid2 = new Grid(100f, 250f, 100f, 2);\n grid3 = new Grid(100f, 350f, 100f, 3);\n grid4 = new Grid(100f, 50f, 200f, 4);\n grid5 = new Grid(100f, 150f, 200f, 5);\n grid6 = new Grid(100f, 250f, 200f, 6);\n grid7 = new Grid(100f, 350f, 200f, 7);\n grid8 = new Grid(100f, 50f, 300f, 8);\n grid9 = new Grid(100f, 150f, 300f, 9);\n grid10 = new Grid(100f, 250f, 300f, 10);\n grid11 = new Grid(100f, 350f, 300f, 11);\n grid12 = new Grid(100f, 50f, 400f, 12);\n grid13 = new Grid(100f, 150f, 400f, 13);\n grid14 = new Grid(100f, 250f, 400f, 14);\n grid15 = new Grid(100f, 350f, 400f, 15);\n\n /**\n * Adding grids from 0 to 15 to static ArayList of all grids\n */\n grids.clear();\n\n grids.add(grid0);\n grids.add(grid1);\n grids.add(grid2);\n grids.add(grid3);\n grids.add(grid4);\n grids.add(grid5);\n grids.add(grid6);\n grids.add(grid7);\n grids.add(grid8);\n grids.add(grid9);\n grids.add(grid10);\n grids.add(grid11);\n grids.add(grid12);\n grids.add(grid13);\n grids.add(grid14);\n grids.add(grid15);\n }", "private void setNeighbors() {\n\t\tfor (int i = 0; i < getNumRows(); i++) {\n\t\t\tfor (int j = 0; j < getNumCols(); j++) {\n\t\t\t\tCell c = getCurrentGrid()[i][j];\n\t\t\t\tsetNeighborsForCell(c);\n\t\t\t}\n\t\t}\n\t}", "private void updateGrid() {\n\t\tfor (Neighbor neighbor : upsetNeighbors) {\n\t\t\tClear vacated_cell = new Clear(neighbor.getCoordsX(), neighbor.getCoordsY());\n\t\t\tgrid.setGridIndex(vacated_cell, vacated_cell.getCoordsX(), vacated_cell.getCoordsY());\n\t\t\tCell new_location = availableSpaces.get((int) (Math.random() * (availableSpaces.size() - 1)));\n\t\t\tint new_x = new_location.getCoordsX();\n\t\t\tint new_y = new_location.getCoordsY();\n\t\t\tif (neighbor.getClass().equals(Group1.class))\n\t\t\t\tgrid.setGridIndex(new Group1(new_x, new_y, percentSimilar), new_x, new_y);\n\t\t\telse\n\t\t\t\tgrid.setGridIndex(new Group2(new_x, new_y, percentSimilar), new_x, new_y);\n\t\t\tavailableSpaces.remove(new_location);\n\t\t\tavailableSpaces.add(vacated_cell);\n\t\t}\n\t}", "private void createGridlet(int userID, int numGridlet)\n {\n int data = 500; // 500KB of data\n for (int i = 0; i < numGridlet; i++)\n {\n // Creates a Gridlet\n Gridlet gl = new Gridlet(i, data, data, data);\n gl.setUserID(userID);\n\n // add this gridlet into a list\n this.jobs.add(gl);\n }\n }", "public Grid() { //Constructs a new grid and fills it with Blank game objects.\r\n\t\tthis.grid = new GameObject[10][10];\r\n\t\tthis.aliveShips = new Ships[4];\r\n\t\tfor (int i = 0; i < this.grid.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.grid[i].length; j++) {\r\n\t\t\t\tthis.grid[i][j] = new Blank(i,j);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Percolation(int n) {\n if (n <= 0) {\n throw new IllegalArgumentException(\"'n' cannot be less than 1\");\n }\n\n // grid\n // 0 --> blocked\n // 1 --> open\n // every index will be initialized with 0 by default\n this.grid = new int[n][n];\n this.openSitesCount = 0;\n this.gridSize = n;\n this.virtualTopSiteIndex = (gridSize * gridSize);\n this.virtualBottomSiteIndex = (gridSize * gridSize) + 1;\n // add 1 to accommodate virtual top site in union find data structure\n this.wquf = new WeightedQuickUnionUF((gridSize * gridSize) + 1);\n // add 2 to accommodate virtual sites in union find data structure\n this.wquf2 = new WeightedQuickUnionUF((gridSize * gridSize) + 2);\n }", "void initializeGrid() {\n int maxBombs = GridHelper.getMaxBombs((int)Math.pow(hiddenGrid.length, 2.0)); // A: How many bombs CAN this have?\n bombsPlaced = 0; // B: How many bombs DOES this have?\n int cycleCap = randomCycleCap(); // C: Sets cycleCap to a randomly generated number between 0 and 15,\n int cycleCellCount = 0; // D: cycleCap starts at zero and goes up\n\n for (int i = 0; i < hiddenGrid.length; i++) {\n for (int j = 0; j < hiddenGrid[i].length; j++) {\n\n if (hiddenGrid[i][j] == null) {\n setCell(i, j, 0); // a: initializes the null value to 0\n }\n if((cycleCellCount == cycleCap) && (bombsPlaced < maxBombs)){\n placeBomb(i, j, -1); // a: turns this cell into a bomb, increments cells around it\n cycleCellCount = 0; // b: Restarts the 'cycle counter'\n cycleCap = randomCycleCap(); // c: Gives us a new number to 'count down' to, to place the next bomb\n } else{\n ++cycleCellCount; // a. Moves to the next cell in the 'cycle' having done nothing\n }\n }\n }\n System.out.println(\"Bombs placed: \" + bombsPlaced);\n }", "public TwoDimensionalGrid()\r\n {\r\n cellGrid = new Cell[LOWER_BOUND][RIGHT_BOUND];\r\n\r\n for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n {\r\n for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n {\r\n cellGrid[columns][rows] = new Cell(true);\r\n } // end of for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n System.out.print(\"\\n\");\r\n } // end of for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n }", "private void createBlocks(){\n for (int row=0; row < grid.length; row++) \n {\n for (int column=0; column < grid[row].length; column++)\n {\n boolean player = false;\n boolean walkable;\n \n switch (grid[row][column]){\n case(0) : \n returnImage = wall; \n walkable = false;\n break;\n case(2) : \n returnImage = start; \n walkable = true;\n player = true;\n break;\n case(4) : \n returnImage = finish; \n walkable = true;\n break;\n \n default :\n returnImage = pad; \n walkable = false;\n }\n \n \n Block blok;\n try {\n if(player==true) \n { \n blok = new Block(returnImage, blockSize, true);\n blok.setTopImage(held);\n }else\n {\n blok = new Block(returnImage, blockSize, false);\n }\n blocks.add(blok);\n } catch (Exception e) {\n \n }\n } \n \n }\n \n }", "@Override\n public void buildGrid(){\n for(int column=0; column<columns; column++){\n for(int row=0; row<rows; row++){\n grid[column][row] = \"[ ]\";\n }\n }\n }", "private void setUpBlocks() {\n\t\tdouble xStart=0;\n\t\tdouble midPoint = getWidth()/2;\n\t\tint yStart = BRICK_Y_OFFSET;\t\n\t\t\n\t\tfor(int i = 0; i < NBRICK_ROWS; i++) {\n\t\t\t\n\t\t\txStart = midPoint - (NBRICKS_PER_ROW/2 * BRICK_WIDTH) - BRICK_WIDTH/2;\n\t\t\tlayRowOfBricks(xStart, yStart, i);\n\t\t\tyStart += BRICK_HEIGHT + BRICK_SEP;\n\t\t}\t\n\t}", "private void setGrid() {\r\n maxRows = (FORM_HEIGHT - FORM_HEIGHT_ADJUST) / SQUARE_SIZE;\r\n maxColumns = (FORM_WIDTH - FORM_WIDTH_ADJUST) / SQUARE_SIZE; \r\n grid = new JLabel[maxRows][maxColumns];\r\n int y = (FORM_HEIGHT - (maxRows * SQUARE_SIZE)) / 2;\r\n for (int row = 0; row < maxRows; row++) {\r\n int x = (FORM_WIDTH - (maxColumns * SQUARE_SIZE)) / 2;\r\n for (int column = 0; column < maxColumns; column++) {\r\n createSquare(x,y,row,column);\r\n x += SQUARE_SIZE;\r\n }\r\n y += SQUARE_SIZE;\r\n } \r\n }", "public Grid()\n\t{\n\t\tfor (int x =0;x<=8;x++)\n\t\t\tgrid[x]=0;\n }", "public void initGrid()\n {\n\tfor (int y=0; y<cases.length; y++)\n \t{\n for (int x=0; x<cases[y].length; x++)\n {\n\t\tcases[y][x] = new Case();\n }\n\t}\n\t\n\tint pos_y_case1 = customRandom(4);\n\tint pos_x_case1 = customRandom(4);\n\t\n\tint pos_y_case2 = customRandom(4);\n\tint pos_x_case2 = customRandom(4);\n\t\t\n\twhile ((pos_y_case1 == pos_y_case2) && (pos_x_case1 == pos_x_case2))\n\t{\n pos_y_case2 = customRandom(4);\n pos_x_case2 = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y_case1][pos_x_case1] = new Case(true);\n\tcases[pos_y_case2][pos_x_case2] = new Case(true);\n }", "private Virtex4Slice SetupSlicesInitialNets(int num, Virtex4CLB TestSite, Tile IntTile, Tile CLBTile, Design design, FPGA fpga, V4XilinxToolbox TB){\n\t\t\tTable.SetTile(IntTile);\n\t\t \t\n\t\t\tfor(Virtex4Slice S : TestSite.getSliceArrayList()){\n\t\t\t\tthis.GroundLutInputs(S, design.getNet(\"Global_Logic0\"), \"Both\");\n\t\t\t}\n\t\t\t\t \n\t\t\tVirtex4SwitchBox SB = new Virtex4SwitchBox(fpga, design,TB);\n\t\t\tSB.setTiles(IntTile, CLBTile);\t\n\t\t\tVirtex4SwitchBoxRouter SBR = new Virtex4SwitchBoxRouter(SB);\n\t\t\tSBR.setTiles(IntTile, CLBTile);\t\t\n\t\t\tWireEnumerator We = design.getWireEnumerator(); \n\t\t\t\n\t\t\t//design.addNet(SBR.GroundLutInputs(IntTile, design, SliceX0Y0.getXDLInstance(), SliceX0Y1.getXDLInstance(), SliceX1Y0.getXDLInstance(), SliceX1Y1.getXDLInstance()));\n\t\t ArrayList<PIP> X_PINWIRE0_TO_DESTWIRE;\t\n\t\t\tArrayList<PIP> FinishRoute;\t\t\n\t\t \n\t\t\tX_PINWIRE0_TO_DESTWIRE = SBR.CreateBridgingShort(We.getWireEnum(\"X_PINWIRE0\"), We.getWireEnum(DestName));\n\t\t \t\t \n\t\t Pin SinkPin; \n\t\t \n\t\t FinishRoute = SBR.LongBFS(We.getWireEnum(DestName), We.getWireEnum(\"BX_PINWIRE0\"), IntTile, design.getDevice());\n\t\t \n\t\t //Create the EndSlice \n\t\t \n\t\t //1. Find the Final Tile\n\t\t Tile FinalTile = null; \n\t\t for(PIP P : FinishRoute){\n\t\t \tif(P.getEndWireName(We).equals(\"BX_PINWIRE0\")){\n\t\t \t\tFinalTile = P.getTile();\n\t\t \t}\n\t\t }\n\t\t \n\t\t Virtex4Slice FinalSliceX0Y0 = new Virtex4Slice(0, 0, fpga, design, FinalTile, TB);\n\t\t \n\t\t FinalSliceX0Y0.setFFLatchAttributValue(\"#FF\");\n\t\t FinalSliceX0Y0.setBXINV_ATTR(\"BX\");\n\t\t FinalSliceX0Y0.getDXMUX0().setDXMUX_ATTR(\"BX\");\n\t\t FinalSliceX0Y0.setCLKINV_ATTR(\"CLK\");\n\t\t FinalSliceX0Y0.getFFX().setInitAttributeValue(\"#INIT0\");\n\t\t FinalSliceX0Y0.getFFY().setInitAttributeValue(\"#INIT0\");\n\t\t FinalSliceX0Y0.setSYNC_ATTR_Value(\"ASYNC\");\n\t\t FinalSliceX0Y0.setSRINV_ATTRValue(\"SR\");\n\t\t FinalSliceX0Y0.getFFX().setSR_ATTR(\"SRLOW\");\n\t\t FinalSliceX0Y0.getFFY().setSR_ATTR(\"SRLOW\");\n\t\t //Ground the SR pin\n\t\t design.getNet(\"Global_Logic0\").addPin(new Pin(false, \"SR\", FinalSliceX0Y0.getXDLInstance()));\n\t\t \n\t\t Net CLK_NET = design.getNet(\"CLK_NET\");\n\t\t CLK_NET.addPin(new Pin(false, \"CLK\", FinalSliceX0Y0.getXDLInstance()));\n\t\t \n\t\t SinkPin = new Pin(false, \"BX\", FinalSliceX0Y0.getXDLInstance()); \n\t\t\n\t\t\t\n\t\t //Notice That BEST_LOGIC_OUTS0 is not added here\n\t\t Net BEST_LOGIC_OUTS0 = new Net(\"BEST_LOGIC_OUTS0\"+IntTile.toString(), NetType.WIRE);\n\t\t BEST_LOGIC_OUTS0.addPin(SinkPin);\n\t\t BEST_LOGIC_OUTS0.addPin(new Pin(true, \"X\", TestSite.getSLICEX0Y0().getXDLInstance()));\n\t\t BEST_LOGIC_OUTS0.getPIPs().addAll(X_PINWIRE0_TO_DESTWIRE);//.get(We.getWireEnum(\"X_PINWIRE0\")));\n\t\t\tBEST_LOGIC_OUTS0.getPIPs().addAll(FinishRoute);\n\t \n\t\t\treturn FinalSliceX0Y0;\n\t}", "public void buildInitialBand()\r\n\t{\n\t\r\n\tint bl = boundary.size();\r\n\tfor(int i=0; i<bl; i++) \r\n\t\t{\r\n\t\tInt2d bCur = boundary.get(i);\r\n\t\t//System.out.println(bCur.x + \", \" + bCur.y + \": size = \" + heap.size());\r\n\t\t\r\n\t\ttestPointsAround(bCur.x,bCur.y);\r\n\t\t}\r\n\t\r\n\t}", "public void initializeNeighbors() {\n\t\tfor (int r = 0; r < getRows(); r++) {\n\t\t\tfor (int c = 0; c < getCols(); c++) {\n\t\t\t\tList<Cell> nbs = new ArrayList<>();\n\t\t\t\tinitializeNF(shapeType, r, c);\n\t\t\t\tmyNF.findNeighbors();\n\t\t\t\tfor (int[] arr : myNF.getNeighborLocations()){\n\t\t\t\t\tif (contains(arr[0], arr[1])){\n\t\t\t\t\t\tnbs.add(get(arr[0], arr[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tget(r, c).setNeighbors(nbs);\n\t\t\t}\n\t\t}\n\t}", "public void draw_grid() {\n for (int i = 0; i <= xNumTiles; i++) {\n stroke(100);\n line(i * tileSize, 0, i * tileSize, yNumTiles * tileSize);\n }\n\n for (int j = 0; j <= yNumTiles; j++) {\n stroke(100);\n line(0, j * tileSize, xNumTiles * tileSize, j * tileSize);\n }\n }", "public void initializeGrid() {\n for (int i = minRow; i <= maxRow; i++) {\n for (int j = minCol; j <= maxCol; j++) {\n grid[i][j] = 0;\n }\n }\n }", "public RandomGrid() {\n random = new Random(System.currentTimeMillis());\n /*\n indexes = new LinkedList<>();\n for (int i = 0; i < 81; i++) {\n indexes.add(i);\n }\n numbers = new ArrayList<>(9);\n for (int i = 1; i <= 9; i++) {\n numbers.add(i);\n }\n Collections.shuffle(indexes, random);\n */\n grid = new int[9][9];\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n grid[i][j] = 0;\n }\n }\n subGrid = new SubGrid[3][3];\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n subGrid[i][j] = new SubGrid();\n }\n }\n }", "HiddenGrid(int userGridRequest) {\n hiddenGrid = new Integer[userGridRequest][userGridRequest];\n bombsPlaced = 0;\n }", "private void setNeighboringMines(){\n\t\t//cycle the board\n\t\tfor (int r = 0; r < board.length; r++)\n\t\t\tfor (int c = 0; c < board[r].length; c++){\n\t\t\t\tint neighborCount = 0;\n\t\t\t\tif(!board[r][c].isMine()) {\n\t\t\t\t\t//checks if there is mines touching\n\t\t\t\t\tneighborCount = neighboringMines(r, c);\n\t\t\t\t\tif (neighborCount > 0) {\n\t\t\t\t\t\tboard[r][c].setIsNeighboringMine(true);\n\t\t\t\t\t\tboard[r][c].setNumNeighboringMines\n\t\t\t\t\t\t\t\t(neighborCount);\n\t\t\t\t\t} else if (neighborCount == 0) {\n\t\t\t\t\t\tboard[r][c].setNumNeighboringMines(0);\n\t\t\t\t\t\tboard[r][c].setIsNeighboringMine(false);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void generateNextGeneration() {\n int neighbours;\n int minimum = Integer.parseInt(PreferencesActivity\n .getMinimumVariable(this._context));\n int maximum = Integer.parseInt(PreferencesActivity\n .getMaximumVariable(this._context));\n int spawn = Integer.parseInt(PreferencesActivity\n .getSpawnVariable(this._context));\n\n minimum = 2;\n maximum = 3;\n spawn = 3;\n\n int[][] nextGenerationLifeGrid = new int[HEIGHT][WIDTH];\n\n\n\n for (int h = 0; h < HEIGHT; h++) {\n for (int w = 0; w < WIDTH; w++) {\n neighbours = calculateNeighbours(h, w);\n\n\n if (_lifeGrid[h][w] != 0) {\n if ((neighbours >= minimum) && (neighbours <= maximum)) {\n nextGenerationLifeGrid[h][w] = neighbours;\n }\n\n } else {\n if (neighbours == spawn) {\n nextGenerationLifeGrid[h][w] = spawn;\n\n }\n }\n\n }\n\n }\n\n copyGrid(nextGenerationLifeGrid, _lifeGrid);\n\n }", "NBLK(int[][] origMap) {\r\n\r\n\t\t\r\n\t\t// suppose it's a matrix for numberlink\r\n\t\tn_row = origMap.length;\r\n\t\tn_col = origMap[0].length;\r\n\t\tlength = n_row * n_col;\r\n\t\tadjaMatrix=new int[length][length];\r\n\t\tStartPoint=new HashMap<Integer, Node>();\r\n\t\tEndPoint=new HashMap<Integer, Node>();\r\n\t\tnowMap= new HashMap<Integer,LinkedList<Integer>>();\r\n\t\t\r\n\t\tpaths=new HashMap<Integer, Stack<Node>>();\r\n\t\tallNodes= new HashMap<Integer,Node>();\r\n\t\t\r\n\t\t\r\n\t\tlastPath=0;\r\n\t\t\r\n\t\tcount=0;\r\n\t\tfor (int i = 0; i < n_row; i++) {\r\n\t\t\tfor (int j = 0; j < n_col; j++) {\r\n\t\t\t\tif (origMap[i][j] > -1) {\r\n\t\t\t\t\t//we can use that point to represent a blocked point (i,j) as matrix[i][j]=-1\r\n\t\t\t\t\tint index = i * n_col + j;\r\n\t\t\t\t\tNode n = new Node(i, j, index, origMap[i][j]);\r\n\t\t\t\t\tallNodes.put(index, n);\r\n\t\t\t\t\tLinkedList<Integer> neibors = new LinkedList<Integer>();\r\n\r\n\t\t\t\t\tif (i > 0 && origMap[i-1][j] > -1) {\r\n\t\t\t\t\t\t//left\r\n\t\t\t\t\t\tadjaMatrix[index][(i - 1) * n_col + j] = 1;\r\n\t\t\t\t\t\tadjaMatrix[(i - 1) * n_col + j][index] = 1;\r\n\t\t\t\t\t\tneibors.addLast((i - 1) * n_col + j);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (i < n_row - 1 && origMap[i+1][j] > -1) {\r\n\t\t\t\t\t\t//right\r\n\t\t\t\t\t\tadjaMatrix[index][(i + 1) * n_col + j] = 1;\r\n\t\t\t\t\t\tadjaMatrix[(i + 1) * n_col + j][index] = 1;\r\n\t\t\t\t\t\tneibors.addLast((i + 1) * n_col + j);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (j > 0 && origMap[i][j-1] > -1) {\r\n\t\t\t\t\t\t//top\r\n\t\t\t\t\t\tadjaMatrix[index][i * n_col + j - 1] = 1;\r\n\t\t\t\t\t\tadjaMatrix[i * n_col + j - 1][index] = 1;\r\n\t\t\t\t\t\tneibors.addLast(i * n_col + j - 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (j < n_col - 1 && origMap[i][j+1] > -1) {\r\n\t\t\t\t\t\t//bottom\r\n\t\t\t\t\t\tadjaMatrix[index][i * n_col + j + 1] = 1;\r\n\t\t\t\t\t\tadjaMatrix[i * n_col + j + 1][index] = 1;\r\n\t\t\t\t\t\tneibors.addLast(i * n_col + j + 1);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tnowMap.put(index, neibors);\r\n\t\t\t\t\tif (origMap[i][j] > 0) {\r\n\r\n\t\t\t\t\t\tif (!StartPoint.containsKey(origMap[i][j])) {\r\n\t\t\t\t\t\t\tStartPoint.put(origMap[i][j], n);\r\n\t\t\t\t\t\t\tStack<Node> tp = new Stack<Node>();\r\n\t\t\t\t\t\t\ttp.push(n);\r\n\t\t\t\t\t\t\tpaths.put(origMap[i][j], tp);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tEndPoint.put(origMap[i][j], n);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void generaBuits() {\r\n\r\n //FIX PARA EL OUT OF BOUNDS DE la columna 9 \r\n //int cellId = randomGenerator(N*N) - 1;\r\n //QUITAR \r\n //if (j != 0)\r\n //j = j - 1;\r\n int count = K;\r\n while (count != 0) {\r\n int cellId = generadorAleatoris(N * N) - 1;\r\n\r\n //System.out.println(cellId); \r\n // extract coordinates i and j \r\n int i = (cellId / N);\r\n int j = cellId % 9;\r\n\r\n // System.out.println(i+\" \"+j); \r\n if (mat[i][j] != 0) {\r\n count--;\r\n mat[i][j] = 0;\r\n }\r\n }\r\n }", "public static int[][] generateBlockers () {\n int[][] blockers;\n\n blockers = new int[15][15];\n\n Random rd = new Random();\n\n for (int i = 0; i < 23; i++) { // 23 = (15^2)*.1\n int x = rd.nextInt(15);\n int y = rd.nextInt(15);\n\n // If the node is already blocked\n if (blockers[x][y] == 1) {\n blockers[rd.nextInt(15)][rd.nextInt(15)] = 1; // Try another node\n i++;\n } else // Otherwise block it\n blockers[x][y] = 1;\n }\n\n return blockers;\n }", "public void drawGrid()\n {\n noStroke();\n for(int i = 0; i < xCells; i++)\n {\n for(int j = 0; j < yCells; j++)\n {\n if(pattern[i][j])\n fill(0);\n else\n fill(255);\n rect(firstCellPosition[0]+i*cellSize,firstCellPosition[1]+j*cellSize,cellSize-1,cellSize-1);\n }\n }\n }", "public void generateCells() {\n\t\tfor(int x = 0; x < width; x++) {\n\t\t\tfor(int y = 0; y < height; y++) {\n\t\t\t\tboolean alive;\n\t\t\t\tif(livingYSpaceTop > y || height - livingYSpaceBottom < y || livingXSpaceLeft > x || width - livingXSpaceRight < x) {\n\t\t\t\t\talive = true;\n\t\t\t\t}\n\t\t\t\telse if(deadYSpaceTop > y || height - deadYSpaceBottom < y || deadXSpaceLeft > x || width - deadXSpaceRight < x) {\n\t\t\t\t\talive = false;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\talive = UpWardUtils.randomFloat() < chanceToStartAlive;\n\t\t\t\t}\n\t\t\t\tcellMatrix[x][y] = alive ? 1 : 0;\n\t\t\t}\n\t\t}\n\t}", "private void generateConfig() \n {\n Random randomSpin = new Random();\n //System.out.println(\"Generated lattice looks like this:\");\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < m; j++) {\n if (randomSpin.nextDouble() < 0.5) {\n lattice[i][j] = -1; \n } else {\n lattice[i][j] = 1;\n }\n // System.out.printf(\"%d \", lattice[i][j]);\n }\n // System.out.println();\n\n }\n }", "public static void prepareGraph(GraphNode[] graph) {\n ArrayList<GraphNode> blockedNodes = new ArrayList<>();\n\n for (GraphNode g : graph)\n if (g.blocked)\n blockedNodes.add(g);\n\n for (GraphNode g : blockedNodes)\n for (GraphNode n : g.neighbors)\n n.blocked = true;\n }", "private void createGraySquares() {\n for (int x = 0; x < 16; x ++)\n for (int y = 0; y < 16; y ++)\n // If the area is not explored, creates a gray square at that point.\n if (!storage.explored[x][y]) {\n GraySquare square = new GraySquare(screen.miscAtlases.get(2));\n // Uses the x and y integers to set the corresponding position in the grid.\n square.setPosition(x * 20, y * 20 + 19);\n // Adds to the rendering list.\n squares.add(square);\n }\n }", "void create(){\n // I assign zero value to each element of the array.\n for (int i = 0;i< this.row; i++){\n for (int j = 0; j< this.column; j++){\n array[i][j]= 0;\n }\n }\n // I create random values for mines indexes\n int min = 0;\n int max = this.row;\n Random random = new Random();\n int randRow, randColumn, count=0;\n //I generate random mines quarter of the size of the array and assign it into the array.\n while(count != (this.row*this.column/4)){\n randRow = random.nextInt(max + min) + min;\n randColumn = random.nextInt(max + min) + min;\n if (array[randRow][randColumn] != -1){\n array[randRow][randColumn]= -1;\n count++;\n }\n }\n // I show the all minesweeper map\n for (int i = 0;i< this.row; i++){\n for (int j = 0; j< this.column; j++){\n if (array[i][j]==0)\n System.out.print(\"0 \");\n else\n System.out.print(\"* \");\n }\n System.out.println();\n }\n }", "public MapGrid(){\n\t\tthis.cell = 25;\n\t\tthis.map = new Node[this.width][this.height];\n\t}", "public static void main(String[] args) throws IOException {\n\t\tGridWorld[] workSpace = new GridWorld[50];\r\n\r\n\t\t//create 50 grid worlds to put in the array and within the grid worlds initiate all the cells\r\n\t\tfor(int i = 0; i < 50; i++) {\r\n\t\t\tGridWorld g = new GridWorld(i);\r\n\t\t\tfor(int j = 0; j < gridDimmension; j++) {\r\n\t\t\t\tfor(int k = 0; k < gridDimmension; k++) {\r\n\t\t\t\t\tg.grid[j][k] = new cell();\r\n\t\t\t\t\tg.grid[j][k].setCellCoordinates(j, k);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tworkSpace[i] = g;\r\n\t\t}\r\n\t\t\r\n\t\tRandom rand = new Random();\r\n\r\n\t\t//have to setup the grid world \"maze\" for each grid world in the workspace\r\n\t\tfor(GridWorld g: workSpace) {\r\n\t\t\t//need to visit all 101x101 cells\r\n\t\t\tint x;\r\n\t\t\tint y;\r\n\t\t\twhile(g.counter != (gridDimmension*gridDimmension)) {\r\n\t\t\t\t//if the stack is empty we want to just pick a random unvisited cell and start from there\r\n\t\t\t\tif(g.myStack.isEmpty()) {\r\n\t\t\t\t\t//start by picking a random cell\r\n\t\t\t\t\tcell starter = selectRandomCell(g);\r\n\t\t\t\t\tx = starter.x;\r\n\t\t\t\t\ty = starter.y;\r\n\t\t\t\t\t//if we pick a cell thats already been visited we want to pick another one at random until we find one that hasn't\r\n\t\t\t\t\twhile(g.grid[x][y].visited) {\r\n\t\t\t\t\t\tstarter = selectRandomCell(g);\r\n\t\t\t\t\t\tx = starter.x;\r\n\t\t\t\t\t\ty = starter.y;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//mark the random cell as visited and unblocked\r\n\r\n\t\t\t\t\tg.grid[x][y].setVisited();\r\n\t\t\t\t\tg.grid[x][y].setStatus(unblocked);\r\n\t\t\t\t\t//increment the counter to show one more cell has been visited\r\n\t\t\t\t\tg.counter++;\r\n\r\n\t\t\t\t\t//select a random neighbor\r\n\t\t\t\t\t//1 = move left, 2 = move right, 3 = go up, 4 = go down\r\n\t\t\t\t\t//x is up and down, y is left or right\r\n\t\t\t\t\twhile(!deadEnd(g, x, y)) {\r\n\t\t\t\t\t\tString options = \"lrud\";\r\n\t\t\t\t\t\tif(y - 1 < 0) {\r\n\t\t\t\t\t\t\toptions = options.replace('l', 'q');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(y + 1 >= gridDimmension) {\r\n\t\t\t\t\t\t\toptions = options.replace('r', 'q');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(x + 1 >=gridDimmension) {\r\n\t\t\t\t\t\t\toptions = options.replace('u', 'q');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(x - 1 < 0) {\r\n\t\t\t\t\t\t\toptions = options.replace('d', 'q');\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tint r;\r\n\t\t\t\t\t\tdo {\r\n\t\t\t\t\t\t\tr = rand.nextInt(4) + 1;\r\n\t\t\t\t\t\t}while(!randomNeighborChecker(g, x, y, options, r));\r\n\r\n\t\t\t\t\t\t//now that we know which way we are going we can move where we need to go\r\n\t\t\t\t\t\tif(r == 1) {\r\n\t\t\t\t\t\t\ty-=1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(r == 2) {\r\n\t\t\t\t\t\t\ty+=1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(r == 3) {\r\n\t\t\t\t\t\t\tx-=1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(r == 4) {\r\n\t\t\t\t\t\t\tx+=1;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t//the new coordinates of the cell to work on have been chosen\r\n\t\t\t\t\t\t//with 30% chance mark the cell as blocked, with 70% chance mark the cell as unblocked and add to stack\r\n\t\t\t\t\t\tint blockedNum = rand.nextInt(100);\r\n\t\t\t\t\t\tif(blockedNum <= 30) {\r\n\t\t\t\t\t\t\tg.grid[x][y].setVisited();\r\n\t\t\t\t\t\t\tg.grid[x][y].setStatus(blocked);\r\n\t\t\t\t\t\t\tg.counter++;\r\n\t\t\t\t\t\t} else if(blockedNum > 70) {\r\n\t\t\t\t\t\t\tg.grid[x][y].setVisited();\r\n\t\t\t\t\t\t\tg.grid[x][y].setStatus(unblocked);\r\n\t\t\t\t\t\t\tg.myStack.push(g.grid[x][y]);\r\n\t\t\t\t\t\t\tg.counter++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//if the stack is not empty we do the same exact process \r\n\t\t\t\t//only difference is we don't choose a random cell we choose the one we popped from the stack\r\n\t\t\t\telse {\r\n\r\n\t\t\t\t\tcell temp = g.myStack.pop();\r\n\t\t\t\t\tx = temp.x;\r\n\t\t\t\t\ty = temp.y;\r\n\r\n\r\n\t\t\t\t\t//select a random neighbor\r\n\t\t\t\t\t//1 = move left, 2 = move right, 3 = go up, 4 = go down\r\n\t\t\t\t\t//x is up and down, y is left or right\r\n\t\t\t\t\twhile(!deadEnd(g, x, y)) {\r\n\t\t\t\t\t\tString options = \"lrud\";\r\n\t\t\t\t\t\tif(y - 1 < 0) {\r\n\t\t\t\t\t\t\toptions = options.replace('l', 'q');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(y + 1 >= gridDimmension) {\r\n\t\t\t\t\t\t\toptions = options.replace('r', 'q');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(x + 1 >= gridDimmension) {\r\n\t\t\t\t\t\t\toptions = options.replace('u', 'q');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(x - 1 < 0) {\r\n\t\t\t\t\t\t\toptions = options.replace('d', 'q');\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tint r;\r\n\t\t\t\t\t\tdo {\r\n\t\t\t\t\t\t\tr = rand.nextInt(4) + 1;\r\n\t\t\t\t\t\t}while(!randomNeighborChecker(g, x, y, options, r));\r\n\r\n\t\t\t\t\t\t//now that we know which way we are going we can move where we need to go\r\n\t\t\t\t\t\tif(r == 1) {\r\n\t\t\t\t\t\t\ty-=1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(r == 2) {\r\n\t\t\t\t\t\t\ty+=1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(r == 3) {\r\n\t\t\t\t\t\t\tx-=1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(r == 4) {\r\n\t\t\t\t\t\t\tx+=1;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t//the new coordinates of the cell to work on have been chosen\r\n\t\t\t\t\t\t//with 30% chance mark the cell as blocked, with 70% chance mark the cell as unblocked and add to stack\r\n\t\t\t\t\t\tint blockedNum = rand.nextInt(100);\r\n\t\t\t\t\t\tif(blockedNum <= 30) {\r\n\t\t\t\t\t\t\tg.grid[x][y].setVisited();\r\n\t\t\t\t\t\t\tg.grid[x][y].setStatus(blocked);\r\n\t\t\t\t\t\t\tg.counter++;\r\n\t\t\t\t\t\t} else if(blockedNum > 70) {\r\n\t\t\t\t\t\t\tg.grid[x][y].setVisited();\r\n\t\t\t\t\t\t\tg.grid[x][y].setStatus(unblocked);\r\n\t\t\t\t\t\t\tg.myStack.push(g.grid[x][y]);\r\n\t\t\t\t\t\t\tg.counter++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(GridWorld gw: workSpace){\r\n\t\t\t//get goal\r\n\t\t\tcell goal = gw.grid[rand.nextInt(gridDimmension)][rand.nextInt(gridDimmension)];\r\n\t\t\twhile(goal.status == blocked){\r\n\t\t\t\tgoal = gw.grid[rand.nextInt(gridDimmension)][rand.nextInt(gridDimmension)];\r\n\t\t\t}\r\n\t\t\tgw.g = goal;\r\n\t\t\t\r\n\t\t\t//get start(s)\r\n\t\t\tgw.s = new cell[numAgents];\r\n\t\t\tfor(int i=0; i<numAgents; i++){\r\n\t\t\t\tcell start = gw.grid[rand.nextInt(gridDimmension)][rand.nextInt(gridDimmension)];\r\n\t\t\t\twhile(start.status == blocked || start.equals(goal)){\r\n\t\t\t\t\tstart = gw.grid[rand.nextInt(gridDimmension)][rand.nextInt(gridDimmension)];\r\n\t\t\t\t}\r\n\t\t\t\tgw.s[i] = start;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsaveGrid(gw);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Done\");\r\n\t}", "public void intializeGridBall() {\n\t\tint incWidth = DEFUALT_WIDTH /15;\t\n\t\t\n\t\tfor(int i = 0;i<gridBall.length;i++) {\t\t\t\n\t\t\tfor(int j = 0;j < gridBall[i].length;j++) {\n\t\t\t\tPoint2D point= new Point2D.Float();\n\t\t\t\tpoint.setLocation((incWidth*i)+(incWidth/2),(incWidth*j)+(incWidth/2));\n\t\t\t\tColor c = getRandomColor();\n\t\t\t\tgridBall[i][j] = new Ball(c,point);\n\t\t\t}\n\t\t}\n\t}", "public RegularGrid() {\r\n }", "private void initGrid() {\n m_emptyHexCount = 0;\n m_hexagons.clear();\n for (int i = 0; i < m_rowNum; i++) {\n ArrayList<Hexagon> tmp = new ArrayList<>();\n int maxColNum;\n if (i % 2 == 0)\n maxColNum = m_colNum;\n else\n maxColNum = m_colNum - 1;\n\n for (int j = 0; j < maxColNum; j++) {\n tmp.add(new Hexagon(m_app));\n m_emptyHexCount++;\n }\n m_hexagons.add(tmp);\n }\n }", "public void plantBombsInEmptyCells() {\n\t\tfor (int i = 0; i < r; i++) {\n\t\t\tfor (int j = 0; j < c; j++) {\n\t\t\t\tgrid[i][j] = ( grid[i][j] < 0 ? 0 : grid[i][j] );\n\t\t\t}\n\t\t}\n\t}", "public TwoDimensionalGrid(int[] columnsAlive, int[] rowsAlive, int numberOfCellsSet)\r\n {\r\n cellGrid = new Cell[LOWER_BOUND][RIGHT_BOUND];\r\n\r\n for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n {\r\n for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n {\r\n cellGrid[columns][rows] = new Cell();\r\n for (int cellsSet = 0; cellsSet < numberOfCellsSet; cellsSet ++)\r\n {\r\n if (columns == columnsAlive[cellsSet] && rows == rowsAlive[cellsSet])\r\n {\r\n cellGrid[columns][rows] = new Cell(true);\r\n } // end of if (columns == columnsAlive[cellsSet] && rows == rowsAlive[cellsSet])\r\n } // end of for (int cellsSet = 0; cellsSet < numberOfCellsSet; cellsSet ++)\r\n } // end of for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n System.out.print(\"\\n\");\r\n } // end of for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n }", "public void generateNodes() {\n Node[][] nodes = new Node[width][height];\n \n for (int x = 0; x < width; x++) {\n for (int y = 0; y < height; y++) {\n nodes[x][y] = new Node(\"(\" + (String.valueOf(x) + \", \" + String.valueOf(y)) + \")\",\n x, y, isPixelAnObstacle(this.pixels[x][y]));\n }\n }\n \n this.nodeArray = nodes;\n }", "private void generateMap(){\n int[] blockStepX = {X_STEP, 0, -X_STEP, -X_STEP, 0, X_STEP};\n int[] blockStepY = {Y_STEP_ONE, Y_STEP_TWO, Y_STEP_ONE, -Y_STEP_ONE, -Y_STEP_TWO, -Y_STEP_ONE};\n int blockSpecialValue = 0;\n int cellSpecial = 0;\n\n mapCells[origin.x/10][origin.y/10] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n cellGrid[0][0][0] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n for (int distanceFromOrigin = 0; distanceFromOrigin < config.getSizeOfMap();\n distanceFromOrigin++){\n\n int[] blockXVals = {origin.x,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x,\n origin.x - X_STEP * distanceFromOrigin,\n origin.x - X_STEP * distanceFromOrigin};\n\n int[] blockYVals = {origin.y - Y_STEP_TWO * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_TWO * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin};\n\n blockSpecialValue = getRandomNumber(distanceFromOrigin, 0, 0);\n\n for (int block = 0; block < NUMBER_OF_BLOCKS; block ++){\n\n int blockXOrdinal = blockXVals[block];\n int blockYOrdinal = blockYVals[block];\n\n for (int blockSize = 0; blockSize < distanceFromOrigin; blockSize++){\n if(blockSpecialValue == blockSize){\n cellSpecial = getRandomNumber(2, 1, 1);\n }else {\n cellSpecial = 0;\n }\n cellGrid [distanceFromOrigin][block+1][blockSize+1] = makeNewCell(\n new CellPosition(distanceFromOrigin,block+1, blockSize+1),\n new Point(blockXOrdinal + blockStepX[block] * (blockSize + 1),\n blockYOrdinal + blockStepY[block] * (blockSize + 1)), cellSpecial);\n }\n }\n }\n }", "public void setGrid(int[][] mine, int numberOfMines, int numberOfColumns, int numberOfRows) {\n int mineNumber = 1;\n point = new int[numberOfColumns + 1][numberOfRows + 1];\n int rowNumber = 1;\n while (rowNumber <= numberOfRows) {\n int columnNumber = 1;\n while (columnNumber <= numberOfColumns) {\n if (mineNumber <= numberOfMines) {\n while (mineNumber <= numberOfMines) {\n if (columnNumber == mine[mineNumber][1] && rowNumber == mine[mineNumber][2]) {\n point[columnNumber][rowNumber] = 9;\n }\n mineNumber++;\n }\n mineNumber = 1;\n } else {\n point[columnNumber][rowNumber] = 0;\n }\n columnNumber++;\n }\n rowNumber++;\n }\n point = getPlotNumbers(point, numberOfMines, numberOfColumns, numberOfRows);\n }", "public static void updateGrid(int grid[][])\n {\n\n int tempGrid [][] = new int [10][10];\n for (int i =0; i<10;i++)\n {\n for (int j = 0; j<10;j++)\n {\n tempGrid[i][j] = grid[i][j];\n }\n }\n for (int i =1; i<9;i++)\n {\n for (int j = 1; j<9;j++)\n {\n //check neighbors\n int neighbors = grid[i-1][j-1]+grid[i-1][j]+grid[i-1][j+1]+grid[i][j-1]+grid[i][j+1]+grid[i+1][j-1]+grid[i+1][j]+grid[i+1][j+1];\n if (grid[i][j]==1 && ((neighbors>=4 || neighbors<=1))) // check rules\n {\n tempGrid[i][j] =0;\n }\n else if (grid[i][j]==0 && neighbors==3) //check rules\n {\n tempGrid[i][j] =1;\n }\n }\n }\n displayGrid(tempGrid); //display the grid\n for (int i =0; i<10;i++)\n {\n for (int j = 0; j<10;j++)\n {\n grid[i][j]=tempGrid[i][j]; //change the original grid\n }\n }\n \n }", "private int[] generate(int[] cells) {\n // Placeholder\n int[] newCells = new int[cells.length];\n\n // Boundary-elements, simply ignoring them..\n for (int x = 1; x < cells.length - 1; x++) {\n\n // Neighborhood\n int left = cells[x - 1];\n int mid = cells[x];\n int right = cells[x + 1];\n\n int newState = next(left, mid, right);\n\n newCells[x] = newState;\n }\n\n return newCells;\n }", "private void init() {\n \t\t// Initialise border cells as already visited\n \t\tfor (int x = 0; x < size + 2; x++) {\n \t\t\tvisited[x][0] = true;\n \t\t\tvisited[x][size + 1] = true;\n \t\t}\n \t\tfor (int y = 0; y < size + 2; y++) {\n \t\t\tvisited[0][y] = true;\n \t\t\tvisited[size + 1][y] = true;\n \t\t}\n \t\t\n \t\t\n \t\t// Initialise all walls as present\n \t\tfor (int x = 0; x < size + 2; x++) {\n \t\t\tfor (int y = 0; y < size + 2; y++) {\n \t\t\t\tnorth[x][y] = true;\n \t\t\t\teast[x][y] = true;\n \t\t\t\tsouth[x][y] = true;\n \t\t\t\twest[x][y] = true;\n \t\t\t}\n \t\t}\n \t}", "@Override\n public Iterable<WorldState> neighbors() {\n Queue<WorldState> neighbor = new ArrayDeque<>();\n int xDim = 0, yDim = 0;\n int[][] tiles = new int[_N][_N];\n\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n tiles[i][j] = _tiles[i][j];\n if (_tiles[i][j] == 0) {\n xDim = i;\n yDim = j;\n }\n }\n }\n\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n if (Math.abs(i - xDim) + Math.abs(j - yDim) == 1) {\n tiles[i][j] = _tiles[xDim][yDim];\n tiles[xDim][yDim] = _tiles[i][j];\n neighbor.add(new Board(tiles));\n // System.out.println(new Board(tiles));\n tiles[xDim][yDim] = _tiles[xDim][yDim];\n tiles[i][j] = _tiles[i][j];\n }\n }\n }\n return neighbor;\n }", "public void findNeighbours(ArrayList<int[]> visited , Grid curMap) {\r\n\t\tArrayList<int[]> visitd = visited;\r\n\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS cur pos:\" +Arrays.toString(nodePos));\r\n\t\t//for(int j=0; j<visitd.size();j++) {\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +Arrays.toString(visited.get(j)));\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS getvstd\" +Arrays.toString(visited.get(j)));\r\n\t\t//}\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +visited);\r\n\t\tCell left=curMap.getCell(0, 0);\r\n\t\tCell right=curMap.getCell(0, 0);\r\n\t\tCell upper=curMap.getCell(0, 0);\r\n\t\tCell down=curMap.getCell(0, 0);\r\n\t\t//the getStart() method returns x,y coordinates representing the point in x,y axes\r\n\t\t//so if either of [0] or [1] coordinate is zero then we have one less neighbor\r\n\t\tif (nodePos[1]> 0) {\r\n\t\t\tupper=curMap.getCell(nodePos[0], nodePos[1]-1) ; \r\n\t\t}\r\n\t\tif (nodePos[1] < M-1) {\r\n\t\t\tdown=curMap.getCell(nodePos[0], nodePos[1]+1);\r\n\t\t}\r\n\t\tif (nodePos[0] > 0) {\r\n\t\t\tleft=curMap.getCell(nodePos[0] - 1, nodePos[1]);\r\n\t\t}\r\n\t\tif (nodePos[0] < N-1) {\r\n\t\t\tright=curMap.getCell(nodePos[0]+1, nodePos[1]);\r\n\t\t}\r\n\t\t//for(int i=0;i<visitd.size();i++) {\r\n\t\t\t//System.out.println(Arrays.toString(visitd.get(i)));\t\r\n\t\t//}\r\n\t\t\r\n\t\t//check if the neighbor is wall,if its not add to the list\r\n\t\tif(nodePos[1]>0 && !upper.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] - 1}))) {\r\n\t\t\t//Node e=new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1},curMap);\r\n\t\t\t//if(e.getVisited()!=true) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1}, curMap)); // father of the new nodes is this node\r\n\t\t\t//}\r\n\t\t}\r\n\t\tif(nodePos[1]<M-1 &&!down.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] + 1}))){\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] + 1}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]>0 && !left.isWall() && (!exists(visitd,new int[] {nodePos[0] - 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] - 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]<N-1 && !right.isWall() && (!exists(visitd,new int[] {nodePos[0] + 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] + 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\t//for(int i=0; i<NodeChildren.size();i++) {\r\n\t\t\t//System.out.println(\"Paidia sth find:\" + Arrays.toString(NodeChildren.get(i).getNodePos()));\r\n\t\t//}\r\n\t\t\t\t\t\t\r\n\t}", "public void drawGrid() {\r\n\t\tsetLayout(new GridLayout(getSize_w(), getSize_h()));\r\n\t\tfor (int i = 0; i < getSize_h(); i++) {\r\n\t\t\tfor (int j = 0; j < getSize_w(); j++) {\r\n\t\t\t\tcity_squares[i][j] = new Gridpanel(j, i);\r\n\t\t\t\tadd(city_squares[i][j]);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException 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}", "public Percolation(int n){\n\t\tif (n <= 0)\n\t\t\tthrow new IllegalArgumentException(\"input must be greater than 0\");\n\t\tstoreVar = n; \n\t\tgrid = new boolean[n*n + 2]; \n\t\tfullgrid = new boolean[n*n + 2];\n\t\tvirtualTop = 0; \n\t\tvirtualBottom = grid.length-1; \n\t\tgrid[0] = true; \n\t\tgrid[grid.length-1] = true; \n\t\tfullgrid[0] = true;\n\t\tunionFind = new WeightedQuickUnionUF(grid.length);\n\t\tbackwash = new WeightedQuickUnionUF(n*n + 1);\n\t\topenSites = 0;\n\n\t}", "private void initCells()\n {\n this.minesweeperCells = new MinesweeperCell[ROWS_COLUMNS][ROWS_COLUMNS];\n int k = 0;\n mines = new ArrayList<>();\n while(k < N_MINES)\n {\n int randomRow, randomColumn;\n randomRow = (int) (Math.random() *this.minesweeperCells.length);\n randomColumn = (int) (Math.random() *this.minesweeperCells[0].length);\n Point mine = new Point(randomRow, randomColumn);\n if(!mines.contains(mine))\n {\n mines.add(mine);\n k++;\n }\n }\n // init the cells\n for(int i = 0; i < this.minesweeperCells.length; i++)\n {\n for(int j = 0; j < this.minesweeperCells[i].length; j++)\n {\n this.minesweeperCells[i][j] = new MinesweeperCell(false, true, getMineCount(i,j), i, j);\n }\n }\n this.minesweeperCustomView.setArray(this.minesweeperCells);\n }", "private void setRandomSeedsToBricks() {\r\n RandomGenerator randomGenerator = new RandomGenerator();\r\n for (int i = 0; i < BRICKS_PER_ROW; i++) {\r\n// for (int j = randomGenerator.nextInt(0, BRICKS_PER_ROW - 1); j > 0; j--) {\r\n int randomCord = randomGenerator.nextInt(0, BRICKS_PER_ROW - 1);\r\n bricks[i][randomCord].setBrickColor(Color.BLACK);\r\n bricks[i][randomCord].setColor(Color.BLACK);\r\n// }\r\n }\r\n }", "private static void test(int xy, int si, int sj, int ei, int ej, int[][] blocked){\n System.out.println(\"\\n\\nTest Case #\"+tCase);tCase++;\n //Reset\n long start_time = System.nanoTime();\n grid = new Cell[xy][xy];\n closed = new boolean[xy][xy];\n open = new PriorityQueue<>((Object o1, Object o2) -> {\n Cell c1 = (Cell)o1;\n Cell c2 = (Cell)o2;\n\n return Integer.compare(c1.finalCost, c2.finalCost);\n });\n //Set start position\n setStartCell(si, sj); //Setting to 0,0 by default\n\n //Set End Location\n setEndCell(ei, ej);\n\n for(int i=0;i<xy;++i){\n for(int j=0;j<xy;++j){\n grid[i][j] = new Cell(i, j);\n grid[i][j].heuristicCost = Math.abs(i-endI)+Math.abs(j-endJ);\n //System.out.print(grid[i][j].heuristicCost+\" \");\n }\n //System.out.println();\n }\n grid[si][sj].finalCost = 0;\n\n //Set blocked cells to null\n for (int bX = 0; bX < blocked.length; bX++) {\n for (int bY = 0; bY < blocked.length; bY++)\n if (blocked[bX][bY] == 1)\n setBlocked(bX, bY);\n }\n\n String[][] maze = new String[xy][xy];\n //Display initial map\n System.out.println(\"Grid: \");\n char block = '▋';\n String open = \"[]\";\n for(int i=0;i<xy;++i){\n for(int j=0;j<xy;++j){\n if(i==si&&j==sj){ System.out.print(\"SO \"); //Source\n maze[i][j] = \"SO \"; }\n else if(i==ei && j==ej){ System.out.print(\"DE \"); //Destination\n maze[i][j] = \"DE \"; }\n else if(grid[i][j]!=null){ System.out.print(open + \" \");\n maze[i][j] = open + \" \"; }\n else{ System.out.print(block + \" \");\n maze[i][j] = block + \" \"; }\n }\n System.out.println();\n }\n System.out.println();\n\n AStar();\n System.out.println(\"\\nScores for cells: \");\n for(int i=0;i<xy;++i){\n for(int j=0;j<xy;++j){\n if(grid[i][j]!=null)System.out.printf(\"%-4d \", grid[i][j].finalCost);\n else System.out.print(block + \" \");\n }\n System.out.println();\n }\n System.out.println();\n\n if(closed[endI][endJ]){\n //Trace back the path\n System.out.println(\"Path: \");\n Cell current = grid[endI][endJ];\n System.out.print(current);\n ArrayList<Cell> path = new ArrayList<>();\n path.add(current);\n while(current.parent!=null){\n System.out.print(\" -> \"+current.parent);\n current = current.parent;\n path.add(current);\n }\n System.out.println(\"\\n\");\n\n Collections.reverse(path);\n\n for (Cell index : path) {\n if (path.contains(index))\n maze[index.i][index.j] = \"- \";\n }\n\n //Display final path\n System.out.println(\"Final Path: \");\n System.out.println(path.toString() + \"\\n\");\n\n for(int i=0;i<xy;++i) {\n for (int j = 0; j < xy; ++j) {\n if(i==si&&j==sj)System.out.print(\"SO \"); //Source\n else if(i==ei && j==ej)System.out.print(\"DE \"); //Destination\n else System.out.print(maze[i][j]);\n }\n System.out.println();\n }\n\n System.out.println();\n }else System.out.println(\"No possible path\");\n\n long end_time = System.nanoTime();\n double difference = (end_time - start_time) / 1e6;\n\n System.out.println(difference + \"ms\\n\");\n\n }", "private void setNeighbors()\r\n {\r\n for (int x = 0; x < length+2; ++x)\r\n {\r\n for (int y = 0; y < width+2; ++y)\r\n {\r\n // North\r\n if (!this.board[x][y].northwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x][y-1]);\r\n }\r\n // South\r\n if (!this.board[x][y].southwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x][y+1]);\r\n }\r\n // East\r\n if (!this.board[x][y].eastwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x+1][y]);\r\n }\r\n // West\r\n if (!this.board[x][y].westwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x-1][y]);\r\n }\r\n }\r\n }\r\n }", "public void hunt() {\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tif(cells[i].visited == false) {\n\t\t\t\t\n\t\t\t\tint currentIndex = i;\n\t\t\t\t\n\t\t\t\tArrayList<Integer> neighbors = setVisitedNeighbors(i);\n\t\t\t\tint nextIndex = getRandomVisitedNeighborIndex(neighbors);\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(neighbors.size() != 0 ) {\n\t\t\t\t\tcells[currentIndex].visited = true;\n\t\t\t\t\t\n\t\t\t\t\tif(nextIndex == NOT_EXIST) {\n\t\t\t\t\t\tbreak; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//if there is NO not visited neighbors \n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == -1) {\n\t\t\t\t\t\tcells[currentIndex].border[EAST] = NO_WALL; \t\t\t\t\t\t\t//neighbor is right \n\t\t\t\t\t\tcells[nextIndex].border[WEST] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == width) {\n\t\t\t\t\t\tcells[currentIndex].border[NORTH] = NO_WALL;\t\t\t\t\t\t\t//neighbor is up\n\t\t\t\t\t\tcells[nextIndex].border[SOUTH] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == -width) {\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tcells[currentIndex].border[SOUTH] = NO_WALL;\t\t\t\t\t\t\t//neighbor is down\n\t\t\t\t\t\tcells[nextIndex].border[NORTH] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == 1) {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tcells[currentIndex].border[WEST] = NO_WALL;\t\t\t\t\t\t\t\t//neighbor is left\n\t\t\t\t\t\tcells[nextIndex].border[EAST] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\tkill(nextIndex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void tileSetSurroundingBombs() {\r\n for (int r = 0; r < gridSize; r++) {\r\n for (int c = 0; c < gridSize; c++) {\r\n int neighborBombs = neighborBombCount(grid[r][c]);\r\n grid[r][c].setSurroundingBombs(neighborBombs);\r\n }\r\n } \r\n }", "private void layMineField ( int n , int pct)\n { \n Random generator = new Random( n );\n \n for ( int r = 0 ; r < rows ; r++ )\n {\n for ( int c = 0; c < cols ; c++ ) \n {\n if ( generator.nextInt( 100 ) < pct )\n theMines[ r ][ c ] = 1; \n else\n theMines[ r ][ c ] = 0;\n }\n }\n }", "@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 }", "protected void generate() {\n\t\tcpGenerator( nx, ny, nz, ClosePackedLattice.HCP);\n\t}", "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 GridPane() {\n\t\t for (int i=0;i<MAX_X; i++) {\n\t\t\tfor (int j=0;j<MAX_Y;j++) {\n\t\t\t\tseed[i][j] = new Cell(i,j,false);\n\t\t\t}//end for j\n\t\t }//end for i\n\t\n\t \tdefaultBackground = getBackground();\n\t\n\t MatteBorder border = new MatteBorder(1, 1, 1, 1, Color.BLACK);\n\t \tthis.setBorder(border);\n\t \t\t\n\t\t addMouseListener(new MouseAdapter() {\n\t @Override\n\t public void mouseClicked(MouseEvent e) {\n\t \t int x1 = (int)(e.getX()/CELL_WIDTH);\n\t \t int y1 = (int)(e.getY()/CELL_WIDTH);\n\t \t if(seed[x1][y1].isAlive()) {\n\t \t\t seed[x1][y1].isAlive = false;\n\t \t }\n\t \t else {\n\t \t\t seed[x1][y1].isAlive = true;\n\t \t }\n//\t \t System.out.println(\"[\"+x1+\",\"+y1+\"]\");\n\t repaint();\n\t }\n\t });\n\t }", "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 checkAll() {\n for (int i = 0; i < size * size; i++) {\r\n if (flowGrid[i]!=size*size) {\r\n if ((flowGrid[i] != flowGrid[flowGrid[i]]) || i != flowGrid[i]) {\r\n flowGrid[i] = flowGrid[flowGrid[i]];\r\n if (flowGrid[i] < size) {\r\n grid[i / size][i % size] = 2;\r\n }\r\n }\r\n }\r\n }\r\n\r\n }", "public GridPane initializeGridPane() {\n\t\tGridPane world = new GridPane();\n\t\t\n\t\tfor (int x = 0; x < this.columns; x++) {\n\t\t\tfor (int y = 0; y < this.rows; y++) {\n\t\t\t\tRectangle cellGUI = new Rectangle(this.widthOfCells - 1, this.heightOfCells - 1);\n\t\t\t\tcellGUI.setFill(Color.web(\"#FFFFFF\"));\t\t// White cell background color\n cellGUI.setStroke(Color.web(\"#C0C0C0\")); \t// Grey cell border color\n cellGUI.setStrokeWidth(1); \t\t\t\t\t// Width of the border\n\n world.add(cellGUI, x, y);\n this.cellGUIArray[x][y] = cellGUI;\n\n cellGUI.setOnMouseClicked((event) -> {\n \tthis.currentGeneration = this.simulation.getCurrentGeneration();\n for (int i = 0; i < columns; i++) {\n for (int j = 0; j < rows; j++) {\n if (this.cellGUIArray[i][j].equals(cellGUI) && this.currentGeneration[i][j] == 0) {\n this.currentGeneration[i][j] = 1;\n } else if (this.cellGUIArray[i][j].equals(cellGUI) && this.currentGeneration[i][j] == 1) {\n this.currentGeneration[i][j] = 0;\n }\n }\n }\n this.simulation.setCurrentGeneration(this.currentGeneration);\n });\n\t\t\t}\n\t\t}\n\t\treturn world;\n\t}", "public void randomInit() {\n Plain plain = new Plain(width + 2);\n grid = new Living[width + 2][width + 2];\n for (int i = 1; i < grid.length - 1; i++) {\n for (int j = 1; j < grid[i].length - 1; j++) {\n int randomNum = (int) (Math.random() * 5);\n switch (randomNum) {\n case 0:\n grid[i][j] = new Badger(plain, i, j, 0);\n break;\n case 1:\n grid[i][j] = new Empty(plain, i, j);\n break;\n case 2:\n grid[i][j] = new Fox(plain, i, j, 0);\n break;\n case 3:\n grid[i][j] = new Grass(plain, i, j);\n break;\n case 4:\n grid[i][j] = new Rabbit(plain, i, j, 0);\n break;\n }\n }\n }\n }", "private GridPane inicializarPanelGrid() {\n GridPane gridPane = new GridPane();\n\n // Position the pane at the center of the screen, both vertically and horizontally\n gridPane.setAlignment(Pos.CENTER);\n\n // Set a padding of 20px on each side\n gridPane.setPadding(new Insets(40, 40, 40, 40));\n\n // Set the horizontal gap between columns\n gridPane.setHgap(10);\n\n // Set the vertical gap between rows\n gridPane.setVgap(10);\n\n // Add Column Constraints\n // columnOneConstraints will be applied to all the nodes placed in column one.\n ColumnConstraints columnOneConstraints = new ColumnConstraints(100, 100, Double.MAX_VALUE);\n columnOneConstraints.setHalignment(HPos.RIGHT);\n\n // columnTwoConstraints will be applied to all the nodes placed in column two.\n ColumnConstraints columnTwoConstrains = new ColumnConstraints(200, 200, Double.MAX_VALUE);\n columnTwoConstrains.setHgrow(Priority.ALWAYS);\n\n gridPane.getColumnConstraints().addAll(columnOneConstraints, columnTwoConstrains);\n\n return gridPane;\n }", "private void setNumbers() {\n\t\tint w = worldWidth;\n\t\tint h = worldHeight;\n\t\tfor (int x = 0; x <= w - 1; x++) {\n\t\t\tfor (int y = 0; y <= h - 1; y++) {\n\t\t\t\tint numbers = 0;\n\n\t\t\t\tint right = x + 1;\n\t\t\t\tint left = x - 1;\n\t\t\t\tint up = y - 1;\n\t\t\t\tint down = y + 1;\n\n\t\t\t\tif (left < 0) {\n\t\t\t\t\tleft = 0;\n\t\t\t\t}\n\t\t\t\tif (up < 0) {\n\t\t\t\t\tup = 0;\n\t\t\t\t}\n\t\t\t\tif (down >= h) {\n\t\t\t\t\tdown = h - 1;\n\t\t\t\t}\n\t\t\t\tif (right >= w) {\n\t\t\t\t\tright = w - 1;\n\t\t\t\t}\n\n\t\t\t\tfor (int m = left; m <= right; m++) {\n\t\t\t\t\tfor (int n = up; n <= down; n++) {\n\t\t\t\t\t\tif (!(m == x && n == y)) {\n\t\t\t\t\t\t\tif (tileArr[m][n].hasBomb()) {\n\t\t\t\t\t\t\t\tnumbers++;\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\ttileArr[x][y].setNeighbors(numbers);\n\t\t\t}\n\n\t\t}\n\n\t}", "public void blank() {\r\n\t\trunning = false;// sets the simulation to stopped\r\n\t\tfor (int i = 0; i < TOTAL_TILES; i++)// loops through all tiles\r\n\t\t\tnodes[i] = new Node(new Point(i / WIDTH_TILES * SIZE_TILES, i % HEIGHT_TILES * SIZE_TILES), new ImageIcon(\"empty.png\").getImage(), false, \"empty\");// sets empty tile\r\n\t}", "private BasicNetwork generateBrain(int numTags, int numShelfs) {\n\tSOMPattern pattern = new SOMPattern();\n\tpattern.setInputNeurons(numTags);\n\tpattern.setOutputNeurons(numShelfs);\n\n\treturn pattern.generate();\n }", "private Grid makeGrid()\n\t{\n\t\tGrid grid = Grid.grid().\n\t\t\t\tBus(\"1\").\n\t\t\t\tSlackSource(\"Slack\", BASE_VOLTAGE, 0, 0, 0).\n\t\t\t\tLine(\"1-2\", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).\n\t\t\t\t\tBus(\"2\").\n\t\t\t\t\t\tControllableDemand(\"S\").\n\t\t\t\t\t\tLine(\"2-3\", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).\n\t\t\t\t\t\t\tBus(\"3\").\n\t\t\t\t\t\t\t\tLoad(\"L\").\n\t\t\t\t\t\t\tterminate().\n\t\t\t\t\t\tterminate().\n\t\t\t\t\t\tLine(\"2-4\", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).\n\t\t\t\t\t\tBus(\"4\").\n\t\t\t\t\t\t\tDistributedSource(\"DG\").\n\t\t\t\t\t\tterminate().\n\t\t\t\t\tterminate().\n\t\t\t\t\tterminate().\n\t\t\t\tterminate().\n\t\t\tterminate().\n\t\tgrid();\n\t\t\n\t\t// x_0:\n\t\tLoad load = grid.getLoad(\"L\");\n\t\tControllableDemand storage = grid.getControllableDemand(\"S\");\n\t\tDistributedSource dg = grid.getDistributedSource(\"DG\");\n\t\tsetupUnits(load, storage, dg);\n\t\t\n\t\treturn grid;\n\t}", "private void fillGridForPreLayout(RecyclerView.Recycler recycler, RecyclerView.State state) {\r\n while ( fakeSpanBottomMin <= bottomBorder\r\n && mCurrentPosition >=0 && mCurrentPosition < state.getItemCount()) {\r\n layoutChunk(recycler, state, true, true);\r\n }\r\n }", "private void paintGrid() {\n\n g2d.setColor(_BOARDCOLOR); //Set the color to specific color of the board.\n\n for(int i = 0; i < grids.size(); i++) { //Iterating the 16 grids while drawing each on JComponent.\n\n g2d.draw(grids.get(i));\n }\n }", "public void createInhabitants(int nb) {\n\t\tSystem.out.println(\"Creating \" + nb + \" inhabitants\");\n\t\tfor(int i=0; i < nb; i++) {\n\t\t\tthis.inhabitants.add(new Inhabitant(\"inhabitant-\"+i, this));\n\t\t}\n\t}", "public static void makeGlider() {\n\t\tfor (int i = 0; i < Width; i++) {\n\t\t\tfor (int j = 0; j < Height; j++) {\n\t\t\t\tgrid[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\tgrid[15][10] = 1;\n\t\tgrid[16][10] = 1;\n\t\tgrid[17][10] = 1;\n\t\tgrid[17][9] = 1;\n\t\tgrid[16][8] = 1;\n\t}", "public Percolation(int n) {\n if (n <= 0) {\n throw new IllegalArgumentException(\"Percolation grid size : \" + n + \" is <= 0\");\n }\n\n size = n;\n gridNumber = size * size;\n gridGraphVirtualTopBottom = new WeightedQuickUnionUF(gridNumber + 2); // 0 to gridNumber+1\n gridGraphVirtualTop = new WeightedQuickUnionUF(gridNumber + 1); // 0 to gridNumber \n virtualTopGridIndex = gridNumber;\n virtualBottomGridIndex = gridNumber + 1;\n gridState = new boolean[size][size];\n }", "private void initializeGrid()\n {\n \t\n // initialize grid as a 2D ARRAY OF THE APPROPRIATE DIMENSIONS\n \tgrid = new int [NUM_ROWS][NUM_COLS];\n\n\n //INITIALIZE ALL ELEMENTS OF grid TO THE VALUE EMPTY\n \tfor(int row = 0; row < NUM_ROWS; row++){\n \t\tfor(int col = 0; col < NUM_COLS; col++){\n \t\t\tgrid[row][col] = EMPTY;\n \t\t}\n \t}\n }", "public void createNodesOfPixels() {\n makeGrayscale();\n WritableImage pixelPop = copyImage(holderImg);\n PixelReader pr = pixelPop.getPixelReader();\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n Color color = pr.getColor(j, i);\n if (color.equals(Color.WHITE)) {\n pathNodes[(i * w) + j] = new GraphNodeAL(i);\n }\n }\n }\n\n for (int i = 0; i < pathNodes.length; i++) {\n if (pathNodes[i] != null) {\n if ((i - w) >= 0 && pathNodes[i - w] != null) { // pixel above\n pathNodes[i].connectToNodeDirected(pathNodes[i - w], 1);\n }\n if ((i + w) < pathNodes.length && pathNodes[i + w] != null) { // pixel below\n pathNodes[i].connectToNodeDirected(pathNodes[i + w], 1);\n }\n if ((i - 1) >= 0 && pathNodes[i - 1] != null && ((i - 1) % w) != 0) { // pixel left\n pathNodes[i].connectToNodeDirected(pathNodes[i - 1], 1);\n }\n if ((i + 1) < pathNodes.length && pathNodes[i + 1] != null && ((i + 1) % w) != 0) { // pixel right\n pathNodes[i].connectToNodeDirected(pathNodes[i + 1], 1);\n }\n }\n }\n }", "public Board(int[][] b) {\n neighbors = new LinkedList<>();\n tiles = b;\n n = b.length;\n goal = new int[n][n];\n\n int counter = 1;\n for(int x = 0; x < n; x++){\n for(int y = 0; y < n; y++){\n goal[x][y] = counter;\n counter++;\n }\n }\n goal[n-1][n-1] = 0;\n }", "private void createLayers(boolean bl, int[] arrn) {\n ILayer[] arriLayer = this.mLayers;\n if (bl) {\n for (int i = -1 + this.mLayerCount; i >= 0; --i) {\n arriLayer[i] = new FixedCapacityLayer(arrn[i]);\n }\n return;\n }\n for (int i = -1 + this.mLayerCount; i >= 0; --i) {\n arriLayer[i] = new DynamicCapacityLayer(arrn[i]);\n }\n }", "public void arrangeBoard(){\n for(int i=0;i<6;i++){\n for(int j=0;j<6;j++){\n if(i==2 && j==0){ //set the target ship.\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.gridwidth = 2;\n targetShip = new JLabel();\n targetShip.setIcon(new ImageIcon(\"design\\\\ships\\\\targetShip.png\"));\n mainPanel.add(targetShip,gbc);\n }\n else if(i==2 && j==1){\n continue;\n }\n else{ //put free spaces in the other places.\n gbc.gridx = j;\n gbc.gridy = i;\n gbc.gridwidth = 1;\n gbc.gridheight = 1;\n freeSpaceButton freeSpace = new freeSpaceButton(new Point(j,i));\n mainPanel.add(freeSpace,gbc);\n }\n }\n }\n }", "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 }", "private void createGrid() {\n String imageButtonID;\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n imageButtonID = \"painterImageButton_\" + i + j;\n\n //This step allows easy assignment of each imageButton with a nested loop\n int resID = this.getResources().getIdentifier(imageButtonID, \"id\", this.getPackageName());\n grid[i][j] = findViewById(resID);\n grid[i][j].setOnClickListener(this); //Response to each button click\n\n //Generate a random number to decide whether to put white or black here\n double x = Math.random() * 2;\n if (x < 1) {\n grid[i][j].setImageResource(R.drawable.black_circle);\n grid[i][j].setContentDescription(getString(R.string.alien_painter_black));\n } else if (x < 2) {\n grid[i][j].setImageResource(R.drawable.white_circle);\n grid[i][j].setContentDescription(getString(R.string.alien_painter_white));\n }\n\n }\n }\n\n //Make sure the grid isn't entirely black at the beginning\n grid[1][1].setImageResource(R.drawable.white_circle);\n grid[1][1].setContentDescription(\"white\");\n }", "public Layer() {\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tfor (int j = 0; j < 16; j++) {\n\t\t\t\tgrid[i][j] = false;\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tvoid createNeighbourhood() {\n\t\t\n\t}", "public void showGrid() {\n for (int i = minRow; i <= maxRow; i++) {\n for (int j = minCol; j <= maxCol; j++) {\n clientOutputStream.print(grid[i][j] + \" \");\n }\n clientOutputStream.println();\n }\n clientOutputStream.println();\n clientOutputStream.flush();\n }", "@Override\r\n\tprotected void generateAreas() {\n\t\tPerlinNoise noise = new PerlinNoise(new Random().nextInt(), xmasTemplate.getScale(), xmasTemplate.getOctaves(), xmasTemplate.getPersistence());\r\n\t\tfor (int y = 0; y < getHeight(); y ++) {\r\n\t\t\tfor (int x = 0; x < getWidth(); x ++) {\r\n\t\t\t\tif (getValue(x, y) != BASE) {\r\n\t\t\t\t\tif (noise.perlinNoise(x, y) > xmasTemplate.getThreshold()) {\r\n\t\t\t\t\t\tsetValue(x, y, WALL);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tsetValue(x, y, FLOOR);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Fill east, west and south\r\n\t\tfor (int x = 0; x < getWidth(); x ++) {\r\n\t\t\tdrawArea(x, 0, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL);\r\n\t\t}\r\n\t\tfor (int y = 0; y < getHeight(); y ++) {\r\n\t\t\tdrawArea(0, y, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL);\r\n\t\t\tdrawArea(getWidth() - 1, y, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL);\r\n\t\t}\r\n\r\n\t\t// Draw random blotch lines between each base first\r\n\t\tArrayList<Point> basesCopy = new ArrayList<Point>(getBases());\r\n\t\tfor (int i = 0; i < basesCopy.size(); i ++) {\r\n\t\t\tPoint p1 = basesCopy.get(i);\r\n\t\t\tint j = Util.random(0, basesCopy.size() - 1);\r\n\t\t\tPoint p2 = basesCopy.get(j);\r\n\t\t\tbasesCopy.set(i, p2);\r\n\t\t\tbasesCopy.set(j, p1);\r\n\t\t}\r\n\r\n\t\tPoint s = basesCopy.get(0), t;\r\n\t\tdrawArea(s.getX(), s.getY(), (xmasTemplate.getMinMainTunnelWidth() + xmasTemplate.getMaxMainTunnelWidth()) / 2.0f, FLOOR);\r\n\t\tfor (int i = 0; i < basesCopy.size() - 1; i ++) {\r\n\t\t\ts = basesCopy.get(i);\r\n\t\t\tt = basesCopy.get(i + 1);\r\n\t\t\tdrawLine(s.getX(), s.getY(), t.getX(), t.getY(), xmasTemplate.getMinMainTunnelWidth(), xmasTemplate.getMaxMainTunnelWidth(), FLOOR);\r\n\t\t}\r\n\r\n\t}", "protected void computeGridParameters() {\n float padding = 0.02f * overlay.getScalingValue();\n boolean flipX = x2 < x1;\n float xx1 = flipX ? (x1 + padding) : (x1 - padding);\n float xx2 = flipX ? (x2 - padding) : (x2 + padding);\n boolean flipY = y2 < y1;\n float yy1 = flipY ? (y1 + padding) : (y1 - padding);\n float yy2 = flipY ? (y2 - padding) : (y2 + padding);\n \n xGrid1 = xx1; yGrid1 = yy1;\n xGrid2 = xx2; yGrid2 = yy1;\n xGrid3 = xx1; yGrid3 = yy2;\n xGrid4 = xx2; yGrid4 = yy2;\n horizGridCount = 3; vertGridCount = 3;\n }", "public Percolation(int n) {\n if (n < 1) {\n throw new IllegalArgumentException();\n }\n\n gridDimension = n;\n\n unionFind = new WeightedQuickUnionUF(gridDimension * gridDimension + 2);\n fullSites = new WeightedQuickUnionUF(gridDimension * gridDimension + 1);\n\n bottomRoot = gridDimension * gridDimension + 1;\n topRoot = gridDimension * gridDimension;\n\n\n sites = new boolean[gridDimension][gridDimension];\n\n }", "public void displayGrid(){\n \tint max = currentOcean.getMaxGrid(); // modified by Ludo\n \tint line = max*2 +1; \t\t\t\t// modified by Ludo\n \tfor(int i=0; i<max+1;i++){\t\t\t// modified by Ludo\n \t int lineStart = 0 + line*i;\t\t// modified by Ludo\n \t int lineEnd = line + line*i;\t\t// modified by Ludo\n \t System.out.println(currentOcean.toString().substring(lineStart, lineEnd)); // modified by Ludo\n }\n }", "public void createGrid(int rows, int columns){\n\t\ttheGrid = new boolean[rows][columns];\n\t\tthis.rows = rows;\n\t\tthis.columns = columns;\n\t\tclearGrid();\n\t}", "private static GridSearch9734Mod initializeGridSearch() {\r\n\t\tGridSearch9734Mod grid = new GridSearch9734Mod();\r\n\t\t// the metric to optimize\r\n\t\tgrid.setEvaluation(\r\n\t\t\t\tnew SelectedTag(GridSearch9734Mod.EVALUATION_WAUC, GridSearch9734Mod.TAGS_EVALUATION));\r\n\t\tgrid.setGridIsExtendable(false);\r\n\t\tgrid.setNumExecutionSlots(2);\r\n\t\tgrid.setSampleSizePercent(100);\r\n\t\tgrid.setInitialNumFolds(2);\r\n\t\tgrid.setStopAfterFirstGrid(true);\r\n\t\tgrid.setTraversal(\r\n\t\t\t\tnew SelectedTag(GridSearch9734Mod.TRAVERSAL_BY_ROW, GridSearch9734Mod.TAGS_TRAVERSAL));\r\n\t\tgrid.setDebug(false);\r\n\t\treturn grid;\r\n\t}", "public BubbleGrid(int[][] grid) {\n this.grid = grid;\n }" ]
[ "0.67820454", "0.63881916", "0.61907583", "0.59362376", "0.58761793", "0.5866729", "0.5835914", "0.5788106", "0.5721525", "0.57022464", "0.5698478", "0.5675769", "0.5646004", "0.56400853", "0.563392", "0.5616473", "0.5604368", "0.5604338", "0.55704737", "0.5545025", "0.55352646", "0.5514394", "0.5512426", "0.55034673", "0.5501021", "0.5493175", "0.5492776", "0.54806274", "0.5475687", "0.5471603", "0.5469192", "0.5465454", "0.54539967", "0.54390115", "0.54365665", "0.5429242", "0.54193145", "0.54129183", "0.5410342", "0.5400681", "0.53867096", "0.5382446", "0.5373037", "0.53710645", "0.53636444", "0.53532344", "0.5334269", "0.5333847", "0.5326795", "0.5326766", "0.53237516", "0.531604", "0.53120553", "0.53109646", "0.5302467", "0.53014135", "0.5295109", "0.5292229", "0.52782905", "0.5270885", "0.52662766", "0.52566946", "0.52558255", "0.52502376", "0.5249358", "0.5243266", "0.52347827", "0.5230991", "0.52211004", "0.52190113", "0.52181685", "0.5215204", "0.52104044", "0.5204241", "0.5204041", "0.51981306", "0.5190821", "0.5189002", "0.51823145", "0.51769435", "0.51762027", "0.5174599", "0.516524", "0.5161388", "0.5159197", "0.5152559", "0.515217", "0.51516", "0.5151558", "0.5150168", "0.5147611", "0.5145708", "0.5143948", "0.51347196", "0.5134651", "0.513435", "0.5125214", "0.51176673", "0.51171166", "0.51155144", "0.5115323" ]
0.0
-1
convert the row and col to index
private int rowColToIndex(int row, int col) { row = row - 1; col = col - 1; int index = row * side + col; if (index >= side*side || index < 0 || row < 0 || row >= side || col < 0 || col >= side) throw new IndexOutOfBoundsException(); return index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int site2index(int row, int col) {\n validate(row, col);\n return (row - 1) * this.n + col;\n }", "private int getIndex(int row, int column) {\n \n int pos;\n \n pos = (row*getVariables().size()*4)+(column*4);\n return pos;\n}", "private int ufindex(int row, int col) {\n return grid.length * (row - 1) + col - 1;\n }", "private int getIndex(int row, int col) {\n return (row - 1) * getSize() + col;\n }", "private int convertRowColToIndex(int row, int col) {\n return (row - 1) * this.size + (col - 1);\n }", "private int convertMatrixToVectorIndex(int row, int col){\n return ((row)*this.col)+col;\n }", "public int getCellIndex(int column, int row) {\n\t\treturn ((row - 1) * width) + (column - 1);\n\t}", "public int getIndex( int row, int col ) {\n return row*mat.getNumCols() + col;\n }", "private int getIndex(int row,int column,int maxColumn)\n {\n \tint rownumber = row*maxColumn+column;\n \treturn rownumber;\n }", "public abstract int convertRowIndexToView(int index);", "int getColumnIndex();", "int getColumnIndex();", "int getColumnIndex();", "private int[] indexsAround(int row, int col) {\n int[][] directions = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};\n int [] aroundIndexs = {};\n for (int[] dir : directions) {\n try {\n int index = rowColToIndex(row+dir[0], col+dir[1]);\n aroundIndexs = appendArray(aroundIndexs, index);\n }\n catch (IndexOutOfBoundsException e) {\n continue;\n }\n }\n\n return aroundIndexs;\n }", "public static int calcIndex(final int row, final int column) {\n if (row == column) {\n System.out.println(\"row and j must not be the same!\");\n return -1;\n }\n\n int smaller = row;\n int bigger = column;\n\n if (row < column) {\n smaller = column;\n bigger = row;\n }\n\n return (smaller * (smaller - 1)) / 2 + bigger;\n }", "int getRowIndex();", "private int getElement(int row, int col) {\n if (!this.isValid(row, col))\n throw new IndexOutOfBoundsException(\"row or col is out of side length!\");\n\n // in our system, index is calculated from 0 but row and col is calculated from 1\n return this.side * (row - 1) + col - 1;\n }", "private int getColPixelCoords(int col, int row) {\r\n\t\t\tint pixelCol;\r\n\t\t\t//If it's an odd numbered row it needs to be shifted along\r\n\t\t\tif (row % 2 == 0) {\r\n\t\t\t\tpixelCol = (col * HEX_WIDTH);// - hexWidth / 2;\r\n\t\t\t} else {\r\n\t\t\t\tpixelCol = ((col * HEX_WIDTH) - HEX_WIDTH / 2) + HEX_WIDTH;\r\n\t\t\t}\r\n\t\t\treturn pixelCol;\r\n\t\t}", "private int getIdx(MouseEvent e) {\n Point p = e.getPoint();\n p.translate(-BORDER_SIZE, -BORDER_SIZE);\n int x = p.x / CELL_SIZE;\n int y = p.y / CELL_SIZE;\n if (0 <= x && x < GUI.SIZE[1] && 0 <= y && y < GUI.SIZE[1]) {\n return GUI.SIZE[1] * x + y;\n } else {\n return -1;\n }\n }", "private int transformInput(int row, int col){\n\t\tif( row <= 0 || row > n\n\t\t\t\t|| col <=0 || col > n){\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\t\n\t\treturn (row-1)*n + col;\n\t}", "protected int index(int slice, int row, int column) {\n\treturn _sliceOffset(_sliceRank(slice)) + _rowOffset(_rowRank(row)) + _columnOffset(_columnRank(column));\n}", "public int[] getRowAndCol() {\n return new int[]{myRow, myCol};\n }", "int index(){\n\n\t\t\n\t\tif (cursor == null) \n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn index;\n\t}", "private int getIndex(int u) {\n int ind = -1;\n for (int i = 0; i < getGraphRep().size(); i++) {\n ArrayList subList = getGraphRep().get(i);\n String temp = (String) subList.get(0);\n int vert = Integer.parseInt(temp);\n if (vert == u) {\n ind = i;\n }\n }\n return ind;\n }", "private static int convertMatrixToVectorIndex(int row, int col, int maxcol){\n return ((row)*maxcol)+col;\n }", "private int calculateNewIndex(float x, float y) {\n final float cellWidth = mGrid.getWidth() / mGrid.getColumnCount();\n final int column = (int)(x / cellWidth);\n\n // calculate which row to move to\n final float cellHeight = mGrid.getHeight() / mGrid.getRowCount();\n final int row = (int)Math.floor(y / cellHeight);\n\n // the items in the GridLayout is organized as a wrapping list\n // and not as an actual grid, so this is how to get the new index\n int index = row * mGrid.getColumnCount() + column;\n if (index >= mGrid.getChildCount()) {\n index = mGrid.getChildCount() - 1;\n }\n\n return index;\n }", "private int getPosition(int row, int col) {\n\t\treturn (side * (row - 1)) + (col - 1);\n\t}", "public abstract int convertRowIndexToModel(int index);", "int getRow();", "public int[] getNeighborColIndex() {\n if (myRow % 2 == 0) {\n return neighborEvenColIndex;\n } else {\n return neighborOddColIndex;\n }\n }", "Coordinates getCoordinates(int rowIndex);", "protected int obtenerIndice(int fil, int col) {\n\t\tint indiceVector;\n\t\tif (fil > col) {\n\t\t\tint auxiliar = col;\n\t\t\tcol = fil;\n\t\t\tfil = auxiliar;\n\t\t}\n\t\tindiceVector = fil * gradoMat + col - (fil * fil + 3 * fil + 2) / 2;\n\t\tif(fil == col) {\n\t\t\tindiceVector = 0;\n\t\t}\n\t\treturn indiceVector; \n\t}", "int atRow();", "private int calculateNewIndex(float x, float y) {\n final float cellWidth = homeViewForAdapter.getWidth() / homeViewForAdapter.getColumnCount();\n final int column = (int) (x / cellWidth);\n\n // calculate which row to move to\n final float cellHeight = homeViewForAdapter.getHeight() / homeViewForAdapter.getRowCount();\n final int row = (int) Math.floor(y / cellHeight);\n\n // the items in the GridLayout is organized as a wrapping list\n // and not as an actual grid, so this is how to get the new index\n int index = row * homeViewForAdapter.getColumnCount() + column;\n if (index >= homeViewForAdapter.getChildCount()) {\n index = homeViewForAdapter.getChildCount() - 1;\n }\n\n return index;\n }", "public int getExperimentColorIndex(int row);", "RowCoordinates getRowCoordinates();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "private int xyToOneD(int row, int col) {\n return ((row - 1) * grid.length) + (col - 1);\n }", "public int getIndex();", "public int getIndex();", "public int getIndex();", "private int getNIdx() {\n return this.colStartOffset + 7;\n }", "public int getX() {\r\n return ix % numCols;\r\n }", "private void calculateIndex() {\n for(int i=0; i<matrix.length; i++) {\n for(int j=0; j<matrix.length; j++) {\n if(matrix[i][j] == 0) {\n index = (i*matrix.length)+(j+1);\n return;\n }\n }\n }\n }", "int getCol();", "private int matrixRowToGridCol(int i) \n {\n return (i % dimSquared) / gDim + 1;\n }", "int getNumber (int col, int row) {\n\t\treturn boardArray[col][row];\n\t}", "public int getRow(){ return (Integer)args[0]; }", "public int getRowIndex(Feature f){\n return fc.indexOf(f);\n }", "private int xyTo1D(int row, int col)\n {\n validate(row, col);\n return (row-1) * gridSize + col-1;\n }", "public void setIndexFromMouse(double ex, double ey) {\n double y = 0;\n int rowcount =0;\n for(TextLayoutModel.LayoutLine line : _layout_model.lines()) {\n if(ey >= y && ey < y + line.getHeight()) {\n row = rowcount;\n break;\n }\n y+= line.getHeight();\n rowcount++;\n }\n\n TextLayoutModel.LayoutLine line = _layout_model.line(row);\n if(ex < 0) {\n col = 0;\n } else if(ex > line.getWidth()) {\n col = line.letterCount();\n } else {\n //now calc the column\n String text = line.getString();\n// u.p(\"text = \" + text);\n double lastX = 0;\n for(int i=0; i<text.length(); i++) {\n double x = getFont().calculateWidth(text.substring(0,i));\n double w = (x-lastX)/2;\n// u.p(\"i = \" + i + \" x = \" + x + \" w = \" + w);\n if(ex >= x-w && ex < x+w) {\n// u.p(\"found at \" + i);\n col = i;\n }\n if(i==1 && ex < w) {\n col = 0;\n }\n lastX = x;\n }\n }\n// u.p(\"pos = \" + col+\",\"+row);\n\n index = rowColToIndex(row,col);\n }", "public int x (int index) { return coords[index][0]; }", "@Override\r\n public String toString() { return \"{\" + rowIndex + \", \" + colIndex + '}'; }", "private int getRowPixelCoords(int row) {\r\n\t\treturn row * (HEX_HEIGHT - HEX_ANGLE_HEIGHT);\r\n\t}", "public int getColumn(){ return (Integer)args[1]; }", "@Override\n public int hashCode() {\n\treturn (rowIndex * 10) + colIndex; \n }", "public int[] getCellPosition(int i, int j)\n {\n int[] position = {firstCellPosition[0]+i*cellSize,firstCellPosition[1]+j*cellSize};\n return position;\n }", "int getRowIndex(int n) {\r\n return command_parameters.intAt(n);\r\n }", "public int row();", "public static int index(int row, int column) {\n\t\t// Looking across the top row, we can see the difference between the\n\t\t// values looks like 2, then 3, then 4, etc.\n\t\t// Likewise in each other row or column. That indicates clearly we are\n\t\t// dealing with quadratics in the input value.\n\n\t\t// If we assume a form\n\t\t// a * row ^ 2 + b * row + c * column ^ 2 + d * column + e * row *\n\t\t// column + f = index\n\t\t// and stick in the datapoints\n\n\t\t// (row, column, index)\n\t\t// (1, 1, 1)\n\t\t// (2, 1, 2)\n\t\t// (1, 2, 3)\n\t\t// (3, 1, 4)\n\t\t// (2, 2, 5)\n\t\t// (1, 3, 6)\n\n\t\t// we get the system of linear equations\n\n\t\t// a + b + c + d + e + f = 1\n\t\t// 2a + b + c + d + 2e + f = 2\n\t\t// a + b + 2c + d + 2e + f = 3\n\t\t// 9a + 3b + c + d + 3e + f = 4\n\t\t// 4a + 2b + 4c + 2d + 4e + f = 5\n\t\t// a + b + 9c + 3c + 3e + f = 6\n\n\t\t// We can define this as a matrix, and then take its reduced row echelon\n\t\t// form (using Wolfram Alpha) to find\n\n\t\t// a = 1/2\n\t\t// b = -3/2\n\t\t// c = 1/2\n\t\t// d = -1/2\n\t\t// e = 1\n\t\t// f = 1\n\n\t\t// We return that here (making sure to save our integer division until\n\t\t// the end).\n\t\treturn (row * row - 3 * row + column * column - column + 2 * row * column + 2) / 2;\n\t}", "Expression getIndexExpr();", "int toIndex(int x, int y);", "public int getProbeColorIndex(int row);", "public int toLinearIndex(int nQueens) {\n return row * nQueens + column;\n }", "private int matrixRowToGridVal(int i) \n {\n return i % gDim + 1;\n }", "public abstract int getIndex();", "public int[] getRowColumnIndex(Point point) {\n\t\tTable table = tableViewer.getTable();\n\t\tViewerCell cell = tableViewer.getCell(point);\n\t\tif(cell == null)\n\t\t\treturn null;\n\t\tint col = cell.getColumnIndex();\n//\t\tint row = table.indexOf((TableItem) cell.getItem());\n//\t\treturn new int[]{row, col};\n\t\tint row = -1;\n\t\t// get row index\n\t\tRectangle clientArea = table.getClientArea();\n\n\t\tint index = table.getTopIndex();\n\t\twhile (index < table.getItemCount()) {\n\t\t\tboolean visible = false;\n\t\t\tTableItem item = table.getItem(index);\n\t\t\tRectangle rect = item.getBounds(col);\n\t\t\tif (rect.contains(point)) {\n\t\t\t\trow = index;\n\t\t\t\treturn new int[] { row, col };\n\t\t\t}\n\t\t\tif (!visible && rect.intersects(clientArea)) {\n\t\t\t\tvisible = true;\n\t\t\t}\n\n\t\t\tif (!visible)\n\t\t\t\treturn new int[] { row, col };\n\t\t\tindex++;\n\t\t}\n\t\treturn new int[] { row, col };\n\t}", "public int get_cell(int row,int col)\n{\n\treturn cell[row][col] ;\t\n}", "int index();", "public int nodeToPixelIndex(Node node) {\n Point p = nodeToPixelPoint(node);\n return ((p.y * WIDTH) + p.x);\n }", "public int getValue(int row, int column);", "public static int getIndex(int i,int j){\r\n\t\t return i+(Variables.N+2)*j;\r\n\t }", "public int getShipIndex(Point point) {\n\t\tPoint tempPoint;\n\t\tif (startPos.x == endPos.x) {\n\t\t\t// must be horizontal\n\t\t\tfor (int i = startPos.y , j = 0; i <= endPos.y ; i++, j++) {\n\t\t\t\ttempPoint = new Point(startPos.x, i);\n\t\t\t\tif (tempPoint.equals(point))\n\t\t\t\t\treturn j;\n\t\t\t}\n\t\t}\n\t\telse if (startPos.y == endPos.y) {\n\t\t\t// must be vertical\n\t\t\tfor (int i = startPos.x, j = 0; i <= endPos.x ; i++, j++) {\n\t\t\t\ttempPoint = new Point(i , startPos.y);\n\t\t\t\tif (tempPoint.equals(point))\n\t\t\t\t\treturn j;\n\t\t\t}\n\t\t}\n\t\telse { // must be diagonal \n\t\t\tfor (int i = startPos.x, j = startPos.y , z = 0; i <= endPos.x ; i++, j++, z++) {\n\t\t\t\ttempPoint = new Point(i , j);\n\t\t\t\tif (tempPoint.equals(point))\n\t\t\t\t\treturn z;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t}", "public int getArrayIndex(){\n return squareIndex * 9 + position;\n }", "private int coordinateConvertFrom(int i, int j) {\n return size * (i - 1) + j;\n }", "public int getRowIndex(T obj) {\r\n\t\tlogger.trace(\"Enter getRowIndex\");\r\n\t\tlogger.trace(\"Exit getRowIndex\");\r\n\t\treturn data.indexOf(obj);\r\n\t}", "public int getRowIndex(int listIndex)\n {\n int row = getRow(listIndex); //Determines which row wall is in.\n return listIndex-(row*21); //Uses the walls row to calculate the walls index in that row. \n }", "public int getIndex(int position);", "public int[] convertRowcolsToPixels(int row, int col) {\n\t\tint[] px_position = new int[2];\n\t\tpx_position[0] = col * config.getLevelBoxSize();\n\t\tpx_position[1] = row * config.getLevelBoxSize();\n\t\treturn px_position;\n\t}", "public int getRowIndex(Comparable key) { return this.underlying.getRowIndex(key); }", "int atColumn();", "public int index();", "private int getCol(int index) {\n return index & (chunkSize - 1);\n }", "public abstract long getIndex();", "private int getRow() {\n return binaryPartition(row);\n }", "int getColumnIndex (String columnName);", "public int getState(int row, int col) throws ArrayIndexOutOfBoundsException {\r\n return board[row][col];\r\n }", "@Override\n public int getCounterAt(final int col, final int row)\n throws IllegalColumnException, IllegalRowException {\n //handle exceptions\n if (col < 0 || col >= NUM_COLS) {\n throw new IllegalColumnException(col);\n }\n if (row < 0 || row >= NUM_ROWS) {\n throw new IllegalRowException(row);\n }\n //return the counter at the current index\n return board[row][col];\n }" ]
[ "0.7305625", "0.72541916", "0.7210941", "0.7206359", "0.71438026", "0.706166", "0.68981016", "0.6856349", "0.6764539", "0.66929877", "0.66452676", "0.66452676", "0.66452676", "0.6518778", "0.6517097", "0.64823675", "0.6410292", "0.64002293", "0.63899606", "0.6377876", "0.63633704", "0.63457865", "0.6322493", "0.6289024", "0.62259746", "0.6214075", "0.62077564", "0.6207051", "0.62063974", "0.6205448", "0.6205269", "0.61992323", "0.61986995", "0.61847967", "0.61833537", "0.6181238", "0.6145526", "0.6145526", "0.6145526", "0.6145526", "0.6145526", "0.6145526", "0.6145526", "0.6145526", "0.6145526", "0.6145526", "0.6145526", "0.6145526", "0.6145526", "0.6140023", "0.6134218", "0.6134218", "0.6134218", "0.6084217", "0.60810345", "0.60734355", "0.60710007", "0.60462236", "0.6034946", "0.6034395", "0.6030027", "0.60296303", "0.60161877", "0.6002836", "0.5995552", "0.59902835", "0.59709316", "0.5961309", "0.5947859", "0.59224886", "0.59218794", "0.59211344", "0.5903079", "0.59023905", "0.5901947", "0.59002995", "0.5885901", "0.58813334", "0.58810055", "0.58805525", "0.58798504", "0.5872992", "0.58699805", "0.5865304", "0.5859848", "0.58558", "0.5844643", "0.5836006", "0.582763", "0.58266366", "0.58233005", "0.58166564", "0.58020383", "0.5783501", "0.577621", "0.57708985", "0.5768078", "0.5762393", "0.5748173", "0.57456136" ]
0.71778315
4
add element to array
private int[] appendArray(int[] array, int x) { int[] result = new int[array.length + 1]; for (int i = 0; i < array.length; i++) result[i] = array[i]; result[result.length - 1] = x; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SignatureDTO[] add(SignatureDTO[] array, SignatureDTO element) {\n Class type = (array != null ? array.getClass() : (element != null ? element.getClass() : SignatureDTO.class));\n SignatureDTO[] newArray = (SignatureDTO[]) copyArrayGrow1(array, type);\n newArray[newArray.length - 1] = element;\n return newArray;\n }", "@Override\n public void add(T t) {\n checkIfArrayFull();\n\n arrayList[elementsInArray] = t;\n elementsInArray++;\n }", "public synchronized void add(E value) {\n this.array.add(value);\n }", "@Override\n public void add(int index, T element) {\n Object[] newArray = new Object[size + 1];\n for (int i = 0; i < index; i++) {\n newArray[i] = data[i];\n }\n newArray[index] = element;\n for (int i = index + 1; i < newArray.length; i++) {\n newArray[i] = data[i - 1];\n }\n data = newArray;\n size++;\n }", "void add(byte[] element);", "public void push(T element){\n\t\tarray[noOfElements] = element;\n\t\tnoOfElements ++;\t\t\n\t}", "public void add( Object value )\n\t{\n\t\tint n = size();\n\t\tif (addIndex >= n)\n\t\t{\n\t\t\tif (n == 0)\n\t\t\t\tn = 8;\n\t\t\telse\n\t\t\t\tn *= 2;\n\t\t\tObject narray = Array.newInstance( array.getClass().getComponentType(), n );\n\t\t\tSystem.arraycopy( array, 0, narray, 0, addIndex );\n\t\t\tarray = narray;\n\t\t}\n\t\tArray.set( array, addIndex++, value );\n\t}", "public static int[] addElement(int[] a, int e) {\n\t a = Arrays.copyOf(a, a.length + 1);\n\t a[a.length - 1] = e;\n\t return a;\n\t}", "public void add(T element){\r\n if (element == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n \r\n // If array is full, double the size\r\n if (size == elements.length) {\r\n resize(elements.length * 2);\r\n }\r\n \r\n elements[size] = element;\r\n size++;\r\n }", "@Override\n public boolean add(T object) {\n T[] newArray;\n if (array[array.length - 1] != null) {\n newArray = (T[]) new Object[array.length * 2];\n } else {\n newArray = (T[]) new Object[array.length];\n }\n for (int i = 0; i < array.length; i++) {\n newArray[i] = array[i];\n }\n newArray[size] = object;\n this.size++;\n this.array = newArray;\n return true;\n }", "public void add(E element){\n if(size==capacity){\n capacity *=2;\n E[] array2 = (E[]) new Object[capacity];\n if (size >= 0) System.arraycopy(array, 0, array2, 0, size);\n array2[size]=element;\n array=array2;\n }else{\n array[size]=element;\n }\n size++;\n }", "private void addNumberToArrayByIndex(Number[] array, Number number, int index) {\n if (index >= array.length) {\n array = arrayExtension(array);\n }\n array[index] = number;\n }", "@Override\n public boolean add(int index, T object) {\n T[] newArray;\n if (array[array.length - 1] != null) {\n newArray = (T[]) new Object[array.length * 2];\n } else {\n newArray = (T[]) new Object[array.length];\n }\n for (int i = 0; i < index; i++) {\n newArray[i] = array[i];\n\n }\n newArray[index] = object;\n for (int i = index + 1; i < array.length; i++) {\n newArray[i] = array[i - 1];\n }\n this.size++;\n this.array = newArray;\n return true;\n }", "public void pushArrayElementAddress(Obj element) {\t\t\t\n\t\tArrayElementAddress aea = Helper.elementToArrayElementAddress.get(element);\n\t\tCode.load(aea.array);\t\t\n\t\tCode.loadConst(aea.expr.getAdr());\t\t\t\t\t\t\t\n\t}", "public boolean add( T element )\n {\n // THIS IS AN APPEND TO THE LOGICAL END OF THE ARRAY AT INDEX count\n if (size() == theArray.length) upSize(); // DOUBLES PHYSICAL CAPACITY\n theArray[ count++] = element; // ADD IS THE \"setter\"\n return true; // success. it was added\n }", "@Override\n\tpublic boolean add(Object e)\n\t{\n\t\tif (size == myArray.length)\n\t\t\tresizeUp();\n\t\tmyArray[size] = e;\n\t\tsize++;\n\t\treturn false;\n\t}", "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 }", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "public void addToArray(JsonElement element){\n values.add(element);\n }", "public void add(T element) {\n if (size + 1 >= capacity) {\n if (capacity == 0) capacity = 1;\n else capacity *= 2; // double the array size\n T[] tempArrayList = (T[]) new Object[capacity];\n for (int i = 0; i < size; i++) tempArrayList[i] = genericArrayList[i];\n genericArrayList = tempArrayList; // genericArray has extra null at the end\n }\n genericArrayList[size++] = element;\n }", "public void addAll(T[] arr);", "void add(int index, Object element);", "@Override\n public synchronized void add(E element) {\n if (this.pointer == this.capacity) {\n int newCapacity = this.capacity + (this.capacity >> 1);\n Object[] arr = Arrays.copyOf(this.container, newCapacity);\n this.capacity = newCapacity;\n this.container = arr;\n }\n this.container[this.pointer++] = element;\n }", "public void push(T val){ if(this.isUpgraded) this.linkArray.push(val); else this.nativeArray.add(val); }", "@Override\n public void add(int index, T t) {\n checkIfArrayFull();\n\n if(index >= arrayList.length) {\n System.out.println(\"The index is out of bounds for this list\");\n System.exit(-1);\n }\n\n Object ob = arrayList[index];\n arrayList[index] = t;\n\n Object ob2;\n\n /*The loop cycles through the array starting at index. ob2 is given the value of arrayList at i+1 position.\n The arrayList at i+1 position is assigned the value of ob. Then the ob variable is assigned the value of ob2. */\n for(int i = index; i < arrayList.length - 1; i++) {\n ob2 = arrayList[i+1];\n arrayList[i+1] = ob;\n ob = ob2;\n }\n\n elementsInArray++;\n }", "public void addPoint(double[] point);", "public void add(E a)\n {\n if (size == data.length) { // if the list is at capacity...\n // create a new, larger array\n E[] newData = (E[])(new Object[2*data.length]);\n \n // copy over all of the old elements\n for (int i = 0; i < size; i++)\n newData[i] = data[i];\n \n // redirect the old data reference\n data = newData;\n }\n\n // insert the new element\n data[size] = a;\n size++;\n }", "public void add(byte[] arrby) {\n ByteBuffer byteBuffer;\n ByteBuffer byteBuffer2 = byteBuffer = Blob.this.getByteBuffer();\n synchronized (byteBuffer2) {\n byteBuffer.position(Blob.this.getByteBufferPosition() + this.offset() + this.mCurrentDataSize);\n byteBuffer.put(arrby);\n this.mCurrentDataSize += arrby.length;\n return;\n }\n }", "void add(int index, T element);", "void add(int index, T element);", "void append(E[] elements);", "public void arrayadd(char x){\n\t\tint i=loc%(patm);\n\t\tpatarray[i]=x;\n\t}", "public void add(E element) {\n\t\tif (element == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\n\t\tif (size < elements.length) {\n\t\t\telements[size] = element;\n\t\t\tsize++;\n\t\t} else {\n\t\t\t// grow array\n\t\t\tint currentSize = elements.length;\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tE[] temp = (E[]) new Object[currentSize * 2];\n\t\t\tfor (int i = 0; i < size(); i++) {\n\t\t\t\ttemp[i] = elements[i];\n\t\t\t}\n\t\t\telements = temp;\n\t\t\telements[size] = element;\n\t\t\tsize++;\n\t\t}\n\n\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray_bp.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray_bp.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray_bp.add(arg0);\n\t\t\t}", "public void addElement(int element) {\n \tif(element > 0) {\n \tarray[head++] = element;\n \t}else {\n \t\tthrow new RuntimeException(\"Invalid element to add\");\n \t}\n }", "@Override\n public void add(T element) {\n add(size(), element);\n }", "@Override\n public boolean add(final T element) {\n if (this.size > this.data.length - 1) {\n this.doubleArraySizeBy(2);\n }\n\n this.data[this.size++] = element;\n return true;\n }", "public void add( Comparable newVal ) {\n \t//if _data is full, expand the array\n \tif (_size == _data.length){\n\t \texpand();\n \t}\n \t\n\tset(_lastPos + 1, newVal);\n \t//increases _lastPos and _size\n \t_lastPos++;\n \t_size++;\n }", "public void addAll(T[] arr, int from, int length);", "public abstract void add(T element, int index);", "public void insert(int newItem){\n itemArray[count] = newItem;\n count++;\n }", "@Override\n public final boolean add(final Integer element) {\n // First, check to see that the array can support another element\n ensureCapacity(size);\n // Add the element to the next available slot\n arrayList[size++] = element;\n return true;\n }", "public void add(int index, E element);", "private int[] appendToArray(int[] toBeAppendedTo, int x){\r\n int[] res = new int[toBeAppendedTo.length + 1];\r\n for(int i = 0; i < toBeAppendedTo.length; i++){\r\n res[i] = toBeAppendedTo[i];\r\n }\r\n res[toBeAppendedTo.length] = x;\r\n return res;\r\n }", "public void add(Object e)\n {\n if(numElements == maxElements)\n doubleCapacity();\n \n // Add element\n if(!contains(e))\n elements[numElements++] = e;\n }", "public boolean add(ElementType element){\n if(this.contains(element)){\n return false;\n }\n else{\n if(size==capacity){\n reallocate();\n }\n elements[size]=element;\n size++;\n }\n return true;\n }", "@Override\n public boolean add(E e) {\n notNull(e);\n if (size >= elementData.length) {\n int newCapacity = (elementData.length << 1);\n elementData = Arrays.copyOf(elementData, newCapacity);\n }\n elementData[size++] = e;\n return true;\n }", "@Override\n public void add(E value) {\n if (value == null) {\n throw new NullPointerException();\n }\n if (size == capacity) {\n resize();\n }\n array[size] = value;\n siftUp(size);\n size++;\n\n\n }", "public void add(int toBeAdded) {\n\t\tif (this.myCount==this.myValues.length){\n\t\t\tSystem.err.println(\"No more space in array\");\n\t\t\tSystem.exit(1);\n\t\t}\n \tthis.myValues[this.myCount] = toBeAdded;\n this.myCount++;\n }", "public void add(Statement element) {\n ensureSize(size + 1);\n arr[size++] = element;\n }", "public static double [][] addToArray(double [][] array, double [] element)\n\t{\n\t\tdouble [][] newarray = new double [array.length+1][array[0].length];\n\t\tfor (int i = 0;i < array.length;i++)\n\t\t{\t\n\t\t\tnewarray[i] = array[i];\n\t\t\t\n\t\t}\n\t\t\tnewarray[array.length] = element;\n\t\t\treturn newarray;\n\t\t\t\n\t}", "final void add(int elt) {\n if (contents == null)\n return;\n if (n == contents.length) {\n int[] new_contents = new int[2*n+1];\n //@ assert n < new_contents.length;\n arraycopy(contents, 0, new_contents, 0, n);\n contents = new_contents;\n }\n if (n < 0 || n >= contents.length) \n return;\n contents[n]=elt;\n n++;\n }", "public void push(Object element) {\r\n\t\tal.add(element, al.listSize);\r\n\t}", "public void add(T element) {\r\n if (element == null) {\r\n throw new IllegalArgumentException(); \r\n } \r\n if (size == elements.length) { \r\n resize(elements.length * 2); \r\n }\r\n elements[size()] = element; \r\n size++; \r\n }", "@Override\n public void push(T element){\n arrayAsList.add(element);\n stackPointer++;\n }", "@Override\n public void add(final int index, final T element) {\n this.checkIndexToAdd(index);\n\n if (this.size > this.data.length - 1) {\n this.doubleArraySizeBy(2);\n }\n\n for (int i = this.size; i > index; i--) {\n this.data[i] = this.data[i - 1];\n }\n\n this.data[index] = element;\n this.size++;\n }", "public boolean add(Object[] obj) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean add(T obj, int index) {\n\t\tif (index < 0 || index > size) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (size >= array.length)\r\n\t\t\tallocate();\r\n\t\tSystem.arraycopy(array, index, array, index + 1, size - index);\r\n\t\tarray[index] = obj;\r\n\t\tsize++;\r\n\t\treturn true;\r\n\t}", "public void add(int element);", "void append(E[] elements, int off, int len);", "@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 @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }", "public static <T> T[] append(T[] list, T element) {\n T[] ans = (T[]) java.lang.reflect.Array.newInstance(list.getClass().getComponentType(), list.length + 1);\n System.arraycopy(list, 0, ans, 0, list.length);\n ans[ans.length - 1] = element;\n return ans;\n }", "public void add(int value) {\n\t \tensureCapacity(size+ 1);\n\t \telementData[size] = value;\n\t \tsize++;\n\t }", "void setArrayElement(int index, Object value);", "void setArrayElement(int index, Object value);", "public android.renderscript.Element.Builder add(android.renderscript.Element element, java.lang.String name, int arraySize) { throw new RuntimeException(\"Stub!\"); }", "@Override\n public void add(int i, E e) throws IndexOutOfBoundsException {\n checkIndex(i, size + 1);\n if (size == data.length) // not enough capacity\n throw new IllegalStateException(\"Array is full\");\n for (int k = size - 1; k >= i; k--) // start by shifting rightmost\n data[k + 1] = data[k];\n data[i] = e; // ready to place the new element\n size++;\n }", "public void add(T element, int pos);", "public void add(int index, T value) throws IndexOutOfBoundsException {\n checkException(index);\n if (size == arr.length) {\n final int newSize = arr.length * 3 / 2 + 1;\n T[] newArr = (T[]) new Object[newSize];\n System.arraycopy(arr, 0, newArr, 0, size);\n this.arr = newArr;\n }\n System.arraycopy(arr, index, arr, index + 1, size - index);\n arr[index] = value;\n size++;\n }", "public static native void AddArray(long lpjFbxArrayVector2, Long pOther);", "public void append(Item value) {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an array.\");\n }", "public void addSNArray(StickyNote toAdd);", "public void extendArray() {\n int index = size();\n Object[] temp = new Object[index + 1];\n for (int i=0; i < index; i++) {\n temp[i] = AL[i];\n }\n AL = temp;\n }", "public void add(E element){\n\t\tArrayQueue<E> temp = new ArrayQueue<E>();\n\t\ttemp.enqueue(element);\n\t\tQ.enqueue(temp);\n\t}", "@Override\n public void addElement(T element) {\n // TODO. \n // Pseudocode: \n // Check if array is at capacity, if so expand it. \n // add element to the array\n // increment count\n // if this is not the first element, then call heapifyAdd to check if the newly added\n // element needs to be swapped up the heap\n if (count == heap.length) {\n expandCapacity();\n\n }\n heap[count] = element;\n count++;\n\n if (count > 1) {\n heapifyAdd();\n }\n\n }", "@Override\n public void add(T element) throws Exception\n {\n \n if (!(element instanceof Comparable))\n {\n throw new Exception(\"Bad things happened\");\n }\n \n Comparable comparableElement = (Comparable) element;\n \n //expand array if full\n \n if (tail == myArray.length)\n {\n expandArray();\n }\n \n //search for correct spot\n int insertPosition;\n for (insertPosition = 0; insertPosition < tail && comparableElement.compareTo(myArray[insertPosition]) > 0; insertPosition++)\n {\n //empty on purpose\n }\n \n //shift elements over\n \n for (int i = tail; i > insertPosition; i--)\n {\n myArray[i] = myArray[i - 1];\n }\n \n //place the element\n \n myArray[insertPosition] = element;\n tail++;\n }", "public void add(int num) {\n // if the array is not large enough, an array of twice\n // the capacity is created\n if (count + 1 > list.length) {\n int[] temp = new int[list.length * 2];\n for (int i = 0; i < list.length; i++) {\n temp[i] = list[i];\n }\n list = temp;\n temp = null;\n }\n \n // add the element to the array and increment the count\n list[count++] = num;\n }", "@Override\n\tpublic void add(int idx, E element) {\n\t\tif (element == null)\n\t\t\tthrow new NullPointerException();\n\t\tif (idx < 0 || idx > size())\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (element.equals(list[i]))\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t// Element is added to the end of the list\n\t\tif (idx == size)\n\t\t\tlist[idx] = element;\n\n\t\t// Element is added at the beginning or middle\n\t\telse {\n\t\t\tfor (int i = size; i > idx; i--) {\n\t\t\t\tlist[i] = list[i - 1];\n\t\t\t}\n\t\t\tlist[idx] = element;\n\t\t}\n\n\t\tsize++;\n\t\tif (size == list.length)\n\t\t\tgrowArray();\n\n\t}", "public void add(Coord obj) {\n\t\tif (index > itemcount)\n\t\t\tthrow new RuntimeException(\"Liste ist voll\");\n\t\tarray[index++] = obj;\n\t}", "public void push(Object element)\n\t{\n\t\tensureCapacity();\n\t\telements[size++] = element;\n\t}", "public void add(E element) {\n\n\t\tif (size == capacity) {\n\t\t\tgrowArray();\n\t\t}\n\n\t\tlist[size] = element;\n\t\tsize++;\n\t}", "@Override\n public boolean add(T t) {\n if (size >= 10) {\n data = new Object[(data.length * 3) / 2 + 1];\n data = Arrays.copyOfRange(data, 0, data.length);\n }\n data[size++] = t;\n return true;\n }", "public void add(T e){\n ensureCapacity(size + 1);\n data[size++] = e;\n }", "public boolean add(T value) {\n if (size == arr.length) {\n final int newSize = arr.length * 3 / 2 + 1;\n T[] newArr = (T[]) new Object[newSize];\n System.arraycopy(arr, 0, newArr, 0, arr.length);\n this.arr = newArr;\n }\n arr[size++] = value;\n return true;\n }", "public void add(final Object value) {\n\t\tif (value == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tif (this.size == this.capacity) {\n\t\t\treallocate();\n\t\t}\n\t\telements[size] = value;\n\t\tsize++;\n\t}", "public void append(T element);", "public void append(T element);", "void add(byte[] data, int offset, int length);", "@Override\n\tpublic void add(int index, Object e) throws IndexOutOfBoundsException\n\t{\n\t\t//just to check if the index is valid\n\t\tif ( index < 0 || index > size )\n \t\tthrow new IndexOutOfBoundsException();\n\t\t//check arraylist size\n\t\tif (size == myArray.length)\n\t\t\tresizeUp();\n\t\t//move all the proceeding elements to make room for the desired element\n\t\tfor ( int i = size; i > index; i-- )\n \t\tmyArray[i] = myArray[i-1];\n \t//plug the element\n\t\tmyArray[index] = e;\n \t++this.size;\n\n\t\t\n\t}", "public void add(Fraction element)\r\n\t{\n\t\tif(n==a.length)\r\n\t\t{\r\n\t\t\t// khai bao 1 mang Rectangle b\r\n\t\t\tFraction b[]= new Fraction[a.length*2];\r\n\t\t\tfor(int i=0;i<n;i++)\r\n\t\t\t{\r\n\t\t\t\tb[i]=a[i];\r\n\t\t\t}\r\n\t\t\t//gan dia chi b qua a\r\n\t\t\ta=b;\r\n\t\t}\r\n\t\ta[n]=element;\r\n\t\tn++;\r\n\t}", "public void add(T val){\n myCustomStack[numElements] = val; // myCustomStack[0] = new value, using numElements as index of next open space\n numElements++; //increase numElements by one each time a value is added to the stack, numElements will always be one more than number of elements in stack\n resize(); //call resize to check if array needs resizing\n }", "public static native int Add(long lpjFbxArrayVector2, long pElement);" ]
[ "0.74739534", "0.7434372", "0.71588373", "0.71312296", "0.71178716", "0.7020198", "0.6999689", "0.695386", "0.68842304", "0.6829671", "0.68282497", "0.6800927", "0.67883694", "0.6780772", "0.67014563", "0.66912204", "0.6681314", "0.6653385", "0.6653385", "0.6653385", "0.6653385", "0.6653385", "0.6653385", "0.6652819", "0.6651194", "0.66469014", "0.6638115", "0.6592552", "0.6586154", "0.6573734", "0.6555645", "0.65380585", "0.6531581", "0.6520759", "0.6520759", "0.65136033", "0.6512927", "0.6512283", "0.64519227", "0.64519227", "0.64519227", "0.64495873", "0.63925326", "0.6384798", "0.6382082", "0.6375362", "0.6362296", "0.63472927", "0.63425547", "0.63338363", "0.6333474", "0.633233", "0.63116133", "0.63079745", "0.6306414", "0.63004506", "0.62994957", "0.62983483", "0.62982553", "0.6293626", "0.6290963", "0.6286823", "0.6282836", "0.62780565", "0.6271401", "0.62706417", "0.62700886", "0.6258005", "0.62577593", "0.6249742", "0.62483853", "0.62444043", "0.62444043", "0.6236332", "0.6234816", "0.6224763", "0.6223011", "0.62076986", "0.6207054", "0.6194163", "0.6185858", "0.6183815", "0.6183131", "0.6181579", "0.6176813", "0.61765265", "0.6175113", "0.61741406", "0.6168578", "0.61577946", "0.6154754", "0.6150821", "0.6143685", "0.6137997", "0.6137997", "0.61361194", "0.61355424", "0.6132587", "0.61290765", "0.6116444" ]
0.643971
42
return the legal index aournd the given index
private int[] indexsAround(int row, int col) { int[][] directions = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}}; int [] aroundIndexs = {}; for (int[] dir : directions) { try { int index = rowColToIndex(row+dir[0], col+dir[1]); aroundIndexs = appendArray(aroundIndexs, index); } catch (IndexOutOfBoundsException e) { continue; } } return aroundIndexs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getIndex() {\n\t\treturn index & 0xffff;\n\t}", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "public int getIndex();", "public int getIndex();", "public int getIndex();", "public int getIndex(\n )\n {return index;}", "Expression getIndexExpr();", "public abstract int getIndex();", "public abstract long getIndex();", "protected int realIndex(int index) {\n return index & (buf.length -1);\n }", "int index();", "public int index();", "public int getIndex()\n {\n return getInt(\"Index\");\n }", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "private int getIndex() {\n\t\treturn this.index;\r\n\t}", "public final int getIndex(){\n return index_;\n }", "public int getIndex(){\r\n \treturn index;\r\n }", "private byte getIndex(int n) {\r\n\t\tint originalN = n;\r\n\t\tif (n < Constants.DIMENSION - 1) {\r\n\t\t\tdo {\r\n\t\t\t\tn = Constants.getRandom().nextInt(Constants.DIMENSION);\r\n\t\t\t//} while (n > Constants.FIELD_DIMENSION - 1);\r\n\t\t\t//} while ((n < originalN) || (n > Constants.FIELD_DIMENSION - 1));\r\n\t\t\t} while ((n == originalN) || (n > Constants.DIMENSION - 1));\r\n\t\t}\r\n\t\treturn (byte) n;\r\n\t}", "protected final int getIndex() {\n return index;\n }", "public int getIndex() {\n \t\treturn index;\n \t}", "public int getIndex(int position);", "int getIndex() {\n\t\treturn index;\n\t}", "int getIndex(){\r\n\t\treturn index;\r\n\t}", "public int getIndex(){\n return index;\n }", "public int getIndex(){\n return index;\n }", "private int getInternalListIndex(int index) {\n return index-1;\n }", "public Expression getIndex()\n {\n return index;\n }", "public int getIndex() {\n\t\treturn 0;\n\t}", "public int getIndex()\n/* */ {\n/* 46 */ return this.index;\n/* */ }", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex()\n {\n return index;\n }", "@Nullable\n public abstract Index getIndex();", "@TimeComplexity(\"O(1)\")\n\tpublic int index()\n\t{\n\t\t//TCJ: the cost does not vary with input size so it is constant\n\t\treturn index;\n\t}", "public int getIndex() { return this.index; }", "private int getRealIndex()\r\n\t{\r\n\t\treturn index - 1;\r\n\t}", "private int getCharacterIndex(Character c, int index) {\r\n if (c instanceof CommonInfected) {\r\n return (index % cInfectedNum);\r\n\t\t}\r\n else if (c instanceof Tank) {\r\n return (index % tankNum);\r\n\t\t}\r\n else if (c instanceof Child) {\r\n return (index % childNum);\r\n\t\t}\r\n else if (c instanceof Teacher) {\r\n return (index % teacherNum);\r\n\t\t}\r\n else if (c instanceof Soldier) {\r\n return (index % soldierNum);\r\n\t\t}\r\n else {\r\n return -1;\r\n\t\t}\r\n }", "public int getIndex()\n {\n return index;\n }", "private boolean validateIndex(int index)\n {\n return index >= 0;\n }", "public short getIndex()\n {\n return index;\n }", "@Override\n public final int getIndex() {\n return index;\n }", "@VTID(10)\n int getIndex();", "Index getIndices(int index);", "public int getIndex() {\n return index;\n }", "private int getIndex(int key) {\n\t\treturn key % MAX_LEN;\n\t}", "public synchronized final int getIndex() {\r\n return f_index;\r\n }", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\r\n return _index;\r\n }", "PACKET getIndex(int index);", "private static String getIndex() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(App.getAppContext());\n String defaultValue = Strings.getStringByRId(R.string.c_elastic_search_index_name_default_value);\n String value = Strings.getStringByRId(R.string.c_select_elastic_search_index_name);\n String index = sp.getString(value, defaultValue);\n return index;\n }", "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\r\n return index;\r\n }", "@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}", "private int getArrayIndex() {\n\t\tswitch (getId()) {\n\t\tcase 3493:\n\t\t\treturn Recipe_For_Disaster.AGRITH_NA_NA_INDEX;\n\t\tcase 3494:\n\t\t\treturn Recipe_For_Disaster.FLAMBEED_INDEX;\n\t\tcase 3495:\n\t\t\treturn Recipe_For_Disaster.KARAMEL_INDEX;\n\t\tcase 3496:\n\t\t\treturn Recipe_For_Disaster.DESSOURT_INDEX;\n\t\t}\n\t\treturn -1;\n\t}", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public Integer getIndex() {\n return index;\n }", "@JsOverlay\n\tpublic final int getIndex() {\n\t\t// checks if there is the property\n\t\tif (ObjectType.UNDEFINED.equals(JsHelper.get().typeOf(this, \"index\"))) {\n\t\t\treturn Undefined.INTEGER;\n\t\t}\n\t\treturn getNativeIndex();\n\t}", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex()\n {\n return m_index;\n }", "public int getIndexGegenueber(int index) {\n\t\tindex -= 13;\n\t\tif(index < 0)\n\t\t\tindex*= (-1);\n\t\treturn index;\n\t}", "public int getIndex() {\n return index;\n }", "private int getPos(int key, int index) {\n\t\t// Each bucket contains a list.\n\t\tList<Integer> temp = set[index];\n\t\tif (temp == null) {\n\t\t\treturn -1;\n\t\t}\n\t\t// Iterate all the elements in the bucket to find the target key.\n\t\tfor (int i = 0; i < temp.size(); i++) {\n\t\t\tif (temp.get(i) == key) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "boolean isIndex();", "Index getIndex(String symbol);", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "short getKeyIx();", "public int getIndex() {\n\t\treturn this.index;\n\t}", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }" ]
[ "0.72764325", "0.70704806", "0.70704806", "0.70704806", "0.70704806", "0.70704806", "0.70704806", "0.70704806", "0.70704806", "0.70704806", "0.70704806", "0.70704806", "0.70704806", "0.70704806", "0.6986502", "0.6986502", "0.6986502", "0.69099945", "0.69044495", "0.68980986", "0.6830974", "0.67156917", "0.6701594", "0.6633002", "0.66228265", "0.6616471", "0.65912014", "0.65706176", "0.65644485", "0.65515465", "0.65170074", "0.6489168", "0.64881504", "0.6485563", "0.6465154", "0.646276", "0.646276", "0.64376444", "0.6434713", "0.64297175", "0.6424474", "0.64109373", "0.64109373", "0.64109373", "0.63985133", "0.6398314", "0.63922197", "0.6386088", "0.638214", "0.6359891", "0.6357536", "0.63574386", "0.63542914", "0.6348003", "0.634609", "0.6313815", "0.6300142", "0.62952274", "0.62950313", "0.6293146", "0.6293146", "0.62904453", "0.62884766", "0.62699306", "0.6259844", "0.6259844", "0.6259844", "0.62545127", "0.6254052", "0.6231092", "0.6221022", "0.6221022", "0.6221022", "0.6221022", "0.6221022", "0.6217105", "0.62126184", "0.61974466", "0.61974466", "0.61974466", "0.61974466", "0.61974466", "0.61974466", "0.61886895", "0.61850834", "0.6176524", "0.6174768", "0.61572963", "0.61570007", "0.6151026", "0.61328864", "0.6124394", "0.6114226", "0.6105416", "0.6105416", "0.6105416", "0.6105416", "0.6105416", "0.6105416", "0.6100834", "0.6100834" ]
0.0
-1
open site (row, col) if it is not open already
public void open(int row, int col) { if (isOpen(row, col)) return; int index = rowColToIndex(row, col); sitesIsOpen[index] = true; if (row == 1) { sitesUF.union(index, upSiteIndex); sidesFullUF.union(index, upSiteIndex); } //!this.percolates() this situation is prevent after percolates, every //sites open down will be full, but not fix 在下面按了几个后, 另一块区域联通是的,原来的区域 full 了 if (row == side && !this.percolates()) sitesUF.union(index, downSiteIndex); for (int aroundIndex : indexsAround(row, col)) { if (sitesIsOpen[aroundIndex]) { sitesUF.union(aroundIndex, index); sidesFullUF.union(aroundIndex, index); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void open(int row, int col) {\n if (grid[row][col] == 0) {\n grid[row][col] = 1;\n openSites++;\n if (row == 0) {\n grid[row][col] = 2;\n fill(row,col);\n }\n if (row > 0 && grid[row - 1][col] > 0) {\n // wqu.union(ID[row - 1][col], ID[row][col]);\n if (isFull(row - 1, col))\n fill(row-1,col);\n }\n if (row < grid.length - 1 && grid[row + 1][col] > 0) {\n // wqu.union(ID[row + 1][col], ID[row][col]);\n if (isFull(row + 1, col))\n fill(row+1,col);\n }\n if (col > 0 && grid[row][col - 1] > 0) {\n // wqu.union(ID[row][col - 1], ID[row][col]);\n if (isFull(row, col - 1))\n fill(row,col-1);\n }\n if (col < grid.length - 1 && grid[row][col + 1] > 0) {\n // wqu.union(ID[row][col + 1], ID[row][col]);\n if (isFull(row, col + 1))\n fill(row,col+1);\n }\n }\n // open the site (row, col) if it is not open already\n }", "public void open (int row, int col) {\n if (!isLegalCoordinate(row, col)) throw new IllegalArgumentException(\"Invalid input argument.\");\n if (isOpen(row, col)) return;\n\n siteStatus[row - 1][col - 1] = true;\n if (row == 1 || row == getSize()) connectWithVirtualSites(row, col);\n connectWithOpenSites(row, col);\n openSites++;\n }", "public void open(int row, int col) {\n if (!this.isValid(row, col))\n throw new IndexOutOfBoundsException(\"row or col is out of side length!\");\n if (this.isOpen(row, col))\n return;\n\n // set the site to opened status\n this.status[getElement(row, col)] |= OPENBIT;\n\n // see whether the site is connected to top/bottom row\n byte top = (byte) (this.status[getElement(row, col)] & TOPBIT);\n byte bottom = (byte) (this.status[getElement(row, col)] & BOTTOMBIT);\n int parent = -1;\n\n // see whether the surrounding sites' root is connected to top/bottom row\n if (isValid(row - 1, col) && isOpen(row - 1, col)) {\n parent = this.uf.find(getElement(row - 1, col));\n top |= (this.status[parent] & TOPBIT);\n bottom |= (this.status[parent] & BOTTOMBIT);\n }\n if (isValid(row + 1, col) && isOpen(row + 1, col)) {\n parent = this.uf.find(getElement(row + 1, col));\n top |= (this.status[parent] & TOPBIT);\n bottom |= (this.status[parent] & BOTTOMBIT);\n }\n if (isValid(row, col - 1) && isOpen(row, col - 1)) {\n parent = this.uf.find(getElement(row, col - 1));\n top |= (this.status[parent] & TOPBIT);\n bottom |= (this.status[parent] & BOTTOMBIT);\n }\n if (isValid(row, col + 1) && isOpen(row, col + 1)) {\n parent = this.uf.find(getElement(row, col + 1));\n top |= (this.status[parent] & TOPBIT);\n bottom |= (this.status[parent] & BOTTOMBIT);\n }\n\n // connect to each surrounding site\n if (isValid(row - 1, col) && isOpen(row - 1, col)) {\n this.uf.union(getElement(row, col), getElement(row - 1, col));\n }\n if (isValid(row + 1, col) && isOpen(row + 1, col)) {\n this.uf.union(getElement(row, col), getElement(row + 1, col));\n }\n if (isValid(row, col - 1) && isOpen(row, col - 1)) {\n this.uf.union(getElement(row, col), getElement(row, col - 1));\n }\n if (isValid(row, col + 1) && isOpen(row, col + 1)) {\n this.uf.union(getElement(row, col), getElement(row, col + 1));\n }\n\n // judge whether the root of the site is connected to top/bottom row\n parent = this.uf.find(getElement(row, col));\n this.status[parent] |= (top | bottom);\n\n // if the root is connected to top & bottom, then the whole system is percolated\n if (TOPBIT == (this.status[parent] & TOPBIT) && BOTTOMBIT == (this.status[parent] & BOTTOMBIT))\n this.isPercolated = true;\n }", "public void open(int row, int col)\n {\n validate(row, col);\n int oneDimensional = xyTo1D(row, col);\n if (grid[oneDimensional]) {\n return;\n }\n grid[oneDimensional] = true;\n connectToOpenNeighbors(oneDimensional);\n connectToVirtualSites(oneDimensional);\n openSites++;\n }", "public void open(int row, int col) {\n if(!inRange(row, col)) {\n throw new IllegalArgumentException();\n }\n if(!isOpen(row, col)) {\n numOpen++;\n grid[row][col] = true;\n if(row==1) {\n // Opening a site on top connects it to the virtual top\n UF.union(((row-1)*size + col), top);\n UF2.union(((row-1)*size + col), top);\n }\n if(row==size) {\n // Opening a site on bottom connects it to the virtual bottom\n UF.union(((row-1)*size + col), bottom);\n }\n // Connect the site being opened to all its open neighbours\n if(row-1>=1 && grid[row-1][col]) {\n UF.union(((row-1)*size + col), (((row-1)-1)*size + col));\n UF2.union(((row-1)*size + col), (((row-1)-1)*size + col));\n }\n if(row+1<=size && grid[row+1][col]) {\n UF.union(((row-1)*size + col), (((row+1)-1)*size + col));\n UF2.union(((row-1)*size + col), (((row+1)-1)*size + col));\n }\n if(col-1>=1 && grid[row][col-1]) {\n UF.union(((row-1)*size + col), ((row-1)*size + (col-1)));\n UF2.union(((row-1)*size + col), ((row-1)*size + (col-1)));\n }\n if(col+1<=size && grid[row][col+1]) {\n UF.union(((row-1)*size + col), ((row-1)*size + (col+1)));\n UF2.union(((row-1)*size + col), ((row-1)*size + (col+1)));\n }\n }\n }", "public void open(int row, int col) {\n if (!validateCoordinates(row - 1, col - 1)) {\n throw new IllegalArgumentException(\"invalid (row, col) value provided\");\n }\n\n if (isOpen(row, col)) return;\n\n // 1 --> open site\n grid[row - 1][col - 1] = 1;\n openSitesCount++;\n\n // top neighbour\n if (row > 1 && isOpen(row - 1, col)) {\n performUnion(row, col, row - 1, col);\n }\n\n // right neighbour\n if (col <= gridSize - 1 && isOpen(row, col + 1)) {\n performUnion(row, col, row, col + 1);\n }\n\n // down neighbour\n if (row <= gridSize - 1 && isOpen(row + 1, col)) {\n performUnion(row, col, row + 1, col);\n }\n\n // left neighbour\n if (col > 1 && isOpen(row, col - 1)) {\n performUnion(row, col, row, col - 1);\n }\n\n // connect to virtual top site if newly opened\n // site is in row 1 (top row)\n if (row == 1) {\n int indexP = xyToOneD(row, col);\n wquf.union(indexP, virtualTopSiteIndex);\n wquf2.union(indexP, virtualTopSiteIndex);\n } else if (row == gridSize) {\n int indexP = xyToOneD(row, col);\n wquf2.union(indexP, virtualBottomSiteIndex);\n }\n }", "public void open(int row, int col){\n\t\tint index= transformInput(row, col);\n\t\tif(openSites[index]){ //returns if already open\n\t\t\treturn;\n\t\t}\n\t\t//set site as opened\n\t\topenSites[index]=true;\n\t\tnumOpen++;\n\t\t\n\t\t//Note if statement will truncate if out of index of array\n\t\tif( index+1 <= row*n && openSites[index+1]){ //right boundary\n\t\t\tgrid.union(index, index+1);\n\t\t}\n\t\tif( index-1 >= (row-1)*n +1 && openSites[index-1]){ //left boundary\n\t\t\tgrid.union(index, index-1);\n\t\t}\n\t\tif( index+n <= n*n && openSites[index+n]){ //bottom boundary\n\t\t\tgrid.union(index, index+n);\n\t\t}\n\t\tif( index-n >= 1 && openSites[index-n]){ //top boundary\n\t\t\tgrid.union(index, index-n);\n\t\t}\n\t}", "public void open(int row, int col) {\n validate(row, col);\n int thisSite = getThisSite(row, col);\n if (isOpen(row, col)) {\n return;\n }\n openSites += 1;\n openState[thisSite] = true;\n\n// if only one, open is percolate\n if (n == 1) {\n percolates = true;\n return;\n }\n if (row == 1) {\n// first row\n uf.union(vTop, thisSite);\n if (col == 1) {\n// the left top corner\n checkRight(row, col);\n } else if (col == n) {\n// the right top corner\n checkLeft(row, col);\n } else {\n// other in top\n checkRight(row, col);\n checkLeft(row, col);\n }\n checkBottom(row, col);\n } else if (row == n) {\n// last row\n// uf.union(vBottom, );\n bottom[col - 1] = getThisSite(row, col);\n if (col == 1) {\n// the left bottom corner\n checkRight(row, col);\n } else if (col == n) {\n// the right bottom corner\n checkLeft(row, col);\n } else {\n// other in bottom\n checkRight(row, col);\n checkLeft(row, col);\n }\n checkTop(row, col);\n } else {\n if (col == 1) {\n// the left col\n checkRight(row, col);\n } else if (col == n) {\n// the right col\n checkLeft(row, col);\n } else {\n// other in bottom\n checkRight(row, col);\n checkLeft(row, col);\n }\n checkTop(row, col);\n checkBottom(row, col);\n }\n// how to improve\n if (!percolates) {\n for (int i = 0; i < n; i++) {\n int site = bottom[i];\n int rowx = n;\n int colx = i + 1;\n if (site > 0 && isFull(rowx, colx)) {\n percolates = true;\n }\n }\n }\n }", "public void open(int row, int col) {\n if (isInBounds(row-1, col-1)) {\n if (isOpen(row, col)) return;\n if (row == 1) {\n mainObject.union(vsite1, coordinateConvertFrom(row, col));\n }\n if (row == size) {\n mainObject.union(vsite2, coordinateConvertFrom(row, col));\n }\n if (isInBounds(row - 1, col) && isOpen(row, col + 1)) {\n mainObject.union(coordinateConvertFrom(row, col), coordinateConvertFrom(row, col + 1));\n }\n if (isInBounds(row - 1, col - 2) && isOpen(row, col - 1)) {\n mainObject.union(coordinateConvertFrom(row, col), coordinateConvertFrom(row, col - 1));\n }\n if (isInBounds(row, col - 1) && isOpen(row + 1, col)) {\n mainObject.union(coordinateConvertFrom(row, col), coordinateConvertFrom(row + 1, col));\n }\n if (isInBounds(row - 2, col - 1) && isOpen(row - 1, col)) {\n mainObject.union(coordinateConvertFrom(row, col), coordinateConvertFrom(row - 1, col));\n }\n grid[row - 1][col - 1] = true;\n numberOfOpenSites++;\n }\n else {\n throw new java.lang.IllegalArgumentException(\"Bad Coordinates\");\n }\n\n }", "public void open(int row, int col){\n validateRowCol(row, col);\n if(grid[row][col]){\n grid[row][col] = false;\n numOpenSites++;\n if(row != 0 && isOpen(row - 1, col)) {\n uf.union(siteNum(row, col), siteNum(row - 1, col));\n tempUF.union(siteNum(row, col), siteNum(row - 1, col));\n }\n if(row != (gridSize-1) && isOpen(row+1, col)) {\n uf.union(siteNum(row, col), siteNum(row + 1, col));\n tempUF.union(siteNum(row, col), siteNum(row + 1, col));\n }\n if(col != 0 && isOpen(row, col-1)) {\n uf.union(siteNum(row, col), siteNum(row, col - 1));\n tempUF.union(siteNum(row, col), siteNum(row, col - 1));\n }\n if(col != (gridSize-1) && isOpen(row, col+1)) {\n uf.union(siteNum(row, col), siteNum(row, col + 1));\n tempUF.union(siteNum(row, col), siteNum(row, col + 1));\n }\n if(row == 0) {\n uf.union(siteNum(row, col), ufSize - 2);\n tempUF.union(siteNum(row, col), ufSize - 2);\n }\n if(row == (gridSize-1))\n uf.union(siteNum(row, col), ufSize - 1);\n\n }\n }", "public void open(int row, int col) {\n validate(row, col);\n if (!isOpen(row, col)) {\n this.numOfOpenSites += 1;\n }\n grid[row - 1][col - 1] = true;\n int indexOfThisSite = site2index(row, col);\n\n // union adjacent open nodes\n if (row > 1 && isOpen(row - 1, col)) {\n this.uf.union(site2index(row - 1, col), indexOfThisSite);\n this.ufNoBottom.union(site2index(row - 1, col), indexOfThisSite);\n }\n\n if (row < this.n && isOpen(row + 1, col)) {\n this.uf.union(site2index(row + 1, col), indexOfThisSite);\n this.ufNoBottom.union(site2index(row + 1, col), indexOfThisSite);\n }\n\n if (col > 1 && isOpen(row, col - 1)) {\n this.uf.union(site2index(row, col - 1), indexOfThisSite);\n this.ufNoBottom.union(site2index(row, col - 1), indexOfThisSite);\n }\n\n if (col < this.n && isOpen(row, col + 1)) {\n this.uf.union(site2index(row, col + 1), indexOfThisSite);\n this.ufNoBottom.union(site2index(row, col + 1), indexOfThisSite);\n }\n }", "public void open(int row, int col) {\n if (isOpen(row, col)) {\n return;\n }\n grid[row][col] = true;\n openSites++;\n int p1 = fromXYTo1D(row, col);\n for (int i = 0; i < rowOrder.length; ++i) {\n int newRow = row + rowOrder[i];\n int newCol = col + colOrder[i];\n if (inGrid(newRow, newCol) && isOpen(newRow, newCol)) {\n int p2 = fromXYTo1D(newRow, newCol);\n uf.union(p1, p2);\n }\n }\n }", "public void open(int row, int col) {\n\n }", "public boolean isOpen(int row, int col){\n\t\tint index= transformInput(row,col);\n\t\treturn openSites[index];\n\t}", "public void open(int row, int col) {\n \t if (row < 0 || row > n - 1 || col < 0 || col > n - 1) throw new java.lang.IndexOutOfBoundsException(\"open():row or col out of bounds\");\n if (!isOpen(row, col)) {\n grid[row][col] = true;\n openSites++;\n int comp1 = n*row + col;\n if (row == 0) myUF.union(comp1, n*n);\n if (row == n - 1 ) myUF.union(comp1, n*n + 1);\n if (row + 1 < n && grid[row+1][col]) myUF.union(comp1, comp1 + n);\n if (row - 1 >= 0 && grid[row-1][col]) myUF.union(comp1, comp1 - n);\n if (col + 1 < n && grid[row][col+1]) myUF.union(comp1, comp1 + 1);\n if (col - 1 >= 0 && grid[row][col-1]) myUF.union(comp1, comp1 - 1);\n } \n }", "private void connectWithOpenSites(int row, int col) {\n if (isLegalCoordinate(row - 1, col))// upper\n UF.union(getIndex(row - 1, col), getIndex(row, col));\n if (isLegalCoordinate(row, col - 1))// left\n UF.union(getIndex(row, col - 1), getIndex(row, col));\n if (isLegalCoordinate(row, col + 1))// right\n UF.union(getIndex(row, col + 1), getIndex(row, col));\n if (isLegalCoordinate(row + 1, col))// bottom\n UF.union(getIndex(row + 1, col), getIndex(row, col));\n }", "public void open(int row, int col) {\n // validate the indices of the site\n validate(row, col);\n int k = mapping(row, col);\n if (idOpen[k] == 0) {\n idOpen[k] = 1;\n openCount++;\n if (row == count) //&& uf.find(k) == uf.find(count * count))\n uf.union(count * count + 1, k);\n if (row == 1)\n uf.union(count * count, k);\n }\n\n // perform sequence of union-find operations that links the site in question to its open neighbors (multiple UF can happen in one call)\n if (idOpen[moveDown(row, col)] == 1)\n uf.union(k, moveDown(row, col));\n if (idOpen[moveUp(row, col)] == 1)\n uf.union(k, moveUp(row, col));\n if (idOpen[moveRi(row, col)] == 1)\n uf.union(k, moveRi(row, col));\n if (idOpen[moveLe(row, col)] == 1)\n uf.union(k, moveLe(row, col));\n }", "public void open(int i, int j) {\n if (!checkIndex(i, j))\n throw new IndexOutOfBoundsException(\"invalid index i or j for grid site\");\n\n if (isOpen(i, j)) return;\n\n mGrid[i - 1][j - 1] = true;\n ++mOpenSites;\n\n // Neither Topmost or bottom most rows\n\n int idxFrom = xyTo1D(i, j);\n\n if (checkIndex(i - 1, j)) {\n if (isOpen(i - 1, j)) mUnionFind.union(idxFrom, xyTo1D(i - 1, j));\n }\n if (checkIndex(i + 1, j) && (i != mGridSize)) {\n if (isOpen(i + 1, j)) mUnionFind.union(idxFrom, xyTo1D(i + 1, j));\n }\n if (checkIndex(i, j + 1)) {\n if (isOpen(i, j + 1)) mUnionFind.union(idxFrom, xyTo1D(i, j + 1));\n }\n if (checkIndex(i, j - 1)) {\n if (isOpen(i, j - 1)) mUnionFind.union(idxFrom, xyTo1D(i, j - 1));\n }\n // 1: top row\n if (i == 1) {\n int idx = xyTo1D(i, j);\n mUnionFind.union(0, idx);\n\n }\n // 2: bottom row\n if (i == mGridSize && (!percolates())) {\n int idx = xyTo1D(i, j);\n mUnionFind.union(idx, mGridSize * mGridSize + 1);\n }\n\n\n }", "public void open(int row, int col)\r\n {\r\n if (row < 1 || row > dimension || col < 1 || col > dimension)\r\n throw new IllegalArgumentException(\"error range\");\r\n\r\n if (isOpen(row, col)) return;\r\n else\r\n {\r\n grids[(row - 1) * dimension + col] = true;\r\n openSites++;\r\n }\r\n // up\r\n if (row - 1 > 0)\r\n {\r\n if(isOpen(row - 1, col)) uf.union((row - 1)*dimension + col, (row -2 )*dimension + col);\r\n }\r\n else uf.union((row -1)*dimension + col, 0);\r\n // down\r\n if (row + 1 <= dimension)\r\n {\r\n if (isOpen(row + 1, col)) uf.union((row - 1) * dimension + col, row * dimension + col);\r\n }\r\n else uf.union((row -1)*dimension + col, dimension * dimension + 1);\r\n // left\r\n if (col - 1 > 0)\r\n {\r\n if (isOpen(row, col - 1)) uf.union((row - 1)*dimension + col, (row - 1)*dimension + col - 1);\r\n }\r\n // right\r\n if (col + 1 <= dimension)\r\n {\r\n if (isOpen(row, col + 1)) uf.union((row - 1)*dimension + col, (row - 1)*dimension + col + 1);\r\n }\r\n }", "public void open(int row, int col) {\n check(row, col);\n if (!isOpen(row, col)) {\n sites[row - 1][col - 1] = true;\n openSites++;\n\n int index = index(row, col);\n if (row == gridDimension) {\n unionFind.union(index, bottomRoot);\n\n if (gridDimension == 1){\n unionFind.union(index, topRoot);\n fullSites.union(index, topRoot);\n }\n else if (isOpen(row - 1, col)) {\n unionFind.union(index(row - 1, col), index);\n fullSites.union(index(row - 1, col), index);\n }\n }\n else if (row == 1) {\n unionFind.union(index, topRoot);\n fullSites.union(index, topRoot);\n\n if (isOpen(row + 1, col)) {\n unionFind.union(index(row + 1, col), index);\n fullSites.union(index(row + 1, col), index);\n }\n }\n\n else {\n if (isOpen(row + 1, col)) {\n unionFind.union(index(row + 1, col), index);\n fullSites.union(index(row + 1, col), index);\n }\n\n if (isOpen(row - 1, col)) {\n unionFind.union(index(row - 1, col), index);\n fullSites.union(index(row - 1, col), index);\n }\n }\n\n\n\n if (col > 1) {\n if (isOpen(row, col - 1)) {\n unionFind.union(index(row, col - 1), index);\n fullSites.union(index(row, col - 1), index);\n }\n }\n\n if (col < gridDimension) {\n if (isOpen(row, col + 1)) {\n unionFind.union(index(row, col + 1), index);\n fullSites.union(index(row, col + 1), index);\n }\n }\n }\n }", "public void open(int i, int j) {\n if (isOpen(i, j))\n return;\n\n int element = ((i-1)*siteDepth) + (j-1) + 1;\n\n if (i == 1) {\n // connect the top row to its virtual node\n wuf.union(virtTop, element);\n wufFull.union(virtTop, element);\n }\n\n if (i == siteDepth) {\n // connect the bottom row to its virtual node\n wuf.union(element, virtBottom);\n }\n\n // connect neighbors if they are open\n if ((i != 1) && isOpen(i - 1, j)) {\n wuf.union(element, element - siteDepth);\n wufFull.union(element, element - siteDepth);\n }\n\n if ((i != siteDepth) && isOpen(i + 1, j)) {\n wuf.union(element, element + siteDepth);\n wufFull.union(element, element + siteDepth);\n }\n \n if ((j != 1) && isOpen(i, j - 1)) {\n wuf.union(element, element - 1);\n wufFull.union(element, element - 1);\n }\n\n if ((j != siteDepth) && isOpen(i, j + 1)) {\n wuf.union(element, element + 1);\n wufFull.union(element, element + 1);\n }\n\n // Open the current site\n sites[i][j] = true;\n\n if (!hasPercolated && wuf.find(element) == wuf.find(virtTop))\n wufFull.union(virtTop, element);\n\n }", "public boolean isOpen(int row, int col) {\n check(row, col);\n return sites[row - 1][col - 1];\n }", "public void open(int row, int col){\n\t\tif (row <= 0 || col <= 0 || row > storeVar || col > storeVar) \n\t\t\tthrow new IllegalArgumentException(\"row index i out of bounds\");\n\n\t\t// System.out.println(\"\\n We're opening again! \");\n\t\tint currIndex = ((row-1)*storeVar) + col;\n\n\t\tif (isOpen(row, col)) return;\n\t\topenSites++;\n\t\tgrid[currIndex] = true;\n\n\n\t\tif (currIndex < storeVar+1 ){\n\t\t\tunionFind.union(currIndex, virtualTop);\n\t\t\tbackwash.union(currIndex, virtualTop);\n\t\t\tfullgrid[currIndex] = true;\n\t\t}\n\t\tif ((currIndex < grid.length - 1) && (currIndex >= (grid.length - 1 - storeVar))){\n\t\t\t// System.out.println(\"Confirmed that bottom is connected\");\n\t\t\tunionFind.union(currIndex, virtualBottom);\n\t\t}\n\n\t\t\n\t\tif(row + 1 <= storeVar && isOpen(row + 1, col)){\n\t\t\tif (!unionFind.connected(currIndex, currIndex+storeVar)) {\n\t\t\t\tunionFind.union(currIndex, currIndex+storeVar);\n\t\t\t\tbackwash.union(currIndex, currIndex+storeVar);\n\t\t\t}\n\t\t}\n\t\tif(col + 1 <= storeVar && isOpen(row , col+1)){\n\t\t\tif (!unionFind.connected(currIndex, currIndex+1)) {\n\t\t\t\tunionFind.union(currIndex, currIndex+1);\n\t\t\t\tbackwash.union(currIndex, currIndex+1);\n\t\t\t}\n\t\t}\n\t\tif(row - 1 > 0 && isOpen(row - 1, col)){\n\t\t\tif (!unionFind.connected(currIndex, currIndex-storeVar)){ \n\t\t\t\tunionFind.union(currIndex, currIndex-storeVar);\n\t\t\t\tbackwash.union(currIndex, currIndex-storeVar);\n\t\t\t}\n\t\t}\n\t\tif(col - 1 > 0 && isOpen(row , col-1)){\n\t\t\tif (!unionFind.connected(currIndex, currIndex-1)){\n\t\t\t unionFind.union(currIndex, currIndex-1);\n\t\t\t backwash.union(currIndex, currIndex-1);\n\t\t\t}\n\t\t}\n\t}", "public void open(final int row, final int col) {\n checkBounds(row, col);\n if (!isOpen(row, col)) {\n numOpen++;\n grid[row - 1][col - 1] = true;\n int oneDsite = xyTo1D(row, col);\n // above\n if (row + 1 <= size && isOpen(row + 1, col)) {\n // StdOut.println(\"connecting [\"+row+\", \"+col+\"] with\n // [\"+(row + 1)+\", \"+col+\"]\");\n wqf.union(oneDsite, xyTo1D(row + 1, col));\n }\n // right\n if (col + 1 <= size && isOpen(row, col + 1)) {\n wqf.union(oneDsite, xyTo1D(row, col + 1));\n }\n // below\n if (row - 1 >= 1 && isOpen(row - 1, col)) {\n wqf.union(oneDsite, xyTo1D(row - 1, col));\n }\n // left\n if (col - 1 >= 1 && isOpen(row, col - 1)) {\n wqf.union(oneDsite, xyTo1D(row, col - 1));\n }\n }\n }", "public boolean isOpen(int row, int col) {\n int index = rowColToIndex(row, col);\n return sitesIsOpen[index];\n }", "public void open(int i, int j){ // open site (row i, column j) if it is not already\n\t\tif (i <= 0 || i > N) throw new java.lang.IndexOutOfBoundsException(\"row index i out of bounds\");\n\t\tif (j <= 0 || j > N) throw new java.lang.IndexOutOfBoundsException(\"row index j out of bounds\");\n\t\t\n\t\tif(idGrid[i-1][j-1] && !isPathological){\n\t\t\t\n\t\t\tidGrid[i-1][j-1] = false;\n\t\t\t\n\t\t//\tStringBuilder builder = new StringBuilder();\n\t\t\t\n\t\t\tif(!idGrid[i-1][max(0, j-2)]){ // Checking to the left\n\t\t\t\tquickUnion.union(j + (i-1)*N, max(1,j-1) + (i-1)*N);\n\t\t\t\tquickUnionBackwash.union(j + (i-1)*N, max(1,j-1) + (i-1)*N);\n\t\t\t//\tbuilder.append(\"Left \");\n\t\t\t}\n\t\t\t\n\t\t\tif(!idGrid[i-1][min(N-1, j)]){ // Checking to the right\n\t\t\t\tquickUnion.union(j + (i-1)*N, min(N,j+1) + (i-1)*N);\n\t\t\t\tquickUnionBackwash.union(j + (i-1)*N, min(N,j+1) + (i-1)*N);\n\t\t\t//\tbuilder.append(\"Right \");\n\t\t\t}\n\t\t\t\n\t\t\tif(!idGrid[max(0, i-2)][j-1]){ // Checking upwards\n\t\t\t\tquickUnion.union(max(0,i-2)*N + j, (i-1)*N + j);\n\t\t\t\tquickUnionBackwash.union(max(0,i-2)*N + j, (i-1)*N + j);\n\t\t\t//\tbuilder.append(\"Up \");\n\t\t\t}\n\t\t\t\n\t\t\tif(!idGrid[min(N-1, i)][j-1]){ // Checking downwards\n\t\t\t\tquickUnion.union(min(N-1,i)*N + j, (i-1)*N + j);\n\t\t\t\tquickUnionBackwash.union(min(N-1,i)*N + j, (i-1)*N + j);\n\t\t\t//\tbuilder.append(\"Down \");\n\t\t\t}\n\t\t\n\t\t\tif(i == 1){\n\t\t\t\tquickUnion.union((i-1)*N+j, 0);\n\t\t\t\tquickUnionBackwash.union((i-1)*N+j, 0);\n\t\t\t//\tbuilder.append(\"Top \");\n\t\t\t}\n\t\t\tif(i == N){\n\t\t\t\tquickUnion.union((i-1)*N+j, N*N+1);\n\t\t\t//\tbuilder.append(\"Bottom\");\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(builder.toString());\n\t\t}else if(isPathological && idGrid[0][0]){\n\t\t\tidGrid[0][0] = false;\n\t\t\t\n\t\t}\n\t}", "public void open(int i, int j) {\n\t\tvalidate(i, j);\n\t\tif (!isOpen(i, j)) {\n\t\t\tgrid[i - 1][j - 1] = true;\n\n\t\t\tunite(i, j, i - 1, j);\n\t\t\tunite(i, j, i + 1, j);\n\t\t\tunite(i, j, i, j - 1);\n\t\t\tunite(i, j, i, j + 1);\n\n\t\t\tif (i == 1) { // connect to virtual top site\n\t\t\t\tlinearGrid.union(0, xyTo1D(i, j));\n\t\t\t\tlinearGridNoBackwash.union(0, xyTo1D(i, j));\n\t\t\t} \n\t\t\tif (i == gridSize) { // connect to virtual bottom site\n\t\t\t\tlinearGrid.union(1, xyTo1D(i, j));\n\t\t\t}\n\t\t}\n\t}", "public boolean isOpen(int row, int col) {\n validate(row, col);\n return openState[getThisSite(row, col)];\n }", "public void open(int i, int j) throws Exception { \n validation(i, j);\n if (!isOpen(i, j)) { // mark the site as open\n int xyTo1DTemp = xyTo1D(i, j);\n lattice[xyTo1DTemp] = true;\n \n // links the site in question to its open neighbors\n if (xyTo1DTemp % number != 0) // leftneighbor\n if (isOpen(i, j - 1)) { \n ufVirtual.union(xyTo1DTemp, xyTo1DTemp - 1);\n ufTrue.union(xyTo1DTemp, xyTo1DTemp - 1);\n }\n if ((xyTo1DTemp + 1) % number != 0) // right neighbor\n if (isOpen(i, j + 1)) { \n ufVirtual.union(xyTo1DTemp, xyTo1DTemp + 1);\n ufTrue.union(xyTo1DTemp, xyTo1DTemp + 1);\n }\n if (xyTo1DTemp - number >= 0) // up neighbor\n if (isOpen(i - 1, j)) { \n ufVirtual.union(xyTo1DTemp, xyTo1DTemp - number);\n ufTrue.union(xyTo1DTemp, xyTo1DTemp - number);\n }\n if (xyTo1DTemp + number <= SIZE - 1) // beneath neighbor\n if (isOpen(i + 1, j)) { \n ufVirtual.union(xyTo1DTemp, xyTo1DTemp + number);\n ufTrue.union(xyTo1DTemp, xyTo1DTemp + number);\n }\n }\n }", "public boolean isOpen(int row, int col) {\n if (!this.isValid(row, col))\n throw new IndexOutOfBoundsException(\"row or col is out of side length!\");\n\n // check the site's open status\n return OPENBIT == (this.status[this.getElement(row, col)] & OPENBIT);\n }", "public boolean isOpen(int row, int col) {\n if (row < 1 || row > gridSize || col < 1 || col > gridSize) {\n throw new IllegalArgumentException(\"array index out of bounds\");\n }\n\n // 1 --> open site\n return grid[row - 1][col - 1] == 1;\n }", "public void open(int row, int col) {\n if (isOpen(row, col)) return;\n grid[row - 1][col - 1] = true;\n ++openSites;\n\n // Transform the row and the column into an appropriate index\n // because the quick union class uses a one-dimensional array.\n final int currentSiteIndex = toIndex(row, col);\n\n // The topmost row must be connected to the virtual top.\n if (row == 1) {\n mainUnion.union(virtualTopId, currentSiteIndex);\n backwashAwareUnion.union(virtualTopId, currentSiteIndex);\n }\n // The bottommost row must be connected to virtual the bottom.\n if (row == size) mainUnion.union(virtualBottomId, currentSiteIndex);\n\n // Connect all neighbors of the current site if and only if the neighbors are open.\n if (row > 1 && isOpen(row - 1, col)) {\n final int topNeighborIndex = toIndex(row - 1, col);\n mainUnion.union(topNeighborIndex, currentSiteIndex);\n backwashAwareUnion.union(topNeighborIndex, currentSiteIndex);\n }\n\n if (row < size && isOpen(row + 1, col)) {\n final int bottomNeighborIndex = toIndex(row + 1, col);\n mainUnion.union(bottomNeighborIndex, currentSiteIndex);\n backwashAwareUnion.union(bottomNeighborIndex, currentSiteIndex);\n }\n\n if (col > 1 && isOpen(row, col - 1)) {\n final int leftNeighborIndex = toIndex(row, col - 1);\n mainUnion.union(leftNeighborIndex, currentSiteIndex);\n backwashAwareUnion.union(leftNeighborIndex, currentSiteIndex);\n }\n\n if (col < size && isOpen(row, col + 1)) {\n final int rightNeighborIndex = toIndex(row, col + 1);\n mainUnion.union(rightNeighborIndex, currentSiteIndex);\n backwashAwareUnion.union(rightNeighborIndex, currentSiteIndex);\n }\n }", "public void open(int i, int j){\n\t\tif(i<=0 || i>this.gridLength || j<=0 || j>this.gridLength){\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\tint N = this.gridLength;\n\t\t\n\t\t/*opens argument site is previously unopened and also connects to neighboring open sites\n\t\twhile also updating its connectedness to the bottom row indices*/\n\t\tif(this.idGrid[(i-1)*N + j] == false){\n\t\t\tthis.idGrid[(i-1)*N + j] = true;\n\t\t\tboolean connectBottom = this.bottom[(i-1)*N + j];\n\t\t\tif(i-1>0){\n\t\t\t\tif(idGrid[(i-2)*N + j] == true){\n\t\t\t\t\tif(this.bottom[this.unionTest.find((i - 2)*N + j)] == true){\n\t\t\t\t\t\tconnectBottom = true;\n\t\t\t\t\t}\n\t\t\t\t\tunionTest.union((i-1)*N + j, (i-2)*N + j);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i+1<=this.gridLength){\n\t\t\t\tif(idGrid[(i)*N + j] == true){\n\t\t\t\t\tif(this.bottom[this.unionTest.find((i)*N + j)] == true){\n\t\t\t\t\t\tconnectBottom = true;\n\t\t\t\t\t}\n\t\t\t\t\tunionTest.union((i-1)*N + j, (i)*N + j);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(j-1>0){\n\t\t\t\tif(idGrid[(i-1)*N + j - 1] == true){\n\t\t\t\t\tif(this.bottom[(this.unionTest.find((i-1)*N + j - 1))] == true){\n\t\t\t\t\t\tconnectBottom = true;\n\t\t\t\t\t}\n\t\t\t\t\tunionTest.union((i-1)*N + j, (i-1)*N + j-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(j+1<=this.gridLength){\n\t\t\t\tif(idGrid[(i-1)*N + j + 1] == true){\n\t\t\t\t\tif(this.bottom[this.unionTest.find((i-1)*N + j + 1)] == true){\n\t\t\t\t\t\tconnectBottom = true;\n\t\t\t\t\t}\n\t\t\t\t\tunionTest.union((i-1)*N + j, (i-1)*N + j+1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//update root status\n\t\t\tif(this.bottom[this.unionTest.find((i-1)*N + j)] != true){\n\t\t\t\tthis.bottom[this.unionTest.find((i-1)*N + j)] = connectBottom;\n\t\t\t}\n\t\t}\n\t}", "public void open(int row, int col) {\n validate(row, col);\n if (isOpen(row, col)) {\n return;\n }\n \n int inputIndex = convertRowColToIndex(row, col);\n\n // Top connection required\n if (row == 1) {\n gridGraphVirtualTop.union(inputIndex, virtualTopGridIndex);\n gridGraphVirtualTopBottom.union(inputIndex, virtualTopGridIndex);\n \n }\n \n // Bottom connection required\n if (row == size) {\n gridGraphVirtualTopBottom.union(inputIndex, virtualBottomGridIndex);\n }\n\n gridState[row - 1][col - 1] = true;\n openGridCount++;\n \n checkAndConnect(inputIndex, row - 1, col); // top\n checkAndConnect(inputIndex, row, col - 1); // left\n checkAndConnect(inputIndex, row + 1, col); // bottom\n checkAndConnect(inputIndex, row, col + 1); // right\n }", "public void open(int row, int col) {\n rowAndColWithinBounds(row, col);\n if(isOpen(row, col)) return;\n int index = getIndex(row, col);\n openings[index] = true;\n openSites++;\n\n //connect up the virtual nodes if we are on the top or bottom rows\n if (row - 1 == 0) weightedUnion.union(0, index);\n\n int above = index - n;\n int below = index + n;\n int left = index - 1;\n int right = index + 1;\n if (above > 0 && openings[above]) weightedUnion.union(above, index);\n if (row < n && openings[below]) weightedUnion.union(below, index);\n if (col > 1 && openings[left]) weightedUnion.union(left, index);\n if (col < n && openings[right]) weightedUnion.union(right, index);\n }", "public void open(int row, int col) {\n checkRowAndCol(row, col);\n\n if (isOpen(row, col)) {\n return;\n }\n\n int idx = getIndex(row, col);\n int[] neighbours = new int[]{\n getIndex(row - 1, col),\n getIndex(row, col + 1),\n getIndex(row + 1, col),\n getIndex(row, col - 1)\n };\n\n for (int neighbour : neighbours) {\n if (neighbour < 0) {\n continue;\n }\n if (opened[neighbour])\n weightedQuickUnionUF.union(neighbour, idx);\n }\n\n if (row == 1) {\n weightedQuickUnionUF.union(0, idx);\n }\n opened[idx] = true;\n openSitesCount++;\n }", "public void open(int row, int col) {\n if ((row > (size-1)) || (col > (size-1)) || (col < 0) || (row < 0)) {\r\n throw new java.lang.IndexOutOfBoundsException();\r\n }\r\n else if (grid[row][col] == 0) { // if blocked\r\n int number;\r\n int min = row * size + col; // minimum index\r\n flowGrid[row * size + col] = min; // points at itself in the beginning\r\n boolean fullOrOpen;\r\n\r\n //Checking all sites around, to find the lowest number\r\n fullOrOpen = withinBounds(row - 1, col);\r\n if (fullOrOpen) {\r\n number = flowGrid[(row - 1) * size + col]; // takes the pointer at the location\r\n if (min > number) { // if pointer is lower than at it self\r\n min = number;\r\n }\r\n }\r\n fullOrOpen = withinBounds(row, col + 1);\r\n if (fullOrOpen) {\r\n number = flowGrid[row * size + (col + 1)];\r\n if (min > number) {\r\n min = number;\r\n }\r\n }\r\n fullOrOpen = withinBounds(row, col - 1);\r\n if (fullOrOpen) {\r\n number = flowGrid[row * size + col - 1];\r\n if (min > number) {\r\n min = number;\r\n }\r\n }\r\n fullOrOpen = withinBounds(row + 1, col);\r\n if (fullOrOpen) {\r\n number = flowGrid[(row + 1) * size + col];\r\n if (min > number) {\r\n min = number;\r\n }\r\n }\r\n\r\n\r\n //Checking all sites around and saving the new min\r\n fullOrOpen = withinBounds(row - 1, col);\r\n if (fullOrOpen) {\r\n number = flowGrid[(row - 1) * size + col]; // takes the pointer at the location\r\n flowGrid[number] = min; // the lowest index at current union takes points at the min\r\n }\r\n fullOrOpen = withinBounds(row, col + 1);\r\n if (fullOrOpen) {\r\n number = flowGrid[row * size + (col + 1)];\r\n\r\n flowGrid[number] = min;\r\n }\r\n fullOrOpen = withinBounds(row, col - 1);\r\n if (fullOrOpen) {\r\n number = flowGrid[row * size + col - 1];\r\n flowGrid[number] = min;\r\n }\r\n fullOrOpen = withinBounds(row + 1, col);\r\n if (fullOrOpen) {\r\n number = flowGrid[(row + 1) * size + col];\r\n flowGrid[number] = min;\r\n }\r\n\r\n NOpen += 1; // update number of open sites\r\n\r\n\r\n flowGrid[row * size + col] = min; // update new open site to its union lowest index\r\n checkAll();\r\n if (min<size) {\r\n grid[row][col]=2;\r\n }\r\n else {\r\n grid[row][col]=1;\r\n }\r\n }\r\n }", "public boolean isOpen(int row, int col) {\n if (!isLegalCoordinate(row, col)) throw new IllegalArgumentException(\"Invalid input argument.\");\n return siteStatus[row - 1][col - 1];\n }", "public void open(int row, int col) {\n if (row - 1 >= grid.length || col - 1 >= grid.length || row - 1 < 0 || col - 1 < 0) {\n throw new IllegalArgumentException(\"index is out of boundary.\");\n }\n row = row - 1;\n col = col - 1;\n if (grid.length == 1 && !grid[row][col]) {\n grid[row][col] = true;\n openNum += 1;\n return;\n }\n if (!grid[row][col]) {\n grid[row][col] = true;\n openNum += 1;\n if (row - 1 >= 0 && isOpen(row, col + 1)) {\n uf.union(ufindex(row, col + 1), ufindex(row + 1, col + 1));\n }\n if (row + 1 < grid.length && isOpen(row + 2, col + 1)) {\n uf.union(ufindex(row + 2, col + 1), ufindex(row + 1, col + 1));\n }\n if (col - 1 >= 0 && isOpen(row + 1, col)) {\n uf.union(ufindex(row + 1, col), ufindex(row + 1, col + 1));\n }\n if (col + 1 < grid.length && isOpen(row + 1, col + 2)) {\n uf.union(ufindex(row + 1, col + 2), ufindex(row + 1, col + 1));\n }\n }\n }", "private void connectToOpenNeighbors(int currentSite)\n {\n int aboveSite = currentSite - gridSize;\n int leftOfSite = currentSite - 1;\n int rightOfSite = currentSite + 1;\n int belowSite = currentSite + gridSize;\n\n if (aboveSite > 0) {\n if (grid[aboveSite]) {\n uf.union(currentSite, aboveSite);\n }\n }\n\n if (rightOfSite % gridSize != 0 && rightOfSite < totalSites) {\n if (grid[rightOfSite]) {\n uf.union(currentSite, rightOfSite);\n }\n }\n\n if (leftOfSite % gridSize != gridSize-1 && leftOfSite > 0) {\n if (grid[leftOfSite]) {\n uf.union(currentSite, leftOfSite);\n }\n }\n\n if (belowSite < totalSites) {\n if (grid[belowSite]) {\n uf.union(currentSite, belowSite);\n }\n }\n }", "public boolean isOpen(int i, int j) {\n if (i <= 0 || i > siteDepth || j <= 0 || j > siteDepth)\n throw new IndexOutOfBoundsException();\n\n if (sites[i][j])\n return true;\n \n return false;\n }", "public boolean isOpen(int i, int j) {\n boolean status = false;\n if (!checkIndex(i, j))\n throw new IndexOutOfBoundsException(\"invalid index i or j for grid site\");\n if (mGrid[i - 1][j - 1]) {\n status = true;\n }\n return status;\n }", "public boolean isOpen(int row, int col) {\n return false;\n }", "public void open(int row, int col) {\n HandleError(row, col);\n if(isOpen(row, col)) return;\n state[row][col] = 0;\n openHelper(row, col);\n open_blocks += 1;\n }", "public boolean isOpen(int row, int col) {\n if (row < 0 || row > n - 1 || col < 0 || col > n - 1) throw new java.lang.IndexOutOfBoundsException(\"isOpen():row or col out of bounds\");\n return grid[row][col];\n }", "public void open(int row, int col) {\n\t\tif (!isOpen(row, col)) {\n\t\t\tgrid[row - 1][col - 1] = true;\n\t\t\topenCount++;\n\t\t}\n\t\tint indexInUF = getUnionIndex(row, col);\n\n\t\t// left neighbor\n\t\tunionIfOpen(indexInUF, row, col - 1);\n\n\t\t// right neighbor\n\t\tunionIfOpen(indexInUF, row, col + 1);\n\n\t\t// top neighbor\n\t\tunionIfOpen(indexInUF, row + 1, col);\n\n\t\t// bottom neighbor\n\t\tunionIfOpen(indexInUF, row - 1, col);\n\n\t\tif (row == 1) {\n\t\t\t// union to virtual top index\n\t\t\tuf.union(0, indexInUF);\n\t\t}\n\n\t\tif (row == size) {\n\t\t\t// union to virtual bottom index\n\t\t\tuf.union(size * size + 1, indexInUF);\n\t\t}\n\t}", "private native static boolean is_open_in_window(int clientSite);", "public void Open() {\r\n\t click();\r\n\t }", "private void winOpen() {\n try {\n content = Files.readAllLines(Paths.get(FILE_PATH_INDEX_TXT), Charset.forName(\"cp1251\"));\n String[] Str = content.get(0).split(\";\");\n mapIndexes = new HashMap();\n int i = 0;\n for (String string : Str) {\n mapIndexes.put(string, ++i);\n }\n setLocation(main.getLocation().x + main.getWidth(), main.getLocation().y + this.getHeight() - 10);\n } catch (IOException ex) {\n JOptionPane.showOptionDialog(this, \"Ошибка\", \"Не найден индексный файл!\", JOptionPane.DEFAULT_OPTION,\n JOptionPane.ERROR_MESSAGE, null, null, null);\n }\n\n }", "public boolean isOpen(int row, int col)\n {\n int oneDimensional = xyTo1D(row, col);\n return grid[oneDimensional];\n }", "public void open() {\n\n\t\tresize();\n\t\tgenerateLinks();\n\t\tshowing = true;\n\n\t}", "public void openCell(Integer xOpen, Integer yOpen){\n \r\n if(isValidCell(xOpen,yOpen)){\r\n // System.out.println(\" openCell(). es celda Valida\");\r\n if(grid[xOpen][yOpen].isMine()){\r\n // System.out.println(\" openCell().Perdiste, habia una mina en g[\"+xOpen+\"][\"+yOpen+\"]\");\r\n //grid[xOpen][yOpen].setStatus(Status.REVEALED);\r\n grid[xOpen][yOpen].setNumber(9);\r\n this.gs = gameStatus.LOSE;\r\n }else{\r\n // System.out.println(\" openCell().No es mina, puede continuar\");\r\n if( grid[xOpen][yOpen].getStatus() == Status.CLOSE ){//si esta cerrado, contar las minas\r\n // System.out.println(\" openCell().Esta cerrada, puede abrirse\");\r\n \r\n int minas = getMines(xOpen,yOpen); //error\r\n this.grid[xOpen][yOpen].setNumber(minas);\r\n \r\n if(minas == 0){ //abre las celdas de alrededor\r\n // System.out.println(\" openCell().Tiene 0 minas alrededor, hay que explotar\");\r\n for(int i=xOpen-1; i<=xOpen+1; i++){\r\n for(int j=yOpen-1; j<=yOpen+1 ;j++){\r\n if( i== xOpen && j==yOpen){\r\n grid[xOpen][yOpen].setStatus(Status.REVEALED);\r\n revealedCells++;\r\n }else\r\n openCell(i,j);\r\n }\r\n }\r\n }else{\r\n // System.out.println(\" openCell().La celda tiene un numero >0, puede abrise\");\r\n \r\n grid[xOpen][yOpen].setStatus(Status.REVEALED);\r\n revealedCells++;\r\n \r\n }\r\n } \r\n }\r\n }else{\r\n // System.out.println(\" openCell().Es una celda no valida\");\r\n }\r\n }", "public boolean isOpen(int row, int col) {\n if (row - 1 >= grid.length || col - 1 >= grid.length || row - 1 < 0 || col - 1 < 0) {\n throw new IllegalArgumentException(\"index is out of boundary.\");\n }\n return grid[row - 1][col - 1];\n }", "private void openUpdate() {\n\t\tString url = MySoup.getUpdateLink(SITE);\n\t\tIntent i = new Intent(Intent.ACTION_VIEW);\n\t\ti.setData(Uri.parse(url));\n\t\tstartActivity(i);\n\t\tfinish();\n\t}", "public boolean isOpen(int row, int col) {\n\t valid_rc(row, col);\r\n\t return open[index(row, col)];\r\n\t}", "private boolean openBrowser(IProgressMonitor monitor) {\n\n monitor.subTask(\"Open index page\");\n // FIXME: port should come from the config files\n Display.getDefault().syncExec(new Runnable() {\n public void run() {\n URL url;\n try {\n url = new URL(\"http://localhost:8888\");\n IWorkbenchBrowserSupport browserSupport = WebBrowserUIPlugin\n .getInstance().getWorkbench().getBrowserSupport();\n IWebBrowser browser = browserSupport.createBrowser(\n IWorkbenchBrowserSupport.LOCATION_BAR\n | IWorkbenchBrowserSupport.NAVIGATION_BAR,\n null, null, null);\n browser.openURL(url);\n } catch (Exception e) {\n Trace.trace(Trace.SEVERE, \"Error opening browser\", e);\n }\n }\n });\n\n monitor.worked(3);\n return true;\n }", "public boolean isOpen(int row, int col) {\n if ((row > (size-1)) || (col > (size-1)) || (col < 0) || (row < 0)) {\r\n throw new java.lang.IndexOutOfBoundsException();\r\n }\r\n else if (grid[row][col] > 0) {\r\n return true;\r\n } else return false;\r\n }", "public boolean isOpen(int row, int col) {\n\t\tif(row < 0 || row >= N || col < 0 || col >= N) \n\t\t\tthrow new IllegalArgumentException();\n\n\t\tint index = xyTo1D(row, col);\n\t\treturn grid[index];\n\t}", "public boolean isOpen(int row, int col) {\n\t\tif (row < 1 || row > size || col < 1 || col > size) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\treturn grid[row - 1][col - 1];\n\t}", "public boolean isOpen(int row, int col) {\n validate(row, col);\n int k = mapping(row, col);\n return idOpen[k] == 1;\n }", "public boolean isFull(int row, int col){\n\t\tint index= transformInput(row,col);\n\t\treturn (grid.connected(0, index) && openSites[index]);\n\t}", "protected void openWebPage() {\n\t\tEseoTest.driver.get(Configuration.getString(\"website_address\"));\n\t\t//Assert.assertEquals(\"Web page title does not appear correct.\", Configuration.getString(\"login_title\"),\n\t\t\t//\tEseoTest.driver.getTitle());\t\t\n\t\tAssert.assertEquals(\"Browser title bar does not appear correct.\",Configuration.getString(\"homepage_title\"),EseoTest.driver.getTitle());\n\t\tAssert.assertEquals(\"Site title does not appear correct.\",Configuration.getString(\"blog_title\"),EseoTest.driver.findElement(By.tagName(\"h1\")).getText());\n\t\tAssert.assertEquals(\"Site description does not appear correct.\",Configuration.getString(\"blog_description\"),EseoTest.driver.findElement(By.tagName(\"p\")).getText());\n\t\tAssert.assertTrue(\"Log in item does not appear correct.\",EseoTest.driver.findElement(By.linkText(Configuration.getString(\"mainmenu_login_item\"))).isDisplayed());\n\t}", "public void openSite(View view) {\n Intent toView = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://www.google.com\"));\n startActivity(toView);\n }", "public boolean isOpen(int row, int col)\r\n {\r\n if (row < 1 || row > dimension || col < 1 || col > dimension)\r\n throw new IllegalArgumentException(\"error range\");\r\n\r\n return grids[(row - 1) * dimension + col];\r\n }", "public boolean isOpen(int row, int col) {\n validate(row, col);\n return grid[row - 1][col - 1];\n }", "public void open(int row, int col) {\n\t\tif(row < 0 || row >= N || col < 0 || col >= N) \n\t\t\tthrow new IllegalArgumentException();\n\t\tif(isOpen(row, col)) return;\n\t\tint index = xyTo1D(row, col);\n\t\tgrid[index] = true;\n\t\tsize++;\n\t\t// left\n\t\tif(col - 1 >= 0 && isOpen(row, col - 1)) {\n\t\t\tweigtedJoin.union(index - 1, index);\n\t\t\tnonPercolate.union(index - 1, index);\n\t\t}\n\t\t// right\n\t\tif(col + 1 < N && isOpen(row, col + 1)) {\n\t\t\tweigtedJoin.union(index + 1, index); \n\t\t\tnonPercolate.union(index + 1, index);\n\t\t}\n\t\t// up\n\t\tif(row - 1 >= 0 && isOpen(row - 1, col)) {\n\t\t\tweigtedJoin.union(index - N, index);\n\t\t\tnonPercolate.union(index - N, index);\n\t\t}\n\t\t// down\n\t\tif(row + 1 < N && isOpen(row + 1, col)) {\n\t\t\tweigtedJoin.union(index + N, index);\n\t\t\tnonPercolate.union(index + N, index);\n\t\t}\n\t}", "private void openPage(String address)\n {\n String os = System.getProperty(\"os.name\").toLowerCase();\n \n if(os.contains(\"win\"))\n {\n if(Desktop.isDesktopSupported())\n {\n Desktop desktop = Desktop.getDesktop();\n if(desktop.isSupported(Desktop.Action.BROWSE))\n {\n try { desktop.browse(new URI(address)); }\n\n catch(IOException | URISyntaxException e)\n {\n JOptionPane.showMessageDialog(null, \"Could not open page\");\n }\n }\n }\n }\n \n else \n JOptionPane.showMessageDialog(null, \"Cannot open page, system is not supported\");\n }", "public void open(int row, int col) {\n validateWithinBounds(row, col);\n\n int currentPos = pos(row, col);\n if (open[currentPos]) {\n return;\n }\n open[currentPos] = true;\n count++;\n\n if (row == 1) {\n quickUnion.union(virtualTop, currentPos);\n backwashQuickUnion.union(virtualTop, currentPos);\n }\n\n if (row == n) {\n backwashQuickUnion.union(virtualBottom, currentPos);\n }\n\n unionAdjacent(currentPos, row - 1, col);\n unionAdjacent(currentPos, row + 1, col);\n unionAdjacent(currentPos, row, col - 1);\n unionAdjacent(currentPos, row, col + 1);\n }", "public boolean isOpen(int row, int col){\n\t\tif (row <= 0 || col <= 0 || row > storeVar || col > storeVar)\n\t\t\tthrow new IllegalArgumentException(\"row index i out of bounds\");\n\n\t\treturn grid[(row-1)*storeVar + (col)];\n\t}", "public boolean isOpen(int row, int col) {\n checkRowAndCol(row, col);\n\n int index = getIndex(row, col);\n return opened[index];\n }", "public boolean isOpen(int row, int col) {\n validate(row, col);\n return gridState[row-1][col-1];\n }", "public boolean isOpen(int row, int col) {\n if (isInBounds(row-1, col-1)) {\n return grid[row-1][col-1];\n }\n else {\n throw new java.lang.IllegalArgumentException(\"Bad Coordinates\");\n }\n }", "public boolean isOpen(int row, int col) {\n validateWithinBounds(row, col);\n return open[pos(row, col)];\n }", "public boolean isFull(int row, int col) {\n if (!this.isValid(row, col))\n throw new IndexOutOfBoundsException(\"row or col is out of side length!\");\n\n // the site that is opened and connected to top row is treated as the full site\n return isOpen(row, col) && TOPBIT == (this.status[this.uf.find(getElement(row, col))] & TOPBIT);\n }", "public boolean isOpen(int row, int col) {\n if(!inRange(row, col)) {\n throw new IllegalArgumentException();\n }\n return grid[row][col];\n }", "private int site2index(int row, int col) {\n validate(row, col);\n return (row - 1) * this.n + col;\n }", "public boolean isOpen(int i, int j) throws Exception { \n validation(i, j);\n if (lattice[xyTo1D(i, j)])\n return true;\n return false;\n }", "public boolean isOpen(int row, int col) {\n return this.grid[row][col];\n }", "private void jMenuItem142ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem142ActionPerformed\n URI uri = null;\n try {\n uri = new URI(\"http://manual.audacityteam.org\");\n }\n catch (URISyntaxException ex) {\n Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\n if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\n try {\n desktop.browse(uri);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public boolean isOpen(final int row, final int col) {\n return grid[row - 1][col - 1];\n }", "public boolean positionsOpen(int[][] spacesBetween, int[][] board) {\r\n\t\tboolean open=true;\r\n\t\tfor (int space=0; space<spacesBetween[0].length; space++) {\r\n\t\t\tif (board[spacesBetween[space][0]][spacesBetween[space][1]]>1) {\r\n\t\t\t\topen=false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn open;\r\n\t}", "public boolean isOpen(int row, int col){\n validateRowCol(row, col);\n return (grid[row][col] == false);\n }", "@Override\n\tprotected void openPage(PageLocator arg0, Object... arg1) {\n\t\t\n\t}", "public boolean open(){\n\t\tboolean allopen = true;\n\t\tfor (boolean element: open){\n\t\t\tif (element ==false)\n\t\t\t\tallopen = false;\n\t\t}\n\t\treturn allopen;\t\t\n\t}", "@Given(\"the user opens the index page\")\r\n\tpublic final void givenTheUserOpensTheIndexPage() {\r\n\t\tgetHomePage(chromeDriver);\r\n\t\tgetHomePage(firefoxDriver);\r\n\t\tgetHomePage(internetExplorerDriver);\r\n\t}", "public boolean isOpen(int i, int j) {\n\t\tvalidate(i, j);\n\t\treturn grid[i - 1][j - 1];\n\t}", "public static void Goto()\n\t{\n\t\tUserLogin.Login();\n\t\t\t\t\n\t\t//Choose community\n\t\tWebElement Community= Driver.Instance.findElement(PageObjRef.CommunityTab);\n\t\tCommunity.click();\n\t\tWebElement CommunityToJoin= Driver.Instance.findElement(PageObjRef.CommunityToJoin);\n\t CommunityToJoin.click();\n\t\t\n\t}", "private boolean openExternalBrowser(File _tmpDir, HtmlPageInfo _pageInfo) {\r\n\t\tString localPage = _pageInfo.getLink();\r\n\t\tif (localPage.startsWith(\"./\"))\r\n\t\t\tlocalPage = model._getClassModelDirectory() + localPage.substring(2);\r\n\t\tif (extractToDirectory(localPage, _tmpDir, false) == null)\r\n\t\t\treturn false;\r\n\t\tlocalPage = \"file:///\" + FileUtils.correctUrlString(FileUtils.getPath(_tmpDir) + localPage);\r\n\t\treturn org.opensourcephysics.desktop.OSPDesktop.displayURL(localPage);\r\n\t}", "public void open() {\r\n\t\tthis.setVisible(true);\r\n\t}", "public boolean isOpen(int row, int col) {\n HandleError(row, col);\n percolation.find(0); //不想加的但为了autograde\n return state[row][col] == 0 || state[row][col] == 2;\n }", "private void locationClicked(int row, int col, int tool)\n {\n\t grid[row][col] = tool;\n }", "public boolean isOpen(int i, int j){\n\t\t\n\t\tif (i <= 0 || i > N) throw new java.lang.IndexOutOfBoundsException(\"row index i out of bounds\");\n\t\tif (j <= 0 || j > N) throw new java.lang.IndexOutOfBoundsException(\"row index j out of bounds\");\n\t\t\t\t\n\t\treturn !idGrid[i-1][j-1];\n\t}", "@Given(\"^Open Book My Show Website$\")\r\n\tpublic void open_Book_My_Show_Website() {\n\t\twait=new WebDriverWait(driver, 20);\r\n\t\t driver.get(\"https://in.bookmyshow.com\");\r\n\t\t uimap = new UIMap(\"src//test//resources//locators.properties\");\r\n\t}", "private void locationClicked(int row, int col, int tool)\n {\n //2. Assign the values associated with the parameters to the grid\n\t grid[row][col] = tool;\n }", "public boolean isFull(int row, int col) {\n validate(row, col);\n if (!isOpen(row, col)) {\n return false;\n }\n if (row == 1) {\n return true;\n }\n int s = getThisSite(row, col);\n// uf.find()\n return uf.connected(s, vTop);\n }", "private void jMenuItem141ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem141ActionPerformed\n URI uri = null;\n try {\n uri = new URI(\"http://manual.audacityteam.org/quick_help.html\");\n }\n catch (URISyntaxException ex) {\n Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\n if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\n try {\n desktop.browse(uri);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public boolean isOpen(int i, int j) throws IndexOutOfBoundsException {\r\n\t\tif (i > N || i < 1)\r\n\t\t\tthrow new IndexOutOfBoundsException(\"row index i out of bounds\");\r\n\t\tif (j > N || j < 1)\r\n\t\t\tthrow new IndexOutOfBoundsException(\"column index j out of bounds\");\r\n\t\treturn grid[i - 1][j - 1];\r\n\t}", "private void openUri() {\n try {\n Desktop.getDesktop().browse(new URI(\"http://localhost:\" + Constants.DEFAULT_PORT));\n } catch (URISyntaxException | IOException e) {\n logger.error(\"MainService error [openUri]: \" + e);\n }\n }", "public void open(int i, int j) {\n\t\tif (!isInside(i, j))\n\t\t\treturn;\n\t\tgrid[getPosition(i, j)] = OPEN;\n\n\t\tif (i != 1 && isOpen(i - 1, j)) {\n\t\t\tcellTree.union(getPosition(i - 1, j), getPosition(i, j));\n\t\t} else if (i == 1) {\n\t\t\tcellTree.union(side * side, getPosition(i, j));\n\t\t}\n\t\tif (i != side && isOpen(i + 1, j)) {\n\t\t\tcellTree.union(getPosition(i + 1, j), getPosition(i, j));\n\t\t} else if (i == side) {\n\t\t\tcellTree.union(side * side + 1, getPosition(i, j));\n\t\t}\n\t\tif (j != 1 && isOpen(i + 1, j)) {\n\t\t\tcellTree.union(getPosition(i, j - 1), getPosition(i, j));\n\t\t}\n\t\tif (j != side && isOpen(i + 1, j)) {\n\t\t\tcellTree.union(getPosition(i, j + 1), getPosition(i, j));\n\t\t}\n\t}", "@When(\"^Navigate to \\\"([^\\\"]*)\\\" Site$\")\r\n\tpublic void navigate_to_Site(String arg1) throws Throwable {\n\t\tdriver = DriverManager.getDriver();\r\n\t\tdriver.get(arg1);\r\n\t\tSystem.out.println(\"Launched Mercury Tours Site\");\r\n\r\n\t}" ]
[ "0.724845", "0.7164379", "0.7153806", "0.7093451", "0.7076901", "0.69827163", "0.6964098", "0.68536663", "0.68431437", "0.68394166", "0.67778605", "0.668379", "0.66775787", "0.6602961", "0.65685546", "0.6499543", "0.6433161", "0.64098674", "0.63893867", "0.6329172", "0.6262476", "0.6196898", "0.61691743", "0.61403584", "0.6139989", "0.6137434", "0.61295164", "0.6121349", "0.6121258", "0.6080935", "0.6077043", "0.60351783", "0.59958386", "0.5943665", "0.5942243", "0.59136665", "0.5865478", "0.5860338", "0.5840732", "0.57998025", "0.5798396", "0.57088435", "0.56634283", "0.5660567", "0.5538758", "0.54673386", "0.5461829", "0.5439755", "0.54023296", "0.5397124", "0.5394587", "0.53930527", "0.53925025", "0.5387675", "0.5375143", "0.53317994", "0.5321433", "0.5319608", "0.53065544", "0.53010565", "0.5300584", "0.52720296", "0.52168185", "0.52131903", "0.52124286", "0.5205926", "0.52045864", "0.5194563", "0.5188687", "0.5185796", "0.5176818", "0.5168894", "0.51628435", "0.51546836", "0.51508933", "0.5131145", "0.51125103", "0.50771177", "0.5071974", "0.5069904", "0.50679785", "0.5067302", "0.5035347", "0.50148135", "0.50122875", "0.50115603", "0.50107586", "0.4998525", "0.49952447", "0.49916103", "0.49830902", "0.49808666", "0.49794072", "0.4974397", "0.49731854", "0.49295887", "0.49276006", "0.49182692", "0.49132642", "0.49114516" ]
0.6892256
7
is site (row, col) open?
public boolean isOpen(int row, int col) { int index = rowColToIndex(row, col); return sitesIsOpen[index]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isOpen(int row, int col){\n\t\tint index= transformInput(row,col);\n\t\treturn openSites[index];\n\t}", "public boolean isOpen(int row, int col) {\n check(row, col);\n return sites[row - 1][col - 1];\n }", "public boolean isOpen(int row, int col) {\n validate(row, col);\n return openState[getThisSite(row, col)];\n }", "public boolean isOpen(int row, int col) {\n if (!this.isValid(row, col))\n throw new IndexOutOfBoundsException(\"row or col is out of side length!\");\n\n // check the site's open status\n return OPENBIT == (this.status[this.getElement(row, col)] & OPENBIT);\n }", "public boolean isOpen(int row, int col) {\n if (row < 1 || row > gridSize || col < 1 || col > gridSize) {\n throw new IllegalArgumentException(\"array index out of bounds\");\n }\n\n // 1 --> open site\n return grid[row - 1][col - 1] == 1;\n }", "public void open(int row, int col) {\n if (!this.isValid(row, col))\n throw new IndexOutOfBoundsException(\"row or col is out of side length!\");\n if (this.isOpen(row, col))\n return;\n\n // set the site to opened status\n this.status[getElement(row, col)] |= OPENBIT;\n\n // see whether the site is connected to top/bottom row\n byte top = (byte) (this.status[getElement(row, col)] & TOPBIT);\n byte bottom = (byte) (this.status[getElement(row, col)] & BOTTOMBIT);\n int parent = -1;\n\n // see whether the surrounding sites' root is connected to top/bottom row\n if (isValid(row - 1, col) && isOpen(row - 1, col)) {\n parent = this.uf.find(getElement(row - 1, col));\n top |= (this.status[parent] & TOPBIT);\n bottom |= (this.status[parent] & BOTTOMBIT);\n }\n if (isValid(row + 1, col) && isOpen(row + 1, col)) {\n parent = this.uf.find(getElement(row + 1, col));\n top |= (this.status[parent] & TOPBIT);\n bottom |= (this.status[parent] & BOTTOMBIT);\n }\n if (isValid(row, col - 1) && isOpen(row, col - 1)) {\n parent = this.uf.find(getElement(row, col - 1));\n top |= (this.status[parent] & TOPBIT);\n bottom |= (this.status[parent] & BOTTOMBIT);\n }\n if (isValid(row, col + 1) && isOpen(row, col + 1)) {\n parent = this.uf.find(getElement(row, col + 1));\n top |= (this.status[parent] & TOPBIT);\n bottom |= (this.status[parent] & BOTTOMBIT);\n }\n\n // connect to each surrounding site\n if (isValid(row - 1, col) && isOpen(row - 1, col)) {\n this.uf.union(getElement(row, col), getElement(row - 1, col));\n }\n if (isValid(row + 1, col) && isOpen(row + 1, col)) {\n this.uf.union(getElement(row, col), getElement(row + 1, col));\n }\n if (isValid(row, col - 1) && isOpen(row, col - 1)) {\n this.uf.union(getElement(row, col), getElement(row, col - 1));\n }\n if (isValid(row, col + 1) && isOpen(row, col + 1)) {\n this.uf.union(getElement(row, col), getElement(row, col + 1));\n }\n\n // judge whether the root of the site is connected to top/bottom row\n parent = this.uf.find(getElement(row, col));\n this.status[parent] |= (top | bottom);\n\n // if the root is connected to top & bottom, then the whole system is percolated\n if (TOPBIT == (this.status[parent] & TOPBIT) && BOTTOMBIT == (this.status[parent] & BOTTOMBIT))\n this.isPercolated = true;\n }", "public boolean isOpen(int row, int col) {\n if (!isLegalCoordinate(row, col)) throw new IllegalArgumentException(\"Invalid input argument.\");\n return siteStatus[row - 1][col - 1];\n }", "public void open(int row, int col) {\n if(!inRange(row, col)) {\n throw new IllegalArgumentException();\n }\n if(!isOpen(row, col)) {\n numOpen++;\n grid[row][col] = true;\n if(row==1) {\n // Opening a site on top connects it to the virtual top\n UF.union(((row-1)*size + col), top);\n UF2.union(((row-1)*size + col), top);\n }\n if(row==size) {\n // Opening a site on bottom connects it to the virtual bottom\n UF.union(((row-1)*size + col), bottom);\n }\n // Connect the site being opened to all its open neighbours\n if(row-1>=1 && grid[row-1][col]) {\n UF.union(((row-1)*size + col), (((row-1)-1)*size + col));\n UF2.union(((row-1)*size + col), (((row-1)-1)*size + col));\n }\n if(row+1<=size && grid[row+1][col]) {\n UF.union(((row-1)*size + col), (((row+1)-1)*size + col));\n UF2.union(((row-1)*size + col), (((row+1)-1)*size + col));\n }\n if(col-1>=1 && grid[row][col-1]) {\n UF.union(((row-1)*size + col), ((row-1)*size + (col-1)));\n UF2.union(((row-1)*size + col), ((row-1)*size + (col-1)));\n }\n if(col+1<=size && grid[row][col+1]) {\n UF.union(((row-1)*size + col), ((row-1)*size + (col+1)));\n UF2.union(((row-1)*size + col), ((row-1)*size + (col+1)));\n }\n }\n }", "public void open(int row, int col) {\n validate(row, col);\n int thisSite = getThisSite(row, col);\n if (isOpen(row, col)) {\n return;\n }\n openSites += 1;\n openState[thisSite] = true;\n\n// if only one, open is percolate\n if (n == 1) {\n percolates = true;\n return;\n }\n if (row == 1) {\n// first row\n uf.union(vTop, thisSite);\n if (col == 1) {\n// the left top corner\n checkRight(row, col);\n } else if (col == n) {\n// the right top corner\n checkLeft(row, col);\n } else {\n// other in top\n checkRight(row, col);\n checkLeft(row, col);\n }\n checkBottom(row, col);\n } else if (row == n) {\n// last row\n// uf.union(vBottom, );\n bottom[col - 1] = getThisSite(row, col);\n if (col == 1) {\n// the left bottom corner\n checkRight(row, col);\n } else if (col == n) {\n// the right bottom corner\n checkLeft(row, col);\n } else {\n// other in bottom\n checkRight(row, col);\n checkLeft(row, col);\n }\n checkTop(row, col);\n } else {\n if (col == 1) {\n// the left col\n checkRight(row, col);\n } else if (col == n) {\n// the right col\n checkLeft(row, col);\n } else {\n// other in bottom\n checkRight(row, col);\n checkLeft(row, col);\n }\n checkTop(row, col);\n checkBottom(row, col);\n }\n// how to improve\n if (!percolates) {\n for (int i = 0; i < n; i++) {\n int site = bottom[i];\n int rowx = n;\n int colx = i + 1;\n if (site > 0 && isFull(rowx, colx)) {\n percolates = true;\n }\n }\n }\n }", "public boolean isOpen(int row, int col)\n {\n int oneDimensional = xyTo1D(row, col);\n return grid[oneDimensional];\n }", "public boolean isOpen(int row, int col) {\n return false;\n }", "public boolean isOpen(int row, int col) {\n if (row - 1 >= grid.length || col - 1 >= grid.length || row - 1 < 0 || col - 1 < 0) {\n throw new IllegalArgumentException(\"index is out of boundary.\");\n }\n return grid[row - 1][col - 1];\n }", "public boolean isOpen(int i, int j) {\n boolean status = false;\n if (!checkIndex(i, j))\n throw new IndexOutOfBoundsException(\"invalid index i or j for grid site\");\n if (mGrid[i - 1][j - 1]) {\n status = true;\n }\n return status;\n }", "public void open(int row, int col){\n\t\tint index= transformInput(row, col);\n\t\tif(openSites[index]){ //returns if already open\n\t\t\treturn;\n\t\t}\n\t\t//set site as opened\n\t\topenSites[index]=true;\n\t\tnumOpen++;\n\t\t\n\t\t//Note if statement will truncate if out of index of array\n\t\tif( index+1 <= row*n && openSites[index+1]){ //right boundary\n\t\t\tgrid.union(index, index+1);\n\t\t}\n\t\tif( index-1 >= (row-1)*n +1 && openSites[index-1]){ //left boundary\n\t\t\tgrid.union(index, index-1);\n\t\t}\n\t\tif( index+n <= n*n && openSites[index+n]){ //bottom boundary\n\t\t\tgrid.union(index, index+n);\n\t\t}\n\t\tif( index-n >= 1 && openSites[index-n]){ //top boundary\n\t\t\tgrid.union(index, index-n);\n\t\t}\n\t}", "public boolean isOpen(int i, int j) {\n if (i <= 0 || i > siteDepth || j <= 0 || j > siteDepth)\n throw new IndexOutOfBoundsException();\n\n if (sites[i][j])\n return true;\n \n return false;\n }", "public boolean isOpen(int row, int col) {\n\t valid_rc(row, col);\r\n\t return open[index(row, col)];\r\n\t}", "public boolean isOpen(int row, int col) {\n if (row < 0 || row > n - 1 || col < 0 || col > n - 1) throw new java.lang.IndexOutOfBoundsException(\"isOpen():row or col out of bounds\");\n return grid[row][col];\n }", "public void open(int row, int col) {\n if (isOpen(row, col))\n return;\n int index = rowColToIndex(row, col);\n sitesIsOpen[index] = true;\n if (row == 1) {\n sitesUF.union(index, upSiteIndex);\n sidesFullUF.union(index, upSiteIndex);\n }\n\n\n //!this.percolates() this situation is prevent after percolates, every\n //sites open down will be full, but not fix 在下面按了几个后, 另一块区域联通是的,原来的区域 full 了\n if (row == side && !this.percolates())\n sitesUF.union(index, downSiteIndex);\n\n for (int aroundIndex : indexsAround(row, col)) {\n if (sitesIsOpen[aroundIndex]) {\n sitesUF.union(aroundIndex, index);\n sidesFullUF.union(aroundIndex, index);\n }\n }\n\n }", "public void open (int row, int col) {\n if (!isLegalCoordinate(row, col)) throw new IllegalArgumentException(\"Invalid input argument.\");\n if (isOpen(row, col)) return;\n\n siteStatus[row - 1][col - 1] = true;\n if (row == 1 || row == getSize()) connectWithVirtualSites(row, col);\n connectWithOpenSites(row, col);\n openSites++;\n }", "public void open(int row, int col)\n {\n validate(row, col);\n int oneDimensional = xyTo1D(row, col);\n if (grid[oneDimensional]) {\n return;\n }\n grid[oneDimensional] = true;\n connectToOpenNeighbors(oneDimensional);\n connectToVirtualSites(oneDimensional);\n openSites++;\n }", "public void open(int row, int col) {\n if (grid[row][col] == 0) {\n grid[row][col] = 1;\n openSites++;\n if (row == 0) {\n grid[row][col] = 2;\n fill(row,col);\n }\n if (row > 0 && grid[row - 1][col] > 0) {\n // wqu.union(ID[row - 1][col], ID[row][col]);\n if (isFull(row - 1, col))\n fill(row-1,col);\n }\n if (row < grid.length - 1 && grid[row + 1][col] > 0) {\n // wqu.union(ID[row + 1][col], ID[row][col]);\n if (isFull(row + 1, col))\n fill(row+1,col);\n }\n if (col > 0 && grid[row][col - 1] > 0) {\n // wqu.union(ID[row][col - 1], ID[row][col]);\n if (isFull(row, col - 1))\n fill(row,col-1);\n }\n if (col < grid.length - 1 && grid[row][col + 1] > 0) {\n // wqu.union(ID[row][col + 1], ID[row][col]);\n if (isFull(row, col + 1))\n fill(row,col+1);\n }\n }\n // open the site (row, col) if it is not open already\n }", "public boolean isOpen(int row, int col) {\n validateWithinBounds(row, col);\n return open[pos(row, col)];\n }", "public boolean isOpen(int row, int col) {\n validate(row, col);\n int k = mapping(row, col);\n return idOpen[k] == 1;\n }", "public boolean isOpen(int row, int col) {\n validate(row, col);\n return gridState[row-1][col-1];\n }", "public boolean isOpen(int row, int col) {\n\t\tif(row < 0 || row >= N || col < 0 || col >= N) \n\t\t\tthrow new IllegalArgumentException();\n\n\t\tint index = xyTo1D(row, col);\n\t\treturn grid[index];\n\t}", "public void open(int row, int col) {\n if (!validateCoordinates(row - 1, col - 1)) {\n throw new IllegalArgumentException(\"invalid (row, col) value provided\");\n }\n\n if (isOpen(row, col)) return;\n\n // 1 --> open site\n grid[row - 1][col - 1] = 1;\n openSitesCount++;\n\n // top neighbour\n if (row > 1 && isOpen(row - 1, col)) {\n performUnion(row, col, row - 1, col);\n }\n\n // right neighbour\n if (col <= gridSize - 1 && isOpen(row, col + 1)) {\n performUnion(row, col, row, col + 1);\n }\n\n // down neighbour\n if (row <= gridSize - 1 && isOpen(row + 1, col)) {\n performUnion(row, col, row + 1, col);\n }\n\n // left neighbour\n if (col > 1 && isOpen(row, col - 1)) {\n performUnion(row, col, row, col - 1);\n }\n\n // connect to virtual top site if newly opened\n // site is in row 1 (top row)\n if (row == 1) {\n int indexP = xyToOneD(row, col);\n wquf.union(indexP, virtualTopSiteIndex);\n wquf2.union(indexP, virtualTopSiteIndex);\n } else if (row == gridSize) {\n int indexP = xyToOneD(row, col);\n wquf2.union(indexP, virtualBottomSiteIndex);\n }\n }", "public boolean isFull(int row, int col){\n\t\tint index= transformInput(row,col);\n\t\treturn (grid.connected(0, index) && openSites[index]);\n\t}", "public void open(int row, int col) {\n if (isInBounds(row-1, col-1)) {\n if (isOpen(row, col)) return;\n if (row == 1) {\n mainObject.union(vsite1, coordinateConvertFrom(row, col));\n }\n if (row == size) {\n mainObject.union(vsite2, coordinateConvertFrom(row, col));\n }\n if (isInBounds(row - 1, col) && isOpen(row, col + 1)) {\n mainObject.union(coordinateConvertFrom(row, col), coordinateConvertFrom(row, col + 1));\n }\n if (isInBounds(row - 1, col - 2) && isOpen(row, col - 1)) {\n mainObject.union(coordinateConvertFrom(row, col), coordinateConvertFrom(row, col - 1));\n }\n if (isInBounds(row, col - 1) && isOpen(row + 1, col)) {\n mainObject.union(coordinateConvertFrom(row, col), coordinateConvertFrom(row + 1, col));\n }\n if (isInBounds(row - 2, col - 1) && isOpen(row - 1, col)) {\n mainObject.union(coordinateConvertFrom(row, col), coordinateConvertFrom(row - 1, col));\n }\n grid[row - 1][col - 1] = true;\n numberOfOpenSites++;\n }\n else {\n throw new java.lang.IllegalArgumentException(\"Bad Coordinates\");\n }\n\n }", "public boolean isOpen(int row, int col) {\n validate(row, col);\n return grid[row - 1][col - 1];\n }", "public boolean isFull(int row, int col) {\n if (!this.isValid(row, col))\n throw new IndexOutOfBoundsException(\"row or col is out of side length!\");\n\n // the site that is opened and connected to top row is treated as the full site\n return isOpen(row, col) && TOPBIT == (this.status[this.uf.find(getElement(row, col))] & TOPBIT);\n }", "public boolean isOpen(int row, int col) {\n return this.grid[row][col];\n }", "public boolean isOpen(int row, int col) {\n if (isInBounds(row-1, col-1)) {\n return grid[row-1][col-1];\n }\n else {\n throw new java.lang.IllegalArgumentException(\"Bad Coordinates\");\n }\n }", "public boolean isOpen(int row, int col)\r\n {\r\n if (row < 1 || row > dimension || col < 1 || col > dimension)\r\n throw new IllegalArgumentException(\"error range\");\r\n\r\n return grids[(row - 1) * dimension + col];\r\n }", "public boolean isOpen(int row, int col) {\n if(!inRange(row, col)) {\n throw new IllegalArgumentException();\n }\n return grid[row][col];\n }", "public boolean isFull(int row, int col) {\n if (!isOpen(row, col)) {\n return false;\n }\n\n int indexP = xyToOneD(row, col);\n return wquf.connected(indexP, virtualTopSiteIndex);\n }", "public boolean isOpen(int row, int col) {\n\t\tif (row < 1 || row > size || col < 1 || col > size) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\treturn grid[row - 1][col - 1];\n\t}", "public boolean isFull(int row, int col) {\n validate(row, col);\n if (!isOpen(row, col)) {\n return false;\n }\n if (row == 1) {\n return true;\n }\n int s = getThisSite(row, col);\n// uf.find()\n return uf.connected(s, vTop);\n }", "public void open(int row, int col) {\n validate(row, col);\n if (!isOpen(row, col)) {\n this.numOfOpenSites += 1;\n }\n grid[row - 1][col - 1] = true;\n int indexOfThisSite = site2index(row, col);\n\n // union adjacent open nodes\n if (row > 1 && isOpen(row - 1, col)) {\n this.uf.union(site2index(row - 1, col), indexOfThisSite);\n this.ufNoBottom.union(site2index(row - 1, col), indexOfThisSite);\n }\n\n if (row < this.n && isOpen(row + 1, col)) {\n this.uf.union(site2index(row + 1, col), indexOfThisSite);\n this.ufNoBottom.union(site2index(row + 1, col), indexOfThisSite);\n }\n\n if (col > 1 && isOpen(row, col - 1)) {\n this.uf.union(site2index(row, col - 1), indexOfThisSite);\n this.ufNoBottom.union(site2index(row, col - 1), indexOfThisSite);\n }\n\n if (col < this.n && isOpen(row, col + 1)) {\n this.uf.union(site2index(row, col + 1), indexOfThisSite);\n this.ufNoBottom.union(site2index(row, col + 1), indexOfThisSite);\n }\n }", "public boolean isOpen(final int row, final int col) {\n return grid[row - 1][col - 1];\n }", "public boolean isOpen(int row, int col){\n\t\tif (row <= 0 || col <= 0 || row > storeVar || col > storeVar)\n\t\t\tthrow new IllegalArgumentException(\"row index i out of bounds\");\n\n\t\treturn grid[(row-1)*storeVar + (col)];\n\t}", "public boolean isOpen(int row, int col) {\n checkRowAndCol(row, col);\n\n int index = getIndex(row, col);\n return opened[index];\n }", "public boolean isOpen(int row, int col) {\n HandleError(row, col);\n percolation.find(0); //不想加的但为了autograde\n return state[row][col] == 0 || state[row][col] == 2;\n }", "public boolean isFull(int row, int col) {\n validate(row, col);\n int indexOfThisSite = site2index(row, col);\n return isOpen(row, col) && this.ufNoBottom.connected(0, indexOfThisSite);\n }", "public boolean percolates() {\n if (openSitesCount < gridSize) {\n return false;\n }\n\n if (gridSize == 1 && openSitesCount == 1) {\n return true;\n }\n\n return wquf2.connected(virtualTopSiteIndex, virtualBottomSiteIndex);\n }", "public boolean isOpen(int row, int col){\n validateRowCol(row, col);\n return (grid[row][col] == false);\n }", "public boolean positionsOpen(int[][] spacesBetween, int[][] board) {\r\n\t\tboolean open=true;\r\n\t\tfor (int space=0; space<spacesBetween[0].length; space++) {\r\n\t\t\tif (board[spacesBetween[space][0]][spacesBetween[space][1]]>1) {\r\n\t\t\t\topen=false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn open;\r\n\t}", "public boolean isOpen(int row, int col) {\n if ((row > (size-1)) || (col > (size-1)) || (col < 0) || (row < 0)) {\r\n throw new java.lang.IndexOutOfBoundsException();\r\n }\r\n else if (grid[row][col] > 0) {\r\n return true;\r\n } else return false;\r\n }", "public void open(int row, int col){\n validateRowCol(row, col);\n if(grid[row][col]){\n grid[row][col] = false;\n numOpenSites++;\n if(row != 0 && isOpen(row - 1, col)) {\n uf.union(siteNum(row, col), siteNum(row - 1, col));\n tempUF.union(siteNum(row, col), siteNum(row - 1, col));\n }\n if(row != (gridSize-1) && isOpen(row+1, col)) {\n uf.union(siteNum(row, col), siteNum(row + 1, col));\n tempUF.union(siteNum(row, col), siteNum(row + 1, col));\n }\n if(col != 0 && isOpen(row, col-1)) {\n uf.union(siteNum(row, col), siteNum(row, col - 1));\n tempUF.union(siteNum(row, col), siteNum(row, col - 1));\n }\n if(col != (gridSize-1) && isOpen(row, col+1)) {\n uf.union(siteNum(row, col), siteNum(row, col + 1));\n tempUF.union(siteNum(row, col), siteNum(row, col + 1));\n }\n if(row == 0) {\n uf.union(siteNum(row, col), ufSize - 2);\n tempUF.union(siteNum(row, col), ufSize - 2);\n }\n if(row == (gridSize-1))\n uf.union(siteNum(row, col), ufSize - 1);\n\n }\n }", "private void connectWithOpenSites(int row, int col) {\n if (isLegalCoordinate(row - 1, col))// upper\n UF.union(getIndex(row - 1, col), getIndex(row, col));\n if (isLegalCoordinate(row, col - 1))// left\n UF.union(getIndex(row, col - 1), getIndex(row, col));\n if (isLegalCoordinate(row, col + 1))// right\n UF.union(getIndex(row, col + 1), getIndex(row, col));\n if (isLegalCoordinate(row + 1, col))// bottom\n UF.union(getIndex(row + 1, col), getIndex(row, col));\n }", "public void open(final int row, final int col) {\n checkBounds(row, col);\n if (!isOpen(row, col)) {\n numOpen++;\n grid[row - 1][col - 1] = true;\n int oneDsite = xyTo1D(row, col);\n // above\n if (row + 1 <= size && isOpen(row + 1, col)) {\n // StdOut.println(\"connecting [\"+row+\", \"+col+\"] with\n // [\"+(row + 1)+\", \"+col+\"]\");\n wqf.union(oneDsite, xyTo1D(row + 1, col));\n }\n // right\n if (col + 1 <= size && isOpen(row, col + 1)) {\n wqf.union(oneDsite, xyTo1D(row, col + 1));\n }\n // below\n if (row - 1 >= 1 && isOpen(row - 1, col)) {\n wqf.union(oneDsite, xyTo1D(row - 1, col));\n }\n // left\n if (col - 1 >= 1 && isOpen(row, col - 1)) {\n wqf.union(oneDsite, xyTo1D(row, col - 1));\n }\n }\n }", "public void open(int row, int col) {\n if (isOpen(row, col)) {\n return;\n }\n grid[row][col] = true;\n openSites++;\n int p1 = fromXYTo1D(row, col);\n for (int i = 0; i < rowOrder.length; ++i) {\n int newRow = row + rowOrder[i];\n int newCol = col + colOrder[i];\n if (inGrid(newRow, newCol) && isOpen(newRow, newCol)) {\n int p2 = fromXYTo1D(newRow, newCol);\n uf.union(p1, p2);\n }\n }\n }", "public boolean isOpen(int i, int j) {\n\t\tvalidate(i, j);\n\t\treturn grid[i - 1][j - 1];\n\t}", "public boolean isOpen(int i, int j) {\n\t\tif (!isInside(i, j))\n\t\t\treturn false;\n\t\treturn grid[getPosition(i, j)];\n\n\t}", "public boolean isOpen(int i, int j) throws Exception { \n validation(i, j);\n if (lattice[xyTo1D(i, j)])\n return true;\n return false;\n }", "public void open(int row, int col) {\n \t if (row < 0 || row > n - 1 || col < 0 || col > n - 1) throw new java.lang.IndexOutOfBoundsException(\"open():row or col out of bounds\");\n if (!isOpen(row, col)) {\n grid[row][col] = true;\n openSites++;\n int comp1 = n*row + col;\n if (row == 0) myUF.union(comp1, n*n);\n if (row == n - 1 ) myUF.union(comp1, n*n + 1);\n if (row + 1 < n && grid[row+1][col]) myUF.union(comp1, comp1 + n);\n if (row - 1 >= 0 && grid[row-1][col]) myUF.union(comp1, comp1 - n);\n if (col + 1 < n && grid[row][col+1]) myUF.union(comp1, comp1 + 1);\n if (col - 1 >= 0 && grid[row][col-1]) myUF.union(comp1, comp1 - 1);\n } \n }", "private native static boolean is_open_in_window(int clientSite);", "public void open(int row, int col)\r\n {\r\n if (row < 1 || row > dimension || col < 1 || col > dimension)\r\n throw new IllegalArgumentException(\"error range\");\r\n\r\n if (isOpen(row, col)) return;\r\n else\r\n {\r\n grids[(row - 1) * dimension + col] = true;\r\n openSites++;\r\n }\r\n // up\r\n if (row - 1 > 0)\r\n {\r\n if(isOpen(row - 1, col)) uf.union((row - 1)*dimension + col, (row -2 )*dimension + col);\r\n }\r\n else uf.union((row -1)*dimension + col, 0);\r\n // down\r\n if (row + 1 <= dimension)\r\n {\r\n if (isOpen(row + 1, col)) uf.union((row - 1) * dimension + col, row * dimension + col);\r\n }\r\n else uf.union((row -1)*dimension + col, dimension * dimension + 1);\r\n // left\r\n if (col - 1 > 0)\r\n {\r\n if (isOpen(row, col - 1)) uf.union((row - 1)*dimension + col, (row - 1)*dimension + col - 1);\r\n }\r\n // right\r\n if (col + 1 <= dimension)\r\n {\r\n if (isOpen(row, col + 1)) uf.union((row - 1)*dimension + col, (row - 1)*dimension + col + 1);\r\n }\r\n }", "public void open(int row, int col){\n\t\tif (row <= 0 || col <= 0 || row > storeVar || col > storeVar) \n\t\t\tthrow new IllegalArgumentException(\"row index i out of bounds\");\n\n\t\t// System.out.println(\"\\n We're opening again! \");\n\t\tint currIndex = ((row-1)*storeVar) + col;\n\n\t\tif (isOpen(row, col)) return;\n\t\topenSites++;\n\t\tgrid[currIndex] = true;\n\n\n\t\tif (currIndex < storeVar+1 ){\n\t\t\tunionFind.union(currIndex, virtualTop);\n\t\t\tbackwash.union(currIndex, virtualTop);\n\t\t\tfullgrid[currIndex] = true;\n\t\t}\n\t\tif ((currIndex < grid.length - 1) && (currIndex >= (grid.length - 1 - storeVar))){\n\t\t\t// System.out.println(\"Confirmed that bottom is connected\");\n\t\t\tunionFind.union(currIndex, virtualBottom);\n\t\t}\n\n\t\t\n\t\tif(row + 1 <= storeVar && isOpen(row + 1, col)){\n\t\t\tif (!unionFind.connected(currIndex, currIndex+storeVar)) {\n\t\t\t\tunionFind.union(currIndex, currIndex+storeVar);\n\t\t\t\tbackwash.union(currIndex, currIndex+storeVar);\n\t\t\t}\n\t\t}\n\t\tif(col + 1 <= storeVar && isOpen(row , col+1)){\n\t\t\tif (!unionFind.connected(currIndex, currIndex+1)) {\n\t\t\t\tunionFind.union(currIndex, currIndex+1);\n\t\t\t\tbackwash.union(currIndex, currIndex+1);\n\t\t\t}\n\t\t}\n\t\tif(row - 1 > 0 && isOpen(row - 1, col)){\n\t\t\tif (!unionFind.connected(currIndex, currIndex-storeVar)){ \n\t\t\t\tunionFind.union(currIndex, currIndex-storeVar);\n\t\t\t\tbackwash.union(currIndex, currIndex-storeVar);\n\t\t\t}\n\t\t}\n\t\tif(col - 1 > 0 && isOpen(row , col-1)){\n\t\t\tif (!unionFind.connected(currIndex, currIndex-1)){\n\t\t\t unionFind.union(currIndex, currIndex-1);\n\t\t\t backwash.union(currIndex, currIndex-1);\n\t\t\t}\n\t\t}\n\t}", "public boolean isFull(int row, int col) {\n if (isOpen(row, col)) {\n return mainObject.connected(vsite1, coordinateConvertFrom(row, col));\n }\n return false;\n }", "public void open(int row, int col) {\n\n }", "public void open(int i, int j) {\n if (!checkIndex(i, j))\n throw new IndexOutOfBoundsException(\"invalid index i or j for grid site\");\n\n if (isOpen(i, j)) return;\n\n mGrid[i - 1][j - 1] = true;\n ++mOpenSites;\n\n // Neither Topmost or bottom most rows\n\n int idxFrom = xyTo1D(i, j);\n\n if (checkIndex(i - 1, j)) {\n if (isOpen(i - 1, j)) mUnionFind.union(idxFrom, xyTo1D(i - 1, j));\n }\n if (checkIndex(i + 1, j) && (i != mGridSize)) {\n if (isOpen(i + 1, j)) mUnionFind.union(idxFrom, xyTo1D(i + 1, j));\n }\n if (checkIndex(i, j + 1)) {\n if (isOpen(i, j + 1)) mUnionFind.union(idxFrom, xyTo1D(i, j + 1));\n }\n if (checkIndex(i, j - 1)) {\n if (isOpen(i, j - 1)) mUnionFind.union(idxFrom, xyTo1D(i, j - 1));\n }\n // 1: top row\n if (i == 1) {\n int idx = xyTo1D(i, j);\n mUnionFind.union(0, idx);\n\n }\n // 2: bottom row\n if (i == mGridSize && (!percolates())) {\n int idx = xyTo1D(i, j);\n mUnionFind.union(idx, mGridSize * mGridSize + 1);\n }\n\n\n }", "public void open(int row, int col) {\n check(row, col);\n if (!isOpen(row, col)) {\n sites[row - 1][col - 1] = true;\n openSites++;\n\n int index = index(row, col);\n if (row == gridDimension) {\n unionFind.union(index, bottomRoot);\n\n if (gridDimension == 1){\n unionFind.union(index, topRoot);\n fullSites.union(index, topRoot);\n }\n else if (isOpen(row - 1, col)) {\n unionFind.union(index(row - 1, col), index);\n fullSites.union(index(row - 1, col), index);\n }\n }\n else if (row == 1) {\n unionFind.union(index, topRoot);\n fullSites.union(index, topRoot);\n\n if (isOpen(row + 1, col)) {\n unionFind.union(index(row + 1, col), index);\n fullSites.union(index(row + 1, col), index);\n }\n }\n\n else {\n if (isOpen(row + 1, col)) {\n unionFind.union(index(row + 1, col), index);\n fullSites.union(index(row + 1, col), index);\n }\n\n if (isOpen(row - 1, col)) {\n unionFind.union(index(row - 1, col), index);\n fullSites.union(index(row - 1, col), index);\n }\n }\n\n\n\n if (col > 1) {\n if (isOpen(row, col - 1)) {\n unionFind.union(index(row, col - 1), index);\n fullSites.union(index(row, col - 1), index);\n }\n }\n\n if (col < gridDimension) {\n if (isOpen(row, col + 1)) {\n unionFind.union(index(row, col + 1), index);\n fullSites.union(index(row, col + 1), index);\n }\n }\n }\n }", "public boolean isOpen(int i, int j){\n \tif(i<=0 || i>this.gridLength || j<=0 || j>this.gridLength){\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n \treturn this.idGrid[(i-1)*this.gridLength + j] == true;\n }", "public boolean isOpen(int i, int j){\n\t\t\n\t\tif (i <= 0 || i > N) throw new java.lang.IndexOutOfBoundsException(\"row index i out of bounds\");\n\t\tif (j <= 0 || j > N) throw new java.lang.IndexOutOfBoundsException(\"row index j out of bounds\");\n\t\t\t\t\n\t\treturn !idGrid[i-1][j-1];\n\t}", "public boolean isFull(int row, int col) {\n if(!inRange(row, col)) {\n throw new IllegalArgumentException();\n }\n // A site i full if it is connected to the top\n return UF2.connected(((row-1)*size + col), top);\n }", "public boolean isFull(int row, int col) {\n check(row, col);\n int index = index(row, col);\n return fullSites.connected(index, topRoot);\n }", "private boolean isInGameWindow(){\n if (currPos.x > Window.getWidth() || currPos.y > Window.getHeight()){\n return false;\n }\n return true;\n }", "public boolean isOpen(int i, int j) throws IndexOutOfBoundsException {\r\n\t\tif (i > N || i < 1)\r\n\t\t\tthrow new IndexOutOfBoundsException(\"row index i out of bounds\");\r\n\t\tif (j > N || j < 1)\r\n\t\t\tthrow new IndexOutOfBoundsException(\"column index j out of bounds\");\r\n\t\treturn grid[i - 1][j - 1];\r\n\t}", "private void connectToOpenNeighbors(int currentSite)\n {\n int aboveSite = currentSite - gridSize;\n int leftOfSite = currentSite - 1;\n int rightOfSite = currentSite + 1;\n int belowSite = currentSite + gridSize;\n\n if (aboveSite > 0) {\n if (grid[aboveSite]) {\n uf.union(currentSite, aboveSite);\n }\n }\n\n if (rightOfSite % gridSize != 0 && rightOfSite < totalSites) {\n if (grid[rightOfSite]) {\n uf.union(currentSite, rightOfSite);\n }\n }\n\n if (leftOfSite % gridSize != gridSize-1 && leftOfSite > 0) {\n if (grid[leftOfSite]) {\n uf.union(currentSite, leftOfSite);\n }\n }\n\n if (belowSite < totalSites) {\n if (grid[belowSite]) {\n uf.union(currentSite, belowSite);\n }\n }\n }", "public void open(int row, int col) {\n // validate the indices of the site\n validate(row, col);\n int k = mapping(row, col);\n if (idOpen[k] == 0) {\n idOpen[k] = 1;\n openCount++;\n if (row == count) //&& uf.find(k) == uf.find(count * count))\n uf.union(count * count + 1, k);\n if (row == 1)\n uf.union(count * count, k);\n }\n\n // perform sequence of union-find operations that links the site in question to its open neighbors (multiple UF can happen in one call)\n if (idOpen[moveDown(row, col)] == 1)\n uf.union(k, moveDown(row, col));\n if (idOpen[moveUp(row, col)] == 1)\n uf.union(k, moveUp(row, col));\n if (idOpen[moveRi(row, col)] == 1)\n uf.union(k, moveRi(row, col));\n if (idOpen[moveLe(row, col)] == 1)\n uf.union(k, moveLe(row, col));\n }", "public boolean isFull(int row, int col) {\n validate(row, col);\n return isOpen(row, col) &&\n (gridGraphVirtualTop.find(virtualTopGridIndex) == gridGraphVirtualTop.find(convertRowColToIndex(row, col)));\n }", "public void open(int i, int j) {\n if (isOpen(i, j))\n return;\n\n int element = ((i-1)*siteDepth) + (j-1) + 1;\n\n if (i == 1) {\n // connect the top row to its virtual node\n wuf.union(virtTop, element);\n wufFull.union(virtTop, element);\n }\n\n if (i == siteDepth) {\n // connect the bottom row to its virtual node\n wuf.union(element, virtBottom);\n }\n\n // connect neighbors if they are open\n if ((i != 1) && isOpen(i - 1, j)) {\n wuf.union(element, element - siteDepth);\n wufFull.union(element, element - siteDepth);\n }\n\n if ((i != siteDepth) && isOpen(i + 1, j)) {\n wuf.union(element, element + siteDepth);\n wufFull.union(element, element + siteDepth);\n }\n \n if ((j != 1) && isOpen(i, j - 1)) {\n wuf.union(element, element - 1);\n wufFull.union(element, element - 1);\n }\n\n if ((j != siteDepth) && isOpen(i, j + 1)) {\n wuf.union(element, element + 1);\n wufFull.union(element, element + 1);\n }\n\n // Open the current site\n sites[i][j] = true;\n\n if (!hasPercolated && wuf.find(element) == wuf.find(virtTop))\n wufFull.union(virtTop, element);\n\n }", "public boolean isFull(int row, int col)\n {\n int oneDimensional = xyTo1D(row, col);\n return uf.connected(oneDimensional, topVirtualSite);\n }", "public void open(int i, int j){ // open site (row i, column j) if it is not already\n\t\tif (i <= 0 || i > N) throw new java.lang.IndexOutOfBoundsException(\"row index i out of bounds\");\n\t\tif (j <= 0 || j > N) throw new java.lang.IndexOutOfBoundsException(\"row index j out of bounds\");\n\t\t\n\t\tif(idGrid[i-1][j-1] && !isPathological){\n\t\t\t\n\t\t\tidGrid[i-1][j-1] = false;\n\t\t\t\n\t\t//\tStringBuilder builder = new StringBuilder();\n\t\t\t\n\t\t\tif(!idGrid[i-1][max(0, j-2)]){ // Checking to the left\n\t\t\t\tquickUnion.union(j + (i-1)*N, max(1,j-1) + (i-1)*N);\n\t\t\t\tquickUnionBackwash.union(j + (i-1)*N, max(1,j-1) + (i-1)*N);\n\t\t\t//\tbuilder.append(\"Left \");\n\t\t\t}\n\t\t\t\n\t\t\tif(!idGrid[i-1][min(N-1, j)]){ // Checking to the right\n\t\t\t\tquickUnion.union(j + (i-1)*N, min(N,j+1) + (i-1)*N);\n\t\t\t\tquickUnionBackwash.union(j + (i-1)*N, min(N,j+1) + (i-1)*N);\n\t\t\t//\tbuilder.append(\"Right \");\n\t\t\t}\n\t\t\t\n\t\t\tif(!idGrid[max(0, i-2)][j-1]){ // Checking upwards\n\t\t\t\tquickUnion.union(max(0,i-2)*N + j, (i-1)*N + j);\n\t\t\t\tquickUnionBackwash.union(max(0,i-2)*N + j, (i-1)*N + j);\n\t\t\t//\tbuilder.append(\"Up \");\n\t\t\t}\n\t\t\t\n\t\t\tif(!idGrid[min(N-1, i)][j-1]){ // Checking downwards\n\t\t\t\tquickUnion.union(min(N-1,i)*N + j, (i-1)*N + j);\n\t\t\t\tquickUnionBackwash.union(min(N-1,i)*N + j, (i-1)*N + j);\n\t\t\t//\tbuilder.append(\"Down \");\n\t\t\t}\n\t\t\n\t\t\tif(i == 1){\n\t\t\t\tquickUnion.union((i-1)*N+j, 0);\n\t\t\t\tquickUnionBackwash.union((i-1)*N+j, 0);\n\t\t\t//\tbuilder.append(\"Top \");\n\t\t\t}\n\t\t\tif(i == N){\n\t\t\t\tquickUnion.union((i-1)*N+j, N*N+1);\n\t\t\t//\tbuilder.append(\"Bottom\");\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(builder.toString());\n\t\t}else if(isPathological && idGrid[0][0]){\n\t\t\tidGrid[0][0] = false;\n\t\t\t\n\t\t}\n\t}", "public boolean checkOpen(float x, float y)\r\n/* 483: */ {\r\n/* 484:580 */ if (!tileWalkable(x, y)) {\r\n/* 485:582 */ return false;\r\n/* 486: */ }\r\n/* 487:585 */ AgentModel a = getAgentOnTile(x, y);\r\n/* 488:586 */ if ((a != null) || (((a instanceof DoorModel)) && (!((DoorModel)a).isOpen()))) {\r\n/* 489:588 */ return false;\r\n/* 490: */ }\r\n/* 491:591 */ return true;\r\n/* 492: */ }", "boolean hasGrid();", "public void open(int row, int col) {\n if (isOpen(row, col)) return;\n grid[row - 1][col - 1] = true;\n ++openSites;\n\n // Transform the row and the column into an appropriate index\n // because the quick union class uses a one-dimensional array.\n final int currentSiteIndex = toIndex(row, col);\n\n // The topmost row must be connected to the virtual top.\n if (row == 1) {\n mainUnion.union(virtualTopId, currentSiteIndex);\n backwashAwareUnion.union(virtualTopId, currentSiteIndex);\n }\n // The bottommost row must be connected to virtual the bottom.\n if (row == size) mainUnion.union(virtualBottomId, currentSiteIndex);\n\n // Connect all neighbors of the current site if and only if the neighbors are open.\n if (row > 1 && isOpen(row - 1, col)) {\n final int topNeighborIndex = toIndex(row - 1, col);\n mainUnion.union(topNeighborIndex, currentSiteIndex);\n backwashAwareUnion.union(topNeighborIndex, currentSiteIndex);\n }\n\n if (row < size && isOpen(row + 1, col)) {\n final int bottomNeighborIndex = toIndex(row + 1, col);\n mainUnion.union(bottomNeighborIndex, currentSiteIndex);\n backwashAwareUnion.union(bottomNeighborIndex, currentSiteIndex);\n }\n\n if (col > 1 && isOpen(row, col - 1)) {\n final int leftNeighborIndex = toIndex(row, col - 1);\n mainUnion.union(leftNeighborIndex, currentSiteIndex);\n backwashAwareUnion.union(leftNeighborIndex, currentSiteIndex);\n }\n\n if (col < size && isOpen(row, col + 1)) {\n final int rightNeighborIndex = toIndex(row, col + 1);\n mainUnion.union(rightNeighborIndex, currentSiteIndex);\n backwashAwareUnion.union(rightNeighborIndex, currentSiteIndex);\n }\n }", "public void open(int row, int col) {\n validate(row, col);\n if (isOpen(row, col)) {\n return;\n }\n \n int inputIndex = convertRowColToIndex(row, col);\n\n // Top connection required\n if (row == 1) {\n gridGraphVirtualTop.union(inputIndex, virtualTopGridIndex);\n gridGraphVirtualTopBottom.union(inputIndex, virtualTopGridIndex);\n \n }\n \n // Bottom connection required\n if (row == size) {\n gridGraphVirtualTopBottom.union(inputIndex, virtualBottomGridIndex);\n }\n\n gridState[row - 1][col - 1] = true;\n openGridCount++;\n \n checkAndConnect(inputIndex, row - 1, col); // top\n checkAndConnect(inputIndex, row, col - 1); // left\n checkAndConnect(inputIndex, row + 1, col); // bottom\n checkAndConnect(inputIndex, row, col + 1); // right\n }", "public void open(int i, int j) throws Exception { \n validation(i, j);\n if (!isOpen(i, j)) { // mark the site as open\n int xyTo1DTemp = xyTo1D(i, j);\n lattice[xyTo1DTemp] = true;\n \n // links the site in question to its open neighbors\n if (xyTo1DTemp % number != 0) // leftneighbor\n if (isOpen(i, j - 1)) { \n ufVirtual.union(xyTo1DTemp, xyTo1DTemp - 1);\n ufTrue.union(xyTo1DTemp, xyTo1DTemp - 1);\n }\n if ((xyTo1DTemp + 1) % number != 0) // right neighbor\n if (isOpen(i, j + 1)) { \n ufVirtual.union(xyTo1DTemp, xyTo1DTemp + 1);\n ufTrue.union(xyTo1DTemp, xyTo1DTemp + 1);\n }\n if (xyTo1DTemp - number >= 0) // up neighbor\n if (isOpen(i - 1, j)) { \n ufVirtual.union(xyTo1DTemp, xyTo1DTemp - number);\n ufTrue.union(xyTo1DTemp, xyTo1DTemp - number);\n }\n if (xyTo1DTemp + number <= SIZE - 1) // beneath neighbor\n if (isOpen(i + 1, j)) { \n ufVirtual.union(xyTo1DTemp, xyTo1DTemp + number);\n ufTrue.union(xyTo1DTemp, xyTo1DTemp + number);\n }\n }\n }", "public boolean isCellOpen(int row, int column) {\n return getCell(row, column).isFree();\n }", "public int isIsland(int row, int col){\n if(grid[row][col] == '0'){\n return 0;\n }\n //Otherwise there is an island here and we need to recursively\n //flood fill 0s to prevent future double-counts.\n floodFill(row, col);\n return 1;\n \n }", "public boolean isSquareVisited(int row, int col) {\n return playingBoard[row][col].isVisited();\n }", "public boolean isFull(int row, int col) {\n if (!isValidSite(row, col)) {\n throw new IllegalArgumentException(\"Illegal indices [\" + row + \"][\" + col + \"]\");\n }\n return this.quf.find((this.n * this.n) + 1) == this.quf.find(this.getSite(row, col));\n }", "public boolean open(){\n\t\tboolean allopen = true;\n\t\tfor (boolean element: open){\n\t\t\tif (element ==false)\n\t\t\t\tallopen = false;\n\t\t}\n\t\treturn allopen;\t\t\n\t}", "private boolean isInTwoPaneMode() {\n\t\t\n Log.i(TAG, \"DailySelfieMainActivity.isInTwoPaneMode entered\");\n\n\t\treturn findViewById(R.id.selfie_list) != null;\n\t}", "public void open(int row, int col) {\n rowAndColWithinBounds(row, col);\n if(isOpen(row, col)) return;\n int index = getIndex(row, col);\n openings[index] = true;\n openSites++;\n\n //connect up the virtual nodes if we are on the top or bottom rows\n if (row - 1 == 0) weightedUnion.union(0, index);\n\n int above = index - n;\n int below = index + n;\n int left = index - 1;\n int right = index + 1;\n if (above > 0 && openings[above]) weightedUnion.union(above, index);\n if (row < n && openings[below]) weightedUnion.union(below, index);\n if (col > 1 && openings[left]) weightedUnion.union(left, index);\n if (col < n && openings[right]) weightedUnion.union(right, index);\n }", "boolean isCellAlive(int x, int y);", "private boolean positionExists(int row, int column) {\n\t\treturn row >= 0 && row < rows && column >= 0 && column < columns;\n\t}", "public void open(int row, int col) {\n if ((row > (size-1)) || (col > (size-1)) || (col < 0) || (row < 0)) {\r\n throw new java.lang.IndexOutOfBoundsException();\r\n }\r\n else if (grid[row][col] == 0) { // if blocked\r\n int number;\r\n int min = row * size + col; // minimum index\r\n flowGrid[row * size + col] = min; // points at itself in the beginning\r\n boolean fullOrOpen;\r\n\r\n //Checking all sites around, to find the lowest number\r\n fullOrOpen = withinBounds(row - 1, col);\r\n if (fullOrOpen) {\r\n number = flowGrid[(row - 1) * size + col]; // takes the pointer at the location\r\n if (min > number) { // if pointer is lower than at it self\r\n min = number;\r\n }\r\n }\r\n fullOrOpen = withinBounds(row, col + 1);\r\n if (fullOrOpen) {\r\n number = flowGrid[row * size + (col + 1)];\r\n if (min > number) {\r\n min = number;\r\n }\r\n }\r\n fullOrOpen = withinBounds(row, col - 1);\r\n if (fullOrOpen) {\r\n number = flowGrid[row * size + col - 1];\r\n if (min > number) {\r\n min = number;\r\n }\r\n }\r\n fullOrOpen = withinBounds(row + 1, col);\r\n if (fullOrOpen) {\r\n number = flowGrid[(row + 1) * size + col];\r\n if (min > number) {\r\n min = number;\r\n }\r\n }\r\n\r\n\r\n //Checking all sites around and saving the new min\r\n fullOrOpen = withinBounds(row - 1, col);\r\n if (fullOrOpen) {\r\n number = flowGrid[(row - 1) * size + col]; // takes the pointer at the location\r\n flowGrid[number] = min; // the lowest index at current union takes points at the min\r\n }\r\n fullOrOpen = withinBounds(row, col + 1);\r\n if (fullOrOpen) {\r\n number = flowGrid[row * size + (col + 1)];\r\n\r\n flowGrid[number] = min;\r\n }\r\n fullOrOpen = withinBounds(row, col - 1);\r\n if (fullOrOpen) {\r\n number = flowGrid[row * size + col - 1];\r\n flowGrid[number] = min;\r\n }\r\n fullOrOpen = withinBounds(row + 1, col);\r\n if (fullOrOpen) {\r\n number = flowGrid[(row + 1) * size + col];\r\n flowGrid[number] = min;\r\n }\r\n\r\n NOpen += 1; // update number of open sites\r\n\r\n\r\n flowGrid[row * size + col] = min; // update new open site to its union lowest index\r\n checkAll();\r\n if (min<size) {\r\n grid[row][col]=2;\r\n }\r\n else {\r\n grid[row][col]=1;\r\n }\r\n }\r\n }", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "boolean isLocator();", "public boolean percolates()\n {\n return uf.connected(topVirtualSite, bottomVirtualSite);\n }", "public boolean isFull(int row, int col) {\n int index = rowColToIndex(row, col);\n return sidesFullUF.connected(index, upSiteIndex);\n// return sitesUF.connected(index, upSiteIndex);\n }", "public void open(int i, int j){\n\t\tif(i<=0 || i>this.gridLength || j<=0 || j>this.gridLength){\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\tint N = this.gridLength;\n\t\t\n\t\t/*opens argument site is previously unopened and also connects to neighboring open sites\n\t\twhile also updating its connectedness to the bottom row indices*/\n\t\tif(this.idGrid[(i-1)*N + j] == false){\n\t\t\tthis.idGrid[(i-1)*N + j] = true;\n\t\t\tboolean connectBottom = this.bottom[(i-1)*N + j];\n\t\t\tif(i-1>0){\n\t\t\t\tif(idGrid[(i-2)*N + j] == true){\n\t\t\t\t\tif(this.bottom[this.unionTest.find((i - 2)*N + j)] == true){\n\t\t\t\t\t\tconnectBottom = true;\n\t\t\t\t\t}\n\t\t\t\t\tunionTest.union((i-1)*N + j, (i-2)*N + j);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i+1<=this.gridLength){\n\t\t\t\tif(idGrid[(i)*N + j] == true){\n\t\t\t\t\tif(this.bottom[this.unionTest.find((i)*N + j)] == true){\n\t\t\t\t\t\tconnectBottom = true;\n\t\t\t\t\t}\n\t\t\t\t\tunionTest.union((i-1)*N + j, (i)*N + j);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(j-1>0){\n\t\t\t\tif(idGrid[(i-1)*N + j - 1] == true){\n\t\t\t\t\tif(this.bottom[(this.unionTest.find((i-1)*N + j - 1))] == true){\n\t\t\t\t\t\tconnectBottom = true;\n\t\t\t\t\t}\n\t\t\t\t\tunionTest.union((i-1)*N + j, (i-1)*N + j-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(j+1<=this.gridLength){\n\t\t\t\tif(idGrid[(i-1)*N + j + 1] == true){\n\t\t\t\t\tif(this.bottom[this.unionTest.find((i-1)*N + j + 1)] == true){\n\t\t\t\t\t\tconnectBottom = true;\n\t\t\t\t\t}\n\t\t\t\t\tunionTest.union((i-1)*N + j, (i-1)*N + j+1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//update root status\n\t\t\tif(this.bottom[this.unionTest.find((i-1)*N + j)] != true){\n\t\t\t\tthis.bottom[this.unionTest.find((i-1)*N + j)] = connectBottom;\n\t\t\t}\n\t\t}\n\t}", "private static Boolean checkForContinuousConnectivity()\n\t{\n\t\tint row=0;\n\t\tint column=0;\n\t\tBoolean floorFound=false;\n\n\t\tfor(int i=0; i<board.length; i++)\n\t\t{\n\t\t\tfor(int j=0; j<board[i].length; j++)\n\t\t\t{\n\t\t\t\tif(board[i][j]==Cells.FLOOR)\n\t\t\t\t{\n\t\t\t\t\trow=i;\n\t\t\t\t\tcolumn=j;\n\t\t\t\t\tfloorFound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (floorFound)\n\t\t\t\tbreak;\n\t\t}\n\n\t\tfor(int i=0; i<board.length; i++)\n\t\t{\n\t\t\tfor(int j=0; j<board[i].length; j++)\n\t\t\t{\n\t\t\t\tif(board[i][j]==Cells.FLOOR && !(_PF.canFindAWay(column, row, j, i)))\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "boolean isOpen();", "boolean isOpen();" ]
[ "0.7754441", "0.75874186", "0.75783134", "0.74479926", "0.73653704", "0.7302927", "0.72520834", "0.7126934", "0.71214455", "0.7098978", "0.6931014", "0.6876267", "0.6858768", "0.6840648", "0.68206966", "0.6800806", "0.6792481", "0.676979", "0.675235", "0.6752138", "0.6743873", "0.6743498", "0.67428136", "0.67350924", "0.67318213", "0.67147595", "0.67074114", "0.6700061", "0.6698952", "0.6656336", "0.6654101", "0.6645315", "0.66292936", "0.66209835", "0.66052365", "0.66008306", "0.6600349", "0.6572284", "0.65574694", "0.65562403", "0.65425676", "0.6508089", "0.6503094", "0.6484405", "0.6419334", "0.6415722", "0.6406107", "0.63539165", "0.63246113", "0.62971365", "0.6277009", "0.6276742", "0.62598884", "0.62510717", "0.6237014", "0.622113", "0.62126726", "0.6172865", "0.61654717", "0.616101", "0.6157805", "0.614833", "0.6131869", "0.60726905", "0.60725975", "0.60675484", "0.605248", "0.60478574", "0.6047466", "0.60259163", "0.5968625", "0.59633946", "0.5958795", "0.59574616", "0.5951979", "0.5924359", "0.5916288", "0.591242", "0.59037894", "0.5888955", "0.5874613", "0.58437943", "0.58023393", "0.58008343", "0.5800523", "0.57951605", "0.5794163", "0.57754534", "0.5772488", "0.57539874", "0.57539874", "0.57539874", "0.57539874", "0.5740144", "0.5690589", "0.56876767", "0.5674673", "0.56546134", "0.5645436", "0.5645436" ]
0.75612235
3
is site (row, col) full?
public boolean isFull(int row, int col) { int index = rowColToIndex(row, col); return sidesFullUF.connected(index, upSiteIndex); // return sitesUF.connected(index, upSiteIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isFull(int row, int col)\n {\n int oneDimensional = xyTo1D(row, col);\n return uf.connected(oneDimensional, topVirtualSite);\n }", "public boolean isFull(int row, int col) {\n if(!inRange(row, col)) {\n throw new IllegalArgumentException();\n }\n // A site i full if it is connected to the top\n return UF2.connected(((row-1)*size + col), top);\n }", "public boolean isFull(int row, int col){\n\t\tint index= transformInput(row,col);\n\t\treturn (grid.connected(0, index) && openSites[index]);\n\t}", "public boolean isFull(int row, int col) {\n validate(row, col);\n int indexOfThisSite = site2index(row, col);\n return isOpen(row, col) && this.ufNoBottom.connected(0, indexOfThisSite);\n }", "public boolean isFull(int row, int col) {\n if (!isOpen(row, col)) {\n return false;\n }\n\n int indexP = xyToOneD(row, col);\n return wquf.connected(indexP, virtualTopSiteIndex);\n }", "public boolean isFull(int row, int col) {\n if (!this.isValid(row, col))\n throw new IndexOutOfBoundsException(\"row or col is out of side length!\");\n\n // the site that is opened and connected to top row is treated as the full site\n return isOpen(row, col) && TOPBIT == (this.status[this.uf.find(getElement(row, col))] & TOPBIT);\n }", "public boolean isFull(int row, int col) {\n validate(row, col);\n if (!isOpen(row, col)) {\n return false;\n }\n if (row == 1) {\n return true;\n }\n int s = getThisSite(row, col);\n// uf.find()\n return uf.connected(s, vTop);\n }", "public boolean isFull(int row, int col) {\n check(row, col);\n int index = index(row, col);\n return fullSites.connected(index, topRoot);\n }", "public boolean isFull(int row, int col) {\n if (!isValidSite(row, col)) {\n throw new IllegalArgumentException(\"Illegal indices [\" + row + \"][\" + col + \"]\");\n }\n return this.quf.find((this.n * this.n) + 1) == this.quf.find(this.getSite(row, col));\n }", "public boolean isFull(int row, int col){\n validateRowCol(row, col);\n return tempUF.connected(siteNum(row, col), ufSize - 2);\n }", "public boolean isFull(int row, int col) {\n if (isOpen(row, col)) {\n return mainObject.connected(vsite1, coordinateConvertFrom(row, col));\n }\n return false;\n }", "public boolean isFull(int row, int col) {\n validate(row, col);\n return isOpen(row, col) &&\n (gridGraphVirtualTop.find(virtualTopGridIndex) == gridGraphVirtualTop.find(convertRowColToIndex(row, col)));\n }", "public boolean isFull(int row, int col) {\n return false;\n }", "public boolean isFull(int row, int col) {\n if (row - 1 >= grid.length || col - 1 >= grid.length || row - 1 < 0 || col - 1 < 0) {\n throw new IllegalArgumentException(\"index is out of boundary.\");\n }\n if (grid.length == 1) {\n return isOpen(row, col);\n }\n return uf.find(ufindex(row, col)) == uf.find(grid.length * grid.length) && isOpen(row, col);\n }", "public boolean isFull(int row, int col) {\n validateWithinBounds(row, col);\n return quickUnion.connected(virtualTop, pos(row, col));\n }", "public boolean isFull() {\r\n return placeCounter == dimension * dimension;\r\n }", "public boolean isFull(int row, int col){\n\t\tif (row <= 0 || col <= 0 || row > storeVar || col > storeVar) \n\t\t\tthrow new IllegalArgumentException(\"row index i out of bounds\");\n\n\t\tint currIndex = ((row-1)*storeVar) + (col);\n\n\t\tif(backwash.connected(virtualTop, currIndex)){\n\t\t\tSystem.out.println(\"Filled in new \" + row + \"\\t\" + col);\n\t\t\tfullgrid[currIndex] = true;\n\t\t}\n\n\t\treturn fullgrid[currIndex];\n\t}", "public boolean isFull(int row, int col) {\n\t valid_rc(row, col);\r\n\t return uftest.connected(index(row, col), n*n);\r\n\t}", "public boolean isFull(int row, int col) {\n\t\tint id = (row - 1) * N + col;\n\t\tif(uf.isConnected(id, 0)){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean isFullWest()\r\n\t{\r\n\t\treturn (westElem == maxSize);\r\n\t}", "public boolean isFull(int i, int j) {\n if (!checkIndex(i, j))\n throw new IndexOutOfBoundsException(\"invalid index i or j for grid site\");\n int idx = xyTo1D(i, j);\n // is virtual top site connected to this site\n //return mUnionFind.connected(0, idx);\n return mUnionFind.find(0) == mUnionFind.find(idx);\n\n }", "public boolean isFull(int row, int col) {\n if (0 > row && row > size && 0 > col && col > size) {\n throw new IndexOutOfBoundsException();\n }\n int index = returnIndex(row, col);\n return weightedQuickUnionUF.connected(top, index);\n }", "public boolean isFull(final int row, final int col) {\n if (isOpen(row, col)) {\n // loop through first row to see\n for (int k = 0; k < size; k++) {\n if (wqf.connected(xyTo1D(row, col), k)) {\n return true;\n }\n }\n }\n return false;\n }", "@Override\n\tpublic boolean boardIsfull() {\n\t\treturn _columnFull.size() == _columnCount;\n\t}", "public static boolean isBoardFull() {\n\t\treturn spacesLeft == 0;\n\t}", "public boolean isFull(int row, int col) {\n\t\tif(row < 0 || row >= N || col < 0 || col >= N) \n\t\t\tthrow new IllegalArgumentException();\n\t\tint index = xyTo1D(row, col);\n\t\treturn isOpen(row, col) && nonPercolate.connected(index, N * N);\n\t}", "public boolean isFull(int row, int col) {\n if (row < 0 || row > n - 1 || col < 0 || col > n - 1) throw new java.lang.IndexOutOfBoundsException(\"isFull():row or col out of bounds\");\n if (isOpen(row, col) && myUF.connected(n*n, row*n + col))\n return true;\n return false;\n\n }", "public boolean isBoardFull() {\n\t\t// REPLACE NEXT LINE WITH YOUR IMPLEMENTATION\n\t\tint boardSize = getBoardSize();\n\t\t\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t\n\t\t\tfor (int j = 0; j < boardSize; j++) {\n\t\t\t\t\n\t\t\t\tif (isSpotBlank(i,j)) {\n\t\t\t\t\t\n\t\t\t\t\treturn false;\n\t\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\treturn true;\n\t\t\n\t}", "private boolean isFullSouth()\r\n\t{\r\n\t\treturn (southElem == maxSize);\r\n\t}", "public boolean isFull(int row, int col) {\n HandleError(row, col);\n if( isOpen(row, col) == false ) return false;\n if( state[row][col] == 2 ) return true;\n for(int i = 0; i < length; i++) {\n if(isOpen(0,i) && percolation.connected(translate(0, i),translate(row ,col))) {\n state[row][col] = 2;\n return true;\n }\n }\n return false;\n }", "public boolean isFull(int row, int col) {\n validate(row, col);\n int k = mapping(row, col);\n return uf.find(count * count) == uf.find(k);\n }", "public boolean isFull(int row, int col) {\n if (isOpen(row, col)) {\n int point = fromXYTo1D(row, col);\n return uf.connected(point, source) ||\n uf.connected(point, sink);\n }\n\n return false;\n }", "boolean hasGrid();", "private boolean full()\n {\n // Check whether every column is full one by one\n for (int col = 0; col < COLUMNS; col++ )\n {\n // If a column is not full, the check failed\n if (chessBoard[0][col] == 0)\n {\n return false;\n }\n }\n // If all columns are full, the check passes\n return true;\n }", "public boolean isFullBoard() {\n for(int x= 0; x<4; x++) {\n for(int y= 0; y<4; y++) {\n if(board[x][y]==0) {\n return false;\n }\n }\n }\n return true;\n }", "public boolean isFull(int row, int col)\r\n {\r\n if (row < 1 || row > dimension || col < 1 || col > dimension)\r\n throw new IllegalArgumentException(\"error range\");\r\n\r\n if (uf.find((row-1)*dimension + col) == uf.find(0)) return true;\r\n else return false;\r\n }", "public boolean isFull() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (getBoard()[i][j] == null)\n return false;\n }\n }\n return true;\n }", "public boolean isFull(int row, int col) {\n checkRowAndCol(row, col);\n\n int idx = getIndex(row, col);\n return weightedQuickUnionUF.connected(0, idx);\n }", "private boolean tileIsInbounds(int row, int col){\n\t\treturn row >= 0 && col >= 0\n\t\t\t\t&& row < board.length && col < board[0].length;\n\t}", "public static boolean isFull() {\n return (board[0][0] > 0 && board[0][1] > 0 && board[0][2] > 0\n && board[1][0] > 0 && board[1][1] > 0 && board[1][2] > 0\n && board[2][0] > 0 && board[2][1] > 0 && board[2][2] > 0\n && board[0][0] > 0 && board[1][0] > 0 && board[2][0] > 0\n && board[0][1] > 0 && board[1][1] > 0 && board[2][1] > 0\n && board[0][2] > 0 && board[1][2] > 0 && board[2][2] > 0\n && board[0][0] > 0 && board[1][1] > 0 && board[2][2] > 0\n && board[0][2] > 0 && board[1][1] > 0 && board[2][0] > 0);\n }", "public boolean isFull(int row, int col) {\n if ((row > (size-1)) || (col > (size-1)) || (col < 0) || (row < 0)) {\r\n throw new java.lang.IndexOutOfBoundsException();\r\n }\r\n else if (grid[row][col] == 2) {\r\n return true;\r\n } else return false;\r\n }", "public boolean isFull() {\n\t\tfor (int r = 0; r < 3; r++) {\n\t\t\tif (!isRowFull(r)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tover = true;\n\t\treturn true;\n\t}", "public boolean isBoardFull() {\r\n\r\n\t\t\r\n for (int i = 0; i < boardsize; i++) \r\n {\r\n for (int j = 0; j < boardsize; j++) \r\n {\r\n if (board[i][j] == -1) \r\n {\r\n return false;\r\n }\r\n }\r\n }\r\n\t\t\r\n return true;\r\n }", "public boolean isFull(int row, int col) {\n if (!isLegalCoordinate(row, col)) throw new IllegalArgumentException(\"Invalid input argument.\");\n return UF.isConnected(0, getIndex(row, col));\n }", "private boolean isScreenFull(){\n for(int i = 0; i < mPixelX.length; i++){\n if(i % 10 == 0 && mPixelX[i] == 0){\n return false;\n }\n }\n for(int i = 0; i < mPixelY.length; i++){\n if(i % 10 == 0 && mPixelY[i] == 0){\n return false;\n }\n }\n return true;\n }", "public boolean isFull ()\n {\n for (int row = 0; row < 3; row++)\n for (int column = 0; column < 3; column++)\n if (getGridElement(row, column).getPlayer() == Player.NONE)\n return false;\n\n return true;\n }", "@Override\n public boolean isInBounds(int row, int col) {\n return row >= 0 && row < grid.length && col >= 0 && col < grid[0].length;\n }", "public boolean isFull(int[][] grid) {\n for (int row = 0; row < 9; row++){\n for (int col = 0; col < 9; col++) {\n if (grid[row][col] == 0) return false;\n }\n }\n return true;\n }", "public boolean percolates() {\n if (openSitesCount < gridSize) {\n return false;\n }\n\n if (gridSize == 1 && openSitesCount == 1) {\n return true;\n }\n\n return wquf2.connected(virtualTopSiteIndex, virtualBottomSiteIndex);\n }", "private boolean isFull(){\n return cellSize == Max;\n }", "private boolean isInGrid(int row, int col) {\n return (row >= 1 && row <= size) && (col >= 1 && col <= size);\n }", "public boolean isFull(int i, int j) {\n if (i <= 0 || i > siteDepth || j <= 0 || j > siteDepth)\n throw new IndexOutOfBoundsException();\n\n int element = ((i-1)*siteDepth) + (j-1) + 1;\n\n if (wufFull.connected(element, virtTop))\n return true;\n\n return false;\n }", "public boolean percolates() {\n // bottom row (grid[n - 1][0] ... grid[n - 1][n - 1])\n for (int j = 1; j <= size; j++) {\n // StdOut.println(\"j: \"+j+\" isOpen: \"+ isOpen(size, j) +\n // \" isFull: \" + isFull(size, j));\n if (isFull(size, j)) {\n return true;\n }\n }\n return false;\n }", "public boolean isFull(int row, int col) {\n\t\tif (isOpen(row, col)) {\n\t\t\tint top = uf.find(0);\n\t\t\tint target = uf.find(getUnionIndex(row, col));\n\t\t\treturn top == target;\n\t\t}\n\t\treturn false;\n\t}", "private boolean isRowFull(int row) {\n int numBlocks = 0;\n\n for (int col = 0; col < 10; col++) {\n if (isCellOccupied(row, col)) {\n numBlocks++;\n }\n }\n\n return numBlocks == 10;\n }", "private boolean cell_in_bounds(int row, int col) {\n return row >= 0\n && row < rowsCount\n && col >= 0\n && col < colsCount;\n }", "private boolean boardIsFull() {\n int numberOfFieldsOnBoard = boardSize * boardSize;\n return (numberOfFieldsOnBoard == this.numberOfOccupiedFields);\n }", "public boolean isOpen(int row, int col) {\n check(row, col);\n return sites[row - 1][col - 1];\n }", "@Override\n public boolean isBoardFull() {\n //assume board is full\n boolean isFull = true;\n\n int i = 0;\n try {\n //if a column is not full => the board is not full and the loop ends\n while (isFull && i < NUM_COLS) {\n isFull = isColumnFull(i);\n i++;\n }\n } catch (IllegalColumnException e) {\n System.out.println(e + \" in MyGameState.java Method isBoardFull\");\n }\n\n return isFull;\n }", "@Override\r\n\t\t\tpublic boolean isFull() {\r\n\t\t\t\tfor(int row = 0; row +1< 6; row++) {\r\n\t\t\t\t\tfor(int col = 0; col < 7; col++) {\r\n\t\t\t\t\t\tString brick = board[row][col].getText().trim();\r\n\t\t\t\t\t\tif(brick.isEmpty()){\r\n\t\t\t\t\t\t\treturn false;\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\treturn true;\r\n\t\t\t}", "public int isIsland(int row, int col){\n if(grid[row][col] == '0'){\n return 0;\n }\n //Otherwise there is an island here and we need to recursively\n //flood fill 0s to prevent future double-counts.\n floodFill(row, col);\n return 1;\n \n }", "public boolean isFull(int x, int y){\r\n\t\tif (_squares[x][y] == null){\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public boolean percolates() {\n for (int i = 0; i < size; i++) {\r\n if (flowGrid[size * (size - 1) + i] < size) { // if any of the bottom row points at any of the index in the top row\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public boolean isFull(int i, int j) {\n\t\tvalidate(i, j);\n\t\treturn linearGridNoBackwash.connected(0, xyTo1D(i, j));\n\t}", "public boolean isFull() {\n\t\tboolean full = true;\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tfor (int j = 0; j < 9; j++) {\n\t\t\t\tif (board[i][j] == '-') {\n\t\t\t\t\tfull = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn full;\n\t}", "private boolean isFull() {\n for (int i = 0; i < 6; i++)\n for (int j = 0; j < 7; j++)\n if (cell[i][j] == ' ')\n return false; // At least one cell is not filled\n\n // All cells are filled\n return true;\n }", "public boolean isFull() {\n if(this.top==(size - 1)) {\n return true;\n }\n return false;\n }", "public boolean is_full(){\n return this.habitant.size() >= Constantes.HOUSE_FULL;\n }", "@Override\n public boolean isColumnFull(int col) throws IllegalColumnException {\n //handle exceptions\n if (col < 0 || col >= NUM_COLS) {\n throw new IllegalColumnException(col);\n }\n\n //assume the column is full\n boolean isFull = true;\n try {\n //if the top is empty => the column is empty\n isFull = getCounterAt(col, NUM_ROWS - 1) != EMPTY;\n } catch (IllegalRowException e) {\n System.out.println(e + \" in MyGameState.java Method isColumnFull\");\n } catch (IllegalColumnException e) {\n System.out.println(e + \" in MyGameState.java Method isColumnFull\");\n }\n\n return isFull;\n }", "private boolean inBounds(int row, int col)\n {\n return ((row >= 0) && (row < NUM_ROWS) &&\n (col >= 0) && (col < NUM_COLS)); \n }", "public void open(int row, int col) {\n validate(row, col);\n int thisSite = getThisSite(row, col);\n if (isOpen(row, col)) {\n return;\n }\n openSites += 1;\n openState[thisSite] = true;\n\n// if only one, open is percolate\n if (n == 1) {\n percolates = true;\n return;\n }\n if (row == 1) {\n// first row\n uf.union(vTop, thisSite);\n if (col == 1) {\n// the left top corner\n checkRight(row, col);\n } else if (col == n) {\n// the right top corner\n checkLeft(row, col);\n } else {\n// other in top\n checkRight(row, col);\n checkLeft(row, col);\n }\n checkBottom(row, col);\n } else if (row == n) {\n// last row\n// uf.union(vBottom, );\n bottom[col - 1] = getThisSite(row, col);\n if (col == 1) {\n// the left bottom corner\n checkRight(row, col);\n } else if (col == n) {\n// the right bottom corner\n checkLeft(row, col);\n } else {\n// other in bottom\n checkRight(row, col);\n checkLeft(row, col);\n }\n checkTop(row, col);\n } else {\n if (col == 1) {\n// the left col\n checkRight(row, col);\n } else if (col == n) {\n// the right col\n checkLeft(row, col);\n } else {\n// other in bottom\n checkRight(row, col);\n checkLeft(row, col);\n }\n checkTop(row, col);\n checkBottom(row, col);\n }\n// how to improve\n if (!percolates) {\n for (int i = 0; i < n; i++) {\n int site = bottom[i];\n int rowx = n;\n int colx = i + 1;\n if (site > 0 && isFull(rowx, colx)) {\n percolates = true;\n }\n }\n }\n }", "private boolean inBounds(int row, int col){\n if (row > -1 && row < 120 && col > -1 && col < 160)\n return true;\n return false;\n }", "public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }", "private boolean isBoardFull() {\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n if (boardState[i][j] != 'X' && boardState[i][j] != 'O') {\n return false; \n }\n }\n }\n return true; \n }", "protected static boolean isFull(final Board board)\r\n {\r\n for (int col = 0; col < board.getBoardKey()[0].length; col++)\r\n {\r\n for (int row = 0; row < board.getBoardKey().length; row++)\r\n {\r\n //if there is an empty space return false\r\n if (board.getKey(col, row) == Board.KEY_EMPTY)\r\n return false;\r\n }\r\n }\r\n \r\n //this board is full\r\n return true;\r\n }", "public boolean isOpen(int row, int col) {\n if (row < 1 || row > gridSize || col < 1 || col > gridSize) {\n throw new IllegalArgumentException(\"array index out of bounds\");\n }\n\n // 1 --> open site\n return grid[row - 1][col - 1] == 1;\n }", "public boolean checkBoardFull() {\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if (grid[i][j].getSymbol() == '-')\n return false;\n }\n }\n return true;\n }", "public abstract boolean currentSizeVSCageSize(int row, int col);", "public boolean isFull(){\r\n\t\tfor(int i = 0; i < boardSize; i++){\r\n\t\t\tif(board[i] == Box.EMPTY){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isColFull(int c) {\n\t\tfor (int r = 0; r < 3; r++) {\n\t\t\tif (board[r][c] == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean isOpen(int row, int col)\n {\n int oneDimensional = xyTo1D(row, col);\n return grid[oneDimensional];\n }", "public boolean isFull() {\n for (int r = 0; r < 6; r++) {\n for (int c = 0; c < 7; c++) {\n if (!hasPiece(r, c)) {\n return false;\n }\n }\n }\n return true;\n }", "private boolean full(Board board)\n {\n for (int i = 0; i < size; i++)\n for (int j = 0; j < size; j++)\n if (board.array[i][j] == EMPTY)\n return false;\n return true;\n }", "public boolean isTotallyOnGrid() {\n\t\t\tfor(int i=0; i<4; i++) {\n\t\t\t\tif(position.y + i >= 0)\n\t\t\t\t\treturn true; //everything from here down is on grid\n\t\t\t\t// this row is above grid so look for non-empty squares\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tif(squares[i][j])\n\t\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\tSystem.err.println(\"TetrisPiece.isTotallyOnGrid internal error\");\n\t\t\treturn false;\n\t\t}", "public boolean coordOnBoard(int row, int col, ArrayList<ArrayList<GamePiece>> board) {\n return (0 <= row && row < board.size()) && (0 <= col && col < board.get(0).size());\n }", "public void checkBlankSpace() {\n\t\tif (xOffset < 0) {\n\t\t\txOffset = 0;\n\t\t} else if (xOffset > handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth()) {\n\t\t\txOffset = handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth();\n\t\t}\n\t\t\n\t\tif (yOffset < 0) {\n\t\t\tyOffset = 0;\n\t\t} else if (yOffset > handler.getWorld().getHeight() * Tile.TILEHEIGHT - handler.getHeight()) {\n\t\t\tyOffset = handler.getWorld().getHeight() * Tile.TILEWIDTH - handler.getHeight();\n\t\t}\n\t}", "private boolean isEmpty(Point pos){\r\n Cells aux = model.getValueAt(pos);\r\n return (aux == Cells.BLACK_FLOOR);\r\n }", "public boolean isOpen(int row, int col) {\n if (row - 1 >= grid.length || col - 1 >= grid.length || row - 1 < 0 || col - 1 < 0) {\n throw new IllegalArgumentException(\"index is out of boundary.\");\n }\n return grid[row - 1][col - 1];\n }", "private boolean isOccupied(Location loc)\n\t{\n\t\treturn grid[loc.getRow()][loc.getCol()] != null;\n\t}", "public boolean isRowFull(int r) {\n\t\tfor (int c = 0; c < 3; c++) {\n\t\t\tif (board[r][c] == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public void open(int row, int col) {\n if(!inRange(row, col)) {\n throw new IllegalArgumentException();\n }\n if(!isOpen(row, col)) {\n numOpen++;\n grid[row][col] = true;\n if(row==1) {\n // Opening a site on top connects it to the virtual top\n UF.union(((row-1)*size + col), top);\n UF2.union(((row-1)*size + col), top);\n }\n if(row==size) {\n // Opening a site on bottom connects it to the virtual bottom\n UF.union(((row-1)*size + col), bottom);\n }\n // Connect the site being opened to all its open neighbours\n if(row-1>=1 && grid[row-1][col]) {\n UF.union(((row-1)*size + col), (((row-1)-1)*size + col));\n UF2.union(((row-1)*size + col), (((row-1)-1)*size + col));\n }\n if(row+1<=size && grid[row+1][col]) {\n UF.union(((row-1)*size + col), (((row+1)-1)*size + col));\n UF2.union(((row-1)*size + col), (((row+1)-1)*size + col));\n }\n if(col-1>=1 && grid[row][col-1]) {\n UF.union(((row-1)*size + col), ((row-1)*size + (col-1)));\n UF2.union(((row-1)*size + col), ((row-1)*size + (col-1)));\n }\n if(col+1<=size && grid[row][col+1]) {\n UF.union(((row-1)*size + col), ((row-1)*size + (col+1)));\n UF2.union(((row-1)*size + col), ((row-1)*size + (col+1)));\n }\n }\n }", "void colFull(int col);", "private boolean isOutOfBounds(int row, int col) {\n if (row < 0 || row >= this.getRows()) {\n return true;\n }\n else if (col < 0 || col >= this.getColumns()) {\n return true;\n }\n else {\n return false; // the placement is valid\n }\n }", "public boolean isFull() {\n return (this.top == this.stack.length);\n }", "private boolean isEmptyWest()\r\n\t{\r\n\t\treturn (westElem == 0);\r\n\t}", "public boolean inGrid(int row, int col) {\n return (row >= 0 && col >= 0) &&\n (row < cellNum && col < cellNum);\n }", "public boolean percolates(){\n \tif(this.gridLength == 1){\n \t\treturn isOpen(1,1);\n \t}\n \treturn (this.bottom[unionTest.find(0)]);\n }", "public void open(int row, int col) {\n if (grid[row][col] == 0) {\n grid[row][col] = 1;\n openSites++;\n if (row == 0) {\n grid[row][col] = 2;\n fill(row,col);\n }\n if (row > 0 && grid[row - 1][col] > 0) {\n // wqu.union(ID[row - 1][col], ID[row][col]);\n if (isFull(row - 1, col))\n fill(row-1,col);\n }\n if (row < grid.length - 1 && grid[row + 1][col] > 0) {\n // wqu.union(ID[row + 1][col], ID[row][col]);\n if (isFull(row + 1, col))\n fill(row+1,col);\n }\n if (col > 0 && grid[row][col - 1] > 0) {\n // wqu.union(ID[row][col - 1], ID[row][col]);\n if (isFull(row, col - 1))\n fill(row,col-1);\n }\n if (col < grid.length - 1 && grid[row][col + 1] > 0) {\n // wqu.union(ID[row][col + 1], ID[row][col]);\n if (isFull(row, col + 1))\n fill(row,col+1);\n }\n }\n // open the site (row, col) if it is not open already\n }", "public boolean isFull(int i, int j) {\n\t\tisInside(i, j);\n\t\treturn cellTree.connected(side * side, getPosition(i, j));\n\t}", "private boolean findNumSafeLandHelper(int[][] array, int[][] visited, int row, int col) {\n\t\tif (array[row][col] == 0 || visited[row][col] == 1) {\n\t\t\treturn false;\n\t\t}\n\t\t// if the currnet square is at the border and its not visited and its\n\t\t// not sea then it means this is a safe land\n\t\tif (row == 0 || (row == array.length - 1) || col == 0 || (col == array.length - 1)) {\n\t\t\treturn true;\n\t\t}\n\t\t// backtrack to all four directions and find is there any safe land path\n\t\t// present\n\t\tboolean isPathPresent = false;\n\t\tvisited[row][col] = 1;\n\t\t// check all four direction from the currnet square\n\t\tisPathPresent = (row > 0 ? findNumSafeLandHelper(array, visited, row - 1, col) : false)\n\t\t\t\t|| (row < (array.length - 1) ? findNumSafeLandHelper(array, visited, row + 1, col) : false)\n\t\t\t\t|| (col > 0 ? findNumSafeLandHelper(array, visited, row, col - 1) : false)\n\t\t\t\t|| (col < (array.length - 1) ? findNumSafeLandHelper(array, visited, row, col + 1) : false);\n\t\tvisited[row][col] = 0;\n\t\treturn isPathPresent;\n\t}" ]
[ "0.7681716", "0.7631272", "0.76122874", "0.7590442", "0.75096893", "0.75025594", "0.7496383", "0.7440837", "0.73897153", "0.72560376", "0.71796435", "0.7133236", "0.7058569", "0.7004438", "0.6931366", "0.68704224", "0.6866891", "0.68165463", "0.6816041", "0.68031615", "0.6744102", "0.6743507", "0.6718583", "0.6711381", "0.6706328", "0.67012066", "0.66892594", "0.6665426", "0.66448104", "0.6638531", "0.6636719", "0.65945196", "0.6540971", "0.6502139", "0.6471579", "0.64474434", "0.6444175", "0.64363384", "0.64350814", "0.6422805", "0.642115", "0.6412394", "0.6410168", "0.64022434", "0.63980335", "0.63877136", "0.6374547", "0.6374099", "0.6362762", "0.6356078", "0.6340254", "0.63301396", "0.63052624", "0.63028467", "0.6302208", "0.6264687", "0.6263515", "0.6263321", "0.62628865", "0.62565947", "0.6256339", "0.62376535", "0.6206229", "0.6204802", "0.6191739", "0.6179795", "0.61653537", "0.6141005", "0.6132254", "0.6130794", "0.61256945", "0.61205715", "0.61018217", "0.6096905", "0.60601234", "0.6059509", "0.60517347", "0.60389024", "0.60385555", "0.6025492", "0.60218257", "0.6011903", "0.5998859", "0.59945875", "0.5968008", "0.595229", "0.59496284", "0.5947491", "0.5940418", "0.5939992", "0.5936249", "0.59311914", "0.59001523", "0.5893001", "0.5891954", "0.58864546", "0.58791345", "0.5877169", "0.58585703", "0.5855675" ]
0.7452044
7
does the system percolate?
public boolean percolates() { return sitesUF.connected(upSiteIndex, downSiteIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void COPower(){\r\n COP = true;\r\n }", "@Override\n\tpublic void cook() {\n\t\tSystem.out.println(\"Cooking....\\n\");\n\t}", "public void notificate() {\nSystem.out.println(\"Comman for all\");\r\n\t}", "public void plum() {\n plum = true;\n }", "public void act() \n {\n verificaClique();\n }", "public void crunch(){\n cpuBurstTime--;\n rem--;\n }", "public boolean cp() {\n return false;\n }", "void z_piracy()\n {\n //branch (!f_setup.piracy);\n\n }", "public boolean percolates() {\n return false;\n }", "private void brewCoffeeGrinds() {\r\n LOG.debug( \"Brewing coffee grinds\" );\r\n }", "private void promote() {\r\n //promote gives more money\r\n increment();\r\n }", "@Override\n\tpublic void compete() {\n\t\tSystem.out.println(\"Pawan is competing as a swimming Athlete \");\n\t\t\n\t}", "@Override\r\n\tvoid poop() {\n\t\tSystem.out.println(\"stinky\");\r\n\t}", "protected void drink() {\n\t\tSystem.out.println(\"Ape drinking\");\n\t}", "public void preempt()\n\t{\n\t}", "public void affichage() {\n if (blanc){\n System.out.print(\"Cb\");\n }\n else{\n System.out.print(\"Cn\");\n }\t\t\n }", "public void cheat() {\r\n announce( \"cheat\" );\r\n }", "public void perder() {\n // TODO implement here\n }", "public void act1()\r\n {\r\n super.act1();\r\n isPhasing = !isPhasing;\r\n }", "@Override\n public void perish() {\n \n }", "public boolean activate() { //if true continue to execute\n\n if (Inventory.getCount(PowerFletch.LOG) >= 1) {\n System.out.println(\"cutting activated\");\n\n return true;\n }\n\n return false;\n }", "@Override\n\tpublic void DoGoToCashier() {\n\t\t\n\t}", "public void superCOPower(){\r\n SCOP = true;\r\n }", "boolean isCrouching();", "public void purr() {\n\t\tSystem.out.println(\"Brrrrrrrrrrrrr\");\n\t}", "private final void maintain(){\n\t\tif(host.getStrength()>MAINTENANCE_COST){\n\t\t\thost.expend(MAINTENANCE_COST);\n\t\t}\n\t\telse{\n\t\t\tkill();\n\t\t}\n\t}", "final void checkForComodification() {\n\t}", "boolean hasToForeman();", "public void turnOnCooler() {\n oilPompController.turnPompsOn();\n breakController.turnOff();\n mainPowerController.turnOn();\n supportPowerController.turnOn();\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n System.out.println(\"Waiting to stand up was interrupted.\");\n }\n supportPowerController.turnOff();\n System.out.println(\"System is running.\");\n }", "public void interactWhenSteppingOn() {\r\n\t\t\r\n\t}", "@Override\n\tpublic long procount() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void cry() \n\t{\n\t\tSystem.out.println(\"喵喵喵\");\n\t\t\n\t}", "public boolean doPowerUpStuff() {\n System.out.println(\"* Performing robot stuff that we would do on power up.\");\n // Home motors, move stuff to starting position, etc.\n // System.out.println(\"Robot wheelbase in inches: \" + m_robotGeometry.wheelbaseInches);\n return true;\n }", "private void pump_water() {\n\t\t\r\n\t}", "public boolean isClimbing ( ) {\n\t\treturn extract ( handle -> handle.isClimbing ( ) );\n\t}", "public int thunderclap();", "public void credit(){\n\t\tSystem.out.println(\"hsbc --- credit\");\n\t}", "public void baocun() {\n\t\t\n\t}", "public boolean percolates() {\n // The system percolates if top and bottom are connected\n return UF.connected(top, bottom);\n }", "public void power() {\r\n\t\tpowerOn = !powerOn;\r\n\t}", "static void perform_cpo(String passed){\n\t\tint type = type_of_cpo(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tcall_when_parity_not(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "private boolean Verific() {\n\r\n\treturn true;\r\n\t}", "public boolean percolates() {\n return this.isPercolated;\n }", "public boolean percolates() {\n return percolates;\n }", "@Override\n\tpublic void cookAtHome() {\n\t\t\n\t}", "protected boolean processSeeksCleared(){return false;}", "void comer() {\n\t\tSystem.out.println(\"comiendo\");\n\t}", "public void power()\r\n {\r\n powerOn = true;\r\n }", "public static void main(String[] args) {\n\t\t\tSystem.out.println(\"Hola Mundo o/\");\n\t\t\t\n\t\t\tint i = 0;\n\t\t\tint nota = 0;\n\t\t\tboolean copia = true;\n\t\t\t\n\t\t\tdo{\n\t\t\tSystem.out.println(\"Tu nota es a\" + nota);\t\n\t\t\t\tif(i>20)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}while(copia);\n\t\t\tSystem.out.println(\"Wiiiiii\");\n\t}", "public void pourCoffeeImp() {\n\t\tSystem.out.println(\"加奶咖啡\");\n\t}", "boolean isConsomme();", "public static void main(String[] args){\n Percolation p = new Percolation(4);\n p.open(0, 1);\n System.out.println(p.percolates());\n p.open(1, 1);\n System.out.println(p.percolates());\n p.open(2, 1);\n System.out.println(p.percolates());\n p.open(3, 1);\n System.out.println(p.percolates());\n }", "public void thrash();", "private void canRepair(boolean b) {\n\t\t\n\t}", "private boolean startScouting(){\n\t\t// calculate motivation to forage based on amount of food in hive\n\t\tdouble motivation = 1 - (hive.food/hive.foodCapacity);\n\t\t\n\t\t// calculate motivation to follow dance based on amount of dances\n\t\tdouble danceFactor = (1-Math.exp((-1/colonySize)*hive.dancingBees.size()));\n\t\t\n\t\t// calculate whether or not bee should scout\n\t\tif(RandomHelper.nextDoubleFromTo(0,1) < scoutProb*motivation + \n\t\t\t\t(1-scoutProb)*motivation*(1-danceFactor)*scoutProb){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// otherwise follow a dance\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void offMachine() {\n\t\t System.out.println(\"Off the machine when the cook is done \");\r\n\t}", "void cook(Food food) {\n //cook in pressure cooker\n }", "@Override\n\tpublic void cry() {\n\t\tSystem.out.println(\"黄种人-哭\");\n\t}", "public void swim() {\n\t\tSystem.out.println(\"All the ducks can swim. This is an unchanged behavior for all ducks\");\n\t}", "public void charge() {\n\t\t\tSystem.out.println(\"Battery is charging\");\n\t\t}", "static void perform_cp(String passed){\n\t\tint type = type_of_cp(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tcall_when_sign_not(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\tpublic void operate() {\n\t\tSystem.out.println(\"이동중 연산을 해요!\");\n\t}", "public void evolve() {\n\t\tfurniturePriority++;\r\n\t}", "public void credit() {\n\t\tSystem.out.println(\"HSBC---credit\");\n\t}", "public void credit() {\n\t\tSystem.out.println(\"HSBC---credit\");\n\t}", "@Test\n void cupTesting() {\n Assertions.assertFalse(machine.isCupPositioned());\n Assertions.assertFalse(machine.removeCup());\n\n Assertions.assertDoesNotThrow(() -> machine.positionCup());\n\n Assertions.assertTrue(machine.removeCup());\n Assertions.assertFalse(machine.isCupPositioned());\n machine.setCupPositioned(true);\n Assertions.assertTrue(machine.isCupPositioned());\n\n }", "public boolean commutes(){\n\t\treturn false;\n }", "public int invokeCutMode()\n{\n \n return(0);\n\n}", "public synchronized int pencil() throws InterruptedException {\n\t\tThread.currentThread().destroy();\n\t\treturn 2;\n\t}", "@Override\r\n\tpublic void cookChicken(int noOfChicken) {\n System.out.println(\"please place the chicken in the grill machine\");\r\n grillmachine.setState(grillmachine.getCookingState());\r\n\t}", "@Override public boolean active() {\n General.sleep(200, 300); // Reduces CPU usage.\n return isAtFish();\n }", "private void oops(){\n\t\tSystem.out.println(\"Oops! \" +getCandyName() +\" is delicious! I ate that one.\");\n\t}", "@Override\n\tpublic boolean paie() {\n\n\t\treturn true;\n\t}", "public void act() \r\n {\r\n super.mueve();\r\n super.tocaBala();\r\n super.creaItem();\r\n \r\n if(getMoveE()==0)\r\n {\r\n \r\n if(shut%3==0)\r\n {\r\n dispara();\r\n shut=shut%3;\r\n shut+=1;\r\n \r\n }\r\n else \r\n shut+=1;\r\n }\r\n super.vidaCero();\r\n }", "@Override\n\tpublic void msgAtCooking() {\n\t\t\n\t}", "public boolean isCursing() {\n\t\treturn methods.settings.getSetting(1584) % 2 != 0;\n\t}", "public void run() {\n Set<Philosopher> disabledPhils = new HashSet<Philosopher>();\r\n // True if last philosopher who tried to eat succeed\r\n boolean wasAttemptSuccessful = false;\r\n final long startTime = System.currentTimeMillis();\r\n while (System.currentTimeMillis() - startTime < runningTime) {\r\n if (wasAttemptSuccessful || hungryPhils.isEmpty()) {\r\n hungryPhils.addAll(disabledPhils);\r\n disabledPhils.clear();\r\n }\r\n Philosopher philBeingServed = null;\r\n try {\r\n philBeingServed = hungryPhils.take(); // get phil with the highest priority\r\n disabledPhils.add(philBeingServed);\r\n if (forks.get(philBeingServed.id).attempt(1)) { // Could use tryLock instead\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] took left fork\");\r\n }\r\n if (forks.get(philBeingServed.id + 1).attempt(Math.round(Math.random() *\r\n (MAX_ATTEMPT_TIME + 1)))) {\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] took right fork\");\r\n }\r\n philBeingServed.giveMeal();\r\n disabledPhils.remove(philBeingServed);\r\n wasAttemptSuccessful = true;\r\n } else {\r\n wasAttemptSuccessful = false;\r\n forks.get(philBeingServed.id).release();\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] put left fork\");\r\n }\r\n }\r\n } else {\r\n wasAttemptSuccessful = false;\r\n }\r\n } catch (InterruptedException e) {\r\n if (philBeingServed != null) {\r\n forks.get(philBeingServed.id).release();\r\n forks.get(philBeingServed.id + 1).release();\r\n }\r\n e.printStackTrace();\r\n }\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.printf(\"\\n\\n\"); // Kinda delimiter\r\n FireStarter.isDebugEnabled = false; // Stop producing messages from philosophers\r\n }\r\n }\r\n }", "@Override\n\tpublic void fly() {\n\t\tSystem.out.println(\"Parrot can fly\");\t \n\t}", "@Override\n public void bake() {\n System.out.println(\"Bake Pepporonie Pizza !!\");\n }", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", "private void relax()\n {\n System.out.println(\"You take a few deep breaths and really notice the beauty of the environment around you.\");\n }", "public void credit(){\n\t\tSystem.out.println(\"hdfcbank credited\");\n\t\t\n\t}", "public DefaultStabilizeClimb() {\n\t\trequires(Robot.climb);\n\t}", "private void doUnchokes() { \n\n\t\t// logic below is either 1 second or 10 secondly, bail out early id neither\n\n\t\tif( !UploadSlotManager.AUTO_SLOT_ENABLE ) {\t\t //manual per-torrent unchoke slot mode\n\n\t\t\tif( mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL != 0 ) { \n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfinal int max_to_unchoke = adapter.getMaxUploads(); //how many simultaneous uploads we should consider\n\t\t\tfinal ArrayList peer_transports = peer_transports_cow;\n\n\t\t\t//determine proper unchoker\n\t\t\tif( seeding_mode ) {\n\t\t\t\tif( unchoker == null || !(unchoker.isSeedingUnchoker()) ) {\n\t\t\t\t\tunchoker = UnchokerFactory.getSingleton().getUnchoker( true );\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif( unchoker == null || unchoker.isSeedingUnchoker()) {\n\t\t\t\t\tunchoker = UnchokerFactory.getSingleton().getUnchoker( false );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\t//do main choke/unchoke update every 10 secs\n\t\t\t\n\t\t\tif ( mainloop_loop_count % MAINLOOP_TEN_SECOND_INTERVAL == 0 ){\n\n\t\t\t\tfinal boolean refresh = mainloop_loop_count % MAINLOOP_THIRTY_SECOND_INTERVAL == 0;\n\n\t\t\t\tunchoker.calculateUnchokes( max_to_unchoke, peer_transports, refresh, adapter.hasPriorityConnection());\n\n\t\t\t\tArrayList\tchokes \t\t= unchoker.getChokes();\n\t\t\t\tArrayList\tunchokes\t= unchoker.getUnchokes();\n\t\t\t\t\n\t\t\t\taddFastUnchokes( unchokes );\n\t\t\t\t\n\t\t\t\tUnchokerUtil.performChokes( chokes, unchokes );\n\t\t\t\t\n\t\t\t}else if ( mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL == 0 ) { //do quick unchoke check every 1 sec\n\n\t\t\t\tArrayList unchokes = unchoker.getImmediateUnchokes( max_to_unchoke, peer_transports );\n\n\t\t\t\taddFastUnchokes( unchokes );\n\t\t\t\t\n\t\t\t\tUnchokerUtil.performChokes( null, unchokes );\n\t\t\t}\n\t\t}\n\t}", "public void canclePraise(int po_id) {\n\t\tpm.canclePraise(po_id);\r\n\t}", "public boolean togglePower() {\r\n if(power) {\r\n pioneerclient.sendCommand(\"PF\");\r\n return false;\r\n } else {\r\n pioneerclient.sendCommand(\"PO\");\r\n return true;\r\n }\r\n\t}", "public boolean isCarry() {\n\t\treturn ((get() >> 4) & 1) == 1;\n\t}", "@Override\n\tpublic void attack() {\n\t\tSystem.out.println(\"Woof! Woof! *Crunch!*\");\n\t}", "protected BigDecimal reword(){\n\t\tif(getNowAct() == 0){\n\t\t\treturn(rewordBuy());\n\t\t}\n\t\t//keep\n\t\telse if(getNowAct() == 1){\n\t\t\treturn(rewordWait());\n\t\t}\n\t\t//sell\n\t\telse if(getNowAct() == 2){\n\t\t\treturn(rewordSell());\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"getNowAct : \" + getNowAct() + \"\\nerror occur.\");\n\t\t\tSystem.exit(2);\n\t\t\treturn(null);\n\t\t}\n\t}", "@Override\r\n\tpublic boolean isConcave() {\n\t\treturn false;\r\n\t}", "public static void main (String[] args) {\n testchackAp();\n\n // Движение ctrl + shift вниз\n }", "@Override\r\n\tpublic void credit() {\n\t\tSystem.out.println(\"Core Method of Child\");\r\n\t}", "public void act() \n {\n setLocation(getX(),getY()+1);\n givePower();\n delete();\n }", "public void buyFarm(){\n bought = !bought;\n }", "public boolean isExecuting(){\n return !pausing;\n }", "private void checkForCPUChance()\n\t\t\t{\n\t\t\t\tf12 = false;\n\t\t\t\tfor (m = 0; m < 8; ++m)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (lose[m] == 2 && win[m] == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tf12 = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\tif (f12 == false)\n\t\t\t\t\tm = 10;\n\n\t\t\t}", "@Override\n public int continuar() {\n // TODO Auto-generated method stub\n return 0;\n }", "@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}", "public void comer(){\r\n\t\tSystem.out.println(\"He comido\");\r\n\t}", "public void sleep() {\n hunger += 1;\n fatigue = 0;\n\n if (isHungry()) {\n mood -= 1;\n } else {\n mood += 1;\n }\n\n if (!muted) {\n System.out.println(\"sleep\\t|\\tzzzZZZ *sheep*\");\n }\n }" ]
[ "0.6089602", "0.58731", "0.5702252", "0.5611575", "0.5604928", "0.555299", "0.5538914", "0.55343384", "0.5493932", "0.549217", "0.5488522", "0.5429184", "0.5415585", "0.5403273", "0.5398697", "0.5385401", "0.5375971", "0.5369693", "0.5367037", "0.53657126", "0.5354686", "0.53534335", "0.53322035", "0.5326933", "0.5320368", "0.53168046", "0.5308975", "0.5306308", "0.5297403", "0.52900225", "0.52868533", "0.5253147", "0.5239385", "0.52352226", "0.52326715", "0.5231948", "0.52201205", "0.52154464", "0.5208116", "0.51794463", "0.5167616", "0.5167356", "0.5162116", "0.51613414", "0.5155373", "0.5146856", "0.5119428", "0.5113923", "0.5108824", "0.51056296", "0.5096464", "0.5095855", "0.5090608", "0.508809", "0.5065898", "0.5065633", "0.5063014", "0.5057271", "0.5048496", "0.50456274", "0.504462", "0.5037062", "0.5033394", "0.5030499", "0.5030499", "0.5029407", "0.5020739", "0.50171036", "0.50168216", "0.50166714", "0.50139266", "0.5012632", "0.5005149", "0.5000684", "0.49999735", "0.4996238", "0.49935108", "0.49841052", "0.49834454", "0.49830422", "0.49818382", "0.49761105", "0.4974476", "0.49682367", "0.49613187", "0.49563965", "0.4952885", "0.49513674", "0.49496567", "0.4946021", "0.49455065", "0.49440286", "0.49407363", "0.4939341", "0.49388885", "0.493672", "0.4935644", "0.4935588", "0.4935588", "0.4934499", "0.4932285" ]
0.0
-1
Create a few example points
@Override public void run(String arg) { float[][] points = new float[10][3]; for(int i = 0; i < points.length; i++) points[i][0] = points[i][1] = points[i][2] = i; // Create a CustomMesh from them List<Point3f> mesh = new ArrayList<Point3f>(); for(int i = 0; i < points.length; i++) { mesh.add(new Point3f( points[i][0], points[i][1], points[i][2])); } CustomPointMesh cm = new CustomPointMesh(mesh); // Create a universe and show it Image3DUniverse univ = new Image3DUniverse(); univ.showAttribute( Image3DUniverse.ATTRIBUTE_COORD_SYSTEM, false); univ.show(); // Add the mesh String name = "points"; univ.addCustomMesh(cm, name); cm.setPointSize(10); // Have a look at the source code of CustomPointMesh // for changing point size and anti-aliasing }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<Point> generateTestPoints()\n {\n List<Point> points = new ArrayList<>();\n double r = 1.0;\n int k = 0; // for naming the points.\n for (int i = 0; i <= 360; i += 10) {\n double t = (i)* Math.PI / 180.0;\n double x = r * Math.cos(t);\n double y = r * Math.sin(t);\n String name = \"Point-\" + k;\n Point p = new Point(name, x, y);\n points.add(p);\n k++;\n }\n return points;\n }", "private static List<Point> genererPointsAlea(int nbPoints) {\n /*List<Point> points = new ArrayList<>();\n Random rand = new Random(0);\n for(int i=0; i<nbPoints; i++) {\n Point p = new Point(rand.nextDouble(), rand.nextDouble());\n points.add(p);\n }\n return points;*/\n return null;\n }", "Point createPoint();", "private void printSuppliedPoints(Point[] points) {\r\n String pointsSupplied = \"{\";\r\n for (int i = 0; i < points.length; ++i) {\r\n if (points[i] == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n pointsSupplied = pointsSupplied + \"new Point\" + points[i] + \",\";\r\n }\r\n pointsSupplied = pointsSupplied + \"};\";\r\n System.out.println(pointsSupplied);\r\n }", "VariationPoint createVariationPoint();", "@Action\n public void addPoint() { \n Point2D pt = randomPoint();\n PrimitiveGraphic bp = JGraphics.point(pt, RandomStyles.point());\n bp.setDefaultTooltip(\"<html><b>Point</b>: <i> \" + pt + \"</i>\");\n bp.setDragEnabled(true);\n root1.addGraphic(bp);\n }", "private void definePoints(){\n defineLinePoints(x1, y1, x2, y2);\n defineLinePoints(x1,y1, x3, y3);\n defineLinePoints(x2,y2, x3, y3);\n }", "@Test public void simpleEquationSegment_SmallPointGenerationTest()\n {\n System.out.print(\"running EquationSegment_SmallPointGenerationTest...\");\n \n //create the segment\n Point point1 = new Point(\"point1\", 1, 3);\n Point point2 = new Point(\"point2\", 7, 8);\n \n EquationSegment eqSegment = new EquationSegment(point2, point1);\n \n// System.out.println(\"eqSegment point1: \" + eqSegment.getPoint1());\n// System.out.println(\"eqSegment point2: \" + eqSegment.getPoint2());\n// System.out.println(\"eqSegment slope: \" + eqSegment.slope());\n// System.out.println(\"eqSegment constant: \" + eqSegment.getConstant());\n \n // generate 10 points on the segment\n for (int i = 0; i < 10; i++)\n {\n Point genPoint = eqSegment.getRandomPoint();\n //System.out.println(\"Point \" + i + \": \" + genPoint);\n assert (genPoint.getX() >= 1 && genPoint.getX() <= 7);\n assert (genPoint.getY() >= 3 && genPoint.getY() <= 8);\n assert (doubleCompare(0.0000000001, genPoint.getX() * ((double)5/6) + ((double)13/6), genPoint.getY()));\n }\n System.out.println(\"Done\\n\");\n }", "public static Points createEntity() {\n Points points = new Points()\n .date(DEFAULT_DATE)\n .exercise(DEFAULT_EXERCISE)\n .meals(DEFAULT_MEALS)\n .alcohol(DEFAULT_ALCOHOL)\n .notes(DEFAULT_NOTES);\n return points;\n }", "@Action\n public void addLabeledPoint() {\n Point2D p1 = randomPoint();\n LabeledPointGraphic<Point2D, Graphics2D> lpg = new LabeledPointGraphic<>(p1, p1, new ObjectStyler());\n lpg.setRenderer(MarkerRenderer.getInstance());\n lpg.setLabelRenderer(new TextRenderer());\n lpg.getObjectStyler().setLabelDelegate(p -> String.format(\"(%.2f,%.2f)\", p.getX(), p.getY()));\n lpg.getObjectStyler().setLabelStyle(Styles.text(Color.red, 14f, Anchor.SOUTHWEST));\n lpg.setDefaultTooltip(\"<html><b>Labeled Point</b>: <i> \" + p1 + \"</i>\");\n lpg.setDragEnabled(true);\n root1.addGraphic(lpg); \n }", "private static Point[] generateRandomPointArray(final int quantity) {\n\t\tfinal int min = -200;\n\t\tfinal int max = 200;\n\t\tfinal Random random = new Random();\n\t\tPoint[] pointArray = new Point[quantity];\n\t\t\n\t\tSystem.out.println(\"Using \" + quantity + \" of random co-linear points.\");\n\t\t\n\t\tfor(int i = 0; i < quantity; i++) {\n\t\t\tint x = random.nextInt(max + 1 - min) + min;\n\t\t\tint y = random.nextInt(max + 1 - min) + min;\n\t\t\tpointArray[i] = new Point(x, y);\n\t\t}\n\t\t\n\t\treturn pointArray;\n\t}", "@Test\n\tpublic void addPointsByListTest(){\n\t}", "private static void add(List<Point> points, int param, double value, boolean measured) {\r\n points.add(new Point(param, value, measured));\r\n }", "@Test\n\tpublic void testCreation() {\n\n\t\tnew Point(20, 10).save();\n\n\t\tList<Point> points = Point.findByAll();\n\n\t\tassertEquals(1, points.size());\n\t\tassertEquals(points.get(0).x, 20);\n\t\tassertEquals(points.get(0).y, 10);\n\n\t}", "public PointDisplay(Point[] points) {\n\t\tthis(points, 10, true, 0);\n\t}", "TestViewpoint createTestViewpoint();", "public static void main(String[] args) {\n\n\t\tPoint startPoint = new Point();\n\t\tstartPoint.x = 0;\n\t\tstartPoint.y = 0;\n\t\tSystem.out.println(startPoint.toString());\n\n\t\tPoint endPoint = new Point(10,10);\n\t\tSystem.out.println(endPoint.toString());\n\t\tint middlePointX=(startPoint.x + endPoint.x)/2;\n\t\tint middlePointY=(startPoint.y + endPoint.y)/2;\n\t\tPoint middlePoint = new Point (middlePointX,middlePointY);\n\t\tSystem.out.println(middlePoint.toString());\n\t\t/*\n\t\t * int[][] data = new int [Point.MAX_X][Point.MAX_Y];\n\t\t * Point.toString(data);\n\t\t */\n\n\t\t\n\t}", "public void addPoints(int i, List<Point2D> points);", "@Test\r\n\tpublic void constructorDeclarationTest(){\r\n\t\tint[] pointsToTest = {2,7,9,16,17,18,19,20};\r\n\t\tfor(int i=0;i<pointsToTest.length;i++)\r\n\t\t{\r\n\t\t\tassertEquals(pointsToTest[i],new PointGrade(pointsToTest[i]).getPoints());\r\n\t\t}\r\n\t}", "public void addPoints(List<Point2D> points);", "@Before\n\tpublic void before() {\n\t\tpoint = new Point(-200, 150);\n\t\tpoint1 = new Point(-400, -150);\n\t}", "static List<Example> createFilledExamples() {\n\t\tList<Example> examples = new ArrayList<>();\n\t\t\n\t\texamples.add(new Example(createFields(2, \"Test\", 0, 33.3d)));\n\t\texamples.add(new Example(createFields(43, \"Test4\", 1, 25)));\n\t\texamples.add(new Example(createFields(5323, \"TestLong\", 1, 4223.436d)));\n\t\t\n\t\treturn examples;\n\t}", "private static List<Point> createConvergingDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 400);\r\n add(data, 5, 700);\r\n add(data, 10, 900);\r\n add(data, 15, 1000);\r\n add(data, 20, 1050);\r\n add(data, 25, 1060);\r\n add(data, 30, 1062);\r\n return data;\r\n }", "public static void main(String[] args)\r\n {\n Point<Integer> iPoint = new Point<>(1, 2);\r\n Point<Double> dPoint = new Point<>(1.5, 2.5);\r\n Point<Long> lPoint = new Point<>(10L, 20L);\r\n Point<Float> fPoint = new Point<>(7.9f, 9.9f);\r\n \r\n // Display each object's coordinates.\r\n System.out.println(\"iPoint:\");\r\n printPoint(iPoint);\r\n\r\n System.out.println(\"\\ndPoint:\");\r\n printPoint(dPoint);\r\n\r\n System.out.println(\"\\nlPoint:\");\r\n printPoint(lPoint);\r\n\r\n System.out.println(\"\\nfPoint:\");\r\n printPoint(fPoint);\r\n }", "public void addDataPoint2( DataPoint dataPoint ) {\n\t\tif ( dataPoint.x < 50.0 ){\n\t\t\tsumX1 += dataPoint.x;\n\t\t\tsumX1X1 += dataPoint.x*dataPoint.x;\n\t\t\tsumX1Y += dataPoint.x*dataPoint.z;\n\t\t\tsumY += dataPoint.z;\n\t\t\tsumYY += dataPoint.z*dataPoint.z;\n\n\t\t\tif ( dataPoint.x > X1Max ) {\n\t\t\t\tX1Max = (int)dataPoint.x;\n\t\t\t}\n\t\t\tif ( dataPoint.z > YMax ) {\n\t\t\t\tYMax = (int)dataPoint.z;\n\t\t\t}\n\n\t\t\t// 把每個點的具體座標存入 ArrayList中,備用。\n\t\t\txyz[0] = (int)dataPoint.x+ \"\";\n\t\t\txyz[2] = (int)dataPoint.z+ \"\";\n\t\t\tif ( dataPoint.x !=0 && dataPoint.z != 0 ) {\n\t\t\t\ttry {\n\t\t\t\t\tlistX.add( numPoint, xyz[0] );\n\t\t\t\t\tlistZ.add( numPoint, xyz[2] );\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}\n\t\t\n\t\t\t++numPoint;\n\t\t}\n\t\telse {\n\t\t\t sumX50 += dataPoint.x;\n\t\t \t sumX50X50 += dataPoint.x*dataPoint.x;\n\t\t\t sumX50Y50 += dataPoint.x*dataPoint.z;\n\t\t\t sumY50 += dataPoint.z;\n\t\t\t sumY50Y50 += dataPoint.z*dataPoint.z;\n\n\t\t\t if ( dataPoint.x > X50Max ) {\n\t\t\t\t X50Max = (int)dataPoint.x;\n\t\t\t }\n\t\t\t if ( dataPoint.z > Y50Max ) {\n\t\t\t\t Y50Max = (int)dataPoint.z;\n\t\t\t }\n\n\t\t\t // 把每個點的具體座標存入 ArrayList中,備用。\n\t\t\t xyz50[0] = (int)dataPoint.x+ \"\";\n\t\t\t xyz50[2] = (int)dataPoint.z+ \"\";\n\t\t\t if ( dataPoint.x !=0 && dataPoint.z != 0 ) {\n\t\t\t\t try {\n\t\t\t\t\t listX50.add( numPoint50, xyz50[0] );\n\t\t\t\t\t listZ50.add( numPoint50, xyz50[2] );\n\t\t\t\t } \n\t\t\t\t catch ( Exception e ) {\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t }\n\t\t\t }\n\t\t\t\n\t\t\t ++numPoint50;\n\t\t}\n\t\tcoefsValid = false;\n\t}", "void drawMyPoint(double x, double y, MapContent map, String nombre) { \n// SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();\n// builder.setName(\"MyFeatureType\");\n// builder.setCRS( DefaultGeographicCRS.WGS84 ); // set crs \n// builder.add(\"location\", Point.class); // add geometry\n//\n// // build the type\n// SimpleFeatureType TYPE = builder.buildFeatureType();\n//\n// // create features using the type defined\n// SimpleFeatureBuilder featureBuilder = new SimpleFeatureBuilder(TYPE);\n// org.locationtech.jts.geom.GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();\n// org.locationtech.jts.geom.Point point = geometryFactory.createPoint(new Coordinate(x, y));\n// //\n// \n// //\n// featureBuilder.add(point);\n// SimpleFeature feature = featureBuilder.buildFeature(\"FeaturePoint\");\n// DefaultFeatureCollection featureCollection = new DefaultFeatureCollection(\"internal\", TYPE);\n// featureCollection.add(feature); // Add feature 1, 2, 3, etc\n//\n// Style style = SLD.createPointStyle(\"Star\", Color.BLUE, Color.BLUE, 0.3f, 200);\n// Layer layer = new FeatureLayer(featureCollection, style);\n// layer.setTitle(\"NewPointLayer\");\n// map.addLayer(layer);\n// //mapFrame.getMapPane().repaint();// MapPane.repaint();\n//}\n\tSimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();\n builder.setName(\"MyFeatureType\"); // \n builder.setCRS( DefaultGeographicCRS.WGS84 ); // set crs // Definimos las caracteristicas de tipo del punto q vamos a crear\n builder.add(\"location\", Point.class); // add geometry //\n org.locationtech.jts.geom.GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(); //objeto q usaremos para crear el punto\n Coordinate coord = new Coordinate( x,y ); //creamos la coordenada con los puntos pasados como parametros\n org.locationtech.jts.geom.Point point = geometryFactory.createPoint(coord); // Creamos el punto geometrico\n\nSimpleFeatureType pointtype = null; //definimos el typo de punto que necesitamos apra agregarlo a la capa del mapa\n try {\n pointtype = DataUtilities.createType(\"POINT\", \"geom:Point,name:String\");\n } catch (SchemaException ex) {\n Logger.getLogger(SelectionLab.class.getName()).log(Level.SEVERE, null, ex);\n }\nSimpleFeatureBuilder featureBuilderPoints = new SimpleFeatureBuilder(pointtype); //creamos el constructor de lo que agregaremos\nDefaultFeatureCollection collectionPoints = new DefaultFeatureCollection(\"internal\", pointtype); //creamos el contenedor donde pondremos lo que agregaremos\n//PointString Point=builder.createPointString(Point);\n//LineString Point = builder.createLineString(Point);\nfeatureBuilderPoints.add(point); //agregamos el punto en el constructor\nSimpleFeature featureLine = featureBuilderPoints.buildFeature(null); \n((DefaultFeatureCollection)collectionPoints).add(featureLine); \nStyle PointStyle = SLD.createPointStyle(\"circle\", Color.RED, Color.RED,(float) 0.5,(float) 10); //definimos el estilo del punto (icono, color contorno, color, opacidad y tamaño)\n//Obserervacion: el dibujo del punto siempre se mantiene del mismo tamaño por mas que se use el zoom\nmap.addLayer(new FeatureLayer(collectionPoints, PointStyle)); //agregamos el punto a la capa\n\nguardarCoordenadas(nombre,x,y);\n}", "public void setPoints(int points) {\n this.points = points;\n }", "public static void main(String[] args)\n\t{\n\n\t\tPoint[] points = new Point[2];\n\t\t//int x;\n\t\t//System.out.println(x);\n\t\tpoints[0] = new Point();\n\t\tfor(int index = 0; index < big; ++index)\n\t\t{\n\t\t\t/*\n\t\t\tboolean correct = true;\n\t\t\tif(correct)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"What just happened\");\n\t\t\t}\n\t\t\t*/\n\t\t\tint testIndex = index;\n\t\t\tfloat pi = 3.14_7f;\n\t\t\tSystem.out.println(++testIndex + \" \" + testIndex++);\n\t\t\tSystem.out.println(big);\n\t\t\tPoint point;// = new Point(1,2);\n\t\t\tSystem.out.println(points[0]);\n\t\t}\n\t\tGregorianCalendar gc = new GregorianCalendar();\n\t\tSystem.out.println(gc);\n\t\n\t\tPoint p1 = new Point(2,2);\n\t\tPoint p2 = new Point(3,3);\n\t}", "@Test\n public void testAddPoints() {\n System.out.println(\"addPoints\");\n int points = ScoreBoard.HARD_DROP_POINTS_PER_ROW * 4 + ScoreBoard.POINTS_PER_LINE;\n instance.addPoints(points);\n int result = instance.getPoints();\n int expResult = 108;\n assertEquals(result, expResult);\n }", "public static void test10(World w){\n\t\tUtilities.generateGeometry2(w.points ,w.pivots, \"Front.png\", \"Side.png\", 1900, 2500, 0, 0, 1/7.0);\r\n\t\t\r\n\t}", "@Test\r\n void testAddPoints() {\r\n AlwaysDefect testStrat = new AlwaysDefect();\r\n testStrat.addPoints(2);\r\n int points = testStrat.getPoints();\r\n assertEquals(points, 2, \"addPoints or getPoints not functioning correctly\");\r\n }", "public void givePoints(int amount) {\n givePoints(amount, PointSource.SPECIAL);\n }", "public void pointsImage(int points){\r\n\t\tint x = 10;\r\n\t\tint y = 30;\r\n\t\t//strPoints are given coordinates, a color, and a font\r\n\t\tString strPoints = \"Points = \";\r\n\t\tpointsImage = new GLabel(strPoints,x,y);\r\n\t\tpointsImage.setColor(Color.green);\r\n\t\tpointsImage.setFont(\"Arial-30\");\r\n\t\t//strPoints added to the canvas\r\n\t\tcanvas.add(pointsImage);\r\n\t\t//points are given coordinates, a unique color, and a font\r\n\t\tpointsImage1 = new GLabel(String.valueOf(points),125,y);\r\n\t\tif(points >= 0){\r\n\t\t\tpointsImage1.setColor(Color.green);\r\n\t\t}if(points < 0){\r\n\t\t\tpointsImage1.setColor(Color.red);\r\n\t\t}\r\n\t\tpointsImage1.setFont(\"Arial-30\");\r\n\t\t//points added to the canvas\r\n\t\tcanvas.add(pointsImage1);\r\n\t}", "private void setPointArray(Point heartPoint, Point calPoint, Point activePoint, Point sedPoint)\n\t{\n\t\tthis.pointArray[1] = heartPoint;\n\t\tthis.pointArray[2] = calPoint;\n\t\tthis.pointArray[3] = activePoint;\n\t\tthis.pointArray[4] = sedPoint;\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tPoint2D p1 = new Point2D();\r\n\t\tp1.print();\r\n\t\tPoint2D p2 = new Point2D(283,93);\r\n\t\tp2.print();\r\n\t\tPoint3D p3 = new Point3D();\r\n\t\tp3.print();\r\n\t\tPoint3D p4 = new Point3D(6,67,73);\r\n\t\tp4.print();\r\n\r\n\t}", "public MyPoint1 (double x, double y) {}", "Viewpoint createViewpoint();", "public static void main(String[] args) {\n PointSET set = new PointSET();\n assert set.isEmpty();\n assert set.size() == 0;\n\n set.insert(new Point2D(0.5, 0.5));\n set.insert(new Point2D(0.25, 0.5));\n set.insert(new Point2D(0.75, 0.5));\n set.insert(new Point2D(0.25, 0.25));\n set.insert(new Point2D(0.25, 0.75));\n assert !set.isEmpty();\n assert set.size() == 5;\n\n assert set.contains(new Point2D(0.5, 0.5));\n assert set.contains(new Point2D(0.25, 0.5));\n assert set.contains(new Point2D(0.75, 0.5));\n assert set.contains(new Point2D(0.25, 0.25));\n assert set.contains(new Point2D(0.25, 0.75));\n assert !set.contains(new Point2D(0.25, 0.74));\n assert !set.contains(new Point2D(0.24, 0.75));\n\n set.draw();\n }", "public static void main(String[] args) {\n \n PointSET pset = new PointSET();\n System.out.println(\"Empty: \" + pset.isEmpty());\n pset.insert(new Point2D(0.5, 0.5));\n pset.insert(new Point2D(0.5, 0.5));\n pset.insert(new Point2D(0.5, 0.6));\n pset.insert(new Point2D(0.5, 0.7));\n pset.insert(new Point2D(0.5, 0.8));\n pset.insert(new Point2D(0.1, 0.5));\n pset.insert(new Point2D(0.8, 0.5));\n pset.insert(new Point2D(0.1, 0.1));\n System.out.println(\"Empty: \" + pset.isEmpty());\n System.out.println(\"Size: \" + pset.size());\n System.out.println(\"Nearest to start: \" + pset.nearest(new Point2D(0.0, 0.0)));\n System.out.println(\"Contains #1: \" + pset.contains(new Point2D(0.0, 0.0)));\n System.out.println(\"Contains #2: \" + pset.contains(new Point2D(0.5, 0.5)));\n System.out.print(\"Range #1: \");\n for (Point2D p : pset.range(new RectHV(0.001, 0.001, 0.002, 0.002)))\n System.out.print(p.toString() + \"; \");\n System.out.print(\"\\n\");\n System.out.print(\"Range #2: \");\n for (Point2D p : pset.range(new RectHV(0.05, 0.05, 0.15, 0.15)))\n System.out.print(p.toString() + \"; \");\n System.out.print(\"\\n\");\n System.out.print(\"Range #3: \");\n for (Point2D p : pset.range(new RectHV(0.25, 0.35, 0.65, 0.75)))\n System.out.print(p.toString() + \"; \");\n System.out.print(\"\\n\");\n \n }", "public static void main(String[] args) {\n\t\tpoint<String, Integer> p1=new point<String, Integer>(\"fuck\", 1);\n\t\tSystem.out.println(p1);\n\t}", "protected void addControlPoints(Iterable<Position> positions, RenderableLayer layer)\r\n {\r\n PointPlacemarkAttributes attrs = new PointPlacemarkAttributes();\r\n attrs.setUsePointAsDefaultImage(true);\r\n \r\n int i = 1;\r\n for (Position p : positions)\r\n {\r\n PointPlacemark placemark = new PointPlacemark(p);\r\n placemark.setValue(AVKey.DISPLAY_NAME, \"Tactical Graphic Position \" + i);\r\n placemark.setAttributes(attrs);\r\n placemark.setHighlightAttributes(attrs);\r\n layer.addRenderable(placemark);\r\n i++;\r\n }\r\n }", "public static ArrayList<Point> createPoints(ArrayList<Point> P, int numPoints, double max_x, double max_y) {\n\t\t\t\t\t\t\n\t\tRandom r = new Random();\n\t\t//Create new point objects and add them to 'point'\n\t for (int i = 0; i < numPoints; i++) {\n\t P.add(new Point(r.nextDouble() * max_x, r.nextDouble() * max_y));\n\t }\n\t \n\t return P;\n\t}", "public static vtkPoints createPoints(double[] points)\n\t{\n\t\tvtkPoints vtkPoints = new vtkPoints();\n\t\tvtkDoubleArray d = new vtkDoubleArray();\n\t\td.SetJavaArray(points);\n\t\td.SetNumberOfComponents(3);\n\t\tvtkPoints.SetData(d);\n\t\tdelete(d);\n\t\treturn vtkPoints;\n\t}", "public static boolean createPointForEvent(int eventType, int points) {\n PointsTranslation pointsTranslation = new PointsTranslation();\n pointsTranslation.eventTypeId = eventType;\n pointsTranslation.points = points;\n pointsTranslation.createdAt = GlobalDate.getCurrentDate();\n pointsTranslation.lastModified = pointsTranslation.createdAt;\n Model.pointsTranslation().insert(pointsTranslation);\n\n OpsLog.onNew(pointsTranslation);\n return true;\n }", "public void setPoints(int points)\n\t{\n\t\tthis.points = points;\n\t}", "private void readPoints(List<Element> pointElements, Model model)\n throws ObjectExistsException {\n // Add the points.\n for (int i = 0; i < pointElements.size(); i++) {\n Element curPointElement = pointElements.get(i);\n String attrVal;\n Integer pointID;\n try {\n pointID = Integer.valueOf(curPointElement.getAttributeValue(\"id\"));\n }\n catch (NumberFormatException e) {\n pointID = null;\n }\n Point curPoint = model.createPoint(pointID);\n TCSObjectReference<Point> pointRef = curPoint.getReference();\n String pointName = curPointElement.getAttributeValue(\"name\");\n if (pointName == null || pointName.isEmpty()) {\n pointName = \"PointName\" + i + \"Unknown\";\n }\n model.getObjectPool().renameObject(pointRef, pointName);\n Triple position = new Triple();\n attrVal = curPointElement.getAttributeValue(\"xPosition\");\n if (attrVal != null) {\n position.setX(Long.parseLong(attrVal));\n }\n attrVal = curPointElement.getAttributeValue(\"yPosition\");\n if (attrVal != null) {\n position.setY(Long.parseLong(attrVal));\n }\n attrVal = curPointElement.getAttributeValue(\"zPosition\");\n if (attrVal != null) {\n position.setZ(Long.parseLong(attrVal));\n }\n model.setPointPosition(pointRef, position);\n attrVal = curPointElement.getAttributeValue(\"vehicleOrientationAngle\");\n if (attrVal != null) {\n model.setPointVehicleOrientationAngle(pointRef,\n Double.parseDouble(attrVal));\n }\n Point.Type pType\n = Point.Type.valueOf(curPointElement.getAttributeValue(\"type\"));\n model.setPointType(pointRef, pType);\n List<Element> pointProps = curPointElement.getChildren(\"property\");\n for (int j = 0; j < pointProps.size(); j++) {\n Element curPointPropElement = pointProps.get(j);\n String propName = curPointPropElement.getAttributeValue(\"name\");\n if (propName == null || propName.isEmpty()) {\n propName = \"Property\" + j + \"Unknown\";\n }\n String propValue = curPointPropElement.getAttributeValue(\"value\");\n if (propValue == null || propValue.isEmpty()) {\n propValue = \"Value\" + j + \"Unknown\";\n }\n model.getObjectPool().setObjectProperty(pointRef, propName,\n propValue);\n }\n }\n }", "private void addPointsToTimeline(List<Placemark> points)\r\n {\r\n List<TimelineDatum> timelinePoints = New.list();\r\n long id = 0;\r\n for (Placemark mark : points)\r\n {\r\n TimelineDatum datum = new StyledTimelineDatum(id,\r\n KMLSpatialTemporalUtils.timeSpanFromTimePrimitive(mark.getTimePrimitive()),\r\n PlacemarkUtils.getPlacemarkColor(mark), mark.getName(), PlacemarkUtils.getPlacemarkTextColor(mark));\r\n timelinePoints.add(datum);\r\n id++;\r\n }\r\n myTimelineRegistry.addData(ourKey, timelinePoints);\r\n }", "public void setPoints(Integer points) {\r\n this.points = points;\r\n }", "public void setPoints(String points);", "public Point()\n {\n x = -100 + (int) (Math.random() * ((100 - (-100)) + 1)); \n y = -100 + (int) (Math.random() * ((100 - (-100)) + 1));\n //x = (int) (Math.random()); \n //y =(int) (Math.random());\n pointArr[0] = 1;\n pointArr[1] = x;\n pointArr[2] = y;\n //If the point is on the line, is it accepted? I counted it as accepted for now\n if(y >= 3*x){\n desiredOut = 1;\n }\n else\n {\n desiredOut = 0;\n }\n }", "@DataProvider(name = \"toyPointVariants\")\n public Object[][] getToyPointVariantTestData() {\n return new Object[][] {\n // in UTR\n { new SimpleInterval(\"chr1\", 150, 151),\n new SimpleInterval(\"chr1\", 150, 150),\n GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.LOF },\n // in intron\n { new SimpleInterval(\"chr1\", 250, 251),\n new SimpleInterval(\"chr1\", 250, 250),\n GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.LOF },\n // in CDS\n { new SimpleInterval(\"chr1\", 350, 351),\n new SimpleInterval(\"chr1\", 350, 350),\n GATKSVVCFConstants.LOF, GATKSVVCFConstants.BREAKEND_EXON, GATKSVVCFConstants.LOF },\n // overlap last base of a feature (CDS) only\n { new SimpleInterval(\"chr1\", 600, 601),\n new SimpleInterval(\"chr1\", 600, 600),\n GATKSVVCFConstants.LOF, GATKSVVCFConstants.BREAKEND_EXON, GATKSVVCFConstants.LOF },\n // overlap first base of a feature (UTR) only\n { new SimpleInterval(\"chr1\", 100, 101),\n new SimpleInterval(\"chr1\", 100, 100),\n GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.LOF }\n };\n }", "public static void main(String[] args) {\n\n // define 4 points that are the corners of a square\n Point a = new Point(345.0, 250.0);\n Point b = new Point(432.5, 234.4);\n Point c = new Point(234.6, 412.5);\n Point d = new Point(453.4, 512.2);\n\n // create the tour a -> b -> c -> d -> a\n Tour squareTour = new Tour(a, b, c, d);\n\n // print the size to standard output\n int size = squareTour.size();\n StdOut.println(\"Number of points = \" + size);\n double length = squareTour.length();\n StdOut.println(\"Tour length = \" + length);\n StdOut.println(squareTour);\n squareTour.insertNearest(d);\n squareTour.insertSmallest(d);\n StdDraw.setXscale(0, 600);\n StdDraw.setYscale(0, 600);\n\n squareTour.draw();\n }", "InlineDataExample createInlineDataExample();", "private void initPoint() {\n\t\tfor (int i = 0; i < images.length; i++) {\r\n\t\t\tView view = new View(SnaDetailsActivity.this);\r\n\t\t\tparamsL.setMargins(YangUtils.dip2px(SnaDetailsActivity.this, 5), 0, 0, 0);\r\n\t\t\tview.setLayoutParams(paramsL);\r\n\t\t\tif (i == 0) {\r\n\t\t\t\tview.setBackgroundResource(R.drawable.sy_03);\r\n\t\t\t} else {\r\n\t\t\t\tview.setBackgroundResource(R.drawable.sy_05);\r\n\t\t\t}\r\n\r\n\t\t\tviews.add(view);\r\n\t\t\tll_point.addView(view);\r\n\t\t}\r\n\t}", "public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }", "public PointSetOverlay createPointSetOverlay();", "private void setupEnemySpawnPoints() {\n float ring = ProtectConstants.VIEWPORT_WIDTH / 2 + (ProtectConstants.GAME_OBJECT_SIZE * 2);\n float angle = 18; // start angle\n for(int i = 1; i < ProtectConstants.COLUMNS + 1; i++){\n enemySpawnPoints.add(divideCircle(ring, angle));\n angle += 360 / ProtectConstants.COLUMNS;\n }\n enemySpawnPoints.shuffle();\n }", "public List<Point> generatePointList(){\r\n\t\t//Can move up to 3 squares horizontally or vertically, but cannot move diagonally.\r\n List<Point> pointList = new ArrayList<>();\r\n int pointCount = 0;\r\n int px = (int)getCoordinate().getX();\r\n int py = (int)getCoordinate().getY();\r\n\r\n for (int i=px-3;i<=px+3;i++){\r\n for(int j=py-3;j<=py+3;j++){\r\n if((i>=0) && (i<9) && (j>=0) && (j<9) && ((i!=px)||(j!=py))){\r\n if ((i==px)||(j==py)){\r\n pointList.add(pointCount, new Point(i,j));\r\n pointCount+=1;\r\n } \r\n }\r\n }\r\n }\r\n return pointList;\r\n }", "private void testData() {\r\n\r\n // Setup for a function of the type y = c0 + c1*exp(c2*x) + c3*exp(c4*x)\r\n\r\n xSeries[0] = 0;\r\n ySeries[0] = 1 + 2 + 3;\r\n\r\n xSeries[1] = 1;\r\n ySeries[1] = 1 + (2 * Math.exp(-0.3)) + (3*Math.exp(-0.5));\r\n\r\n xSeries[2] = 2;\r\n ySeries[2] = 1 + (2 * Math.exp(-0.6)) + (3*Math.exp(-1.0));\r\n\r\n xSeries[3] = 3;\r\n ySeries[3] = 1 + (2 * Math.exp(-0.9)) + (3 * Math.exp(-1.5));\r\n\r\n xSeries[4] = 4;\r\n ySeries[4] = 1 + (2 * Math.exp(-1.2)) + (3 * Math.exp(-2.0));\r\n }", "public static void main(String[] args)\n\t{\n\t\tPoint point_test = new Point(2,2);\n\t\tdouble niveauContamination_test = 0;\n\t\tdouble probaTransmettre_test = 0;\n\t\tdouble risqueMortalite_test = 0;\n\t\tdouble risqueMaladie_test = 0;\n\t\tCitoyen c = new Citoyen(\"FAN\",point_test,niveauContamination_test,risqueMaladie_test,probaTransmettre_test,risqueMortalite_test);\n\t\t\n\t\tPoint coord = new Point();\n\t\tcoord = c.getCoordonnees();\n\t\tSystem.out.println(\"x = \"+coord.getLigne()+\": y = \"+coord.getColonne());\n\t\t\n\t\tpoint_test.setCoordonnees(8,8);\n\t\tc.setCoordonnees(point_test);\n\t\tcoord = c.getCoordonnees();\n\t\tSystem.out.println(\"x = \"+coord.getLigne()+\": y = \"+coord.getColonne()+\"\\n\");\n\t\tSystem.out.println(\"INFORMATIONS du citoyen\");\n\t\tSystem.out.println(c.toString());\n\t}", "public Point() {\n this.x = Math.random();\n this.y = Math.random();\n }", "public void setPoints(int points) {\n\t\tthis.points = points;\n\t}", "public static RealPointSampleList< FloatType > createRandomPoints(\n\t\tRealInterval interval, int numPoints )\n\t{\n\t\t// the number of dimensions\n\t\tint numDimensions = interval.numDimensions();\n\n\t\t// a random number generator\n\t\tRandom rnd = new Random( System.currentTimeMillis() );\n\n\t\t// a list of Samples with coordinates\n\t\tRealPointSampleList< FloatType > elements =\n\t\t\tnew RealPointSampleList<>( numDimensions );\n\n\t\tfor ( int i = 0; i < numPoints; ++i )\n\t\t{\n\t\t\tRealPoint point = new RealPoint( numDimensions );\n\n\t\t\tfor ( int d = 0; d < numDimensions; ++d )\n\t\t\t\tpoint.setPosition( rnd.nextDouble() *\n\t\t\t\t\t( interval.realMax( d ) - interval.realMin( d ) ) + interval.realMin( d ), d );\n\n\t\t\t// add a new element with a random intensity in the range 0...1\n\t\t\telements.add( point, new FloatType( rnd.nextFloat() ) );\n\t\t}\n\n\t\treturn elements;\n\t}", "@Test public void simpleEquationSegment_LargePointGenerationTest()\n {\n System.out.print(\"running EquationSegment_LargePointGenerationTest...\");\n \n //create the segment\n Point point1 = new Point(\"point1\", 1, 3);\n Point point2 = new Point(\"point2\", 7, 8);\n \n EquationSegment eqSegment = new EquationSegment(point2, point1);\n \n// System.out.println(\"eqSegment point1: \" + eqSegment.getPoint1());\n// System.out.println(\"eqSegment point2: \" + eqSegment.getPoint2());\n// System.out.println(\"eqSegment slope: \" + eqSegment.slope());\n// System.out.println(\"eqSegment constant: \" + eqSegment.getConstant());\n \n // generate 100000000 points on the segment\n for (int i = 0; i < 100000000; i++)\n {\n Point genPoint = eqSegment.getRandomPoint();\n if (!(genPoint.getY() >= 3.0 && genPoint.getY() <= 8.0))\n {\n System.out.println(\"\\nPoint \" + i + \": \" + genPoint);\n System.out.println(genPoint.getX() * ((double)5/6) + ((double)13/6));\n System.out.println(genPoint.getY());\n System.out.println(genPoint.getY() >= 3.0);\n System.out.println(genPoint.getY() < 3.0);\n System.out.println(genPoint.getY() <= 8.0);\n System.out.println(doubleCompare(0.00000001, genPoint.getY(), 3.0));\n }\n assert (genPoint.getX() >= 1 && genPoint.getX() <= 7);\n assert (genPoint.getY() >= 3 && genPoint.getY() <= 8);\n assert (doubleCompare(0.0000000001, genPoint.getX() * ((double)5/6) + ((double)13/6), genPoint.getY()));\n }\n System.out.println(\"Done\\n\");\n }", "public static void main(String[] args) {\n\t\tint N = Integer.parseInt(args[0]);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tdouble x = StdRandom.gaussian(.5, .2);\n\t\t\tdouble y = StdRandom.gaussian(.5, .2);\n\t\t\tStdDraw.point(x, y);\n\t\t}\n\t}", "private static List<Point> createLinearDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 100);\r\n add(data, 5, 200);\r\n add(data, 10, 300);\r\n add(data, 15, 400);\r\n return data;\r\n }", "public void addPoint() {\n points += 1;\n }", "public void addPoint(Integer x, Float y, String showValue) {\n\t\tCoordinate coordinate = new Coordinate(x, y);\n\t\tcoordinate.setShowValue(showValue);\n\t\tcoordinates.add(coordinate);\n\t}", "public Point2D insertPoint(int i, double x, double y);", "public void addPoint(double[] point);", "public Point randomPoint() \t // creates a random point for gameOjbects to be placed into\r\n\t{\n\t\tint x = rand.nextInt(900);\r\n\t\tx = x + 50;\r\n\t\tint y = rand.nextInt(900);\r\n\t\ty = y + 50;\r\n\t\tPoint p = new Point(x, y);\r\n\t\treturn p;\r\n\t}", "public static DataPoint genRandomPoint(int min, int max)\n {\n Random rand = new Random();\n return (new DataPoint(\"Centroid\", 99, rand.nextDouble(), rand.nextDouble(), rand.nextDouble(),\n rand.nextDouble(), rand.nextDouble(), rand.nextDouble()));\n }", "public static vtkPoints createPoints(float[] points)\n\t{\n\t\tvtkPoints vtkPoints = new vtkPoints();\n\t\tvtkFloatArray d = new vtkFloatArray();\n\t\td.SetJavaArray(points);\n\t\td.SetNumberOfComponents(3);\n\t\tvtkPoints.SetData(d);\n\t\tdelete(d);\n\t\treturn vtkPoints;\n\t}", "public static void instantiate(){\n listOfpoints = new ArrayList<>(12);\n listOfPolygons = new ArrayList<>(listOfpoints.size());\n\n for ( int i= 0 ; i < 70; i++ ){\n listOfpoints.add(new ArrayList<LatLng>());\n }\n\n listOfpoints.get(0).add(new LatLng(44.4293595,26.1035863));\n listOfpoints.get(0).add(new LatLng(44.4295434,26.1035434));\n listOfpoints.get(0).add(new LatLng(44.4297579,26.103479));\n listOfpoints.get(0).add(new LatLng(44.431566,26.1033503));\n listOfpoints.get(0).add(new LatLng(44.4327305,26.1031572));\n listOfpoints.get(0).add(new LatLng(44.4337724,26.1029211));\n listOfpoints.get(0).add(new LatLng(44.4342474,26.1028138));\n listOfpoints.get(0).add(new LatLng( 44.4348756,26.1025563));\n listOfpoints.get(0).add(new LatLng(44.4353199,26.1023203));\n listOfpoints.get(0).add(new LatLng( 44.4353046,26.101977));\n listOfpoints.get(0).add(new LatLng( 44.4352893,26.1015478));\n listOfpoints.get(0).add(new LatLng(44.4351974,26.1010758));\n listOfpoints.get(0).add(new LatLng(44.4350595,26.100432));\n listOfpoints.get(0).add(new LatLng(44.4348756,26.0995523));\n listOfpoints.get(0).add(new LatLng(44.4346458,26.0983292));\n listOfpoints.get(0).add(new LatLng(44.4343547,26.098415));\n listOfpoints.get(0).add(new LatLng( 44.4340176,26.0983506));\n listOfpoints.get(0).add(new LatLng( 44.4327918,26.0975996));\n listOfpoints.get(0).add(new LatLng(44.4318878,26.0972134));\n listOfpoints.get(0).add(new LatLng( 44.4307692,26.0968701));\n listOfpoints.get(0).add(new LatLng( 44.4300644,26.0968271));\n listOfpoints.get(0).add(new LatLng( 44.4298498,26.0972992));\n listOfpoints.get(0).add(new LatLng(44.4297732,26.0977713));\n listOfpoints.get(0).add(new LatLng(44.4296966,26.0985867));\n listOfpoints.get(0).add(new LatLng (44.4296506,26.0994235));\n listOfpoints.get(0).add(new LatLng (44.4295587,26.1002389));\n listOfpoints.get(0).add(new LatLng (44.4294361,26.1007754));\n listOfpoints.get(0).add(new LatLng (44.4292369,26.1016766));\n listOfpoints.get(0).add(new LatLng (44.429099,26.1025778));\n listOfpoints.get(0).add(new LatLng (44.4289917,26.1033717));\n\n\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n listOfpoints.get(1).add(new LatLng (44.43630606,26.1017829));\n listOfpoints.get(1).add(new LatLng (44.4370654,26.101461));\n listOfpoints.get(1).add(new LatLng (44.4382451,26.1007958));\n listOfpoints.get(1).add(new LatLng (44.4393176,26.1002379));\n listOfpoints.get(1).add(new LatLng (44.4406045,26.0996371));\n listOfpoints.get(1).add(new LatLng (44.4418301,26.0990792));\n listOfpoints.get(1).add(new LatLng (44.4415084,26.0983067));\n listOfpoints.get(1).add(new LatLng (44.4412173,26.0977059));\n listOfpoints.get(1).add(new LatLng (44.4409875,26.097148));\n listOfpoints.get(1).add(new LatLng (44.4406811,26.0965472));\n listOfpoints.get(1).add(new LatLng (44.4404207,26.0959893));\n listOfpoints.get(1).add(new LatLng (44.4400989,26.0963326));\n listOfpoints.get(1).add(new LatLng (44.4393636,26.0968691));\n listOfpoints.get(1).add(new LatLng (44.4390725,26.0969549));\n listOfpoints.get(1).add(new LatLng (44.4381532,26.0971051));\n listOfpoints.get(1).add(new LatLng (44.4372952,26.0975557));\n listOfpoints.get(1).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(1).add(new LatLng (44.4358244,26.0977918));\n listOfpoints.get(1).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(1).add(new LatLng (44.4348132,26.0979205));\n listOfpoints.get(1).add(new LatLng (44.4348591,26.0983497));\n listOfpoints.get(1).add(new LatLng (44.4352115,26.1003452));\n listOfpoints.get(1).add(new LatLng (44.435472,26.1017185));\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n\n\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n listOfpoints.get(2).add(new LatLng (44.435899,26.1039688));\n listOfpoints.get(2).add(new LatLng (44.4360216,26.1044623));\n listOfpoints.get(2).add(new LatLng (44.4360982,26.1049988));\n listOfpoints.get(2).add(new LatLng (44.4362361,26.1055781));\n listOfpoints.get(2).add(new LatLng (44.4363127,26.1059));\n listOfpoints.get(2).add(new LatLng (44.4364506,26.1063721));\n listOfpoints.get(2).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(2).add(new LatLng (44.4367264,26.1068441));\n listOfpoints.get(2).add(new LatLng (44.4369715,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4374312,26.1073591));\n listOfpoints.get(2).add(new LatLng (44.4380593,26.1076381));\n listOfpoints.get(2).add(new LatLng (44.4386722,26.1078741));\n listOfpoints.get(2).add(new LatLng (44.439239,26.1080672));\n listOfpoints.get(2).add(new LatLng (44.4399744,26.1083033));\n listOfpoints.get(2).add(new LatLng (44.4406485,26.1084106));\n listOfpoints.get(2).add(new LatLng (44.4407557,26.1080458));\n listOfpoints.get(2).add(new LatLng (44.440817,26.1075737));\n listOfpoints.get(2).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(2).add(new LatLng (44.4410928,26.1070587));\n listOfpoints.get(2).add(new LatLng (44.4419814,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4422877,26.1071875));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.107445));\n listOfpoints.get(2).add(new LatLng (44.443498,26.107402));\n listOfpoints.get(2).add(new LatLng (44.4433754,26.10693));\n listOfpoints.get(2).add(new LatLng (44.4432988,26.1065008));\n listOfpoints.get(2).add(new LatLng (44.4431763,26.1059858));\n listOfpoints.get(2).add(new LatLng (44.4429465,26.1052992));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1044838));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1036469));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1029818));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.1027457));\n listOfpoints.get(2).add(new LatLng (44.4431303,26.1025311));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1022737));\n listOfpoints.get(2).add(new LatLng (44.4427627,26.101866));\n listOfpoints.get(2).add(new LatLng (44.4426707,26.1015656));\n listOfpoints.get(2).add(new LatLng (44.4426554,26.101072));\n listOfpoints.get(2).add(new LatLng (44.4427014,26.1002781));\n listOfpoints.get(2).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(2).add(new LatLng (44.4420426,26.0993125));\n listOfpoints.get(2).add(new LatLng (44.4412,26.0997202));\n listOfpoints.get(2).add(new LatLng (44.4400663,26.100321));\n listOfpoints.get(2).add(new LatLng (44.4390399,26.100836));\n listOfpoints.get(2).add(new LatLng (44.4382279,26.1012651));\n listOfpoints.get(2).add(new LatLng (44.4374924,26.1016514));\n listOfpoints.get(2).add(new LatLng (44.4366038,26.1021449));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1026384));\n listOfpoints.get(2).add(new LatLng (44.4357305,26.1027886));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n\n\n listOfpoints.get(3).add(new LatLng (44.4290806,26.1040332));\n listOfpoints.get(3).add(new LatLng (44.4295709,26.1054494));\n listOfpoints.get(3).add(new LatLng (44.4302604,26.1070373));\n listOfpoints.get(3).add(new LatLng (44.4307508,26.1080887));\n listOfpoints.get(3).add(new LatLng (44.432804,26.111994));\n listOfpoints.get(3).add(new LatLng (44.4329113,26.1123373));\n listOfpoints.get(3).add(new LatLng (44.4330798,26.1136248));\n listOfpoints.get(3).add(new LatLng (44.4332483,26.1150195));\n listOfpoints.get(3).add(new LatLng (44.433325,26.1158349));\n listOfpoints.get(3).add(new LatLng (44.4347959,26.1162855));\n listOfpoints.get(3).add(new LatLng (44.4359143,26.1166288));\n listOfpoints.get(3).add(new LatLng (44.4365272,26.1168005));\n listOfpoints.get(3).add(new LatLng (44.4367723,26.1168434));\n listOfpoints.get(3).add(new LatLng (44.4373852,26.1166503));\n listOfpoints.get(3).add(new LatLng (44.43809,26.1163713));\n listOfpoints.get(3).add(new LatLng (44.4378755,26.1154272));\n listOfpoints.get(3).add(new LatLng (44.435516,26.1027672));\n listOfpoints.get(3).add(new LatLng (44.433708,26.1034109));\n listOfpoints.get(3).add(new LatLng (44.4330032,26.1035826));\n listOfpoints.get(3).add(new LatLng (44.4321451,26.1038401));\n listOfpoints.get(3).add(new LatLng (44.4309959,26.1039259));\n listOfpoints.get(3).add(new LatLng (44.4302451,26.1039903));\n listOfpoints.get(3).add(new LatLng (44.4296628,26.1039903));\n listOfpoints.get(3).add(new LatLng(44.4290806,26.1040332));\n\n\n\n listOfpoints.get(4).add(new LatLng ( 44.4343669 ,26.0798289));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0801508));\n listOfpoints.get(4).add(new LatLng (44.4335088 ,26.0905363));\n listOfpoints.get(4).add(new LatLng (44.4333862 ,26.092124));\n listOfpoints.get(4).add(new LatLng ( 44.433233 ,26.0926177));\n listOfpoints.get(4).add(new LatLng ( 44.4329879 ,26.0932614));\n listOfpoints.get(4).add(new LatLng (44.4327427 , 26.0936906));\n listOfpoints.get(4).add(new LatLng (44.4301838 ,26.0965659));\n listOfpoints.get(4).add(new LatLng (44.4301685 ,26.0967161));\n listOfpoints.get(4).add(new LatLng (44.4305209 ,26.096759));\n listOfpoints.get(4).add(new LatLng (44.4311338 ,26.0968878));\n listOfpoints.get(4).add(new LatLng (44.4317468 ,26.097038));\n listOfpoints.get(4).add(new LatLng (44.4323137 ,26.0972955));\n listOfpoints.get(4).add(new LatLng (44.4327427 ,26.0974457));\n listOfpoints.get(4).add(new LatLng (44.4333709 ,26.0978534));\n listOfpoints.get(4).add(new LatLng (44.4338919 ,26.0981538));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0982611));\n listOfpoints.get(4).add(new LatLng ( 44.4345354 ,26.0982611));\n listOfpoints.get(4).add(new LatLng (44.4346886 ,26.0981752));\n listOfpoints.get(4).add(new LatLng (44.4345814, 26.0918667));\n listOfpoints.get(4).add(new LatLng (44.4343669 ,26.0798289));\n\n\n listOfpoints.get(5).add(new LatLng (44.4348405,26.097773));\n listOfpoints.get(5).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(5).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(5).add(new LatLng (44.4372952, 26.0975557));\n listOfpoints.get(5).add(new LatLng (44.4381532, 26.0971051));\n listOfpoints.get(5).add(new LatLng ( 44.4393636,26.0968691));\n listOfpoints.get(5).add(new LatLng(44.4397739, 26.0964855));\n listOfpoints.get(5).add(new LatLng (44.4402029,26.0960993));\n listOfpoints.get(5).add(new LatLng (44.4406778,26.0956487));\n listOfpoints.get(5).add(new LatLng(44.4405706,26.0952195));\n listOfpoints.get(5).add(new LatLng (44.4403408 ,26.0942539));\n listOfpoints.get(5).add(new LatLng (44.440065 ,26.0931811));\n listOfpoints.get(5).add(new LatLng (44.4400497, 26.0919151));\n listOfpoints.get(5).add(new LatLng (44.4398199 ,26.0897693));\n listOfpoints.get(5).add(new LatLng (44.4397893 ,26.0891041));\n listOfpoints.get(5).add(new LatLng (44.4399271 , 26.0879668));\n listOfpoints.get(5).add(new LatLng (44.4399731 ,26.0873017));\n listOfpoints.get(5).add(new LatLng (44.4399884 ,26.0867223));\n listOfpoints.get(5).add(new LatLng (44.4365719, 26.0887179));\n listOfpoints.get(5).add(new LatLng (44.434672 ,26.0898337));\n listOfpoints.get(5).add(new LatLng (44.4348405 ,26.097773));\n\n\n listOfpoints.get(6).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(6).add(new LatLng (44.4365354,26.1075151));\n listOfpoints.get(6).add(new LatLng (44.4375926,26.113137));\n listOfpoints.get(6).add(new LatLng (44.4378224,26.114167));\n listOfpoints.get(6).add(new LatLng (44.4435828,26.1191452));\n listOfpoints.get(6).add(new LatLng (44.4440117, 26.1184585));\n listOfpoints.get(6).add(new LatLng (44.4448849, 26.1172784));\n listOfpoints.get(6).add(new LatLng (44.4457888,26.1161411));\n listOfpoints.get(6).add(new LatLng (44.4462483, 26.1149395));\n listOfpoints.get(6).add(new LatLng (44.4466773, 26.113137));\n listOfpoints.get(6).add(new LatLng (44.4467998, 26.1121929));\n listOfpoints.get(6).add(new LatLng (44.4467539, 26.1112917));\n listOfpoints.get(6).add(new LatLng (44.4469683, 26.1101973));\n listOfpoints.get(6).add(new LatLng (44.4458041, 26.1093176));\n listOfpoints.get(6).add(new LatLng (44.4453905, 26.1091888));\n listOfpoints.get(6).add(new LatLng (44.4448083, 26.1089099));\n listOfpoints.get(6).add(new LatLng (44.4442109, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4435828, 26.1076224));\n listOfpoints.get(6).add(new LatLng (44.4433377, 26.107558));\n listOfpoints.get(6).add(new LatLng (44.4420662,26.1072791));\n listOfpoints.get(6).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(6).add(new LatLng (44.4407946,26.1082018));\n listOfpoints.get(6).add(new LatLng ( 44.4406107,26.1085451));\n listOfpoints.get(6).add(new LatLng (44.43986, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4384659, 26.1079014));\n listOfpoints.get(6).add(new LatLng (44.4372095, 26.1073864));\n listOfpoints.get(6).add(new LatLng (44.4365425, 26.1067583));\n\n\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n listOfpoints.get(7).add(new LatLng ( 44.4265883,26.1107511));\n listOfpoints.get(7).add(new LatLng (44.4261898,26.118905));\n listOfpoints.get(7).add(new LatLng (44.4274311,26.1189909));\n listOfpoints.get(7).add(new LatLng (44.4276303,26.1189265));\n listOfpoints.get(7).add(new LatLng (44.4285497,26.1191625));\n listOfpoints.get(7).add(new LatLng (44.4288408,26.1193342));\n listOfpoints.get(7).add(new LatLng (44.4294997,26.1199564));\n listOfpoints.get(7).add(new LatLng (44.4297909, 26.1200852));\n listOfpoints.get(7).add(new LatLng (44.4303272,26.1203427));\n listOfpoints.get(7).add(new LatLng (44.431124, 26.1205787));\n listOfpoints.get(7).add(new LatLng (44.4328861, 26.1207289));\n listOfpoints.get(7).add(new LatLng (44.4329933, 26.1206431));\n listOfpoints.get(7).add(new LatLng (44.4331159, 26.1194844));\n listOfpoints.get(7).add(new LatLng (44.4331925,26.118154));\n listOfpoints.get(7).add(new LatLng (44.4332844,26.1160512));\n listOfpoints.get(7).add(new LatLng (44.4328094,26.112339));\n listOfpoints.get(7).add(new LatLng (44.4327022, 26.1120171));\n listOfpoints.get(7).add(new LatLng (44.4299135, 26.1064596));\n listOfpoints.get(7).add(new LatLng (44.4289634,26.1040778));\n listOfpoints.get(7).add(new LatLng (44.4281819,26.1039705));\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n\n\n\n\n listOfpoints.get(8).add (new LatLng (44.4262461,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4260163,26.1014488));\n listOfpoints.get(8).add (new LatLng (44.4259397,26.1023715));\n listOfpoints.get(8).add (new LatLng (44.4258784,26.103616));\n listOfpoints.get(8).add (new LatLng (44.426001,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.42643,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.4272882,26.1038735));\n listOfpoints.get(8).add (new LatLng (44.4282995,26.1038306));\n listOfpoints.get(8).add (new LatLng (44.4289278,26.1035731));\n listOfpoints.get(8).add (new LatLng (44.4289431,26.1028006));\n listOfpoints.get(8).add (new LatLng (44.4291423,26.1015132));\n listOfpoints.get(8).add (new LatLng (44.4286366,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4284834,26.1010196));\n listOfpoints.get(8).add (new LatLng (44.4271043,26.1008694));\n listOfpoints.get(8).add (new LatLng (44.4262461, 26.1007836));\n\n\n\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n listOfpoints.get(9).add(new LatLng (44.4284834,26.1010196));\n listOfpoints.get(9).add(new LatLng (44.4290094,26.1000479));\n listOfpoints.get(9).add(new LatLng (44.4292545,26.0986961));\n listOfpoints.get(9).add(new LatLng (44.4293465,26.0971726));\n listOfpoints.get(9).add(new LatLng (44.4294844,26.0964216));\n listOfpoints.get(9).add(new LatLng (44.4301739,26.0956276));\n listOfpoints.get(9).add(new LatLng (44.432411,26.0931385));\n listOfpoints.get(9).add(new LatLng (44.4327022,26.0925163));\n listOfpoints.get(9).add(new LatLng (44.4328401,26.0919584));\n listOfpoints.get(9).add(new LatLng (44.4329014, 26.0913576));\n listOfpoints.get(9).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(9).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(9).add(new LatLng (44.4265882, 26.0922588));\n listOfpoints.get(9).add(new LatLng (44.4269867,26.0926879));\n listOfpoints.get(9).add(new LatLng (44.4267108,26.0998763));\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n\n\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(10).add(new LatLng (44.4215507, 26.0903665));\n listOfpoints.get(10).add(new LatLng (44.4255811,26.0980483));\n listOfpoints.get(10).add(new LatLng ( 44.4265772,26.0999795));\n listOfpoints.get(10).add(new LatLng (44.4266998,26.099722));\n listOfpoints.get(10).add(new LatLng (44.4269867, 26.0926879));\n listOfpoints.get(10).add(new LatLng (44.4265882,26.0922588));\n listOfpoints.get(10).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n\n\n listOfpoints.get(11).add(new LatLng (44.4214281, 26.0905382));\n listOfpoints.get(11).add(new LatLng (44.4207385, 26.0915467));\n listOfpoints.get(11).add(new LatLng (44.4199568, 26.0929629));\n listOfpoints.get(11).add(new LatLng (44.4192059,26.0943576));\n listOfpoints.get(11).add(new LatLng (44.4187155,26.095409));\n listOfpoints.get(11).add(new LatLng (44.4186235,26.0957524));\n listOfpoints.get(11).add(new LatLng (44.4189607, 26.0968253));\n listOfpoints.get(11).add(new LatLng (44.4212442,26.1039063));\n listOfpoints.get(11).add(new LatLng (44.4227001,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.4251367,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.425765,26.103799));\n listOfpoints.get(11).add(new LatLng (44.425811,26.1027476));\n listOfpoints.get(11).add(new LatLng (44.4259182,26.101503));\n listOfpoints.get(11).add(new LatLng (44.4260715,26.1009237));\n listOfpoints.get(11).add(new LatLng (44.4264086,26.1001297));\n listOfpoints.get(11).add(new LatLng (44.4260255, 26.0993143));\n listOfpoints.get(11).add(new LatLng (44.4252899, 26.0978981));\n listOfpoints.get(11).add(new LatLng (44.424064,26.0955593));\n listOfpoints.get(11).add(new LatLng (44.4230372,26.0935851));\n listOfpoints.get(11).add(new LatLng (44.4214281,26.0905382));\n\n\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n listOfpoints.get(12).add(new LatLng (44.4216123,26.1052654));\n listOfpoints.get(12).add(new LatLng (44.4226851,26.1084411));\n listOfpoints.get(12).add(new LatLng (44.4237731,26.1117241));\n listOfpoints.get(12).add(new LatLng (44.4244168,26.11181));\n listOfpoints.get(12).add(new LatLng (44.4263629,26.1118743));\n listOfpoints.get(12).add(new LatLng (44.4264242,26.1109946));\n listOfpoints.get(12).add(new LatLng (44.4265315,26.1078832));\n listOfpoints.get(12).add(new LatLng (44.4267154,26.1041496));\n listOfpoints.get(12).add(new LatLng (44.4254588, 26.1042354));\n listOfpoints.get(12).add(new LatLng (44.4242482,26.1041925));\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n\n\n\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n listOfpoints.get(13).add(new LatLng (44.4208987, 26.1041756));\n listOfpoints.get(13).add(new LatLng (44.4155345,26.1045404));\n listOfpoints.get(13).add(new LatLng (44.4156111, 26.1051198));\n listOfpoints.get(13).add(new LatLng (44.4156724, 26.106257));\n listOfpoints.get(13).add(new LatLng (44.4157184,26.1068793));\n listOfpoints.get(13).add(new LatLng (44.4157797, 26.1071153));\n listOfpoints.get(13).add(new LatLng (44.415841, 26.1077805));\n listOfpoints.get(13).add(new LatLng (44.4159024,26.1090465));\n listOfpoints.get(13).add(new LatLng (44.416025,26.1110635));\n listOfpoints.get(13).add(new LatLng (44.4161629,26.1116643));\n listOfpoints.get(13).add(new LatLng (44.4163468, 26.112072));\n listOfpoints.get(13).add(new LatLng (44.4166993,26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4170518, 26.1133595));\n listOfpoints.get(13).add(new LatLng (44.4177109, 26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4184006,26.1118575));\n listOfpoints.get(13).add(new LatLng (44.4190136,26.1112566));\n listOfpoints.get(13).add(new LatLng (44.4199331, 26.1107846));\n listOfpoints.get(13).add(new LatLng (44.4215883,26.1101838));\n listOfpoints.get(13).add(new LatLng (44.4229369,26.10954));\n listOfpoints.get(13).add(new LatLng (44.422753, 26.1089178));\n listOfpoints.get(13).add(new LatLng (44.4222626,26.1074372));\n listOfpoints.get(13).add(new LatLng (44.4217262,26.1059137));\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n\n\n\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n listOfpoints.get(14).add(new LatLng (44.4169314,26.1139266));\n listOfpoints.get(14).add(new LatLng (44.4177284,26.1143128));\n listOfpoints.get(14).add(new LatLng (44.4185253,26.1147205));\n listOfpoints.get(14).add(new LatLng (44.4237666,26.1189047));\n listOfpoints.get(14).add(new LatLng (44.4237819,26.1191408));\n listOfpoints.get(14).add(new LatLng (44.4240425,26.1191622));\n listOfpoints.get(14).add(new LatLng (44.4258814,26.1192481));\n listOfpoints.get(14).add(new LatLng (44.425912,26.1188404));\n listOfpoints.get(14).add(new LatLng (44.426004,26.1167804));\n listOfpoints.get(14).add(new LatLng (44.4261113,26.1148063));\n listOfpoints.get(14).add(new LatLng (44.4262798,26.1120812));\n listOfpoints.get(14).add(new LatLng (44.4238739,26.1119525));\n listOfpoints.get(14).add(new LatLng (44.4235674,26.1115662));\n listOfpoints.get(14).add(new LatLng (44.4230157,26.109914));\n listOfpoints.get(14).add(new LatLng (44.4218817,26.1103646));\n listOfpoints.get(14).add(new LatLng (44.4200733,26.1110512));\n listOfpoints.get(14).add(new LatLng (44.4187246,26.1118666));\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n\n\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n listOfpoints.get(15).add(new LatLng (44.4334184,26.0843973));\n listOfpoints.get(15).add(new LatLng (44.4305378,26.0839467));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0840969));\n listOfpoints.get(15).add(new LatLng (44.4305531,26.0845475));\n listOfpoints.get(15).add(new LatLng (44.4306604,26.0853844));\n listOfpoints.get(15).add(new LatLng (44.4302773,26.0908131));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0910277));\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n\n\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n listOfpoints.get(16).add(new LatLng (44.4252956,26.0790543));\n listOfpoints.get(16).add(new LatLng (44.4246213,26.0901265));\n listOfpoints.get(16).add(new LatLng (44.4247746,26.0905127));\n listOfpoints.get(16).add(new LatLng (44.4298621,26.0909634));\n listOfpoints.get(16).add(new LatLng (44.4300919,26.0907273));\n listOfpoints.get(16).add(new LatLng (44.430475,26.0853414));\n listOfpoints.get(16).add(new LatLng ( 44.4291112,26.0806422));\n listOfpoints.get(16).add(new LatLng (44.428391,26.0795693));\n listOfpoints.get(16).add(new LatLng (44.4277781,26.0794835));\n listOfpoints.get(16).add(new LatLng (44.42574,26.0784535));\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n\n\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n listOfpoints.get(17).add(new LatLng (44.433312,26.1178736));\n listOfpoints.get(17).add(new LatLng (44.4331128,26.1208562));\n listOfpoints.get(17).add(new LatLng (44.4327757,26.1238603));\n listOfpoints.get(17).add(new LatLng (44.4325765,26.1256413));\n listOfpoints.get(17).add(new LatLng (44.4354264,26.1251477));\n listOfpoints.get(17).add(new LatLng (44.4389196,26.122723));\n listOfpoints.get(17).add(new LatLng (44.4391954,26.1224012));\n listOfpoints.get(17).add(new LatLng (44.4381383,26.1165003));\n listOfpoints.get(17).add(new LatLng (44.4368666,26.1169724));\n listOfpoints.get(17).add(new LatLng (44.4364683,26.1169295));\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n\n\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n listOfpoints.get(18).add(new LatLng (44.4453896, 26.0909388));\n listOfpoints.get(18).add(new LatLng (44.4444245,26.0918185));\n listOfpoints.get(18).add(new LatLng (44.4428313, 26.093342));\n listOfpoints.get(18).add(new LatLng (44.4413912,26.0947797));\n listOfpoints.get(18).add(new LatLng (44.4405333,26.0959169));\n listOfpoints.get(18).add(new LatLng (44.4419274,26.0990069));\n listOfpoints.get(18).add(new LatLng (44.4433368,26.0983202));\n listOfpoints.get(18).add(new LatLng (44.4452824,26.0973761));\n listOfpoints.get(18).add(new LatLng (44.446707,26.0966894));\n listOfpoints.get(18).add(new LatLng (44.4468296,26.0961959));\n listOfpoints.get(18).add(new LatLng (44.4465385,26.0945651));\n listOfpoints.get(18).add(new LatLng (44.4462628,26.0935351));\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n\n\n listOfpoints.get(19).add(new LatLng (44.4401196,26.0817507));\n listOfpoints.get(19).add(new LatLng (44.4401043,26.0831669));\n listOfpoints.get(19).add(new LatLng (44.4402115,26.0846046));\n listOfpoints.get(19).add(new LatLng (44.440089,26.0863641));\n listOfpoints.get(19).add(new LatLng (44.4399358,26.0894755));\n listOfpoints.get(19).add(new LatLng ( 44.4402115, 26.0932949));\n listOfpoints.get(19).add(new LatLng (44.4407937,26.0953763));\n listOfpoints.get(19).add(new LatLng (44.440855,26.0952047));\n listOfpoints.get(19).add(new LatLng (44.4450832,26.0910419));\n listOfpoints.get(19).add(new LatLng (44.4454509,26.0905698));\n listOfpoints.get(19).add(new LatLng (44.4445011,26.0879949));\n listOfpoints.get(19).add(new LatLng (44.4437964,26.0862783));\n listOfpoints.get(19).add(new LatLng (44.4434287,26.0840681));\n listOfpoints.get(19).add(new LatLng (44.443061, 26.0812143));\n listOfpoints.get(19).add(new LatLng (44.4423257, 26.0809997));\n listOfpoints.get(19).add(new LatLng (44.4419887, 26.0810211));\n listOfpoints.get(19).add(new LatLng (44.4411767, 26.0813215));\n listOfpoints.get(19).add(new LatLng (44.4401196, 26.0817507));\n\n\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n listOfpoints.get(20).add(new LatLng (44.4145114,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.0990294));\n listOfpoints.get(20).add(new LatLng (44.4143735, 26.0993727));\n listOfpoints.get(20).add(new LatLng (44.4144195, 26.0998233));\n listOfpoints.get(20).add(new LatLng (44.4142969, 26.1008104));\n listOfpoints.get(20).add(new LatLng (44.4140976,26.1009177));\n listOfpoints.get(20).add(new LatLng (44.4138983,26.1008962));\n listOfpoints.get(20).add(new LatLng (44.4138064,26.1006602));\n listOfpoints.get(20).add(new LatLng (44.4137451,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4130247,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4127335,26.0984286));\n listOfpoints.get(20).add(new LatLng (44.4113386,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4102503, 26.0985788));\n listOfpoints.get(20).add(new LatLng (44.414021,26.1043509));\n listOfpoints.get(20).add(new LatLng (44.4143122,26.1043938));\n listOfpoints.get(20).add(new LatLng (44.4159522,26.1042865));\n listOfpoints.get(20).add(new LatLng (44.4191554,26.104029));\n listOfpoints.get(20).add(new LatLng (44.4210711,26.1038574));\n listOfpoints.get(20).add(new LatLng (44.4208259,26.1030205));\n listOfpoints.get(20).add(new LatLng (44.4203508,26.1016258));\n listOfpoints.get(20).add(new LatLng (44.4198297,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4192167, 26.0981067));\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n\n\n listOfpoints.get(21).add(new LatLng (44.410189,26.0984071));\n listOfpoints.get(21).add(new LatLng (44.4103883,26.0984715));\n listOfpoints.get(21).add(new LatLng (44.4128867,26.0983213));\n listOfpoints.get(21).add(new LatLng (44.4138524, 26.1000594));\n listOfpoints.get(21).add(new LatLng (44.4138524,26.1004671));\n listOfpoints.get(21).add(new LatLng (44.4139597,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4141742,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.1003812));\n listOfpoints.get(21).add(new LatLng (44.4143275,26.0996946));\n listOfpoints.get(21).add(new LatLng (44.4141589,26.0986646));\n listOfpoints.get(21).add(new LatLng (44.418435,26.0957464));\n listOfpoints.get(21).add(new LatLng (44.4190021,26.0946306));\n listOfpoints.get(21).add(new LatLng (44.4183737,26.0934504));\n listOfpoints.get(21).add(new LatLng (44.4176534, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4165652, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4155996,26.0927423));\n listOfpoints.get(21).add(new LatLng (44.4149406,26.0921415));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.0919055));\n listOfpoints.get(21).add(new LatLng (44.412994, 26.0920986));\n listOfpoints.get(21).add(new LatLng (44.4098211,26.0943945));\n listOfpoints.get(21).add(new LatLng (44.4096679,26.0947164));\n listOfpoints.get(21).add(new LatLng (44.4096985, 26.0953816));\n listOfpoints.get(21).add(new LatLng (44.4088401, 26.0962399));\n listOfpoints.get(21).add(new LatLng (44.4088248,26.0966047));\n listOfpoints.get(21).add(new LatLng (44.410189, 26.0984071));\n\n\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n listOfpoints.get(22).add(new LatLng (44.4252745,26.0779102));\n listOfpoints.get(22).add(new LatLng (44.426102,26.0783394));\n listOfpoints.get(22).add(new LatLng (44.4286458, 26.079541));\n listOfpoints.get(22).add(new LatLng (44.4293813,26.0807855));\n listOfpoints.get(22).add(new LatLng (44.4303313,26.0837038));\n listOfpoints.get(22).add(new LatLng (44.4329668,26.08409));\n listOfpoints.get(22).add(new LatLng (44.4335797,26.0839613));\n listOfpoints.get(22).add(new LatLng (44.4337023,26.0821159));\n listOfpoints.get(22).add(new LatLng (44.4339474,26.0797556));\n listOfpoints.get(22).add(new LatLng (44.434499,26.078039));\n listOfpoints.get(22).add(new LatLng (44.4358473,26.0748632));\n listOfpoints.get(22).add(new LatLng (44.4351732,26.073962));\n listOfpoints.get(22).add(new LatLng (44.433212,26.0710867));\n listOfpoints.get(22).add(new LatLng (44.4312201,26.0683401));\n listOfpoints.get(22).add(new LatLng (44.4299329,26.067396));\n listOfpoints.get(22).add(new LatLng (44.4283087,26.0655506));\n listOfpoints.get(22).add(new LatLng (44.4274812,26.0668381));\n listOfpoints.get(22).add(new LatLng (44.4261633,26.0691984));\n listOfpoints.get(22).add(new LatLng (44.4249374,26.0715587));\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n\n\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n listOfpoints.get(23).add(new LatLng (44.4169069,26.0695417));\n listOfpoints.get(23).add(new LatLng (44.4131364,26.073447));\n listOfpoints.get(23).add(new LatLng (44.4139948,26.0749491));\n listOfpoints.get(23).add(new LatLng (44.4156807,26.0782106));\n listOfpoints.get(23).add(new LatLng (44.4178265,26.0819443));\n listOfpoints.get(23).add(new LatLng (44.4184089,26.0840471));\n listOfpoints.get(23).add(new LatLng (44.4213514,26.0900982));\n listOfpoints.get(23).add(new LatLng (44.4240486, 26.0903986));\n listOfpoints.get(23).add(new LatLng (44.424447,26.0897978));\n listOfpoints.get(23).add(new LatLng (44.4252132,26.0783394));\n listOfpoints.get(23).add(new LatLng (44.4236808, 26.0737474));\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n\n\n\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(24).add(new LatLng (44.442854,26.1011417));\n listOfpoints.get(24).add(new LatLng (44.4434668,26.1027725));\n listOfpoints.get(24).add(new LatLng (44.4430685, 26.1033304));\n listOfpoints.get(24).add(new LatLng (44.4430685,26.1047895));\n listOfpoints.get(24).add(new LatLng (44.4437732,26.1076648));\n listOfpoints.get(24).add(new LatLng (44.4446617,26.1085661));\n listOfpoints.get(24).add(new LatLng (44.4461629,26.1092956));\n listOfpoints.get(24).add(new LatLng (44.447174,26.1100252));\n listOfpoints.get(24).add(new LatLng (44.4473272,26.108609));\n listOfpoints.get(24).add(new LatLng (44.4480624,26.107064));\n listOfpoints.get(24).add(new LatLng (44.4480931,26.1060341));\n listOfpoints.get(24).add(new LatLng (44.4476948,26.1029871));\n listOfpoints.get(24).add(new LatLng (44.448522, 26.1028583));\n listOfpoints.get(24).add(new LatLng (44.4499006,26.102515));\n listOfpoints.get(24).add(new LatLng (44.4509729, 26.101485));\n listOfpoints.get(24).add(new LatLng (44.4529335,26.1007555));\n listOfpoints.get(24).add(new LatLng (44.452719,26.0935457));\n listOfpoints.get(24).add(new LatLng (44.4521063,26.0865934));\n listOfpoints.get(24).add(new LatLng (44.4506359,26.0897262));\n listOfpoints.get(24).add(new LatLng (44.4472046,26.0966785));\n listOfpoints.get(24).add(new LatLng (44.4465306,26.0971077));\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n\n\n listOfpoints.get(25).add(new LatLng (44.3944544,26.1201103));\n listOfpoints.get(25).add(new LatLng (44.3948837,26.1205394));\n listOfpoints.get(25).add(new LatLng (44.400587,26.1207969));\n listOfpoints.get(25).add(new LatLng (44.4069336,26.1209686));\n listOfpoints.get(25).add(new LatLng (44.4075468,26.1204536));\n listOfpoints.get(25).add(new LatLng (44.4081599,26.119252));\n listOfpoints.get(25).add(new LatLng (44.4083439, 26.1177499));\n listOfpoints.get(25).add(new LatLng (44.4084665, 26.1148317));\n listOfpoints.get(25).add(new LatLng (44.4090183,26.1131151));\n listOfpoints.get(25).add(new LatLng (44.4102139, 26.1109693));\n listOfpoints.get(25).add(new LatLng (44.411992,26.106549));\n listOfpoints.get(25).add(new LatLng (44.4128197, 26.105562));\n listOfpoints.get(25).add(new LatLng (44.4140152, 26.1047037));\n listOfpoints.get(25).add(new LatLng (44.4105512, 26.099468));\n listOfpoints.get(25).add(new LatLng (44.4088344, 26.0971077));\n listOfpoints.get(25).add(new LatLng (44.4074854,26.0960777));\n listOfpoints.get(25).add(new LatLng (44.4067803, 26.0957773));\n listOfpoints.get(25).add(new LatLng (44.4047262, 26.096936));\n listOfpoints.get(25).add(new LatLng (44.4024267, 26.098481));\n listOfpoints.get(25).add(new LatLng (44.4015068, 26.0996826));\n listOfpoints.get(25).add(new LatLng (44.3998818, 26.1055191));\n listOfpoints.get(25).add(new LatLng (44.3944544, 26.1201103));\n\n\n\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4526408,26.0898486));\n listOfpoints.get(26).add(new LatLng (44.4530697,26.0983887));\n listOfpoints.get(26).add(new LatLng (44.4558573,26.0971013));\n listOfpoints.get(26).add(new LatLng ( 44.4622592,26.0925522));\n listOfpoints.get(26).add(new LatLng ( 44.4635762, 26.0910073));\n listOfpoints.get(26).add(new LatLng (44.4658121,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4631474,26.0864153));\n listOfpoints.get(26).add(new LatLng (44.4534067,26.0861578));\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n\n\n\n listOfpoints.get(27).add(new LatLng (44.4346864, 26.0895482));\n listOfpoints.get(27).add(new LatLng (44.4398343, 26.0864583));\n listOfpoints.get(27).add(new LatLng (44.439865,26.0816947));\n listOfpoints.get(27).add(new LatLng (44.4420098,26.0807076));\n listOfpoints.get(27).add(new LatLng (44.4429903, 26.0808793));\n listOfpoints.get(27).add(new LatLng (44.4426532,26.0791626));\n listOfpoints.get(27).add(new LatLng (44.4405084, 26.0729399));\n listOfpoints.get(27).add(new LatLng (44.440202, 26.0727253));\n listOfpoints.get(27).add(new LatLng (44.4384555, 26.0702363));\n listOfpoints.get(27).add(new LatLng (44.4362186, 26.0744849));\n listOfpoints.get(27).add(new LatLng (44.4344413,26.0792914));\n listOfpoints.get(27).add(new LatLng (44.4346864,26.0895482));\n\n\n\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n listOfpoints.get(28).add(new LatLng (44.443061,26.0812143));\n listOfpoints.get(28).add(new LatLng (44.4437562,26.0855141));\n listOfpoints.get(28).add(new LatLng (44.4440626,26.0866299));\n listOfpoints.get(28).add(new LatLng (44.444798, 26.0884753));\n listOfpoints.get(28).add(new LatLng (44.4465443,26.0937539));\n listOfpoints.get(28).add(new LatLng (44.4468813,26.0958138));\n listOfpoints.get(28).add(new LatLng (44.4471264,26.0961142));\n listOfpoints.get(28).add(new LatLng (44.4492097, 26.0919943));\n listOfpoints.get(28).add(new LatLng (44.4507109,26.0889473));\n listOfpoints.get(28).add(new LatLng (44.4519056, 26.0864153));\n listOfpoints.get(28).add(new LatLng (44.4518137,26.0848275));\n listOfpoints.get(28).add(new LatLng (44.4481987, 26.0827246));\n listOfpoints.get(28).add(new LatLng (44.4455026,26.081523));\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n\n\n\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n listOfpoints.get(29).add(new LatLng (44.437967, 26.115168));\n listOfpoints.get(29).add(new LatLng (44.4410924, 26.131905));\n listOfpoints.get(29).add(new LatLng (44.4413375,26.1327204));\n listOfpoints.get(29).add(new LatLng (44.443758, 26.1284717));\n listOfpoints.get(29).add(new LatLng (44.4467299, 26.1259827));\n listOfpoints.get(29).add(new LatLng (44.4480167,26.1254248));\n listOfpoints.get(29).add(new LatLng (44.4491809, 26.124266));\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n\n\n listOfpoints.get(30).add(new LatLng (44.4129016,26.0735409));\n listOfpoints.get(30).add(new LatLng (44.4072915,26.0791628));\n listOfpoints.get(30).add(new LatLng (44.4031525,26.0816948));\n listOfpoints.get(30).add(new LatLng (44.4003317,26.0844414));\n listOfpoints.get(30).add(new LatLng (44.3973268,26.0850422));\n listOfpoints.get(30).add(new LatLng (44.4005463,26.0880463));\n listOfpoints.get(30).add(new LatLng (44.4017115, 26.0912221));\n listOfpoints.get(30).add(new LatLng (44.4043176,26.0963719));\n listOfpoints.get(30).add(new LatLng (44.4048695, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4060652,26.0956423));\n listOfpoints.get(30).add(new LatLng (44.4070462,26.0953848));\n listOfpoints.get(30).add(new LatLng (44.4084871, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4094682, 26.0951703));\n listOfpoints.get(30).add(new LatLng (44.4094375, 26.0944836));\n listOfpoints.get(30).add(new LatLng (44.4132388, 26.09178));\n listOfpoints.get(30).add(new LatLng (44.4145263, 26.091737));\n listOfpoints.get(30).add(new LatLng (44.4163656,26.0929387));\n listOfpoints.get(30).add(new LatLng (44.4183273,26.0930674));\n listOfpoints.get(30).add(new LatLng (44.4189404,26.0941832));\n listOfpoints.get(30).add(new LatLng (44.4212086, 26.0904067));\n listOfpoints.get(30).add(new LatLng (44.4210553,26.0898488));\n listOfpoints.get(30).add(new LatLng (44.4186339, 26.0850852));\n listOfpoints.get(30).add(new LatLng (44.4181741,26.0840123));\n listOfpoints.get(30).add(new LatLng (44.4176836, 26.0822527));\n listOfpoints.get(30).add(new LatLng (44.4171932,26.0813944));\n listOfpoints.get(30).add(new LatLng (44.4150781, 26.077575));\n listOfpoints.get(30).add(new LatLng (44.4129016, 26.0735409));\n\n\n\n listOfpoints.get(31).add(new LatLng (44.4152528, 26.1045537));\n listOfpoints.get(31).add(new LatLng (44.4142412, 26.1048541));\n listOfpoints.get(31).add(new LatLng (44.4125552,26.1062274));\n listOfpoints.get(31).add(new LatLng (44.4118501,26.1074291));\n listOfpoints.get(31).add(new LatLng (44.4107158,26.1103473));\n listOfpoints.get(31).add(new LatLng (44.4093976,26.1127935));\n listOfpoints.get(31).add(new LatLng (44.4087844, 26.1144243));\n listOfpoints.get(31).add(new LatLng (44.4085392, 26.1156259));\n listOfpoints.get(31).add(new LatLng (44.4085392,26.1170421));\n listOfpoints.get(31).add(new LatLng (44.4083246, 26.1195741));\n listOfpoints.get(31).add(new LatLng (44.4074355, 26.1209903));\n listOfpoints.get(31).add(new LatLng (44.409183, 26.1223636));\n listOfpoints.get(31).add(new LatLng (44.4168774, 26.1136518));\n listOfpoints.get(31).add(new LatLng (44.4158658, 26.1113344));\n listOfpoints.get(31).add(new LatLng (44.4156513, 26.1077295));\n listOfpoints.get(31).add(new LatLng (44.4152528,26.1045537));\n\n\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n listOfpoints.get(32).add(new LatLng (44.4164766, 26.114537));\n listOfpoints.get(32).add(new LatLng (44.4110201,26.120631));\n listOfpoints.get(32).add(new LatLng (44.4094872,26.122648));\n listOfpoints.get(32).add(new LatLng (44.4131046, 26.1296003));\n listOfpoints.get(32).add(new LatLng (44.4151891, 26.1329906));\n listOfpoints.get(32).add(new LatLng (44.4171203, 26.1348789));\n listOfpoints.get(32).add(new LatLng (44.4201242, 26.1365526));\n listOfpoints.get(32).add(new LatLng (44.4204001,26.1351364));\n listOfpoints.get(32).add(new LatLng (44.4206759, 26.1333339));\n listOfpoints.get(32).add(new LatLng (44.42181,26.1313169));\n listOfpoints.get(32).add(new LatLng (44.4228827, 26.1314028));\n listOfpoints.get(32).add(new LatLng (44.4255799, 26.1284845));\n listOfpoints.get(32).add(new LatLng (44.4256412, 26.1274975));\n listOfpoints.get(32).add(new LatLng (44.4257638, 26.1234634));\n listOfpoints.get(32).add(new LatLng (44.425917, 26.1195152));\n listOfpoints.get(32).add(new LatLng (44.4238635, 26.1194294));\n listOfpoints.get(32).add(new LatLng (44.4193273,26.115567));\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n\n\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n listOfpoints.get(33).add(new LatLng (44.4255799,26.1284845));\n listOfpoints.get(33).add(new LatLng (44.4318104,26.1386596));\n listOfpoints.get(33).add(new LatLng (44.4320863,26.1385309));\n listOfpoints.get(33).add(new LatLng (44.4313814,26.1329948));\n listOfpoints.get(33).add(new LatLng (44.4316879,26.129819));\n listOfpoints.get(33).add(new LatLng (44.4326992,26.1229526));\n listOfpoints.get(33).add(new LatLng (44.4328861,26.1207289));\n listOfpoints.get(33).add(new LatLng (44.4300024, 26.1205493));\n listOfpoints.get(33).add(new LatLng (44.4288684,26.1196481));\n listOfpoints.get(33).add(new LatLng (44.4275797,26.1191541));\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n\n\n listOfpoints.get(34).add(new LatLng (44.4202782, 26.1364709));\n listOfpoints.get(34).add(new LatLng (44.4204314,26.1366855));\n listOfpoints.get(34).add(new LatLng (44.4255806,26.1375009));\n listOfpoints.get(34).add(new LatLng (44.4293579,26.1390888));\n listOfpoints.get(34).add(new LatLng (44.4303615,26.139196));\n listOfpoints.get(34).add(new LatLng (44.4317406,26.1386596));\n listOfpoints.get(34).add(new LatLng (44.4266686,26.1303877));\n listOfpoints.get(34).add(new LatLng (44.4255882,26.128596));\n listOfpoints.get(34).add(new LatLng (44.4250212,26.1291968));\n listOfpoints.get(34).add(new LatLng (44.4230214, 26.1315571));\n listOfpoints.get(34).add(new LatLng (44.4227685,26.1316644));\n listOfpoints.get(34).add(new LatLng (44.4217877,26.1315678));\n listOfpoints.get(34).add(new LatLng (44.4207762,26.1334668));\n listOfpoints.get(34).add(new LatLng (44.4202782,26.1364709));\n\n\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n listOfpoints.get(35).add(new LatLng (44.4437985,26.1194425));\n listOfpoints.get(35).add(new LatLng (44.4469926,26.1222749));\n listOfpoints.get(35).add(new LatLng (44.4492443, 26.1240881));\n listOfpoints.get(35).add(new LatLng (44.4504315,26.123144));\n listOfpoints.get(35).add(new LatLng (44.4512893,26.1217492));\n listOfpoints.get(35).add(new LatLng (44.451421, 26.1212347));\n listOfpoints.get(35).add(new LatLng (44.4523401, 26.1180161));\n listOfpoints.get(35).add(new LatLng (44.4527077, 26.1145399));\n listOfpoints.get(35).add(new LatLng (44.452944, 26.1009052));\n listOfpoints.get(35).add(new LatLng (44.4516573,26.1013558));\n listOfpoints.get(35).add(new LatLng (44.4510217,26.1016777));\n listOfpoints.get(35).add(new LatLng (44.4500413,26.1025574));\n listOfpoints.get(35).add(new LatLng (44.449712,26.1027291));\n listOfpoints.get(35).add(new LatLng (44.4477666,26.1031153));\n listOfpoints.get(35).add(new LatLng (44.4479198,26.1042526));\n listOfpoints.get(35).add(new LatLng (44.448027,26.1051967));\n listOfpoints.get(35).add(new LatLng (44.4481419,26.1058619));\n listOfpoints.get(35).add(new LatLng (44.4481189, 26.1070206));\n listOfpoints.get(35).add(new LatLng (44.448004,26.1073425));\n listOfpoints.get(35).add(new LatLng (44.4473836,26.1088338));\n listOfpoints.get(35).add(new LatLng (44.4472917,26.1100569));\n listOfpoints.get(35).add(new LatLng (44.4471385, 26.1102929));\n listOfpoints.get(35).add(new LatLng (44.4469241,26.1116877));\n listOfpoints.get(35).add(new LatLng (44.4469394,26.1122456));\n listOfpoints.get(35).add(new LatLng (44.4467403,26.1136403));\n listOfpoints.get(35).add(new LatLng (44.445959,26.1161938));\n listOfpoints.get(35).add(new LatLng (44.4448254,26.1176744));\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n\n\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n listOfpoints.get(36).add(new LatLng (44.4372662,26.123983));\n listOfpoints.get(36).add(new LatLng (44.4356115, 26.1252275));\n listOfpoints.get(36).add(new LatLng (44.4344471, 26.1254207));\n listOfpoints.get(36).add(new LatLng (44.4324705,26.1258069));\n listOfpoints.get(36).add(new LatLng (44.4315052, 26.1327377));\n listOfpoints.get(36).add(new LatLng (44.432256,26.1385742));\n listOfpoints.get(36).add(new LatLng (44.4351059,26.1373511));\n listOfpoints.get(36).add(new LatLng (44.4376339, 26.1363641));\n listOfpoints.get(36).add(new LatLng (44.4389822, 26.1353985));\n listOfpoints.get(36).add(new LatLng (44.4401772,26.1345402));\n listOfpoints.get(36).add(new LatLng (44.4411883, 26.1334458));\n listOfpoints.get(36).add(new LatLng (44.4402231, 26.1281458));\n listOfpoints.get(36).add(new LatLng (44.4398861,26.126279));\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n\n\n\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n listOfpoints.get(37).add(new LatLng (44.3977135, 26.1097995));\n listOfpoints.get(37).add(new LatLng (44.3909519,26.1099282));\n listOfpoints.get(37).add(new LatLng (44.3874558, 26.1100784));\n listOfpoints.get(37).add(new LatLng (44.3877779, 26.1129538));\n listOfpoints.get(37).add(new LatLng (44.3881766, 26.1154428));\n listOfpoints.get(37).add(new LatLng (44.3886059, 26.1165586));\n listOfpoints.get(37).add(new LatLng (44.3894799, 26.1180178));\n listOfpoints.get(37).add(new LatLng (44.3906606, 26.1193052));\n listOfpoints.get(37).add(new LatLng (44.3927152, 26.1205927));\n listOfpoints.get(37).add(new LatLng (44.3936352, 26.1206785));\n listOfpoints.get(37).add(new LatLng (44.3940339, 26.1202279));\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n\n\n\n listOfpoints.get(38).add(new LatLng (44.389256,26.0917973));\n listOfpoints.get(38).add(new LatLng (44.3892556,26.0920523));\n listOfpoints.get(38).add(new LatLng (44.4003643, 26.0970731));\n listOfpoints.get(38).add(new LatLng (44.4008548, 26.0971482));\n listOfpoints.get(38).add(new LatLng (44.4030625, 26.0971601));\n listOfpoints.get(38).add(new LatLng (44.4043195,26.0965593));\n listOfpoints.get(38).add(new LatLng (44.4019587, 26.0920531));\n listOfpoints.get(38).add(new LatLng (44.4005636,26.0883195));\n listOfpoints.get(38).add(new LatLng (44.3987104,26.0864919));\n listOfpoints.get(38).add(new LatLng (44.3972443, 26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3961557,26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3946992,26.0841584));\n listOfpoints.get(38).add(new LatLng (44.3918473,26.0856819));\n listOfpoints.get(38).add(new LatLng (44.3912493,26.08639));\n listOfpoints.get(38).add(new LatLng (44.389256, 26.0917973));\n\n\n\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n listOfpoints.get(39).add(new LatLng (44.4011008,26.0974224));\n listOfpoints.get(39).add(new LatLng (44.399997,26.0972078));\n listOfpoints.get(39).add(new LatLng (44.389065,26.0922189));\n listOfpoints.get(39).add(new LatLng (44.3863339,26.0922418));\n listOfpoints.get(39).add(new LatLng (44.387806,26.0981212));\n listOfpoints.get(39).add(new LatLng (44.3887261,26.1004386));\n listOfpoints.get(39).add(new LatLng (44.3889714,26.1023269));\n listOfpoints.get(39).add(new LatLng (44.3887567,26.1040435));\n listOfpoints.get(39).add(new LatLng (44.3875607,26.1097513));\n listOfpoints.get(39).add(new LatLng (44.3977341,26.1097306));\n listOfpoints.get(39).add(new LatLng (44.3979142,26.1101973));\n listOfpoints.get(39).add(new LatLng (44.397964,26.1101222));\n listOfpoints.get(39).add(new LatLng (44.3996198,26.1059165));\n listOfpoints.get(39).add(new LatLng (44.4016128,26.0990715));\n listOfpoints.get(39).add(new LatLng (44.4030402,26.0978593));\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n\n\n\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n listOfpoints.get(40).add(new LatLng (44.4494277,26.1245701));\n listOfpoints.get(40).add(new LatLng (44.4610682, 26.1325953));\n listOfpoints.get(40).add(new LatLng (44.4618646,26.1326811));\n listOfpoints.get(40).add(new LatLng (44.4644374, 26.1345265));\n listOfpoints.get(40).add(new LatLng (44.4660607, 26.1368439));\n listOfpoints.get(40).add(new LatLng (44.4665813,26.1365435));\n listOfpoints.get(40).add(new LatLng (44.4663976,26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4667345, 26.1349985));\n listOfpoints.get(40).add(new LatLng (44.4681739, 26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4701952, 26.1371014));\n listOfpoints.get(40).add(new LatLng (44.4719714, 26.1368868));\n listOfpoints.get(40).add(new LatLng (44.4730739, 26.1358998));\n listOfpoints.get(40).add(new LatLng (44.4731964,26.1346981));\n listOfpoints.get(40).add(new LatLng (44.4687252,26.1305783));\n listOfpoints.get(40).add(new LatLng (44.466857,26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4662751, 26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4658769, 26.1300633));\n listOfpoints.get(40).add(new LatLng (44.4666426, 26.129162));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1285183));\n listOfpoints.get(40).add(new LatLng (44.4697971, 26.1290333));\n listOfpoints.get(40).add(new LatLng (44.4723389, 26.1319945));\n listOfpoints.get(40).add(new LatLng (44.4743294,26.1327669));\n listOfpoints.get(40).add(new LatLng (44.4750338,26.1320374));\n listOfpoints.get(40).add(new LatLng (44.4756462,26.1297199));\n listOfpoints.get(40).add(new LatLng (44.4742376,26.1249563));\n listOfpoints.get(40).add(new LatLng (44.4742988, 26.1238835));\n listOfpoints.get(40).add(new LatLng (44.4741457,26.1231968));\n listOfpoints.get(40).add(new LatLng (44.4676533,26.1269734));\n listOfpoints.get(40).add(new LatLng (44.4668876,26.1267588));\n listOfpoints.get(40).add(new LatLng (44.4649275,26.1207506));\n listOfpoints.get(40).add(new LatLng (44.4648662,26.120064));\n listOfpoints.get(40).add(new LatLng (44.4674389,26.118562));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1177895));\n listOfpoints.get(40).add(new LatLng (44.4710833,26.1160729));\n listOfpoints.get(40).add(new LatLng (44.4714202,26.1163304));\n listOfpoints.get(40).add(new LatLng (44.4722777,26.116502));\n listOfpoints.get(40).add(new LatLng (44.4729208,26.1131117));\n listOfpoints.get(40).add(new LatLng (44.4723083,26.1107084));\n listOfpoints.get(40).add(new LatLng (44.4725227,26.1095926));\n listOfpoints.get(40).add(new LatLng (44.4733801,26.1087343));\n listOfpoints.get(40).add(new LatLng (44.4735945, 26.1082194));\n listOfpoints.get(40).add(new LatLng (44.4700727,26.1101076));\n listOfpoints.get(40).add(new LatLng (44.4533184,26.1047861));\n listOfpoints.get(40).add(new LatLng (44.4531039,26.105344));\n listOfpoints.get(40).add(new LatLng (44.4528589,26.1152146));\n listOfpoints.get(40).add(new LatLng (44.4526138,26.1174891));\n listOfpoints.get(40).add(new LatLng (44.452093,26.1197207));\n listOfpoints.get(40).add(new LatLng (44.4508982,26.1229822));\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n\n\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n listOfpoints.get(41).add(new LatLng (44.4550165,26.1051764));\n listOfpoints.get(41).add(new LatLng (44.4698103,26.1097469));\n listOfpoints.get(41).add(new LatLng (44.4709588,26.1093392));\n listOfpoints.get(41).add(new LatLng (44.4739216,26.1077299));\n listOfpoints.get(41).add(new LatLng (44.4734929,26.1050262));\n listOfpoints.get(41).add(new LatLng (44.4721455,26.105155));\n listOfpoints.get(41).add(new LatLng (44.4701242,26.1040392));\n listOfpoints.get(41).add(new LatLng (44.467521, 26.101593));\n listOfpoints.get(41).add(new LatLng (44.4673067, 26.1001768));\n listOfpoints.get(41).add(new LatLng (44.4664185,26.099061));\n listOfpoints.get(41).add(new LatLng (44.4660816,26.0979023));\n listOfpoints.get(41).add(new LatLng (44.4662041,26.0968294));\n listOfpoints.get(41).add(new LatLng (44.4671535,26.0960569));\n listOfpoints.get(41).add(new LatLng (44.4677661,26.0958853));\n listOfpoints.get(41).add(new LatLng (44.4680723,26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4691748,26.0952415));\n listOfpoints.get(41).add(new LatLng (44.4720536,26.0967865));\n listOfpoints.get(41).add(new LatLng (44.4742278,26.0964861));\n listOfpoints.get(41).add(new LatLng (44.4749015, 26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4747178,26.0948124));\n listOfpoints.get(41).add(new LatLng (44.4719617,26.0923662));\n listOfpoints.get(41).add(new LatLng (44.4714717,26.0908642));\n listOfpoints.get(41).add(new LatLng (44.4717167,26.0897913));\n listOfpoints.get(41).add(new LatLng (44.4723598,26.0888901));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0894909));\n listOfpoints.get(41).add(new LatLng (44.4732785,26.0900917));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0907783));\n listOfpoints.get(41).add(new LatLng (44.4735235,26.0912075));\n listOfpoints.get(41).add(new LatLng (44.4740135,26.0907354));\n listOfpoints.get(41).add(new LatLng (44.4734316,26.0891046));\n listOfpoints.get(41).add(new LatLng (44.4724211,26.0881176));\n listOfpoints.get(41).add(new LatLng (44.4661428,26.0866585));\n listOfpoints.get(41).add(new LatLng (44.4639989,26.09095));\n listOfpoints.get(41).add(new LatLng (44.4621305,26.0931387));\n listOfpoints.get(41).add(new LatLng (44.4558053,26.0973375));\n listOfpoints.get(41).add(new LatLng (44.4531632,26.0985928));\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n\n\n\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n listOfpoints.get(42).add(new LatLng (44.4404676, 26.072638));\n listOfpoints.get(42).add(new LatLng (44.4426125, 26.0786676));\n listOfpoints.get(42).add(new LatLng (44.4427656, 26.0791182));\n listOfpoints.get(42).add(new LatLng (44.4429801, 26.0806202));\n listOfpoints.get(42).add(new LatLng (44.4461972, 26.0758781));\n listOfpoints.get(42).add(new LatLng ( 44.4465955, 26.0753846));\n listOfpoints.get(42).add(new LatLng ( 44.4468405, 26.0753202));\n listOfpoints.get(42).add(new LatLng (44.4474227, 26.0759639));\n listOfpoints.get(42).add(new LatLng (44.4501186, 26.0695052));\n listOfpoints.get(42).add(new LatLng ( 44.4472848, 26.063776));\n listOfpoints.get(42).add(new LatLng ( 44.4461972,26.0623597));\n listOfpoints.get(42).add(new LatLng (44.4454925, 26.0618233));\n listOfpoints.get(42).add(new LatLng ( 44.4442057,26.0612654));\n listOfpoints.get(42).add(new LatLng (44.4432099,26.0609435));\n listOfpoints.get(42).add(new LatLng ( 44.4429035,26.062467));\n listOfpoints.get(42).add(new LatLng (44.4385679, 26.0699558));\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n\n\n\n listOfpoints.get(43).add(new LatLng ( 44.4430787,26.0806953));\n listOfpoints.get(43).add(new LatLng ( 44.443126, 26.0810753));\n listOfpoints.get(43).add(new LatLng ( 44.4455924,26.0813757));\n listOfpoints.get(43).add(new LatLng (44.4467107,26.0816761));\n listOfpoints.get(43).add(new LatLng (44.4514593,26.0842939));\n listOfpoints.get(43).add(new LatLng (44.4518575,26.0844441));\n listOfpoints.get(43).add(new LatLng (44.4519188,26.0818906));\n listOfpoints.get(43).add(new LatLng (44.4520107,26.0813971));\n listOfpoints.get(43).add(new LatLng (44.452026,26.0767193));\n listOfpoints.get(43).add(new LatLng (44.4527, 26.0732861));\n listOfpoints.get(43).add(new LatLng ( 44.4511682,26.0706039));\n listOfpoints.get(43).add(new LatLng (44.4503219, 26.069692));\n listOfpoints.get(43).add(new LatLng (44.4502719,26.0698017));\n listOfpoints.get(43).add(new LatLng (44.4475595, 26.0760068));\n listOfpoints.get(43).add(new LatLng (44.447414, 26.0761356));\n listOfpoints.get(43).add(new LatLng (44.4468242, 26.0754811));\n listOfpoints.get(43).add(new LatLng (44.4465485, 26.0755562));\n listOfpoints.get(43).add(new LatLng (44.4462728, 26.0759746));\n listOfpoints.get(43).add(new LatLng (44.4430787,26.0806953));\n\n\n\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n listOfpoints.get(44).add(new LatLng (44.4299706,26.0672689));\n listOfpoints.get(44).add(new LatLng (44.431342,26.068213));\n listOfpoints.get(44).add(new LatLng (44.4358314, 26.0745752));\n listOfpoints.get(44).add(new LatLng (44.4382828,26.0698974));\n listOfpoints.get(44).add(new LatLng (44.4353105,26.0630095));\n listOfpoints.get(44).add(new LatLng (44.435096,26.0616792));\n listOfpoints.get(44).add(new LatLng (44.4344678, 26.0595763));\n listOfpoints.get(44).add(new LatLng (44.4320315, 26.0595334));\n listOfpoints.get(44).add(new LatLng (44.4316178, 26.0600913));\n listOfpoints.get(44).add(new LatLng (44.4291968, 26.0639));\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n\n\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n listOfpoints.get(45).add(new LatLng (44.441285, 26.1333359));\n listOfpoints.get(45).add(new LatLng (44.4414535,26.1345376));\n listOfpoints.get(45).add(new LatLng (44.4428936,26.1475195));\n listOfpoints.get(45).add(new LatLng (44.443154,26.1493863));\n listOfpoints.get(45).add(new LatLng (44.4434451, 26.149794));\n listOfpoints.get(45).add(new LatLng (44.4437515,26.1497082));\n listOfpoints.get(45).add(new LatLng (44.4445175,26.1494721));\n listOfpoints.get(45).add(new LatLng (44.4454979,26.1488713));\n listOfpoints.get(45).add(new LatLng (44.4459574,26.1481847));\n listOfpoints.get(45).add(new LatLng (44.447091,26.147262));\n listOfpoints.get(45).add(new LatLng (44.448148,26.1456527));\n listOfpoints.get(45).add(new LatLng (44.4520847, 26.1353101));\n listOfpoints.get(45).add(new LatLng (44.4529577,26.1321129));\n listOfpoints.get(45).add(new LatLng (44.4531262,26.1316623));\n listOfpoints.get(45).add(new LatLng (44.4536776, 26.1311473));\n listOfpoints.get(45).add(new LatLng (44.4547192, 26.1298813));\n listOfpoints.get(45).add(new LatLng (44.455148,26.1288513));\n listOfpoints.get(45).add(new LatLng (44.449833, 26.1251177));\n listOfpoints.get(45).add(new LatLng (44.4491437, 26.12471));\n listOfpoints.get(45).add(new LatLng (44.4477038,26.1259545));\n listOfpoints.get(45).add(new LatLng (44.4462332, 26.1266841));\n listOfpoints.get(45).add(new LatLng (44.4447013, 26.1279501));\n listOfpoints.get(45).add(new LatLng (44.4436596, 26.129259));\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n\n\n\n listOfpoints.get(46).add(new LatLng (44.4322314,26.1388506));\n listOfpoints.get(46).add(new LatLng (44.4335155,26.1535014));\n listOfpoints.get(46).add(new LatLng (44.4338066,26.1552395));\n listOfpoints.get(46).add(new LatLng (44.434971,26.1596598));\n listOfpoints.get(46).add(new LatLng (44.4350966, 26.1598576));\n listOfpoints.get(46).add(new LatLng (44.4421748,26.1571969));\n listOfpoints.get(46).add(new LatLng (44.4425731, 26.1570252));\n listOfpoints.get(46).add(new LatLng (44.4429102, 26.1561669));\n listOfpoints.get(46).add(new LatLng (44.443477, 26.1502231));\n listOfpoints.get(46).add(new LatLng (44.4429255, 26.1494077));\n listOfpoints.get(46).add(new LatLng (44.442328, 26.144215));\n listOfpoints.get(46).add(new LatLng (44.4418837, 26.1404384));\n listOfpoints.get(46).add(new LatLng (44.4412556, 26.1349882));\n listOfpoints.get(46).add(new LatLng (44.4411331, 26.1338295));\n listOfpoints.get(46).add(new LatLng (44.4406428,26.1344732));\n listOfpoints.get(46).add(new LatLng (44.4388656, 26.1357821));\n listOfpoints.get(46).add(new LatLng (44.4374868, 26.1367048));\n listOfpoints.get(46).add(new LatLng (44.4350813, 26.137606));\n listOfpoints.get(46).add(new LatLng (44.4322314, 26.1388506));\n\n\n\n listOfpoints.get(47).add(new LatLng (44.4202257, 26.1368063));\n listOfpoints.get(47).add(new LatLng (44.4179627,26.1463187));\n listOfpoints.get(47).add(new LatLng (44.4227749, 26.149709));\n listOfpoints.get(47).add(new LatLng (44.4231734, 26.1503527));\n listOfpoints.get(47).add(new LatLng (44.4237251, 26.1504386));\n listOfpoints.get(47).add(new LatLng (44.4261157, 26.1495373));\n listOfpoints.get(47).add(new LatLng (44.4262996, 26.1508463));\n listOfpoints.get(47).add(new LatLng (44.4268206, 26.1524341));\n listOfpoints.get(47).add(new LatLng (44.4283937, 26.1547449));\n listOfpoints.get(47).add(new LatLng (44.433251, 26.1534574));\n listOfpoints.get(47).add(new LatLng (44.4320712, 26.1388662));\n listOfpoints.get(47).add(new LatLng (44.430401,26.139467));\n listOfpoints.get(47).add(new LatLng (44.4295736, 26.1393812));\n listOfpoints.get(47).add(new LatLng (44.4254668, 26.137686));\n listOfpoints.get(47).add(new LatLng (44.4241642,26.1374929));\n listOfpoints.get(47).add(new LatLng (44.4202257,26.1368063));\n\n\n\n listOfpoints.get(48).add(new LatLng (44.4234516,26.1510693));\n listOfpoints.get(48).add(new LatLng (44.425076, 26.1630856));\n listOfpoints.get(48).add(new LatLng (44.4292135,26.1619484));\n listOfpoints.get(48).add(new LatLng(44.4286618, 26.1578285));\n listOfpoints.get(48).add(new LatLng (44.4287078,26.156026));\n listOfpoints.get(48).add(new LatLng (44.4286925,26.1557042));\n listOfpoints.get(48).add(new LatLng (44.4269762, 26.1532151));\n listOfpoints.get(48).add(new LatLng (44.4262407, 26.151713));\n listOfpoints.get(48).add(new LatLng (44.4259189, 26.1499535));\n listOfpoints.get(48).add(new LatLng (44.4237122, 26.1506402));\n listOfpoints.get(48).add(new LatLng (44.4234516, 26.1510693));\n\n\n\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n listOfpoints.get(49).add(new LatLng (44.4286925, 26.1557042));\n listOfpoints.get(49).add(new LatLng (44.4287964, 26.1580645));\n listOfpoints.get(49).add(new LatLng (44.4290876, 26.1602317));\n listOfpoints.get(49).add(new LatLng (44.4302981,26.1670124));\n listOfpoints.get(49).add(new LatLng (44.4357222, 26.1692654));\n listOfpoints.get(49).add(new LatLng (44.4362584,26.1689865));\n listOfpoints.get(49).add(new LatLng (44.4366108, 26.1683857));\n listOfpoints.get(49).add(new LatLng (44.4367794,26.1675274));\n listOfpoints.get(49).add(new LatLng (44.433332, 26.1536442));\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n\n\n\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.14650));\n listOfpoints.get(50).add(new LatLng (44.4142265, 26.15554));\n listOfpoints.get(50).add(new LatLng (44.41369, 26.1578359));\n listOfpoints.get(50).add(new LatLng (44.4131842,26.1635008));\n listOfpoints.get(50).add(new LatLng (44.4133221, 26.1636295));\n listOfpoints.get(50).add(new LatLng (44.4154679, 26.1645951));\n listOfpoints.get(50).add(new LatLng (44.4169393, 26.1648526));\n listOfpoints.get(50).add(new LatLng (44.4181654, 26.1648097));\n listOfpoints.get(50).add(new LatLng (44.420403, 26.1642732));\n listOfpoints.get(50).add(new LatLng (44.4248319, 26.1631574));\n listOfpoints.get(50).add(new LatLng (44.4232688, 26.151227));\n listOfpoints.get(50).add(new LatLng (44.4226558, 26.1500253));\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.1465063));\n\n\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n listOfpoints.get(51).add(new LatLng (44.4079354,26.1261736));\n listOfpoints.get(51).add(new LatLng (44.3993506, 26.1595188));\n listOfpoints.get(51).add(new LatLng (44.4000559,26.1602484));\n listOfpoints.get(51).add(new LatLng (44.407077,26.1638962));\n listOfpoints.get(51).add(new LatLng (44.4081807, 26.1641108));\n listOfpoints.get(51).add(new LatLng (44.4091004, 26.1638104));\n listOfpoints.get(51).add(new LatLng (44.4114916, 26.162995));\n listOfpoints.get(51).add(new LatLng (44.4129018, 26.16351));\n listOfpoints.get(51).add(new LatLng (44.413147, 26.1608063));\n listOfpoints.get(51).add(new LatLng (44.4135762, 26.1567723));\n listOfpoints.get(51).add(new LatLng (44.4148943, 26.1529957));\n listOfpoints.get(51).add(new LatLng (44.4176838,26.1461722));\n listOfpoints.get(51).add(new LatLng (44.4183121,26.1435329));\n listOfpoints.get(51).add(new LatLng (44.4200133, 26.1367523));\n listOfpoints.get(51).add(new LatLng (44.4175152,26.1354433));\n listOfpoints.get(51).add(new LatLng (44.4159825, 26.1342417));\n listOfpoints.get(51).add(new LatLng (44.4146031,26.1324822));\n listOfpoints.get(51).add(new LatLng (44.4113383,26.1266242));\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n\n\n listOfpoints.get(52).add(new LatLng (44.3988714,26.159323));\n listOfpoints.get(52).add(new LatLng (44.4079468,26.1248191));\n listOfpoints.get(52).add(new LatLng (44.4088665, 26.1225875));\n listOfpoints.get(52).add(new LatLng (44.4080694,26.1217721));\n listOfpoints.get(52).add(new LatLng (44.4065059,26.1213858));\n listOfpoints.get(52).add(new LatLng (44.3941185, 26.120785));\n listOfpoints.get(52).add(new LatLng (44.3862678, 26.1391528));\n listOfpoints.get(52).add(new LatLng (44.3887826,26.1415131));\n listOfpoints.get(52).add(new LatLng (44.3886293, 26.1448605));\n listOfpoints.get(52).add(new LatLng (44.3891813, 26.1464484));\n listOfpoints.get(52).add(new LatLng (44.389304, 26.1472209));\n listOfpoints.get(52).add(new LatLng (44.3927079, 26.155761));\n listOfpoints.get(52).add(new LatLng (44.3941492, 26.1572631));\n listOfpoints.get(52).add(new LatLng (44.3985648, 26.16031));\n listOfpoints.get(52).add(new LatLng (44.3988714, 26.159323));\n\n\n\n listOfpoints.get(53).add(new LatLng (44.3886499, 26.1177499));\n listOfpoints.get(53).add(new LatLng (44.3892939, 26.1179645));\n listOfpoints.get(53).add(new LatLng (44.3881592, 26.1159046));\n listOfpoints.get(53).add(new LatLng (44.3876838,26.1132224));\n listOfpoints.get(53).add(new LatLng (44.3873311, 26.1100895));\n listOfpoints.get(53).add(new LatLng (44.3887879, 26.1032445));\n listOfpoints.get(53).add(new LatLng (44.3888645, 26.1022789));\n listOfpoints.get(53).add(new LatLng (44.3886192, 26.1005838));\n listOfpoints.get(53).add(new LatLng (44.3883738,26.0998542));\n listOfpoints.get(53).add(new LatLng (44.3876225,26.097923));\n listOfpoints.get(53).add(new LatLng (44.3869478, 26.0954554));\n listOfpoints.get(53).add(new LatLng (44.3862577, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3860584, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3789427, 26.0917003));\n listOfpoints.get(53).add(new LatLng (44.3757526,26.1157758));\n listOfpoints.get(53).add(new LatLng (44.375998,26.1173208));\n listOfpoints.get(53).add(new LatLng (44.3765195,26.1189945));\n listOfpoints.get(53).add(new LatLng (44.3769183,26.1194665));\n listOfpoints.get(53).add(new LatLng (44.3775624, 26.1194236));\n listOfpoints.get(53).add(new LatLng (44.3786973,26.1184366));\n listOfpoints.get(53).add(new LatLng (44.3824393,26.1150248));\n listOfpoints.get(53).add(new LatLng (44.3831447, 26.114939));\n listOfpoints.get(53).add(new LatLng (44.3840802, 26.1151106));\n listOfpoints.get(53).add(new LatLng (44.3879598, 26.1175568));\n listOfpoints.get(53).add(new LatLng (44.3886499,26.1177499));\n\n\n listOfpoints.get(54).add(new LatLng ( 44.3939843, 26.1207857));\n listOfpoints.get(54).add(new LatLng (44.3928679,26.120861));\n listOfpoints.get(54).add(new LatLng (44.3916643, 26.1202602));\n listOfpoints.get(54).add(new LatLng (44.3901386, 26.1189727));\n listOfpoints.get(54).add(new LatLng (44.3894869, 26.1181573));\n listOfpoints.get(54).add(new LatLng (44.3881836, 26.1178784));\n listOfpoints.get(54).add(new LatLng (44.3839589, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3830541, 26.1151318));\n listOfpoints.get(54).add(new LatLng (44.382479, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3814899, 26.1160544));\n listOfpoints.get(54).add(new LatLng (44.3792585,26.1181466));\n listOfpoints.get(54).add(new LatLng (44.3765793, 26.1204638));\n listOfpoints.get(54).add(new LatLng (44.3792479, 26.1275449));\n listOfpoints.get(54).add(new LatLng (44.379524,26.135098));\n listOfpoints.get(54).add(new LatLng (44.3856888, 26.1398616));\n listOfpoints.get(54).add(new LatLng (44.3939843,26.1207857));\n\n\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n listOfpoints.get(55).add(new LatLng (44.3767422, 26.0507223));\n listOfpoints.get(55).add(new LatLng (44.3901146,26.0632536));\n listOfpoints.get(55).add(new LatLng (44.4006018,26.0712359));\n listOfpoints.get(55).add(new LatLng (44.4064272, 26.0638544));\n listOfpoints.get(55).add(new LatLng (44.4054461,26.0626528));\n listOfpoints.get(55).add(new LatLng (44.3997432, 26.0485766));\n listOfpoints.get(55).add(new LatLng (44.3817726,26.0459158));\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n\n\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n listOfpoints.get(56).add(new LatLng (44.4007746, 26.0715552));\n listOfpoints.get(56).add(new LatLng (44.3971564,26.0688944));\n listOfpoints.get(56).add(new LatLng (44.3905634, 26.0639591));\n listOfpoints.get(56).add(new LatLng (44.3862699, 26.078207));\n listOfpoints.get(56).add(new LatLng (44.38124,26.0855027));\n listOfpoints.get(56).add(new LatLng (44.3802585, 26.0858031));\n listOfpoints.get(56).add(new LatLng (44.3797064, 26.0867901));\n listOfpoints.get(56).add(new LatLng (44.3790009,26.091425));\n listOfpoints.get(56).add(new LatLng (44.3848591,26.091897));\n listOfpoints.get(56).add(new LatLng (44.3890301,26.0918541));\n listOfpoints.get(56).add(new LatLng (44.3909928, 26.0865755));\n listOfpoints.get(56).add(new LatLng (44.3915141,26.0856314));\n listOfpoints.get(56).add(new LatLng (44.3946727, 26.0839608));\n listOfpoints.get(56).add(new LatLng (44.3961445,26.0850122));\n listOfpoints.get(56).add(new LatLng (44.3967425,26.0849907));\n listOfpoints.get(56).add(new LatLng (44.4002074, 26.0843041));\n listOfpoints.get(56).add(new LatLng (44.4029362, 26.0816648));\n listOfpoints.get(56).add(new LatLng (44.4055576,26.0799267));\n listOfpoints.get(56).add(new LatLng (44.4070752,26.0791113));\n listOfpoints.get(56).add(new LatLng (44.4130379,26.0732319));\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n\n\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n listOfpoints.get(57).add(new LatLng (44.4056207, 26.0623124));\n listOfpoints.get(57).add(new LatLng (44.4131623,26.0729554));\n listOfpoints.get(57).add(new LatLng (44.4204884,26.0654452));\n listOfpoints.get(57).add(new LatLng (44.4181895,26.0583212));\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n\n\n listOfpoints.get(58).add(new LatLng (44.414413, 26.0354062));\n listOfpoints.get(58).add(new LatLng (44.415394, 26.0475512));\n listOfpoints.get(58).add(new LatLng (44.4158231,26.0502978));\n listOfpoints.get(58).add(new LatLng (44.4181221,26.0576363));\n listOfpoints.get(58).add(new LatLng (44.4207888, 26.0658331));\n listOfpoints.get(58).add(new LatLng (44.4237005, 26.0731287));\n listOfpoints.get(58).add(new LatLng (44.4298608,26.0624857));\n listOfpoints.get(58).add(new LatLng (44.4293091,26.0617562));\n listOfpoints.get(58).add(new LatLng (44.4290027,26.0610266));\n listOfpoints.get(58).add(new LatLng (44.4275316, 26.0600825));\n listOfpoints.get(58).add(new LatLng (44.426275, 26.0585375));\n listOfpoints.get(58).add(new LatLng (44.4259379,26.0566922));\n listOfpoints.get(58).add(new LatLng (44.4253862, 26.0520573));\n listOfpoints.get(58).add(new LatLng (44.4242829,26.0473366));\n listOfpoints.get(58).add(new LatLng (44.4229037,26.0406847));\n listOfpoints.get(58).add(new LatLng (44.4221374,26.0347624));\n listOfpoints.get(58).add(new LatLng (44.4165281,26.0346766));\n listOfpoints.get(58).add(new LatLng (44.414413,26.0354062));\n\n\n listOfpoints.get(59).add(new LatLng (44.4224216, 26.0344395));\n listOfpoints.get(59).add(new LatLng (44.422437, 26.0360274));\n listOfpoints.get(59).add(new LatLng (44.423004,26.040276));\n listOfpoints.get(59).add(new LatLng (44.4255632,26.0522065));\n listOfpoints.get(59).add(new LatLng (44.4259156,26.055468));\n listOfpoints.get(59).add(new LatLng (44.42636,26.0583219));\n listOfpoints.get(59).add(new LatLng (44.4274787,26.059781));\n listOfpoints.get(59).add(new LatLng (44.4290264, 26.0608325));\n listOfpoints.get(59).add(new LatLng (44.4293328,26.0616264));\n listOfpoints.get(59).add(new LatLng (44.4299764,26.0623989));\n listOfpoints.get(59).add(new LatLng (44.4319071,26.0594162));\n listOfpoints.get(59).add(new LatLng (44.4345885, 26.0593948));\n listOfpoints.get(59).add(new LatLng (44.4342361, 26.0348472));\n listOfpoints.get(59).add(new LatLng (44.4273254, 26.0330877));\n listOfpoints.get(59).add(new LatLng (44.4237396,26.0342893));\n listOfpoints.get(59).add(new LatLng (44.4224216,26.0344395));\n\n\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n listOfpoints.get(60).add(new LatLng (44.4343687, 26.0351665));\n listOfpoints.get(60).add(new LatLng (44.4347671,26.059757));\n listOfpoints.get(60).add(new LatLng (44.435334, 26.0617097));\n listOfpoints.get(60).add(new LatLng (44.4355025, 26.0629327));\n listOfpoints.get(60).add(new LatLng (44.4356864,26.0635979));\n listOfpoints.get(60).add(new LatLng (44.4371728, 26.0669608));\n listOfpoints.get(60).add(new LatLng (44.4383602, 26.0697182));\n listOfpoints.get(60).add(new LatLng (44.4427184,26.0621798));\n listOfpoints.get(60).add(new LatLng (44.4429329,26.0609782));\n listOfpoints.get(60).add(new LatLng (44.447161,26.0392201));\n listOfpoints.get(60).add(new LatLng (44.4427491,26.0356152));\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n\n\n listOfpoints.get(61).add(new LatLng (44.4053059, 26.0112059));\n listOfpoints.get(61).add(new LatLng (44.384914, 26.0334789));\n listOfpoints.get(61).add(new LatLng (44.3778596, 26.0462677));\n listOfpoints.get(61).add(new LatLng (44.3811722,26.0454952));\n listOfpoints.get(61).add(new LatLng (44.399879, 26.0482418));\n listOfpoints.get(61).add(new LatLng (44.4002162, 26.0489714));\n listOfpoints.get(61).add(new LatLng (44.4169858,26.0575115));\n listOfpoints.get(61).add(new LatLng (44.4180893, 26.0579407));\n listOfpoints.get(61).add(new LatLng (44.4156984,26.0508167));\n listOfpoints.get(61).add(new LatLng (44.4151773,26.0472977));\n listOfpoints.get(61).add(new LatLng (44.414135,26.0356247));\n listOfpoints.get(61).add(new LatLng (44.4110082, 26.0104334));\n listOfpoints.get(61).add(new LatLng (44.4061643,26.0117208));\n listOfpoints.get(61).add(new LatLng (44.4053059,26.0112059));\n\n\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n listOfpoints.get(62).add(new LatLng (44.4103304, 26.0034906));\n listOfpoints.get(62).add(new LatLng (44.4127522,26.0228884));\n listOfpoints.get(62).add(new LatLng (44.4144076,26.0351192));\n listOfpoints.get(62).add(new LatLng (44.4167986,26.0343897));\n listOfpoints.get(62).add(new LatLng (44.4221013, 26.0343038));\n listOfpoints.get(62).add(new LatLng (44.4271277, 26.0328018));\n listOfpoints.get(62).add(new LatLng (44.4343295, 26.0347544));\n listOfpoints.get(62).add(new LatLng (44.4344597, 26.0345399));\n listOfpoints.get(62).add(new LatLng (44.436423, 26.0347646));\n listOfpoints.get(62).add(new LatLng (44.4424747, 26.0213321));\n listOfpoints.get(62).add(new LatLng (44.4459215, 26.0171264));\n listOfpoints.get(62).add(new LatLng (44.4457043,26.0167004));\n listOfpoints.get(62).add(new LatLng (44.4252662, 25.9987613));\n listOfpoints.get(62).add(new LatLng (44.4235193, 25.9990188));\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n\n\n listOfpoints.get(63).add(new LatLng (44.450683, 26.0692569));\n listOfpoints.get(63).add(new LatLng (44.4530725,26.0733768));\n listOfpoints.get(63).add(new LatLng (44.4523986, 26.0762092));\n listOfpoints.get(63).add(new LatLng (44.4522454,26.0783979));\n listOfpoints.get(63).add(new LatLng (44.4521842,26.0858652));\n listOfpoints.get(63).add(new LatLng (44.4658762, 26.0861656));\n listOfpoints.get(63).add(new LatLng (44.4661262, 26.0856151));\n listOfpoints.get(63).add(new LatLng (44.4670374, 26.0787379));\n listOfpoints.get(63).add(new LatLng (44.467496, 26.0777089));\n listOfpoints.get(63).add(new LatLng (44.4773875,26.0721728));\n listOfpoints.get(63).add(new LatLng (44.4779387,26.0720012));\n listOfpoints.get(63).add(new LatLng (44.482103,26.0611007));\n listOfpoints.get(63).add(new LatLng (44.4811232,26.0571525));\n listOfpoints.get(63).add(new LatLng (44.4748153, 26.0461661));\n listOfpoints.get(63).add(new LatLng (44.4716917, 26.0438487));\n listOfpoints.get(63).add(new LatLng (44.4690579,26.0436771));\n listOfpoints.get(63).add(new LatLng (44.4667916, 26.0449645));\n listOfpoints.get(63).add(new LatLng (44.4519663, 26.0668513));\n listOfpoints.get(63).add(new LatLng (44.450683,26.0692569));\n\n\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n listOfpoints.get(64).add(new LatLng (44.466193, 26.0862472));\n listOfpoints.get(64).add(new LatLng (44.4723947,26.0878994));\n listOfpoints.get(64).add(new LatLng (44.4731756,26.0883715));\n listOfpoints.get(64).add(new LatLng (44.4739718,26.090131));\n listOfpoints.get(64).add(new LatLng (44.4744158, 26.090882));\n listOfpoints.get(64).add(new LatLng (44.4748292,26.0909678));\n listOfpoints.get(64).add(new LatLng (44.4753498,26.0906889));\n listOfpoints.get(64).add(new LatLng (44.4774321, 26.0888006));\n listOfpoints.get(64).add(new LatLng (44.4801879,26.0864832));\n listOfpoints.get(64).add(new LatLng (44.4868014,26.0859682));\n listOfpoints.get(64).add(new LatLng (44.4880873,26.0854532));\n listOfpoints.get(64).add(new LatLng (44.489618,26.0824491));\n listOfpoints.get(64).add(new LatLng (44.4904753, 26.0788443));\n listOfpoints.get(64).add(new LatLng (44.4890057,26.0784151));\n listOfpoints.get(64).add(new LatLng (44.478167, 26.0727074));\n listOfpoints.get(64).add(new LatLng (44.4678468, 26.0779216));\n listOfpoints.get(64).add(new LatLng (44.467219, 26.0788228));\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n\n\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n listOfpoints.get(65).add(new LatLng (44.443222,26.0605852));\n listOfpoints.get(65).add(new LatLng (44.4450067,26.0611538));\n listOfpoints.get(65).add(new LatLng (44.4465463,26.062173));\n listOfpoints.get(65).add(new LatLng (44.4472816,26.0631386));\n listOfpoints.get(65).add(new LatLng (44.448913,26.0666577));\n listOfpoints.get(65).add(new LatLng (44.4502551,26.0690373));\n listOfpoints.get(65).add(new LatLng (44.4664896,26.0448331));\n listOfpoints.get(65).add(new LatLng (44.4688479,26.0434168));\n listOfpoints.get(65).add(new LatLng (44.469491,26.0403269));\n listOfpoints.get(65).add(new LatLng (44.4702566,26.037237));\n listOfpoints.get(65).add(new LatLng (44.4701035,26.0353058));\n listOfpoints.get(65).add(new LatLng (44.4613441,26.0305422));\n listOfpoints.get(65).add(new LatLng (44.4611297,26.0346621));\n listOfpoints.get(65).add(new LatLng (44.4606089,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.4595369,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.458618,26.0354775));\n listOfpoints.get(65).add(new LatLng (44.4545745,26.0376233));\n listOfpoints.get(65).add(new LatLng (44.4501632,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4494892,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4485701,26.039297));\n listOfpoints.get(65).add(new LatLng (44.4477429,26.0380953));\n listOfpoints.get(65).add(new LatLng (44.4466093,26.0430306));\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n\n\n\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0912642));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0917148));\n listOfpoints.get(66).add(new LatLng (44.4743313,26.0922513));\n listOfpoints.get(66).add(new LatLng (44.4750816,26.0927019));\n listOfpoints.get(66).add(new LatLng (44.4758471,26.0937962));\n listOfpoints.get(66).add(new LatLng (44.4762758,26.0947189));\n listOfpoints.get(66).add(new LatLng (44.4766127,26.0962853));\n listOfpoints.get(66).add(new LatLng (44.4765514,26.0971436));\n listOfpoints.get(66).add(new LatLng (44.4761227,26.0977444));\n listOfpoints.get(66).add(new LatLng (44.4753878,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4745457,26.0985384));\n listOfpoints.get(66).add(new LatLng (44.4734585,26.0989675));\n listOfpoints.get(66).add(new LatLng (44.4729073,26.0990104));\n listOfpoints.get(66).add(new LatLng (44.4718508,26.0986671));\n listOfpoints.get(66).add(new LatLng (44.471223,26.0980663));\n listOfpoints.get(66).add(new LatLng (44.469263,26.0970792));\n listOfpoints.get(66).add(new LatLng (44.4689567,26.0971651));\n listOfpoints.get(66).add(new LatLng (44.468773,26.0975728));\n listOfpoints.get(66).add(new LatLng (44.4687424,26.0981092));\n listOfpoints.get(66).add(new LatLng (44.4688955,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4692017,26.0986886));\n listOfpoints.get(66).add(new LatLng (44.4694774,26.0985598));\n listOfpoints.get(66).add(new LatLng (44.4704268,26.0990319));\n listOfpoints.get(66).add(new LatLng (44.4707483,26.0994396));\n listOfpoints.get(66).add(new LatLng (44.4719733,26.1024651));\n listOfpoints.get(66).add(new LatLng (44.4735963,26.1028943));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1035809));\n listOfpoints.get(66).add(new LatLng (44.4741322,26.1042676));\n listOfpoints.get(66).add(new LatLng (44.4735351,26.1047396));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1077866));\n listOfpoints.get(66).add(new LatLng (44.4738413,26.1079583));\n listOfpoints.get(66).add(new LatLng (44.473826,26.1085591));\n listOfpoints.get(66).add(new LatLng (44.4733667,26.1097822));\n listOfpoints.get(66).add(new LatLng (44.4732595,26.1107478));\n listOfpoints.get(66).add(new LatLng (44.4734432,26.1111555));\n listOfpoints.get(66).add(new LatLng (44.4763087,26.1089172));\n listOfpoints.get(66).add(new LatLng (44.4946789,26.1040249));\n listOfpoints.get(66).add(new LatLng (44.4968217,26.0792198));\n listOfpoints.get(66).add(new LatLng (44.490592,26.0788336));\n listOfpoints.get(66).add(new LatLng (44.4898573,26.0820737));\n listOfpoints.get(66).add(new LatLng (44.4894593,26.0830178));\n listOfpoints.get(66).add(new LatLng (44.4882229,26.0855306));\n listOfpoints.get(66).add(new LatLng (44.4870595,26.0860456));\n listOfpoints.get(66).add(new LatLng (44.4801439,26.0866335));\n listOfpoints.get(66).add(new LatLng (44.4761173,26.090174));\n listOfpoints.get(66).add(new LatLng (44.4751527,26.0912469));\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n\n listOfpoints.get(67).add(new LatLng (44.4671287, 26.121282));\n listOfpoints.get(67).add(new LatLng (44.46768,26.1231274));\n listOfpoints.get(67).add(new LatLng (44.4696095,26.1234278));\n listOfpoints.get(67).add(new LatLng (44.4712938,26.1224408));\n listOfpoints.get(67).add(new LatLng (44.4723657,26.1229557));\n listOfpoints.get(67).add(new LatLng (44.4727944, 26.1226553));\n listOfpoints.get(67).add(new LatLng (44.4740193, 26.1226982));\n listOfpoints.get(67).add(new LatLng (44.4745399,26.1236424));\n listOfpoints.get(67).add(new LatLng (44.4743668,26.1243164));\n listOfpoints.get(67).add(new LatLng (44.4747037, 26.1250031));\n listOfpoints.get(67).add(new LatLng (44.4751324,26.1257541));\n listOfpoints.get(67).add(new LatLng (44.4758673,26.1267626));\n listOfpoints.get(67).add(new LatLng (44.4761736, 26.127578));\n listOfpoints.get(67).add(new LatLng (44.491758,26.1285221));\n listOfpoints.get(67).add(new LatLng (44.4931662, 26.1377919));\n listOfpoints.get(67).add(new LatLng (44.494452,26.1444008));\n listOfpoints.get(67).add(new LatLng (44.4947581,26.1462033));\n listOfpoints.get(67).add(new LatLng (44.4958601, 26.1472332));\n listOfpoints.get(67).add(new LatLng (44.4969009, 26.1458599));\n listOfpoints.get(67).add(new LatLng (44.4984926, 26.1450875));\n listOfpoints.get(67).add(new LatLng (44.5000231,26.1446583));\n listOfpoints.get(67).add(new LatLng (44.5006353,26.1435425));\n listOfpoints.get(67).add(new LatLng (44.5012475,26.1424267));\n listOfpoints.get(67).add(new LatLng (44.5057774, 26.144315));\n listOfpoints.get(67).add(new LatLng (44.5070629, 26.137191));\n listOfpoints.get(67).add(new LatLng (44.5066956, 26.1233723));\n listOfpoints.get(67).add(new LatLng (44.502227,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4952479,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4782558,26.1086953));\n listOfpoints.get(67).add(new LatLng (44.4765716,26.1090386));\n listOfpoints.get(67).add(new LatLng (44.4734175,26.1114848));\n listOfpoints.get(67).add(new LatLng (44.4739994,26.1124289));\n listOfpoints.get(67).add(new LatLng (44.4744587,26.1137163));\n listOfpoints.get(67).add(new LatLng (44.474275,26.1152613));\n listOfpoints.get(67).add(new LatLng (44.4738156,26.1171067));\n listOfpoints.get(67).add(new LatLng (44.4729582,26.1180937));\n listOfpoints.get(67).add(new LatLng (44.4705695, 26.1195099));\n listOfpoints.get(67).add(new LatLng (44.4677826,26.1202395));\n listOfpoints.get(67).add(new LatLng (44.4671287,26.121282));\n\n\n //Stockholm\n listOfpoints.get(68).add(new LatLng(59.339281, 18.005316));\n listOfpoints.get(68).add(new LatLng(59.263986, 18.253591));\n listOfpoints.get(68).add(new LatLng(59.260869, 17.878596));\n\n //Stockholm\n listOfpoints.get(69).add(new LatLng(59.342841, 18.040179));\n listOfpoints.get(69).add(new LatLng(59.355275, 17.884694));\n listOfpoints.get(69).add(new LatLng(59.423065, 18.075748));\n\n\n for(int i = 0 ; i < listOfpoints.size(); i++){\n listOfPolygons.add( MapsActivity.instance.mMap.addPolygon(new PolygonOptions()\n .addAll(listOfpoints.get(i))\n .strokeWidth(0)\n .fillColor(Color.argb(50, 0, 250, 0))) );\n }\n\n\n\n\n }", "static void setExample() throws Exception {\n PetriNet net = new PetriNet(2);\n PetriNet.setNet(net);\n \n int[] tmin = {2, 1};\n int[] tdelta = {-1, 1};\n int[] umin = {1, 2};\n int[] udelta = {-1, 2};\n int[] vmin = {1, 0};\n int[] vdelta = {1, 1};\n m0 = new Marking(new int[]{3, 1});\n mF = new Marking(new int[]{0, 4});\n \n PNTransition t = new PNTransition(tmin, tdelta);\n PNTransition u = new PNTransition(umin, udelta);\n PNTransition v = new PNTransition(vmin, vdelta);\n net.addTransition(t);\n net.addTransition(u);\n // net.addTransition(v);\n }", "public static void main(String[] args) {\n Point2D p2 = new Point2D(2,3);\n System.out.println(p2.toString());\n p2.setXY(3.4f, 5.6f);\n System.out.println(\"x = \" + p2.getXY()[0] + \",y = \" + p2.getXY()[1]);\n System.out.println(p2.toString());\n\n Point3D p3 = new Point3D(3, 4, 5);\n System.out.println(p3.toString());\n p3.setXYZ(3.4f, 5.6f, 4.2f);\n System.out.println(\"x = \" + p3.getXYZ()[0] + \",y = \" + p3.getXYZ()[1] + \",z = \" + p3.getXYZ()[2]);\n System.out.println(p3.toString());\n }", "public void addPoint(T p) {\n points.add(p);\n }", "public void initSpawnPoints() {\n this.spawnPointList = new ArrayList<Node>();\n \n //Player spawn point location (5,0,47) In Ready Room\n this.addSpawnPoint(5.5f,0,47.5f,90, true);\n //Mob spawn point location (16,0,47) In Zone 2\n this.addSpawnPoint(16.5f, 0, 47.5f, 270, false); \n //Mob spawn point location (21,0,43)\n this.addSpawnPoint(21.5f, 0, 43.5f, 0,false);\n \n //Mob spawners in Zone 3\n this.addSpawnPoint(17.5f, 0, 37.5f, 90, false);\n this.addSpawnPoint(29.5f, 0, 37.5f, 90, false);\n this.addSpawnPoint(17.5f, 0, 29.5f, 270, false);\n \n //Mob spawners in Zone 4\n this.addSpawnPoint(12.5f, 0, 29.5f, 90, false);\n this.addSpawnPoint(6.5f, 0, 20.5f, 0, false);\n \n //Mob spawners in Zone 5\n this.addSpawnPoint(9.5f, 0, 6.5f, 0, false);\n this.addSpawnPoint(17.5f, 0, 6.5f, 0, false);\n this.addSpawnPoint(24.5f, 0, 8.5f, 270, false);\n this.addSpawnPoint(24.5f, 0, 11.5f, 270, false);\n this.addSpawnPoint(24.5f, 0, 14.5f, 270, false);\n }", "public void addPoint(int points){\n\t\tthis.fidelityCard.point += points;\t\t\n\t}", "public void addPoint(double x, double y, double z);", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "private Viewpoint(int type,Float c1x,Float c1y,Float c2x,Float c2y,Float ex,Float ey){\n\t\tthis.type=type;\n\t\tthis.c1x=c1x;\n\t\tthis.c1x=c1y;\n\t\tthis.c2x=c2x;\n\t\tthis.c2y=c2y;\n\t\tthis.ex=ex;\n\t\tthis.ey=ey;\n\t}", "private void createVertices(int iX, int iY, int iXO, int iYO, int num, int increment) {\n int y = iY;\n if (num == 0 && increment == 0) {\n BracketNode last = new BracketNode(\"\", iX, y - 20, iXO, 20);\n nodes.add(last);\n getChildren().addAll(new Line(iX, iY, iX + iXO, iY), last);\n last.setName(currentBracket.getBracket().get(location));\n bracketMap.put(last, location);\n nodeMap.put(location, last);\n } else {\n ArrayList<BracketNode> aNodeList = new ArrayList<>();\n for (int i = 0; i < num; i++) {\n Point2D tl = new Point2D(iX, y);\n Point2D tr = new Point2D(iX + iXO, y);\n Point2D bl = new Point2D(iX, y + iYO);\n Point2D br = new Point2D(iX + iXO, y + iYO);\n BracketNode nTop = new BracketNode(\"\", iX, y - 20, iXO, 20);\n aNodeList.add(nTop);\n nodes.add(nTop);\n BracketNode nBottom = new BracketNode(\"\", iX, y + (iYO - 20), iXO, 20);\n aNodeList.add(nBottom);\n nodes.add(nBottom);\n Line top = new Line(tl.getX(), tl.getY(), tr.getX(), tr.getY());\n Line bottom = new Line(bl.getX(), bl.getY(), br.getX(), br.getY());\n Line right = new Line(tr.getX(), tr.getY(), br.getX(), br.getY());\n getChildren().addAll(top, bottom, right, nTop, nBottom);\n isTop = !isTop;\n y += increment;\n }\n ArrayList<Integer> tmpHelp = helper(location, num);\n for (int j = 0; j < aNodeList.size(); j++) {\n //System.out.println(currentBracket.getBracket().get(tmpHelp.get(j)));\n aNodeList.get(j).setName(currentBracket.getBracket().get(tmpHelp.get(j)));\n bracketMap.put(aNodeList.get(j), tmpHelp.get(j));\n nodeMap.put(tmpHelp.get(j), aNodeList.get(j));\n //System.out.println(bracketMap.get(aNodeList.get(j)));\n }\n }\n\n }", "public static void main(String[] args) {\n\t\tPoint point = new Point(2, 3, CoordinateSystem.CARTESIAN);\n\n\t\t// singleton access\n\t\tPoint origin = Point.ORIGIN;\n\n\t\t// Inner factory class\n\t\tPoint innerFactoryClass = Point.Factory.newCartesianPoint(1, 2);\n\n\t\t// External factory class\n\t\tPoint externalFactoryClass = PointFactory.newCartesianPoint(1, 2);\n\n\t}", "private void defineLinePoints(int x1, int y1,int x2,int y2){\n Line line1 = new Line(x1, y1, x2, y2);\n for(int i = 0; i < line1.points.size(); i++){\n super.points.add(line1.points.get(i));\n }\n }", "@Test\r\n public void testSinglePoints() {\r\n String searchIntersection = \"Randall & Dayton\";\r\n Path path = backend.getPoints(searchIntersection);\r\n ArrayList<String> points = path.getPOI();\r\n // Search for 'Randall & Dayton' point of interest\r\n if(!points.contains(\"Vantage Point\"))\r\n fail(\"Failed to find points of interest\");\r\n }", "Point(int x_, int y_){\n x = x_;\n y = y_;\n }", "public void generete() {\n int minQuantFig = 1,\r\n maxQuantFig = 10,\r\n minNum = 1,\r\n maxNum = 100,\r\n minColor = 0,\r\n maxColor = (int)colors.length - 1,\r\n\r\n // Initialize figures property for random calculations\r\n randomColor = 0,\r\n randomFigure = 0,\r\n\r\n // Squere property\r\n randomSideLength = 0,\r\n\r\n // Circle property\r\n randomRadius = 0,\r\n \r\n // IsoscelesRightTriangle property \r\n randomHypotenus = 0,\r\n \r\n // Trapizoid properties\r\n randomBaseA = 0,\r\n randomBaseB = 0,\r\n randomAltitude = 0;\r\n\r\n // Generate random number to set figueres's quantaty\r\n setFigureQuantaty( generateWholoeNumInRange(minQuantFig, maxQuantFig) );\r\n\r\n for( int i = 0; i < getFigureQuantaty(); i++ ) {\r\n\r\n // Convert double random value to int and close it in range from 1 to number of elements in array\r\n randomFigure = (int)( Math.random() * figures.length );\r\n \r\n randomColor = generateWholoeNumInRange( minColor, maxColor ); // Get random color's index from colors array\r\n\r\n // Create new figure depending on randomFigure \r\n switch (figures[randomFigure]) {\r\n\r\n case \"Circle\":\r\n\r\n randomRadius = generateWholoeNumInRange( minNum, maxNum ); // Get random value of circle's radius;\r\n\r\n Circle newCircle = new Circle( colors[randomColor], randomRadius ); // Initialize Circle with random parameters\r\n\r\n newCircle.drawFigure();\r\n \r\n break;\r\n\r\n case \"Squere\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n Squere newSquere = new Squere( colors[randomColor], randomSideLength ); // Initialize Circle with random parameters\r\n\r\n newSquere.drawFigure();\r\n\r\n break;\r\n\r\n case \"Triangle\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n randomHypotenus = generateWholoeNumInRange( minNum, maxNum ); // Get random value of hypotenus;\r\n\r\n IsoscelesRightTriangle newTriangle = new IsoscelesRightTriangle( colors[randomColor], randomSideLength, randomHypotenus ); // Initialize Circle with random parameters\r\n\r\n newTriangle.drawFigure();\r\n\r\n break;\r\n\r\n case \"Trapezoid\":\r\n\r\n randomBaseA = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side A;\r\n\r\n randomBaseB = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side B;\r\n\r\n randomAltitude = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's altitude;\r\n\r\n Trapezoid newTrapezoid = new Trapezoid( colors[randomColor], randomBaseA, randomBaseB, randomAltitude ); // Create new Trapezoid with random parameters\r\n\r\n newTrapezoid.drawFigure();\r\n\r\n break;\r\n\r\n };\r\n };\r\n }", "private static Point[] generateKnownColinear(final int quantity) {\n\t\tint xStart = 0;\n\t\tint yStart = 0;\n\t\tPoint[] pointArray = new Point[quantity];\n\t\t\n\t\tSystem.out.println(\"Using \" + quantity + \" of known co-linear points.\");\n\t\t\n\t\tfor(int i = 0; i < quantity; i++) {\n\t\t\tpointArray[i] = new Point(xStart++, yStart++);\n\t\t}\n\t\t\n\t\treturn pointArray;\n\t}", "@Test\n public void youCanCreateATimeSeriesFromPlatesFromACount() {\n\n VertexLabel xLabel = new VertexLabel(\"x\");\n VertexLabel xPreviousLabel = PlateBuilder.proxyFor(xLabel);\n VertexLabel yLabel = new VertexLabel(\"y\");\n\n Vertex<DoubleTensor> initialX = ConstantVertex.of(1.);\n List<Integer> ys = ImmutableList.of(0, 1, 2, 1, 3, 2);\n\n Plates plates = new PlateBuilder<Integer>()\n .withInitialState(xLabel, initialX)\n .count(10)\n .withFactory((plate) -> {\n DoubleVertex xPrevious = new DoubleProxyVertex(xPreviousLabel);\n DoubleVertex x = new ExponentialVertex(xPrevious);\n IntegerVertex y = new PoissonVertex(x);\n plate.add(xPrevious);\n plate.add(xLabel, x);\n plate.add(yLabel, y);\n })\n .build();\n\n\n Vertex<DoubleTensor> previousX = initialX;\n\n for (Plate plate : plates) {\n Vertex<DoubleTensor> xPreviousProxy = plate.get(xPreviousLabel);\n Vertex<DoubleTensor> x = plate.get(xLabel);\n Vertex<DoubleTensor> y = plate.get(yLabel);\n assertThat(xPreviousProxy.getParents(), contains(previousX));\n assertThat(x.getParents(), contains(xPreviousProxy));\n assertThat(y.getParents(), contains(x));\n previousX = x;\n }\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(addPoint(1));\n\t}", "@Test\n public void pipeDrawerValidPoints() {\n Point2D[] waypoints = {\n new Point2D(1, 1),\n new Point2D(1, 2),\n new Point2D(2, 2)\n };\n Pipe pipe = new Pipe(1f, 1, (byte) 1);\n\n new PipeDrawer(waypoints, pipe, 1);\n }", "public static void main(String args[]){\n featureBase Engine = new featureEngine(\"Engine!\",\n \"This is an engine test!\", 356.99,1.0, 24.5,1000.0);\n\n featureBase Wheels = new featureWheels(\"Wheels\",\n \"This is a wheels test!\", 359.9,1.0,\"Somber\", 21.0);\n\n featureBase Color = new featureColor(\"Test part!\",\n \"This is a test part cool huh?\",364.99,1.0,\"Stylish\");\n\n //Constructing a new nodeArray\n nodeArray test = new nodeArray();\n\n //inserting the objects into the array (Duplicate to test the LLL as well)\n test.insert(Wheels);\n test.insert(Engine);\n test.insert(Color);\n\n System.out.print(test.display());\n }", "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}", "VariationPointName createVariationPointName();", "static List<Example> createExamples(List<Attribute> attributes) {\n\t\tList<Example> examples = new ArrayList<>();\n\t\t\n\t\texamples.add(new Example(attributes.toArray(new Attribute[]{})));\n\t\texamples.add(new Example(attributes.toArray(new Attribute[]{})));\n\t\texamples.add(new Example(attributes.toArray(new Attribute[]{})));\n\t\t\n\t\treturn examples;\n\t}", "public CoordinateObjects(List<T> points) {\n this.points = new ArrayList<>(points);\n }", "@Test\n public void getPointsTest() {\n final double[] expectedResult = new double[3];\n final double[] envelope = new double[]{-3, 2, 0, 1, 4, 0};\n\n //lower corner\n System.arraycopy(envelope, 0, expectedResult, 0, 3);\n assertTrue(Arrays.equals(expectedResult, getLowerCorner(envelope)));\n\n //upper corner\n System.arraycopy(envelope, 3, expectedResult, 0, 3);\n assertTrue(Arrays.equals(expectedResult, getUpperCorner(envelope)));\n\n //median\n expectedResult[0] = -1;\n expectedResult[1] = 3;\n expectedResult[2] = 0;\n assertTrue(Arrays.equals(expectedResult, getMedian(envelope)));\n }", "public static void main(String[] args) {\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tSystem.out.print(i);\n\t\t}\n\t\tdouble pi = 3.1415927;\n\t\tSystem.out.println(\"; pi = \" + pi);\n\n\n\t\t// creation/manipulation d'objets\n\t\tPoint0 p0 = null; \n\t\tp0 = new Point0();\n\n\t\tp0.x = -2;\n\t\tp0.y = 1;\n\t\tSystem.out.println(\"p0: (\" + p0.x + \",\" + p0.y + \")\");\n\n\t\tPoint0 p1 = new Point0(); \n\t\tp1 = p0;\n\t\tp1.translate(2, 2);\n\t\tSystem.out.print(\"Maintenant, p0 vaut: \");\n\t\tSystem.out.println(\"(\" + p0.x + \",\" + p0.y + \")\");\n\t}", "private void createXVertices() {\n\n\t\tfor (int i = 0; i < this.numXVertices; i++) {\n\t\t\t// determine external degree -- random number between d_0 and d_1\n\t\t\tint upperBoundAdjusted = this.d1 - this.d0; // Shift to 0 so that the randomGen can be used\n\t\t\tint externalDegree = this.randomGen(upperBoundAdjusted) + this.d0; // Shift back for a degree within the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// range\n\t\t\tvertices.add(new XVertex('x', this.countXID++, externalDegree));\n\t\t}\n\t}", "public List<Example> createExamples(String[] ex, int maxExamples) {\n ExampleFactory eFactory = new ExampleFactory();\n List<Example> examples = new ArrayList<>();\n int positives = 0;\n int negatives = 0;\n for (int i = 0; i < ex.length; i++) {\n //main creation of an example\n Example e = eFactory.construct(ex[i]);\n examples.add(e);\n if (e.getExpectedValue() > 0) {\n positives++;\n } else {\n negatives++;\n }\n }\n Collections.shuffle(examples, Global.getRg());\n\n if (maxExamples > examples.size()) {\n return examples;\n }\n //stratified decreasing the number of examples\n positives = (int) Math.round(1.0 * positives / (examples.size()) * maxExamples);\n negatives = (int) Math.round(1.0 * negatives / (examples.size()) * maxExamples);\n List<Example> finExamples = new ArrayList<Example>();\n\n for (Example e : examples) {\n if (e.getExpectedValue() > 0) {\n positives--;\n if (positives >= 0) {\n finExamples.add(e);\n }\n } else {\n negatives--;\n if (negatives >= 0) {\n finExamples.add(e);\n }\n }\n }\n\n return finExamples;\n }" ]
[ "0.66194123", "0.65618366", "0.64557236", "0.6414588", "0.63332707", "0.62311286", "0.6180857", "0.61662304", "0.61322665", "0.6038533", "0.60269946", "0.59885025", "0.59736705", "0.595588", "0.59378636", "0.59351933", "0.590461", "0.58239", "0.5816877", "0.5804049", "0.5795361", "0.579428", "0.57667124", "0.5765431", "0.57648873", "0.5759879", "0.5745508", "0.574414", "0.57384074", "0.57223326", "0.57014424", "0.56840557", "0.5644373", "0.5621906", "0.5614165", "0.5589416", "0.5584814", "0.5571059", "0.5569921", "0.55633193", "0.5561744", "0.5552463", "0.55457634", "0.5542999", "0.5535905", "0.55253714", "0.5518653", "0.5514481", "0.5497894", "0.54977965", "0.5493051", "0.54921323", "0.54863614", "0.5486181", "0.5484398", "0.54775876", "0.54730684", "0.5466398", "0.5456335", "0.5450849", "0.54503536", "0.54478157", "0.544715", "0.5447013", "0.54433197", "0.54356325", "0.54295534", "0.5415011", "0.5411818", "0.5403927", "0.5401288", "0.5391199", "0.53903425", "0.53873307", "0.5385134", "0.5376677", "0.5371351", "0.5371106", "0.5366631", "0.5365273", "0.5364557", "0.53571975", "0.53570837", "0.5350891", "0.53436947", "0.53379345", "0.5335877", "0.53348505", "0.5333467", "0.5330118", "0.53225696", "0.5310808", "0.5301709", "0.5298436", "0.5294825", "0.52896845", "0.5289511", "0.5288327", "0.52790105", "0.5278795", "0.52734625" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.login); initView(); login = (Button)findViewById(R.id.btn_login); login.setOnClickListener(ocl); }
{ "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 void onClick(View v) { switch (v.getId()) { case R.id.btn_login_regist: Intent intent = new Intent(LoginActivity.this,RegisterActivity.class); startActivity(intent); break; } }
{ "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 onOptionsItemSelected(MenuItem item) { switch(item.getItemId()){ case MENU_PWD_BACK: break; case MENU_HELP: break; case MENU_EXIT: finish(); break; } return super.onOptionsItemSelected(item); }
{ "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
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.getContentPane().setBackground(Color.BLACK); frame.getContentPane().setLayout(null); frame.setExtendedState(JFrame.MAXIMIZED_BOTH); JLabel lblDesignCopyrights = new JLabel("design copyrights \u00A9 chinmaya"); lblDesignCopyrights.setFont(new Font("Times New Roman", Font.PLAIN, 14)); lblDesignCopyrights.setForeground(new Color(255, 255, 224)); lblDesignCopyrights.setBounds(1711, 1018, 183, 23); frame.getContentPane().add(lblDesignCopyrights); JPanel background = new JPanel(); background.setLayout(null); background.setBackground(Color.DARK_GRAY); background.setBounds(14, 200, 1880, 809); frame.getContentPane().add(background); JLabel lblTypesOfMachine = new JLabel("MACHINE NAME"); lblTypesOfMachine.setHorizontalAlignment(SwingConstants.LEFT); lblTypesOfMachine.setVerticalAlignment(SwingConstants.TOP); lblTypesOfMachine.setForeground(Color.WHITE); lblTypesOfMachine.setFont(new Font("Times New Roman", Font.PLAIN, 19)); lblTypesOfMachine.setBounds(69, 378, 178, 30); background.add(lblTypesOfMachine); JLabel lblAppointment = new JLabel("LIST TO DO"); lblAppointment.setForeground(Color.WHITE); lblAppointment.setFont(new Font("Times New Roman", Font.PLAIN, 30)); lblAppointment.setBounds(69, 117, 319, 48); background.add(lblAppointment); JLabel lblQuantity = new JLabel("QUANTITY"); lblQuantity.setHorizontalAlignment(SwingConstants.LEFT); lblQuantity.setVerticalAlignment(SwingConstants.TOP); lblQuantity.setForeground(Color.WHITE); lblQuantity.setFont(new Font("Times New Roman", Font.PLAIN, 19)); lblQuantity.setBounds(69, 428, 178, 30); background.add(lblQuantity); Panel panel = new Panel(); panel.setLayout(null); panel.setBackground(Color.BLACK); panel.setBounds(0, 30, 1880, 67); background.add(panel); JButton cusbtn = new JButton("CUSTOMER"); cusbtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { customer cr = new customer(); cr.csStart(); frame.dispose(); } }); cusbtn.setForeground(Color.WHITE); cusbtn.setFont(new Font("Times New Roman", Font.PLAIN, 15)); cusbtn.setBackground(Color.BLACK); cusbtn.setBounds(1257, 11, 613, 44); panel.add(cusbtn); JButton bilbtn = new JButton("INVOICE"); bilbtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { adminInvoice inv= new adminInvoice(); inv. adminInvoiceStart(); frame.dispose(); } }); bilbtn.setForeground(Color.WHITE); bilbtn.setFont(new Font("Times New Roman", Font.PLAIN, 15)); bilbtn.setBackground(Color.BLACK); bilbtn.setBounds(633, 11, 613, 44); panel.add(bilbtn); JButton prdbtn = new JButton("PRODUCTS"); prdbtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { adminproducts prd = new adminproducts(); prd.adminPrd(); frame.dispose(); } }); prdbtn.setForeground(Color.WHITE); prdbtn.setFont(new Font("Times New Roman", Font.PLAIN, 15)); prdbtn.setBackground(Color.BLACK); prdbtn.setBounds(10, 11, 613, 44); panel.add(prdbtn); JLabel lblCustomerName = new JLabel("CUSTOMER NAME"); lblCustomerName.setVerticalAlignment(SwingConstants.TOP); lblCustomerName.setHorizontalAlignment(SwingConstants.LEFT); lblCustomerName.setForeground(Color.WHITE); lblCustomerName.setFont(new Font("Times New Roman", Font.PLAIN, 19)); lblCustomerName.setBounds(69, 278, 178, 30); background.add(lblCustomerName); JLabel lblMachineType = new JLabel("MACHINE TYPE"); lblMachineType.setVerticalAlignment(SwingConstants.TOP); lblMachineType.setHorizontalAlignment(SwingConstants.LEFT); lblMachineType.setForeground(Color.WHITE); lblMachineType.setFont(new Font("Times New Roman", Font.PLAIN, 19)); lblMachineType.setBounds(69, 328, 178, 30); background.add(lblMachineType); JButton btnStore = new JButton("STORE"); btnStore.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String dateEntry=date.getText(); String cusname= customerName.getText(); String machType=machineType.getText(); String machName=machineName.getText(); String quan=quantity.getText(); String dl= deadline.getText(); Connection con; PreparedStatement insert; if(dateEntry.isEmpty()||cusname.isEmpty()||machName.isEmpty()||machType.isEmpty()||quan.isEmpty()||dl.isEmpty()) { JOptionPane.showMessageDialog(null,"no field must be left empty","registration error", JOptionPane.ERROR_MESSAGE); return; } else { JOptionPane.showMessageDialog(null, " Appointment added!!"); } try { Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost:3306/machine_works", "root", ""); insert = con.prepareStatement("insert into appointment (date,cusname,machType,machName,quan,deadline) values (?,?,?,?,?,?)"); insert.setString(1, dateEntry); insert.setString(2, cusname); insert.setString(3, machType); insert.setString(4, machName); insert.setString(5, quan); insert.setString(6, dl); insert.executeUpdate(); } catch(Exception E) { E.printStackTrace(); } } }); btnStore.setForeground(Color.WHITE); btnStore.setFont(new Font("Times New Roman", Font.PLAIN, 15)); btnStore.setBackground(Color.BLACK); btnStore.setBounds(580, 578, 116, 44); background.add(btnStore); JScrollPane scrollPane = new JScrollPane(); scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane.setBounds(1000, 230, 613, 267); background.add(scrollPane); invoice = new JTable(); scrollPane.setViewportView(invoice); JLabel lblInvoice = new JLabel("VIEW TO-DO LIST"); lblInvoice.setForeground(Color.WHITE); lblInvoice.setFont(new Font("Times New Roman", Font.PLAIN, 30)); lblInvoice.setBounds(1010, 117, 387, 48); background.add(lblInvoice); quantity = new JTextField(); quantity.setFont(new Font("Times New Roman", Font.PLAIN, 15)); quantity.setColumns(10); quantity.setBounds(279, 428, 289, 30); background.add(quantity); machineName = new JTextField(); machineName.setFont(new Font("Times New Roman", Font.PLAIN, 15)); machineName.setColumns(10); machineName.setBounds(279, 328, 289, 30); background.add(machineName); machineType = new JTextField(); machineType.setFont(new Font("Times New Roman", Font.PLAIN, 15)); machineType.setColumns(10); machineType.setBounds(279, 378, 289, 30); background.add(machineType); customerName = new JTextField(); customerName.setFont(new Font("Times New Roman", Font.PLAIN, 15)); customerName.setColumns(10); customerName.setBounds(279, 278, 289, 30); background.add(customerName); JLabel deadlineLbl = new JLabel("DEADLINE"); deadlineLbl.setVerticalAlignment(SwingConstants.TOP); deadlineLbl.setHorizontalAlignment(SwingConstants.LEFT); deadlineLbl.setForeground(Color.WHITE); deadlineLbl.setFont(new Font("Times New Roman", Font.PLAIN, 19)); deadlineLbl.setBounds(69, 481, 178, 30); background.add(deadlineLbl); JLabel lblDate = new JLabel("DATE"); lblDate.setVerticalAlignment(SwingConstants.TOP); lblDate.setHorizontalAlignment(SwingConstants.LEFT); lblDate.setForeground(Color.WHITE); lblDate.setFont(new Font("Times New Roman", Font.PLAIN, 19)); lblDate.setBounds(69, 228, 178, 30); background.add(lblDate); date = new JTextField(); date.setFont(new Font("Times New Roman", Font.PLAIN, 15)); date.setColumns(10); date.setBounds(279, 228, 289, 30); background.add(date); JButton btnView = new JButton("VIEW"); btnView.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { try { Connection con = null; Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost:3306/machine_works", "root", ""); String query="select * from appointment "; PreparedStatement pst = con.prepareStatement(query); ResultSet rs = pst.executeQuery(); invoice.setModel(DbUtils.resultSetToTableModel(rs)); } catch(Exception E) { E.printStackTrace(); } } }); btnView.setForeground(Color.WHITE); btnView.setFont(new Font("Times New Roman", Font.PLAIN, 15)); btnView.setBackground(Color.BLACK); btnView.setBounds(1584, 578, 116, 44); background.add(btnView); deadline = new JTextField(); deadline.setFont(new Font("Times New Roman", Font.PLAIN, 15)); deadline.setColumns(10); deadline.setBounds(279, 481, 289, 30); background.add(deadline); JPanel header = new JPanel(); header.setLayout(null); header.setBackground(Color.DARK_GRAY); header.setBounds(14, 23, 1880, 163); frame.getContentPane().add(header); JPanel mwtitle = new JPanel(); mwtitle.setLayout(null); mwtitle.setForeground(Color.WHITE); mwtitle.setBackground(Color.BLACK); mwtitle.setBounds(209, 7, 649, 151); header.add(mwtitle); JLabel label = new JLabel("MACHINE WORKS"); label.setForeground(Color.WHITE); label.setFont(new Font("Times New Roman", Font.PLAIN, 69)); label.setBounds(20, 11, 605, 72); mwtitle.add(label); JLabel lblWhereAllThe = new JLabel("Where all the WORK is done by MACHINE"); lblWhereAllThe.setForeground(Color.ORANGE); lblWhereAllThe.setFont(new Font("Times New Roman", Font.PLAIN, 30)); lblWhereAllThe.setBounds(38, 94, 581, 48); mwtitle.add(lblWhereAllThe); JLabel logolbl = new JLabel(""); logolbl.setIcon(new ImageIcon("C:\\Users\\CHINMAYA SH\\Pictures\\download.png")); logolbl.setBounds(58, 7, 151, 151); header.add(logolbl); JButton lgbtn = new JButton("LOGOUT"); lgbtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JOptionPane.showMessageDialog(null, "Logged out Successfull !!"); index ind = new index(); ind.indexStart(); frame.dispose(); } }); lgbtn.setForeground(Color.WHITE); lgbtn.setFont(new Font("Times New Roman", Font.PLAIN, 15)); lgbtn.setBackground(Color.BLACK); lgbtn.setBounds(1674, 60, 116, 44); header.add(lgbtn); JButton button_1 = new JButton("SIGN UP"); button_1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { signup sg = new signup(); sg.signupStart(); frame.dispose(); } }); button_1.setForeground(Color.WHITE); button_1.setFont(new Font("Times New Roman", Font.PLAIN, 15)); button_1.setBackground(Color.BLACK); button_1.setBounds(1488, 60, 116, 44); header.add(button_1); JButton btnAppointment = new JButton("TO-DO"); btnAppointment.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { appointments ap = new appointments(); ap.appointmentList(); frame.dispose(); } }); btnAppointment.setForeground(Color.WHITE); btnAppointment.setFont(new Font("Times New Roman", Font.PLAIN, 15)); btnAppointment.setBackground(Color.BLACK); btnAppointment.setBounds(1309, 60, 125, 44); header.add(btnAppointment); frame.setBackground(Color.BLACK); frame.setBounds(100, 100, 1920 , 1080); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "protected HFrame(){\n\t\tinit();\n\t}", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}", "public FrameControl() {\n initComponents();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public MainFrame() {\n initComponents();\n \n }", "private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public internalFrame() {\r\n initComponents();\r\n }", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "public Mainframe() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }", "private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}", "private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }", "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}", "public mainframe() {\n initComponents();\n }", "public FrameDesign() {\n initComponents();\n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public JGSFrame() {\n\tsuper();\n\tinitialize();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "public SMFrame() {\n initComponents();\n updateComponents();\n }", "private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}", "private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "public launchFrame() {\n \n initComponents();\n \n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public PilaFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}", "StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public NewFrame() {\n initComponents();\n }", "public SerialCommFrame()\n {\n super();\n initialize();\n }", "public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public BaseFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public MercadoFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}", "public holdersframe() {\n initComponents();\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public addStFrame() {\n initComponents();\n }", "public JFrame() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}", "private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}" ]
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.7107974", "0.7100368", "0.7092515", "0.708178", "0.70652425", "0.70630395", "0.70621413", "0.7060283", "0.70517516", "0.7043992", "0.6996167", "0.6978269", "0.6971387", "0.6956391", "0.6938475", "0.6929829", "0.6929629", "0.69251114", "0.6921989", "0.6920365", "0.6914633", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.69020075", "0.68911743", "0.6886017", "0.6873457", "0.6870402", "0.68686837", "0.68669385", "0.686311", "0.68616706", "0.68552315", "0.68537515", "0.681551", "0.68141145", "0.68094325", "0.67992085", "0.67930394", "0.6782133", "0.6765297", "0.6748138", "0.6731745", "0.6716807", "0.6711878", "0.6706194", "0.6697453", "0.6692831", "0.66927665", "0.6689213", "0.66724384", "0.66606426", "0.664954", "0.6642464", "0.6640775", "0.6638488", "0.663824", "0.663545", "0.66264987", "0.6625419", "0.6611392", "0.6608291", "0.6600817", "0.66005784", "0.6591052", "0.65869486", "0.65862876", "0.65753394", "0.6575285", "0.6570335", "0.655961" ]
0.0
-1
A Period is an appointment in the calendar, which basicaly consists of two time specifications.
public interface Period { Date getStart(); Date getEnd(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TimePeriod getPeriod();", "public void period() {\n\t\tPeriod annually = Period.ofYears(1);\n\t\tPeriod quarterly = Period.ofMonths(3);\n\t\tPeriod everyThreeWeeks = Period.ofWeeks(3);\n\t\tPeriod everyOtherDay = Period.ofDays(2);\n\t\tPeriod everyYearAndAWeek = Period.of(1, 0, 7);\n\t\tLocalDate date = LocalDate.of(2014, Month.JANUARY, 20);\n\t\tdate = date.plus(annually);\n\t\tSystem.out.println(date);\n\t\tSystem.out.println(Period.of(0, 20, 47)); // P20M47D\n\t\tSystem.out.println(Period.of(2, 20, 47)); // P2Y20M47D\n\t}", "public Period getPeriod() {\n return period;\n }", "org.hl7.fhir.Period getAppliesPeriod();", "public void setPeriod(Long Period) {\n this.Period = Period;\n }", "public TimePeriod notWorking(TimePeriod period);", "public void setPeriod(String period) {\n this.period = period;\n }", "public void setPeriod(String period) {\n this.period = period;\n }", "public String getPeriod() {\n return period;\n }", "double getPeriod();", "public void setPeriod(int period) {\n this.period = period;\n }", "public int getPeriod()\r\n\t{\r\n\t\treturn period;\r\n\t}", "public String getPeriod() {\n return this.period;\n }", "public int getPeriod() {\n return period;\n }", "org.hl7.fhir.Period addNewValuePeriod();", "public double getPeriod() {\n return period;\n }", "org.hl7.fhir.Period addNewAppliesPeriod();", "int getPeriod();", "public static void testPeriod() {\n LocalDate date1 = LocalDate.now();\n System.out.println(\"Current date: \" + date1);\n\n //add 1 month to the current date\n LocalDate date2 = date1.plus(1, ChronoUnit.MONTHS);\n System.out.println(\"Next month: \" + date2);\n\n Period period = Period.between(date2, date1);\n System.out.println(\"Period: \" + period);\n }", "@Updatable\n public Integer getPeriod() {\n return period;\n }", "public Long getPeriod() {\n return this.Period;\n }", "public AdjustmentPeriodTypeId getPeriod() {\n return this.period;\n }", "@Test\n void deve_retornar_o_periodo_first_period_out() {\n List<LocalTime> localTimes = Arrays.asList(LocalTime.parse(\"10:30:00\"));\n TimeCourseEnum response = timeService.addPeriod(localTimes);\n Assert.assertEquals(TimeCourseEnum.FIRST_PERIOD_OUT, response);\n }", "public void setTimePeriod(int timePeriod) {\n this.timePeriod = timePeriod;\n }", "protected int getNumberOfPeriods()\n {\n return 2;\n }", "public int getTimePeriod() {\n return timePeriod;\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public void setTimePeriod(DateInterval timePeriod) {\n this.timePeriod = timePeriod;\n }", "public void setTimePeriod(DateInterval timePeriod) {\n this.timePeriod = timePeriod;\n }", "public Period toPeriod() {\r\n return new Period(getStartMillis(), getEndMillis(), getChronology());\r\n }", "public int getTimePeriod()\n\t{\n\t\treturn timePeriod;\n\t}", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public void setPeriod(int period) {\r\n\t\tif (isValidPeriod(period)) {\r\n\t\t\tthis.period = period;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n MutablePeriod mp = new MutablePeriod();\n Period p = mp.period;\n Date pEnd = mp.end;\n\n // Let's turn back the clock\n pEnd.setYear(78);\n System.out.println(p);\n\n // Bring back the 60s\n pEnd.setYear(69);\n System.out.println(p);\n }", "public void changeTimePeriod(int period)\n\t{\n\t\tthis.timePeriod = period;\n\t}", "org.hl7.fhir.Period getValuePeriod();", "public Period toPeriod(PeriodType type) {\r\n return new Period(getStartMillis(), getEndMillis(), type, getChronology());\r\n }", "@Test\n void deve_retornar_o_periodo_second_period_in() {\n List<LocalTime> localTimes = Arrays.asList(LocalTime.parse(\"10:30:00\"), LocalTime.parse(\"10:30:00\"));\n TimeCourseEnum response = timeService.addPeriod(localTimes);\n Assert.assertEquals(TimeCourseEnum.SECOND_PERIOD_IN, response);\n }", "void setAppliesPeriod(org.hl7.fhir.Period appliesPeriod);", "public Period onsetPeriod() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_ONSET_PERIOD);\n }", "public void setPeriod(double value) {\n this.period = value;\n }", "public void setPeriod(AdjustmentPeriodTypeId value) {\n this.period = value;\n }", "BigInteger getPeriod();", "@Test\n void deve_retornar_o_periodo_first_period_in() {\n List<LocalTime> localTimes = new ArrayList<>();\n TimeCourseEnum response = timeService.addPeriod(localTimes);\n Assert.assertEquals(TimeCourseEnum.FIRST_PERIOD_IN, response);\n }", "@Test\n void deve_retornar_o_periodo_second_period_out() {\n List<LocalTime> localTimes = Arrays.asList\n (LocalTime.parse(\"10:30:00\"), LocalTime.parse(\"11:30:00\"), LocalTime.parse(\"12:30:00\"));\n TimeCourseEnum response = timeService.addPeriod(localTimes);\n Assert.assertEquals(TimeCourseEnum.SECOND_PERIOD_OUT, response);\n }", "ChangeObserver<T> setPeriod(TimeUnit timeUnit, int period);", "private TimePeriod(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setValuePeriod(org.hl7.fhir.Period valuePeriod);", "public ITimePeriod intersect(ITimePeriod other) {\n\t\tlong is = Math.max(start, other.getStart());\n\t\tlong ie = Math.min(end, other.getEnd());\n\n\t\tif (is > ie)\n\t\t return ITimePeriod.EMPTY_PERIOD;\n\n\t\treturn new XTimePeriod(is,ie);\n\t}", "public PeriodFactoryImpl() {\n\t\tsuper();\n\t}", "public DateInterval getTimePeriod() {\n return this.timePeriod;\n }", "public DateInterval getTimePeriod() {\n return this.timePeriod;\n }", "public List<Period> getPeriods() throws PeriodNotFoundException;", "public TimePeriodCode() {\n\t\tindicator1=' ';\n\t\tindicator2=' ';\n\t}", "public interface IFlexiblePeriod <DATATYPE> extends IPeriodProvider, IHasStartAndEnd <DATATYPE>, Serializable\r\n{\r\n /**\r\n * Check if this object is valid for this specific date.\r\n * \r\n * @param aDate\r\n * The date to be checked. May not be <code>null</code>.\r\n * @return <code>true</code> if this object is valid for this date,\r\n * <code>false</code> otherwise.\r\n */\r\n boolean isValidFor (@Nonnull DATATYPE aDate);\r\n\r\n /**\r\n * This is a shortcut method for checking the validity of the object for the\r\n * current date and time.\r\n * \r\n * @return <code>true</code> if this object is valid for the current date,\r\n * <code>false</code> otherwise.\r\n */\r\n boolean isValidForNow ();\r\n}", "@ApiModelProperty(value = \"The period for which the object is valid\")\n\n @Valid\n\n public TimePeriod getValidFor() {\n return validFor;\n }", "@Test\n\tpublic void test07() throws Throwable {\n\t\tAppt appt = new Appt( 1, 1, 1, 1, 1, null, null);\n\n\t\t//Construct a new Appointment object with the initial data\n\t\tAppt apptS = new Appt( 1,1,1,1,1, \" \", \" \");\n\n\t\tGregorianCalendar cal = new GregorianCalendar();\n\t\tcal.set(2000, 3, 10, 10, 10 , 15);\n\n\t\tCalDay calDay = new CalDay(cal);\n\t\tcalDay.addAppt(appt);\n\t\tcalDay.addAppt(apptS);\n\n\t\tGregorianCalendar gCal = new GregorianCalendar();\n\t\tgCal.set(2000, 3, 11, 11, 11, 11);\n\n\t\tGregorianCalendar goCal = new GregorianCalendar();\n\t\tgCal.set(2020, 5, 15, 15, 15, 15);\n\n\t\tTimeTable timeTable = new TimeTable();\n\t\tassertNotEquals(null, timeTable.getApptRange(calDay.getAppts(), cal, gCal));\n\t\tassertNotEquals(null, timeTable.getApptRange(calDay.getAppts(), cal, goCal));\n\t\tassertNotEquals(null, timeTable.deleteAppt(calDay.getAppts(), appt));\n\n\t\t//Construct a new Appointment object with the initial data\n\t\tAppt apptY = new Appt(150, 150, 150, 150, 150, \"a\", \"a\");\n\n\n\t\tassertEquals(null, timeTable.deleteAppt( calDay.getAppts(), apptY ) );\n\t\tcalDay.addAppt(apptY);\n\n\t\tassertNotEquals(null, timeTable.getApptRange(calDay.getAppts(), cal, gCal));\n\t\tassertEquals(null, timeTable.deleteAppt(null, null ) );\n\t\tassertEquals(null, timeTable.deleteAppt(calDay.getAppts(), null ) );\n\n\t\tapptY = new Appt( -1, -1, -1, -1, -1, \"lol\", \"not today\");\n\n\t\tassertEquals(null, timeTable.deleteAppt( calDay.getAppts(), apptY ) );\n\t\tcalDay.addAppt(apptY);\n\t}", "public DayPeriod() {\n\t}", "boolean isSetAppliesPeriod();", "public void setPeriod(org.hl7.fhir.Period period)\n {\n generatedSetterHelperImpl(period, PERIOD$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "public long getPeriodId() {\n return periodId;\n }", "public static Reservation[] getFromPeriod(Period period) {\r\n \t\t// Set the condition\r\n\t\tString condition = \"period.startTime >= \" + period.start.getTime() + \r\n \t\t\t\t\t \t\t\" AND period.endTime <= \" + period.end.getTime();\r\n \t\t\r\n \t\t// Execute the query\r\n \t\tResultSet result = model.get(\"reservation\", condition, \"period\", \"reservation.period\", \"period.id\");\r\n \r\n \t\t// Examine if the result has any content\r\n \t\tif (getFirstRowInResultSet(result)) {\r\n \t\t\t// Retrieve the results\r\n \t\t\ttry {\r\n \t\t\t\tresult.last();\r\n \t\t\t\tReservation[] arr = new Reservation[result.getRow()];\r\n \t\t\t\tresult.beforeFirst();\r\n \t\t\t\twhile (result.next()) {\r\n \t\t\t\t\tint id \t\t\t = result.getInt(1);\r\n \t\t\t\t\tSystem.out.println(result.getString(\"startTime\"));\r\n \t\t\t\t\t//arr[result.getRow() - 1] = new Reservation(id, customer, period, vehicle);\r\n \t\t\t\t}\r\n \t\t\t\t\r\n \t\t\t\t// Return\r\n \t\t\t\treturn arr;\r\n \t\t\t} catch (SQLException e) {\r\n \t\t\t\tLog.error(\"Unable to retrieve data from result: \" + e);\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tLog.info(\"Query for Reservation with condition returned empty.\");\r\n \t\t}\r\n \t\t\r\n \t\t// Return failure.\r\n \t\treturn null;\r\n \t}", "public void setOpenPeriod(String openPeriod) {\n this.openPeriod = openPeriod;\n }", "Appointment(String description, String beginTime , String endTime){\n ShortDateFormat = new SimpleDateFormat(\"MM/dd/yyyy hh:mm a\", Locale.ENGLISH);\n //Check for bad data\n try{\n if(beginTime.contains(\"\\\"\")||endTime.contains(\"\\\"\"))\n throw new IllegalArgumentException(\"Date and time cannot contain quotes \");\n\n String[] tempStart = beginTime.split(\" \");\n String[] tempEnd= endTime.split(\" \");\n\n if(!tempStart[0].matches(\"(0?[1-9]|1[012])/(0?[1-9]|[12][0-9]|3[01])/((19|20)\\\\d\\\\d)\")||!tempEnd[0].matches(\"(0?[1-9]|1[012])/(0?[1-9]|[12][0-9]|3[01])/((19|20)\\\\d\\\\d)\")) {\n throw new IllegalArgumentException(\"Invalid Date Format\");\n }\n\n if(!tempStart[1].matches(\"([01]?[0-9]|2[0-3]):[0-5][0-9]\")||!tempEnd[1].matches(\"([01]?[0-9]|2[0-3]):[0-5][0-9]\"))\n throw new IllegalArgumentException(\"Time format must follow mm:hh (12 hour time)\");\n\n if(!tempStart[2].matches(\"(am|pm|AM|PM)\")&&!tempEnd[2].matches(\"(am|pm|AM|PM)\"))\n throw new IllegalArgumentException(\"Time must include am/pm\");\n }\n catch(IllegalArgumentException ex){\n System.out.println(ex.getMessage());\n System.exit(1);\n }\n\n setDate(beginTime,endTime);\n this.description = description;\n\n }", "private Periodo getPeriodoCorte() {\n String valor = parametrosDao.obtenerTodosParametros().get(\"integrador.periodo.arranque\");\r\n\r\n return Periodo.parse(valor, \"yyyyMM\");\r\n }", "public org.hl7.fhir.Period addNewPeriod()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Period target = null;\n target = (org.hl7.fhir.Period)get_store().add_element_user(PERIOD$2);\n return target;\n }\n }", "public Map<String, List<TimePeriodModel>> getAllTimePeriods();", "@Test\r\n public void testReflexivityOverlappingTimePeriods(){\n DateTime startAvailability1 = new DateTime(2021, 7, 9, 10, 30);\r\n DateTime endAvailability1 = new DateTime(2021, 7, 9, 11, 30);\r\n DateTime startAvailability2 = new DateTime(2021, 7, 9, 11, 0);\r\n DateTime endAvailability2 = new DateTime(2021, 7, 9, 12, 0);\r\n Availability availability1 = new Availability(new HashSet<>(Arrays.asList(\"online\", \"in-person\")), startAvailability1, endAvailability1);\r\n Availability availability2 = new Availability(new HashSet<>(Arrays.asList(\"online\", \"in-person\")), startAvailability2, endAvailability2);\r\n assertTrue(availability1.overlapsWithTimePeriod(availability2));\r\n assertTrue(availability2.overlapsWithTimePeriod(availability1));\r\n }", "public String getOpenPeriod() {\n return openPeriod;\n }", "@ApiModelProperty(value = \"The period for which the relationship is applicable\")\n public TimePeriodType getValidFor() {\n return validFor;\n }", "@Test\n\t public void test01() throws Throwable {\n\t\tint startHour=21;\n\t\tint startMinute=30;\n\t\tint startDay=1;\n\t\tint startMonth=2;\n\t\tint startYear=2018;\n\t\tString title=\"Test 2a\";\n\t\tString description=\"This is test 1a.\";\n\t\t //Construct a new Appointment object with the initial data\t \n\t\tAppt appt1 = new Appt(startHour,\n\t\t startMinute ,\n\t\t startDay ,\n\t\t startMonth ,\n\t\t startYear ,\n\t\t title,\n\t\t description);\n\t\t\t\t \n\t\tstartHour=8;\n\t\tstartMinute=15;\n\t\tstartDay=1;\n\t\tstartMonth=2;\n\t\tstartYear=2018;\n\t\ttitle=\"Test 2b\";\n\t\tdescription=\"This is test 1b.\";\n\t\t //Construct a new Appointment object with the initial data\t \n\t\tAppt appt2 = new Appt(startHour,\n\t\t startMinute ,\n\t\t startDay ,\n\t\t startMonth ,\n\t\t startYear ,\n\t\t title,\n\t\t description);\n\t\t\t\t \n\t// assertions\n\t\tassertTrue(appt1.getValid());\n\t\tassertTrue(appt2.getValid());\n\t\t \n\t\tLinkedList<Appt> appts = new LinkedList<Appt>();\n\t\tappts.add(appt1);\n\t\tappts.add(appt2);\n\t\t \n\t\tCalendar rightnow = Calendar.getInstance();\n \tint thisMonth = rightnow.get(Calendar.MONTH)+1;\n\t\tint thisYear = rightnow.get(Calendar.YEAR);\n\t\tint thisDay = rightnow.get(Calendar.DAY_OF_MONTH);\n\t\tGregorianCalendar today = new GregorianCalendar(thisYear,thisMonth,thisDay);\n\t\tGregorianCalendar tomorrow = (GregorianCalendar)today.clone();\n\t\ttomorrow.add(Calendar.DAY_OF_MONTH,1);\n\t\t//Construct new CalDay object\n\t\tCalDay day = new CalDay(today);\n\t\tday.addAppt(appt1);\n\t\tday.addAppt(appt2);\n\t\tTimeTable timeTable = new TimeTable();\n\t//assertions\n\t\tassertTrue(day.isValid());\n\t\tassertEquals(2, day.getSizeAppts()); //check for two appts added\n\t\tassertEquals(1, timeTable.getApptRange(appts, today, tomorrow).size()); //should return the CalDay between the two dates\n\t }", "void getCurrentPeriodo();", "public boolean overlaps (DayPeriod other) {\n\t\tif (getDate().isEqual(other.getDate()))\n\t\t\treturn getStartTime().isBefore(other.getEndTime()) && other.getStartTime().isBefore(getEndTime());\n\t\treturn false;\n\t}", "@ApiModelProperty(example = \"null\", value = \"The frequency with which to schedule the reporting task. The format of the value willd epend on the valud of the schedulingStrategy.\")\n public String getSchedulingPeriod() {\n return schedulingPeriod;\n }", "private boolean isValidPeriod(int period) {\r\n\t\treturn (period > 0 && period < 366); \r\n\t}", "@Override\n\tpublic void handlePeriod() {\n\t}", "public Period getNextPeriod() throws PeriodNotFoundException;", "@Test\n\tpublic void test02() throws Throwable {\n\t\tint startHour=-15;\n\t\tint startMinute=30;\n\t\tint startDay=11;\n\t\tint startMonth=4;\n\t\tint startYear=2017;\n\t\tString title=\"Birthday Party\";\n\t\tString description=\"This is my birthday party.\";\n\t\t//Construct a new Appointment object with the initial data\n\t\tAppt appt1 = new Appt(startHour,\n\t\t\t\tstartMinute ,\n\t\t\t\tstartDay ,\n\t\t\t\tstartMonth ,\n\t\t\t\tstartYear ,\n\t\t\t\ttitle,\n\t\t\t\tdescription);\n\t\t// create another appointment\n\t\tstartHour=14;\n\t\tstartMinute=30;\n\t\tstartDay=11;\n\t\tstartMonth=4;\n\t\tstartYear=2017;\n\t\ttitle=\"Class\";\n\t\tdescription=\"Rescheduled class.\";\n\t\t//Construct a new Appointment object with the initial data\n\t\tAppt appt2 = new Appt(startHour,\n\t\t\t\tstartMinute ,\n\t\t\t\tstartDay ,\n\t\t\t\tstartMonth ,\n\t\t\t\tstartYear ,\n\t\t\t\ttitle,\n\t\t\t\tdescription);\n\t\t// create another appointment\n\t\tstartHour=13;\n\t\tstartMinute=30;\n\t\tstartDay=11;\n\t\tstartMonth=4;\n\t\tstartYear=2017;\n\t\ttitle=\"Meeting Today\";\n\t\tdescription=\"Meeting with the students.\";\n\t\t//Construct a new Appointment object with the initial data\n\t\tAppt appt3 = new Appt(startHour,\n\t\t\t\tstartMinute ,\n\t\t\t\tstartDay ,\n\t\t\t\tstartMonth ,\n\t\t\t\tstartYear ,\n\t\t\t\ttitle,\n\t\t\t\tdescription);\n\t\t//Create CalDay objects\n\t\tCalDay today = new CalDay (new GregorianCalendar(2017,4,11));\n\t\t//Set the calender appointments\n\t\ttoday.addAppt(appt1);\n\t\ttoday.addAppt(appt2);\n\t\ttoday.addAppt(appt3);\n\t\t//Assertions\n\t\tassertTrue(today.isValid());\n\t\tassertEquals(11, today.getDay());\n\t\tassertEquals(4, today.getMonth());\n\t\tassertEquals(2017, today.getYear());\n\t\tassertEquals(2, today.getSizeAppts());\n\t\tassertEquals(\"\\t --- 4/11/2017 --- \\n\" +\n\t\t\t\t\" --- -------- Appointments ------------ --- \\n\" +\n\t\t\t\t\"\\t4/11/2017 at 1:30pm ,Meeting Today, Meeting with the students.\\n\" +\n\t\t\t\t\" \\t4/11/2017 at 2:30pm ,Class, Rescheduled class.\\n\" +\n\t\t\t\t\" \\n\", today.toString());\n\t}", "public void testFragmentStartsInPeriodAndEndsOutsideOfPeriod() {\n ActivityFragment sleeping = new ActivityFragment(\"Sleeping\", start.plus(minutes(3)), start.plus(minutes(16)));\n List<ActivityFragment> fragments = Lists.newArrayList(sleeping);\n\n ActivityInterval interval = new ActivityInterval(start, start.plus(minutes(15)), fragments);\n List<ActivityInterval> blocks = DisplayBlock.wrapFragmentsAndClipFreeTime(interval, minutes(5).toStandardDuration());\n\n assertEquals(\"\" + blocks, 2, blocks.size());\n\n assertEquals(start, blocks.get(0).getStart());\n assertEquals(start.plus(minutes(3)), blocks.get(0).getEnd());\n assertTrue(blocks.get(0).isEmpty());\n\n assertEquals(start.plus(minutes(3)), blocks.get(1).getStart());\n assertEquals(start.plus(minutes(15)), blocks.get(1).getEnd());\n assertNotSame(sleeping, blocks.get(1).getActivityFragment(0));\n assertTrue(blocks.get(1).getActivityFragment(0).getActivityName().equals(sleeping.getActivityName()));\n }", "public org.hl7.fhir.Period getPeriod()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Period target = null;\n target = (org.hl7.fhir.Period)get_store().find_element_user(PERIOD$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public Integer getPeriodId() {\n\t\treturn periodId;\n\t}", "@Override\n\tpublic long getTimePeriod() {\n\t\treturn 0;\n\t}", "public int getHowManyInPeriod();", "public String endDttm() {\n\t\t\n\t\tif (this.predefinedPeriod.getType() == PredefinedPeriodType.YEAR) {\n\t\t\treturn String.format(\"%04d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.YEAR)) + \"-12-31 59:59:59.999\"; \n\t\t} else if (this.predefinedPeriod.getType() == PredefinedPeriodType.MONTH) {\n\t\t\t\n\t\t\tint year = this.predefinedPeriod.getCalendarFrom().get(Calendar.YEAR);\n\t\t\tint month = this.predefinedPeriod.getCalendarFrom().get(Calendar.MONTH) + 1;\n\t\t\t\n\t\t\tYearMonth yearMonthObject = YearMonth.of(year, month);\n\t\t\tint daysInMonth = yearMonthObject.lengthOfMonth();\n\t\t\t\n\t\t\treturn String.format(\"%04d\", this.predefinedPeriod.getCalendarFrom().get(Calendar.YEAR)) + \"-\" + \n\t\t\t \t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.MONTH) + 1) + \"-\" +\n\t\t\t \t\t String.format(\"%02d\",daysInMonth) + \" \" + \"23:59:59.999\";\n\t\t\t\n\t\t} else if (this.predefinedPeriod.getType() == PredefinedPeriodType.DAY) {\n\t\t\treturn String.format(\"%04d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.YEAR)) + \"-\" + \n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.MONTH) + 1) + \"-\" +\n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.DAY_OF_MONTH)) + \" \"+ \"23:59:59.999\";\n\t\t\t\n\t\t} else if (this.predefinedPeriod.getType() == PredefinedPeriodType.HOUR) {\n\t\t\treturn String.format(\"%04d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.YEAR)) + \"-\" + \n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.MONTH) + 1) + \"-\" + \n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.DAY_OF_MONTH)) + \" \" + \n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.HOUR_OF_DAY)) + \":59:59.999\";\n\t\t\t\n\t\t} else if (this.predefinedPeriod.getType() == PredefinedPeriodType.INT_LT_HOUR) {\n\t\t\treturn String.format(\"%04d\",this.predefinedPeriod.getCalendarTo().get(Calendar.YEAR)) + \"-\" + \n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarTo().get(Calendar.MONTH) + 1) + \"-\" + \n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarTo().get(Calendar.DAY_OF_MONTH)) + \" \" + \n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarTo().get(Calendar.HOUR_OF_DAY)) + \":\" +\n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarTo().get(Calendar.MINUTE)) + \":\" + \n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarTo().get(Calendar.SECOND)) + \".000\";\n\n\t\t} \n\t\treturn null;\n\t}", "@Override\n public synchronized boolean hasPeriodPassed(double period) {\n if (get() > period) {\n // Advance the start time by the period.\n // Don't set it to the current time... we want to avoid drift.\n m_startTime += period * 1000;\n return true;\n }\n return false;\n }", "public boolean isPeriodic() {\n return period != 0;\n }", "abstract public Date getServiceAppointment();", "public Boolean checkPeriod( ){\r\n\r\n Date dstart = new Date();\r\n Date dend = new Date();\r\n Date dnow = new Date();\r\n\r\n\r\n\r\n // this part will read the openndate file in specific formate\r\n try (BufferedReader in = new BufferedReader(new FileReader(\"opendate.txt\"))) {\r\n String str;\r\n while ((str = in.readLine()) != null) {\r\n // splitting lines on the basis of token\r\n String[] tokens = str.split(\",\");\r\n String [] d1 = tokens[0].split(\"-\");\r\n String [] d2 = tokens[1].split(\"-\");\r\n \r\n int a = Integer.parseInt(d1[0]);\r\n dstart.setDate(a);\r\n a = Integer.parseInt(d1[1]);\r\n dstart.setMonth(a);\r\n a = Integer.parseInt(d1[2]);\r\n dstart.setYear(a);\r\n\r\n a = Integer.parseInt(d2[0]);\r\n dend.setDate(a);\r\n a = Integer.parseInt(d2[1]);\r\n dend.setMonth(a);\r\n a = Integer.parseInt(d2[2]);\r\n dend.setYear(a);\r\n\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"File Read Error\");\r\n }\r\n\r\n \r\n\r\n if ( dnow.before(dend) && dnow.after(dstart) )\r\n return true; \r\n\r\n return true;\r\n }", "boolean isSetValuePeriod();", "public void testFragmentStartsBeforePeriodAndEndsOutsideOfPeriod() {\n ActivityFragment sleeping = new ActivityFragment(\"Sleeping\", start.minus(minutes(2)), start.plus(minutes(16)));\n List<ActivityFragment> fragments = Lists.newArrayList(sleeping);\n\n ActivityInterval interval = new ActivityInterval(start, start.plus(minutes(15)), fragments);\n List<ActivityInterval> blocks = DisplayBlock.wrapFragmentsAndClipFreeTime(interval, minutes(5).toStandardDuration());\n\n assertEquals(\"\" + blocks, 1, blocks.size());\n\n assertEquals(start, blocks.get(0).getStart());\n assertEquals(start.plus(minutes(15)), blocks.get(0).getEnd());\n ActivityFragment clippedSleep = blocks.get(0).getActivityFragment(0);\n assertNotSame(sleeping, clippedSleep);\n assertTrue(clippedSleep.getActivityName().equals(sleeping.getActivityName()));\n }", "Appointment(){\n this.description =\" \";\n this.beginTime=null;\n this.endTime = null;\n }", "public PeriodicityBean() {\n\t\twhen = from = to = null;\n\t\tperiodicity = \"\";\n\t}", "public void setPeriodId(long periodId) {\n this.periodId = periodId;\n }", "public Period(Date a, Date b) throws IllegalArgumentException {\n\n if (a == null || b == null) {\n throw new IllegalArgumentException(ERR_MISSING_DATE);\n }\n\n a = (Date) a.clone();\n b = (Date) b.clone();\n\n if (b.before(a)) {\n _start = b;\n _end = a;\n\n } else if (a.before(b)) {\n _start = a;\n _end = b;\n\n } else {\n throw new IllegalArgumentException(ERR_START_EQUALS_END);\n }\n }", "@Test\n void calculatePeriodLessThanOneMonth() throws ParseException {\n LocalDate testDateStart = LocalDate.parse(\"2015-03-07\");\n LocalDate testDateEnd = LocalDate.parse(\"2015-04-01\");\n Map<String, String> periodMap = datesHelper.calculatePeriodRange(testDateStart, testDateEnd, false);\n assertEquals(\"1 month\", periodMap.get(PERIOD_START));\n assertEquals(\"1 April 2015\", periodMap.get(PERIOD_END));\n }", "double getSignalPeriod();", "public mbvBoletinPeriodo() {\r\n }" ]
[ "0.73581743", "0.6912446", "0.6899726", "0.6810833", "0.6701742", "0.66473633", "0.66329116", "0.66329116", "0.66220295", "0.659189", "0.6589875", "0.6572628", "0.65576136", "0.6517805", "0.64777046", "0.64668036", "0.64255506", "0.6390202", "0.6384071", "0.63433427", "0.62678546", "0.6206812", "0.6199822", "0.6198875", "0.6124052", "0.61236995", "0.612369", "0.612369", "0.612369", "0.612369", "0.61148953", "0.61148953", "0.6096826", "0.6083248", "0.6071468", "0.6037987", "0.60334426", "0.60217786", "0.5997705", "0.59814906", "0.59781295", "0.5938703", "0.5930801", "0.5926696", "0.5866746", "0.5851766", "0.5848718", "0.5826459", "0.5798897", "0.57652825", "0.5741468", "0.5739361", "0.57344574", "0.57321113", "0.57321113", "0.57068425", "0.5700007", "0.56982017", "0.56889135", "0.5682114", "0.56788695", "0.56446546", "0.56416327", "0.56379515", "0.5590822", "0.55674785", "0.55389607", "0.55316436", "0.5527309", "0.5520527", "0.55050886", "0.5501668", "0.55000466", "0.54986644", "0.54823536", "0.5482102", "0.5469083", "0.5451378", "0.54170614", "0.54108626", "0.5400942", "0.53928703", "0.5392488", "0.53753424", "0.5375204", "0.537283", "0.537232", "0.5368931", "0.53279185", "0.53267616", "0.5314324", "0.52845734", "0.5279203", "0.5260387", "0.5258033", "0.5239661", "0.52361614", "0.52224034", "0.52168787", "0.5202704" ]
0.71946615
1
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //加载布局文件 myView= (ViewGroup)getLayoutInflater().inflate(R.layout.popview, null); //后两个参数表示popupWindow的宽,高 popupWindow = new PopupWindow(myView,200,200); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "protected void onCreate() {\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}", "@Override\n public void onCreate()\n {\n\n super.onCreate();\n }", "@Override\n public void onCreate() {\n initData();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onCreate() {\n super.onCreate();\n }", "@Override\n public void onCreate() {\n super.onCreate();\n }", "@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onCreate() {\n L.d(\"onCreate is called\");\n super.onCreate();\n }", "@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}", "protected void onFirstTimeLaunched() {\n }", "@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }", "@Override\n public void onCreate() {\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tsetupTextviews();\n\t\tsetupHorizontalScrollViews();\n\t\tsetupHorizontalSelectors();\n\t\tsetupButtons();\n\t}", "@Override\n public void onCreate() {\n\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitViewPager();\r\n\t\t\r\n\t\tinitView();\r\n\r\n\t\tinitCursor();\r\n\t\t\r\n\t\tinithuanxin(savedInstanceState);\r\n\t\r\n \r\n\t}", "public void onCreate() {\n }", "@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"onCreate\");\n\t\tsuper.onCreate();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.caifushi_record);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitview();\n\t\tMyApplication.getInstance().addActivity(this);\n\t\t\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_recent_activity);\n\t\tsetTitleFromActivityLabel(R.id.title_text);\n\t\tsetupStartUp();\n\t}", "@Override\n\tpublic void onCreate() {\n\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle savedInstanceState) {\n eventManager.fire(Event.ACTIVITY_ON_CREATE, activity);\n }", "@Override\n public void onCreate()\n {\n\n\n }", "@Override\n\tprotected void onCreate() {\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tAnnotationProcessor.processActivity(this);\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n if (!KramPreferences.hasStartedAppBefore(this)) {\n // First time app is started\n requestFirstHug();\n HugRequestService.scheduleHugRequests(this);\n KramPreferences.putHasStartedAppBefore(this);\n }\n\n setContentView(R.layout.activity_main);\n initMonthView(savedInstanceState);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.act_myinfo);\n\t\tinitView();\n\t\tinitEvents();\n\n\t}", "public void onCreate();", "public void onCreate();", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.auth_activity);\n connectVariablesToViews();\n listenToFields();\n WorkSpace.authorizationCompleted = false;\n }", "@Override\n public void onCreate() {\n Log.d(TAG, TAG + \" onCreate\");\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) \r\n\t{\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\t\r\n\t\t// Get a reference to the tranistbuddy model.\r\n\t\tTransitBuddyApp app = (TransitBuddyApp)this.getApplicationContext();\r\n\t\tmModel = app.getTransitBuddyModel();\r\n\t\tmSettings = app.getTransitBuddySettings();\r\n\t\t\r\n\t\tsetTitle( getString(R.string.title_prefix) + \" \" + mSettings.getSelectedCity());\r\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n // Prepare the loader. Either re-connect with an existing one,\n // or start a new one.\n\t\tgetLoaderManager().initLoader(FORECAST_LOADER_ID, null, this);\n\t\tsuper.onActivityCreated(savedInstanceState); // From instructor correction\n\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\n\t\tintScreenX = dm.widthPixels;\n\t\tintScreenY = dm.heightPixels;\n\t\tscreenRect = new Rect(0, 0, intScreenX, intScreenY);\n\n\t\thideTheWindowTitle();\n\n\t\tSampleView view = new SampleView(this);\n\t\tsetContentView(view);\n\n\t\tsetupRecord();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tif (BuildConfig.DEBUG) {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.FULL).hideThreadInfo();\n\t\t} else {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.NONE).hideThreadInfo();\n\t\t}\n\t\tBaseApplication.totalList.add(this);\n\t}", "@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n setupAddPotLaunch();\n setupListView();\n setupPotClick();\n }", "public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }", "@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initArguments();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\t\t\n\t\tappManager = AppManager.getAppManager();\n\t\tappManager.addActivity(this);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\n\t\tmContext = (LFActivity) getActivity();\n\t\tinit();\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceBundle)\n\t{\n\t\tsuper.onCreate(savedInstanceBundle);\n\t\tView initView = initView();\n\t\tsetBaseView(initView);\n\t\tinitValues();\n\t\tinitListeners();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.listexcursionscreen);\n\n ActionsDelegator.getInstance().synchronizeActionsWithServer(this);\n runId = PropertiesAdapter.getInstance(this).getCurrentRunId();\n\n RunDelegator.getInstance().loadRun(this, runId);\n ResponseDelegator.getInstance().synchronizeResponsesWithServer(this, runId);\n\n }", "@Override\n\tprotected void onCreate() {\n\t\tSystem.out.println(\"onCreate\");\n\t}", "@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tAppManager.getInstance().addActivity(this);\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }", "@Override\n\tpublic void onCreate() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onCreate();\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.add_daily_task);\n init_database();\n init_view();\n init_click();\n init_data();\n init_picker();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tinitView();\n\n\t\tinitData();\n\n\t\tinitEvent();\n\n\t\tinitAnimation();\n\n\t\tshowUp();\n\t}", "@Override\n public void onCreate() {\n Thread.setDefaultUncaughtExceptionHandler(new TryMe());\n\n super.onCreate();\n\n // Write the content of the current application\n context = getApplicationContext();\n display = context.getResources().getDisplayMetrics();\n\n\n // Initializing DB\n App.databaseManager.initial(App.context);\n\n // Initialize user secret\n App.accountModule.initial();\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n }" ]
[ "0.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879", "0.74805456", "0.7475343", "0.7469598", "0.7469598", "0.7455178", "0.743656", "0.74256307", "0.7422192", "0.73934627", "0.7370002", "0.73569906", "0.73569906", "0.7353011", "0.7347353", "0.7347353", "0.7333878", "0.7311508", "0.72663945", "0.72612154", "0.7252271", "0.72419256", "0.72131634", "0.71865886", "0.718271", "0.71728176", "0.7168954", "0.7166841", "0.71481615", "0.7141478", "0.7132933", "0.71174103", "0.7097966", "0.70979583", "0.7093163", "0.7093163", "0.7085773", "0.7075851", "0.7073558", "0.70698684", "0.7049258", "0.704046", "0.70370424", "0.7013127", "0.7005552", "0.7004414", "0.7004136", "0.69996923", "0.6995201", "0.69904065", "0.6988358", "0.69834954", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69783133", "0.6977392", "0.69668365", "0.69660246", "0.69651115", "0.6962911", "0.696241", "0.6961096", "0.69608897", "0.6947069", "0.6940148", "0.69358927", "0.6933102", "0.6927288", "0.69265485", "0.69247025" ]
0.0
-1
Constructs the command to add a category.
public AddCategoryCommand(String moduleCode, String categoryName, int categoryPriority) { this.moduleCode = moduleCode; this.categoryName = categoryName; this.categoryPriority = categoryPriority; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addCategory(Category category);", "@Override\r\n\tpublic void addCategory() {\n\t\tCategory cat=new Category();\r\n\t\tcat.setNameCategory(\"Computing Tools\");\r\n\t\tem.persist(cat);\r\n\t\t\r\n\t}", "Category addNewCategory(Category category);", "public void addNewCategory(Category category) throws CostManagerException;", "public AddCategoryCommand(String moduleCode, String categoryName) {\n this(moduleCode, categoryName, 0);\n }", "public ToDoBuilder addCategory(String category) {\n if (!category.equals(\"?\") && !category.equals(\"null\")) {\n this.category = category;\n }\n return this;\n }", "void add(ProductCategory category);", "public Categorie addCategorie(Categorie c);", "public void newCategory() {\n btNewCategory().push();\n }", "@Override\n public CommandResult execute() {\n if (exceedLengthLimit()) {\n return new CommandResult(MESSAGE_CATEGORY_EXCEED_LIMIT);\n }\n try {\n Module parentModule = DirectoryTraverser.getModuleDirectory(moduleCode);\n Category toAdd = new Category(parentModule, categoryName, categoryPriority);\n parentModule.getCategories().add(toAdd);\n StorageManager.setIsSave();\n return new CommandResult(messageAddCategorySuccess(categoryName));\n } catch (ModuleManager.ModuleNotFoundException e) {\n return new CommandResult(MESSAGE_MODULE_NOT_FOUND);\n } catch (CategoryManager.DuplicateCategoryException e) {\n return new CommandResult(MESSAGE_DUPLICATE_CATEGORY);\n } catch (IncorrectDirectoryLevelException e) {\n return new CommandResult(MESSAGE_INCORRECT_DIRECTORY_LEVEL);\n }\n }", "private void createCategory() {\n Uri uri = TimeSeriesData.TimeSeries.CONTENT_URI;\n Intent i = new Intent(Intent.ACTION_INSERT, uri);\n startActivityForResult(i, ARC_CATEGORY_CREATE);\n }", "public Category(String n) {\n this.name = n;\n }", "@Override\n public CommandCategory getCat() {\n return super.getCat();\n }", "CreateCategoryResponse createCategory(CreateCategoryRequest request);", "private Command createAddCommand(ArrayList<String> arguments) {\n Command command;\n Tasks task;\n \n ArrayList<String> combinedDescriptionList = createNewListWithCombinedDescription(arguments);\n \n if (!(combinedDescriptionList == null)) {\n task = createTaskListForAddingOrUpdating(combinedDescriptionList);\n if (!(task == null)) {\n command = new Command(\"add\", task);\n } else {\n command = createInvalidCommand();\n }\n } else {\n command = createInvalidCommand();\n }\n \n return command;\n }", "public category() {\r\n }", "public int addCategory(Category cat) {\n\t\treturn 0;\n\t}", "public void addCommand(Command m);", "public Cat(String name){\n this.name = name;\n this.setDescription();\n }", "public @NotNull Category newCategory();", "public JButtonOperator btNewCategory() {\n if (_btNewCategory==null) {\n _btNewCategory = new JButtonOperator(this, \"New Category...\"); // NOI18N\n }\n return _btNewCategory;\n }", "public Category(String categoryName) {\n this.categoryName = categoryName;\n }", "public Category(String categoryName) {\n this.categoryName = categoryName;\n }", "@RequestMapping(value = \"/add\", method = GET)\n public String addCategory(Model model) {\n model.addAttribute(\"action\", ADD_ACTION);\n model.addAttribute(\"category\", new Category());\n return FORM_VIEW;\n }", "@AutoEscape\n public String getCategory();", "@Override\n\tpublic Category addCategory(Category cat) {\n\t\treturn dao.addCategory(cat);\n\t}", "@Override\n public Category createCategory(Category newCategory)\n {\n // format the string\n String query = \"INSERT INTO Categories(CategoryName, Description, CreationDate)\";\n query += \" VALUES ('%1$s', '%2$s', '%3$s')\";\n \n query = String.format(query, newCategory.getCategoryName(), newCategory.getDescription(),\n newCategory.getCreationDate());\n \n // if everything worked, inserted id will have the identity key\n // or primary key\n int insertedId = DataService.executeCreate(query);\n if (insertedId > 0)\n {\n return getCategoryById(insertedId);\n }\n \n return null;\n }", "public Builder addCommand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCommandIsMutable();\n command_.add(value);\n onChanged();\n return this;\n }", "public void setCategory(String category);", "public void addCat(Cat catToAdd)\r\n {\r\n if(catToAdd != null){\r\n catCollection.add(catToAdd);\r\n }\r\n }", "public Category() {}", "public PropertySpecBuilder<T> category(String category)\n {\n Preconditions.checkArgument(this.category == null, \"category already set\");\n this.category = category;\n\n return this;\n }", "public es.davinciti.liferay.model.LineaGastoCategoria create(\n\t\tlong categoriaId);", "public void addCategory(AtomCategory category) {\n if(!categories.contains(category)) {\n \tthis.categories.add(category);\n }\n }", "public void addCategory(ProductCatagory pCatagory)\n\t\t\tthrows BusinessException;", "@Override\n public void addCommand(CommandConfig command) {\n }", "String createCommand(String commandType, AttributeList properties);", "@Test\n\tpublic void testAddCategory() {\n\t\tcategory = new Category();\n\t\tcategory.setName(CATEGORY_NAME);\n\t\tcategory.setDescription(\"A wonderful addition to your home. 80 inches\");\n\t\tcategory.setImageURL(\"CAT_1.png\");\n\n\t\tassertEquals(\"Successfully added a category to the database table\", true, categoryDAO.add(category));\n\t}", "protected int AddCategory(String categoryName, String categoryColor) {\n int resnum = Integer.parseInt(this.IniFile.getIniString(this.appIniFile,\n \"resource\", \"resnum\", \"0\", (byte) 0));\n for (int i = 1; i <= resnum; i++) {\n String resname = this.IniFile.getIniString(this.appIniFile, \"resource\",\n \"resname\" + i, \"0\", (byte) 0);\n if (resname.equals(categoryName)) {\n return 0;\n }\n }\n resnum = resnum + 1;\n this.IniFile.writeIniString(this.appIniFile, \"resource\", \"resnum\", resnum + \"\");\n this.IniFile.writeIniString(this.appIniFile, \"resource\", \"resid\" + resnum,\n \"group\" + resnum);\n this.IniFile.writeIniString(this.appIniFile, \"resource\", \"resname\" + resnum,\n categoryName);\n this.IniFile.writeIniString(this.appIniFile, \"resource\", \"resicon\" + resnum, \"\");\n this.IniFile.writeIniString(this.appIniFile, \"resource\", \"resbkcolor\" + resnum,\n categoryColor);\n Map<String, String> group = new HashMap<String, String>();\n group.put(\"group\", categoryName);\n this.groups.add(group);\n List<Map<String, String>> child = new ArrayList<Map<String, String>>();\n this.childs.add(child);\n this.exlist_adapter.notifyDataSetChanged();\n return 1;\n }", "public static void addCategory(Context context, String category) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getWritableDatabase();\r\n\r\n // Don't allow adding if there's already a non-deleted category with that name\r\n Cursor cursor = db.query(\r\n CategoryTable.TABLE_NAME,\r\n new String[]{CategoryTable._ID},\r\n CategoryTable.COLUMN_NAME_IS_DELETED + \" = 0 AND \" + CategoryTable.COLUMN_NAME_CATEGORY_NAME + \" = ?\",\r\n new String[]{category},\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if(cursor.getCount() > 0) {\r\n cursor.close();\r\n throw new IllegalArgumentException(\"Category with name already exists\");\r\n }\r\n cursor.close();\r\n\r\n // Check if there's a deleted category that can be re-enabled\r\n ContentValues updateValues = new ContentValues();\r\n updateValues.put(CategoryTable.COLUMN_NAME_IS_DELETED, 0);\r\n\r\n int count = db.update(\r\n DbContract.CategoryTable.TABLE_NAME,\r\n updateValues,\r\n CategoryTable.COLUMN_NAME_CATEGORY_NAME + \" = ?\",\r\n new String[]{category}\r\n );\r\n if(count > 0) return;\r\n\r\n // Otherwise add it as normal\r\n ContentValues insertValues = new ContentValues();\r\n insertValues.put(CategoryTable.COLUMN_NAME_CATEGORY_NAME, category);\r\n db.insert(CategoryTable.TABLE_NAME, null, insertValues);\r\n db.close();\r\n }", "public CategoryBuilder()\n {\n fUpperInclusive = true;\n fValue = \"\";\n }", "public void setCategory(String cat) {\t//TODO\n\t\tcategory = cat;\n\t}", "public void setCategory(String newCategory) {\n category = newCategory;\n }", "public AssignmentCategory(String ac) {\n categoryName = ac;\n }", "@PostMapping(path=\"/category/add\")\n\tpublic @ResponseBody String addNewCategory(@RequestBody Category n) {\n\t\tcategoryRepository.save(n);\n\t\treturn \"Saved\";\n\t}", "@Override\n\tprotected void addRecord(AddWindow window) {\n\t\tCategory category = new Category();\n\t\tcategory.setName(this.nameInput.getText());\n\n\t\tString selectedGame = (String) this.gamesList.getSelectedItem();\n\t\tPattern pattern = Pattern.compile(\"\\\\[(\\\\d+)\\\\] (.)+\");\n\t\tMatcher matcher = pattern.matcher(selectedGame);\n\t\tmatcher.find();\n\t\tint gameId = new Integer(matcher.group(1));\n\n\t\tcategory.setGameId(gameId);\n\n\t\tnew Categories().create(category);\n\t\twindow.getSection().refreshTab();\n\n\t}", "public Category() {\n }", "public @NotNull Item newItem(@NotNull @Size(min = 1, max = 255) final String name,\r\n\t\t\t@NotNull @Size(min = 1, max = 255) final String description, @NotNull final Category category);", "public void addCommand(CommandIF command) {\r\n\t\tmelody.add(command);\r\n\t}", "public Flowable<Category> addCategory(final Category newCategory) {\n return executeTransaction((bgRealm, subscriber) -> {\n if (newCategory.getId() == 0) {\n // Auto Incremental Id\n Number currentIdNum = bgRealm.where(Category.class).max(\"id\");\n int nextId = currentIdNum == null ? 1 : currentIdNum.intValue() + 1;\n newCategory.setId(nextId);\n }\n bgRealm.insert(newCategory);\n });\n }", "public void addCategory(String type) {\n\t\tif (type.equals(\"Cheese\")) {\n\t\t\taddIngredient(\"Pepperjack\");\n\t\t\taddIngredient(\"Mozzarella\");\n\t\t\taddIngredient(\"Cheddar\");\n\t\t}\n\t\tif (type.equals(\"Sauces\")) {\n\t\t\taddIngredient(\"Mayonnaise\");\n\t\t\taddIngredient(\"Baron Sauce\");\n\t\t\taddIngredient(\"Mustard\"); \n\t\t\taddIngredient(\"Ketchup\");\n\t\t}\n\t\tif (type.equals(\"Veggies\")) {\n\t\t\taddIngredient(\"Pickle\");\n\t\t\taddIngredient(\"Lettuce\");\n\t\t\taddIngredient(\"Tomato\");\n\t\t\taddIngredient(\"Onions\"); \n\t\t\taddIngredient(\"Mushrooms\");\n\t\t}\n\t}", "public void setCategory(java.lang.String category) {\n this.category = category;\n }", "public Category() {\n super();\n }", "private void saveNewCategory() {\n String name = newCategory_name.getText()\n .toString();\n int defaultSizeType = categoryDefaultSize.getSelectedItemPosition() - 1;\n String color = String.format(\"%06X\", (0xFFFFFF & categoryColor.getExactColor()));\n int parentCategoryId = -1;\n if (parentCategory != null) {\n parentCategoryId = parentCategory.getId();\n }\n String icon = categoryIcon.getSelectedItem();\n categoryDataSource.editCategory(categoryId, name, name, parentCategoryId, defaultSizeType,\n icon, color);\n\n setResult(Activity.RESULT_OK);\n this.finish();\n }", "public void createCategory(String name) {\n\t\t\n\t\tFlashCategory cat = (\n\t\t\t\t\t\t\t\t\t\t\tselectionListener.selectedComponents.size() == 0\n\t\t\t\t\t\t\t\t\t\t?\troot\n\t\t\t\t\t\t\t\t\t\t:\t(FlashCategory) selectionListener.selectedComponents.iterator().next()\n\t\t);\n\t\t\n\t\tcat.add(new FlashCategory(name));\n\t\t\n\t\tfireIntervalChanged(this,-1,-1);\n\t}", "public void setCategory(Category cat) {\n this.category = cat;\n }", "public void setCategory(String category){\n this.category = category;\n }", "public void setCategory(Category c) {\n this.category = c;\n }", "Category(int num) {\n this.num = num;\n }", "public void setCategory(String category) {\r\n this.category = category;\r\n }", "public boolean addCategory(Category c){\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(DBEntryContract.CategoryEntry.COLUMN_NAME_TITLE, c.title);\n\t\t// Insert the new row, returning the primary key value of the new row\n\t\tlong newRowId;\n\t\tnewRowId = db.insert(\n\t\t\t\t\tDBEntryContract.CategoryEntry.TABLE_NAME,\n\t\t\t\t\tnull,\n\t\t\t\t\tvalues);\n\t\t\n\t\tif (newRowId != -1)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "boolean add(DishCategory dishCategory );", "public long createCategory(CategoryModel categoryModel){\n //access the database\n SQLiteDatabase db = this.getWritableDatabase();\n\n //set the parameters\n ContentValues values = new ContentValues();\n values.put(InventoryContract.CategoryEntry.COLUMN_CATEGORY_NAME, categoryModel.getName());\n\n //insert the row\n long category_id = db.insert(CategoryEntry.TABLE_NAME, null, values);\n\n return category_id;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "MenuItem addItem(String title, Command callback);", "public WebDriver add_category(String category_name)\n {\n driver.findElement(By.xpath(\"//*[@id=\\\"go_add_category\\\"]\")).click();\n\n driver.findElement(By.xpath(\"//*[@id=\\\"name\\\"]\")).sendKeys(category_name);\n\n driver.findElement(By.xpath(\"//*[@id=\\\"submit\\\"]\")).click();\n\n return driver;\n }", "public void onAddCategoryButtonClicked(View v){\n //starts addcategory activity\n Intent addCategoryIntent = new Intent(this, AddCategoryActivity.class);\n startActivity(addCategoryIntent);\n }", "abstract public void addChild(Command cmd);", "public MkdirCommand() {\r\n // The name of the mkdir command\r\n name = \"mkdir\";\r\n\r\n // The description of the mkdir command\r\n description = \"Creates a directory ar the given path. The given path can\"\r\n + \" be a full path or a path relative to the working directory\";\r\n\r\n // The parameters for the mkdir command and their description\r\n parameters.put(\"DIR\", \"The path that points to where the new directory\"\r\n + \" should be created.\");\r\n }", "public boolean addToCategory (Message msg) {\n return addToCategory(msg.ADDTOCATgetName(), Crypto.decodeKey(msg.ADDTOCATgetKey()));\n }", "public static void addCategoryType(String description) {\n\t\tConnection conn = null;\n PreparedStatement ps = null;\n try {\n \t// Get a connection to the specified JDBC URL.\n \t\tconn = JDBCConnection.getConnection();\n // Create a Statement object for sending SQL statements to the database.\n \t\t// Statement: The object used for executing a static SQL statement and returning the results it produces.\n \t\tps = conn.prepareStatement(\"INSERT INTO observation_categories ( description ) VALUES ( ? )\");\n \t\tps.setString( 1, description );\n \t\tps.execute();\n \t} catch(SQLException e) {\n \te.printStackTrace();\n } finally {\n\t\t\tJDBCConnection.closeConnection(conn, ps, null);\n\t\t}\n }", "@Query(\"create (n:RecommendationCategories) set n.categories_id={id} return n;\")\n List<RecommendationCategories> addCategory(@Param(\"id\") int id);", "public void addCategory(Category c) {\n\t\tcategoryDao.save(c);\n\t}", "public @NotNull Category newCategory(@NotNull @Size(min = 1, max = 255) final String name,\r\n\t\t\t@NotNull @Size(min = 1, max = 255) final String description, @NotNull final Category parent);", "public MenuItem add(CharSequence title);", "public void addCommand(Command cmd) {\n cmd.setTask(this);\n commands.add(cmd);\n }", "public Category() {\n categoryName = null;\n }", "public Long addCategory(AddCategoryDTO category) throws CategoryException {\n\n Category categoryFromDB = categoryRepository.findCategoryByName(category.getCategoryName());\n if(categoryFromDB != null){\n throw new CategoryException(\"Already such category !!!\");\n }\n categoryFromDB = new Category();\n categoryFromDB.setName(category.getCategoryName());\n if(category.getParentCategoryId() != null) {\n Category parentCategory = categoryRepository.findCategoryById(category.getParentCategoryId());\n if(parentCategory == null){\n throw new CategoryException(\"No such parent category !!!\");\n }\n categoryFromDB.setParentCategory(parentCategory);\n }\n Long newCategoryId = categoryRepository.save(categoryFromDB).getId();\n return newCategoryId;\n }", "public void setCategory(String cat)\n\t{\n\t\tif(cat!=null)\n\t\t\tthis.category = cat;\n\t}", "protected boolean addCategory(int conId, Category cat) {\n\t\tContest cs = getContest(conId);\n\t\tif(cs == null) {\n\t\t\treturn false;\n\t\t}\n\t\tcs.addCategory(cat);\n\t\treturn true;\n\t}", "@Override\n\t\t\t\tpublic String getKey() {\n\t\t\t\t\treturn \"category\";\n\t\t\t\t}", "@JsonProperty(\"category\")\n public void setCategory(String category) {\n this.category = category;\n }", "@Override\n\tpublic Result postProcessorCreateCategory(CreateCategoryMessageEntity categoryRequestMessageEntity) {\n\t\treturn new Result(ResultStatus.SUCCESS);\n\t}", "public void addCategory(String categoryName) {\n if(!containsCategory(categoryName)) {\n Category cat = new Category(categoryName);\n categories.add(cat);\n }\n }", "Boolean insertCategory(DvdCategory category) throws DvdStoreException;", "Category selectCategory(String name);", "CloudCategory(String value) {\n this.value = value;\n }", "@PostMapping(\"/add\")\n\tpublic ResponseEntity<?> add(@RequestBody String body){\n\t\tCategoryVO newCat = null;\n\t\ttry {\n\t\t\tnewCat = new ObjectMapper().readValue(body, CategoryVO.class);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tCategoryVO cat = catService.add(newCat);\n\t\treturn checkNull(cat);\n\t}", "public void setAttributeCategory(String value)\n {\n setAttributeInternal(ATTRIBUTECATEGORY, value);\n }", "public void addChannel(String groupName, D3Channel channel);", "public AddOperationAction(Classifier classifier, Operation operation) {\n super(\"Add operation\");\n Helper.checkNotNull(classifier, \"classifier\");\n Helper.checkNotNull(operation, \"operation\");\n this.classifier = classifier;\n this.operation = operation;\n }", "public AttributeType(AttributeCategory category) {\n setCategory(category);\n }", "@RequestMapping(value=\"addCat/{projectId}\", method = RequestMethod.GET)\n public String addCat(Model model, @PathVariable int projectId) {\n\n model.addAttribute(\"title\", \"Add Item to Shop For!\");\n model.addAttribute(new Category());\n model.addAttribute(\"projectId\", projectId);\n\n return \"category/addCat\";\n }", "public void setCategory(String category)\r\n {\r\n m_category = category;\r\n }", "CategoryType createCategoryType();", "public AddCommand(Event event) {\n this.event = event;\n }" ]
[ "0.65111893", "0.6501502", "0.6395409", "0.63588417", "0.6351136", "0.6234049", "0.60419977", "0.58959144", "0.5832491", "0.5775165", "0.56724286", "0.5672097", "0.56281143", "0.5618844", "0.5583873", "0.5558", "0.55265254", "0.55257374", "0.5466244", "0.5441327", "0.5393939", "0.53610504", "0.53610504", "0.5359295", "0.5352532", "0.5335977", "0.5330859", "0.53219765", "0.5313623", "0.52890986", "0.5285766", "0.5285192", "0.52802163", "0.5247345", "0.5238561", "0.5230391", "0.52242666", "0.5222265", "0.51933867", "0.5189105", "0.51792246", "0.5170086", "0.51416385", "0.5104839", "0.51042485", "0.5100593", "0.5083849", "0.50814384", "0.50803626", "0.5051869", "0.50493973", "0.5045486", "0.504311", "0.50383043", "0.5033997", "0.50257283", "0.50248414", "0.5024658", "0.5016026", "0.49983826", "0.49981308", "0.4996377", "0.4977819", "0.49773803", "0.49773803", "0.49773803", "0.49773803", "0.49773803", "0.4957481", "0.49538225", "0.49456248", "0.49448937", "0.49353036", "0.493524", "0.49288663", "0.49176022", "0.49130142", "0.4912045", "0.49082687", "0.4903027", "0.49017906", "0.4898326", "0.48960122", "0.48891234", "0.4887109", "0.48841256", "0.48834792", "0.48802072", "0.48801005", "0.48735186", "0.48712417", "0.48564056", "0.4853942", "0.48529592", "0.48463643", "0.4843553", "0.4843354", "0.48305196", "0.4825598", "0.48165298" ]
0.6029073
7
Constructs the command to add a category without a priority.
public AddCategoryCommand(String moduleCode, String categoryName) { this(moduleCode, categoryName, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AddCategoryCommand(String moduleCode, String categoryName, int categoryPriority) {\n this.moduleCode = moduleCode;\n this.categoryName = categoryName;\n this.categoryPriority = categoryPriority;\n }", "@Override\r\n\tpublic void addCategory() {\n\t\tCategory cat=new Category();\r\n\t\tcat.setNameCategory(\"Computing Tools\");\r\n\t\tem.persist(cat);\r\n\t\t\r\n\t}", "public ToDoBuilder addCategory(String category) {\n if (!category.equals(\"?\") && !category.equals(\"null\")) {\n this.category = category;\n }\n return this;\n }", "@Override\n public CommandCategory getCat() {\n return super.getCat();\n }", "public void addNewCategory(Category category) throws CostManagerException;", "void addCategory(Category category);", "public @NotNull Category newCategory();", "Category addNewCategory(Category category);", "public void newCategory() {\n btNewCategory().push();\n }", "void add(ProductCategory category);", "public CategoryBuilder()\n {\n fUpperInclusive = true;\n fValue = \"\";\n }", "public category() {\r\n }", "public JButtonOperator btNewCategory() {\n if (_btNewCategory==null) {\n _btNewCategory = new JButtonOperator(this, \"New Category...\"); // NOI18N\n }\n return _btNewCategory;\n }", "public Categorie addCategorie(Categorie c);", "@Override\n public CommandResult execute() {\n if (exceedLengthLimit()) {\n return new CommandResult(MESSAGE_CATEGORY_EXCEED_LIMIT);\n }\n try {\n Module parentModule = DirectoryTraverser.getModuleDirectory(moduleCode);\n Category toAdd = new Category(parentModule, categoryName, categoryPriority);\n parentModule.getCategories().add(toAdd);\n StorageManager.setIsSave();\n return new CommandResult(messageAddCategorySuccess(categoryName));\n } catch (ModuleManager.ModuleNotFoundException e) {\n return new CommandResult(MESSAGE_MODULE_NOT_FOUND);\n } catch (CategoryManager.DuplicateCategoryException e) {\n return new CommandResult(MESSAGE_DUPLICATE_CATEGORY);\n } catch (IncorrectDirectoryLevelException e) {\n return new CommandResult(MESSAGE_INCORRECT_DIRECTORY_LEVEL);\n }\n }", "private Command createAddCommand(ArrayList<String> arguments) {\n Command command;\n Tasks task;\n \n ArrayList<String> combinedDescriptionList = createNewListWithCombinedDescription(arguments);\n \n if (!(combinedDescriptionList == null)) {\n task = createTaskListForAddingOrUpdating(combinedDescriptionList);\n if (!(task == null)) {\n command = new Command(\"add\", task);\n } else {\n command = createInvalidCommand();\n }\n } else {\n command = createInvalidCommand();\n }\n \n return command;\n }", "public Category() {}", "public Category(String n) {\n this.name = n;\n }", "public void addCategory(AtomCategory category) {\n if(!categories.contains(category)) {\n \tthis.categories.add(category);\n }\n }", "public static PSCategory getEmptyCategory() {\n\t\tPSCategory category = new PSCategory();\n\t\t\n\t\tcategory.setTopLevelNodes(new ArrayList<>());\n\t\t\n\t\treturn category;\n\t}", "public void addCommand(Command m);", "public int addCategory(Category cat) {\n\t\treturn 0;\n\t}", "public Category() {\n categoryName = null;\n }", "void removeCategory(Category category);", "public Command(){\n \n comando.put(\"!addGroup\", 1);\n comando.put(\"!addUser\", 2);\n comando.put(\"!delFromGroup\", 3);\n comando.put(\"!removeGroup\", 4);\n comando.put(\"!upload\", 5);\n comando.put(\"!listUsers\",6);\n comando.put(\"!listGroups\",7);\n\n }", "@Override\n public void addCommand(CommandConfig command) {\n }", "private void createCategory() {\n Uri uri = TimeSeriesData.TimeSeries.CONTENT_URI;\n Intent i = new Intent(Intent.ACTION_INSERT, uri);\n startActivityForResult(i, ARC_CATEGORY_CREATE);\n }", "public Builder clearCategoryId() {\n bitField0_ = (bitField0_ & ~0x00000004);\n categoryId_ = 0;\n onChanged();\n return this;\n }", "public Builder addCommand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCommandIsMutable();\n command_.add(value);\n onChanged();\n return this;\n }", "public Category() {\n super();\n }", "public void setNotiCategory(String value) {\r\n setAttributeInternal(NOTICATEGORY, value);\r\n }", "@Override\n\tpublic Categoria crearCategoria(String nombreCategoria, String descripcionCategoria) {\n\t\treturn null;\n\t}", "public String getCategory() {\n //return ATPlugin.CLI_CATEGORY + \" \" + ATPlugin.DEFAULT_CATEGORY;\n return ATPlugin.CLI_CATEGORY;\n }", "String createCommand(String commandType, AttributeList properties);", "@AutoEscape\n public String getCategory();", "@Override\n\tpublic String addNew(String[] args) {\n\t\treturn null;\n\t}", "public void setCategory(String category);", "CreateCategoryResponse createCategory(CreateCategoryRequest request);", "Category(int num) {\n this.num = num;\n }", "public Builder clearCategory() {\n \n category_ = 0;\n onChanged();\n return this;\n }", "public Category build()\n {\n return new Category(\n new MultiSelectOption(fValue), fUpperBound, fUpperInclusive);\n }", "public AssignmentCategory(String ac) {\n categoryName = ac;\n }", "public Builder clearCategory() {\n \n category_ = 0;\n onChanged();\n return this;\n }", "public final void ruleCommand() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWh.g:266:2: ( ( 'nop' ) )\n // InternalWh.g:267:2: ( 'nop' )\n {\n // InternalWh.g:267:2: ( 'nop' )\n // InternalWh.g:268:3: 'nop'\n {\n before(grammarAccess.getCommandAccess().getNopKeyword()); \n match(input,14,FOLLOW_2); \n after(grammarAccess.getCommandAccess().getNopKeyword()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Category() {\n }", "public void addCat(Cat catToAdd)\r\n {\r\n if(catToAdd != null){\r\n catCollection.add(catToAdd);\r\n }\r\n }", "abstract public void addChild(Command cmd);", "public es.davinciti.liferay.model.LineaGastoCategoria create(\n\t\tlong categoriaId);", "private Command groupBuilder(Command command, String end) {\n while(!this.commands.get(0).getClass().getName().equals(end)){\n command.addParameter(getCommandTree());\n }\n this.commands = this.commands.subList(1, commands.size());\n return command;\n }", "@Override\n\tpublic boolean add(ProductCategory procate) {\n\t\n\t\treturn false;\n\t}", "public Cat(String name){\n this.name = name;\n this.setDescription();\n }", "public static void addCategory(Context context, String category) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getWritableDatabase();\r\n\r\n // Don't allow adding if there's already a non-deleted category with that name\r\n Cursor cursor = db.query(\r\n CategoryTable.TABLE_NAME,\r\n new String[]{CategoryTable._ID},\r\n CategoryTable.COLUMN_NAME_IS_DELETED + \" = 0 AND \" + CategoryTable.COLUMN_NAME_CATEGORY_NAME + \" = ?\",\r\n new String[]{category},\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if(cursor.getCount() > 0) {\r\n cursor.close();\r\n throw new IllegalArgumentException(\"Category with name already exists\");\r\n }\r\n cursor.close();\r\n\r\n // Check if there's a deleted category that can be re-enabled\r\n ContentValues updateValues = new ContentValues();\r\n updateValues.put(CategoryTable.COLUMN_NAME_IS_DELETED, 0);\r\n\r\n int count = db.update(\r\n DbContract.CategoryTable.TABLE_NAME,\r\n updateValues,\r\n CategoryTable.COLUMN_NAME_CATEGORY_NAME + \" = ?\",\r\n new String[]{category}\r\n );\r\n if(count > 0) return;\r\n\r\n // Otherwise add it as normal\r\n ContentValues insertValues = new ContentValues();\r\n insertValues.put(CategoryTable.COLUMN_NAME_CATEGORY_NAME, category);\r\n db.insert(CategoryTable.TABLE_NAME, null, insertValues);\r\n db.close();\r\n }", "@Deprecated( since = \"Used only por mapping\")\n public Category() {\n }", "public PropertySpecBuilder<T> category(String category)\n {\n Preconditions.checkArgument(this.category == null, \"category already set\");\n this.category = category;\n\n return this;\n }", "public void setCategory(String newCategory) {\n category = newCategory;\n }", "public void createCategory(String name) {\n\t\t\n\t\tFlashCategory cat = (\n\t\t\t\t\t\t\t\t\t\t\tselectionListener.selectedComponents.size() == 0\n\t\t\t\t\t\t\t\t\t\t?\troot\n\t\t\t\t\t\t\t\t\t\t:\t(FlashCategory) selectionListener.selectedComponents.iterator().next()\n\t\t);\n\t\t\n\t\tcat.add(new FlashCategory(name));\n\t\t\n\t\tfireIntervalChanged(this,-1,-1);\n\t}", "public void addCommand(CommandIF command) {\r\n\t\tmelody.add(command);\r\n\t}", "public void assignAddingCategory(final boolean val) {\n addingCategory = val;\n }", "private Command createAddIfValidCommand(ArrayList<String> arguments) {\n Command command;\n if (findFullStop(arguments)) {\n command = createAddCommand(arguments);\n } else {\n logger.log(Level.WARNING, \"full stop not found in user input.\");\n command = createInvalidCommand();\n }\n return command;\n }", "public AddNewContactGroupAction() {\r\n\t\tsuper();\r\n\t}", "@Override\n public Category createCategory(Category newCategory)\n {\n // format the string\n String query = \"INSERT INTO Categories(CategoryName, Description, CreationDate)\";\n query += \" VALUES ('%1$s', '%2$s', '%3$s')\";\n \n query = String.format(query, newCategory.getCategoryName(), newCategory.getDescription(),\n newCategory.getCreationDate());\n \n // if everything worked, inserted id will have the identity key\n // or primary key\n int insertedId = DataService.executeCreate(query);\n if (insertedId > 0)\n {\n return getCategoryById(insertedId);\n }\n \n return null;\n }", "boolean add(DishCategory dishCategory );", "public void setCategory(String cat) {\t//TODO\n\t\tcategory = cat;\n\t}", "public CCGCategory apply(CCGCategory cat) {\n return null;\n }", "public void setAttributeCategory(String value)\n {\n setAttributeInternal(ATTRIBUTECATEGORY, value);\n }", "@Test\n public void addToCategory() throws Exception {\n withProductAndUnconnectedCategory(client(), (final Product product, final Category category) -> {\n assertThat(product.getMasterData().getStaged().getCategories()).isEmpty();\n\n final String orderHint = \"0.123\";\n final Product productWithCategory = client()\n .executeBlocking(ProductUpdateCommand.of(product, AddToCategory.of(category, orderHint)));\n\n final Reference<Category> categoryReference = productWithCategory.getMasterData().getStaged().getCategories().stream().findAny().get();\n assertThat(categoryReference.referencesSameResource(category)).isTrue();\n assertThat(productWithCategory.getMasterData().getStaged().getCategoryOrderHints().get(category.getId())).isEqualTo(orderHint);\n\n final Product productWithoutCategory = client()\n .executeBlocking(ProductUpdateCommand.of(productWithCategory, RemoveFromCategory.of(category)));\n\n assertThat(productWithoutCategory.getMasterData().getStaged().getCategories()).isEmpty();\n });\n }", "public static String dropArgNoFeats(String category) {\n category = convertChinese(category);\n category = replace_NP_with_N.matcher(category).replaceAll(\"N\");\n category = SbN_to_S.matcher(category).replaceAll(\"S\");\n category = remove_features.matcher(category).replaceAll(\"\");\n return category;\n }", "public Category(String categoryName) {\n this.categoryName = categoryName;\n }", "public Category(String categoryName) {\n this.categoryName = categoryName;\n }", "@Override\n\tpublic String getCategory() {\n\t\treturn EHEventRecorder.MacroCommandCategory;\n\t}", "public String getCategory() {\n\t\treturn null;\n\t}", "public String getCategory() {\n\t\treturn null;\n\t}", "public void add(Command c) {\n history.add(0, c);\n future.clear();\n }", "public TaxCategorySetDescriptionAction buildUnchecked() {\n return new TaxCategorySetDescriptionActionImpl(description);\n }", "public String getCategory() {\n\t\treturn null;\r\n\t}", "public CategoryRecord() {\n\t\tsuper(com.cellarhq.generated.tables.Category.CATEGORY);\n\t}", "protected abstract Command getAddCommand(ChangeBoundsRequest request);", "public Command parseAddCommand(String taskInfo, int namePos, int timePos, int durationPos, int deadlinePos,\n int recurrencePos, int importancePos, int addNotesPos)\n throws InvalidCommandException, InvalidImportanceException {\n String name = getParameterDesc(taskInfo, NAME_DELIMITER, namePos, EMPTY_STRING);\n String time = getParameterDesc(taskInfo, TIME_DELIMITER, timePos, EMPTY_STRING);\n boolean isFlexible = (time.equals(EMPTY_STRING));\n String durationDefault = \"1\";\n String duration = getParameterDesc(taskInfo, DURATION_DELIMITER, durationPos, durationDefault);\n String deadlineDefault = \"No deadline\";\n String deadline = getParameterDesc(taskInfo, DEADLINE_DELIMITER, deadlinePos, deadlineDefault);\n String recurrenceDefault = \"today\";\n String recurrence = getParameterDesc(taskInfo, RECURRENCE_DELIMITER, recurrencePos, recurrenceDefault);\n String importanceDefault = \"medium\";\n String importanceString = getParameterDesc(taskInfo, IMPORTANCE_DELIMITER, importancePos, importanceDefault);\n Importance importance;\n try {\n importance = Importance.valueOf(importanceString.toUpperCase());\n } catch (IllegalArgumentException e) {\n throw new InvalidImportanceException();\n }\n String notesDefault = \"No notes\";\n String notes = getParameterDesc(taskInfo, ADDITIONAL_NOTES_DELIMITER, addNotesPos, notesDefault);\n return new AddCommand(name, time, duration, deadline, recurrence, importance, notes, isFlexible);\n }", "public RedditCommand() {\n\t\tsuper();\n\t}", "public Category newCategory() {\n\t\tCategory page = new Category();\r\n\t\tpage.setWpPublished(DateUtils.now());\r\n\t\tpage.setWpWeight(0);\r\n\t\treturn page;\r\n\t}", "public AddCommand(String taskType, Optional<String> taskDescription) { \r\n this.taskType = taskType;\r\n this.taskDescription = taskDescription;\r\n this.taskDeadline = Optional.empty();\r\n this.taskStartDateTime = Optional.empty();\r\n this.taskEndDateTime = Optional.empty();\r\n this.task = makeTask(taskType, taskDescription, taskDeadline, \r\n taskStartDateTime, taskEndDateTime); \r\n }", "public boolean addToCategory (Message msg) {\n return addToCategory(msg.ADDTOCATgetName(), Crypto.decodeKey(msg.ADDTOCATgetKey()));\n }", "public @NotNull Category newCategory(@NotNull @Size(min = 1, max = 255) final String name,\r\n\t\t\t@NotNull @Size(min = 1, max = 255) final String description, @NotNull final Category parent);", "public TaxCategorySetDescriptionAction build() {\n return new TaxCategorySetDescriptionActionImpl(description);\n }", "public AddOperationAction(Classifier classifier, Operation operation) {\n super(\"Add operation\");\n Helper.checkNotNull(classifier, \"classifier\");\n Helper.checkNotNull(operation, \"operation\");\n this.classifier = classifier;\n this.operation = operation;\n }", "public void addCommand(Command cmd) {\n cmd.setTask(this);\n commands.add(cmd);\n }", "String category();", "public Categorie(int noCategorie, String libelle) {\n this.noCategorie = noCategorie;\n this.libelle = libelle;\n }", "public Flowable<Category> addCategory(final Category newCategory) {\n return executeTransaction((bgRealm, subscriber) -> {\n if (newCategory.getId() == 0) {\n // Auto Incremental Id\n Number currentIdNum = bgRealm.where(Category.class).max(\"id\");\n int nextId = currentIdNum == null ? 1 : currentIdNum.intValue() + 1;\n newCategory.setId(nextId);\n }\n bgRealm.insert(newCategory);\n });\n }", "public void addCategory(ProductCatagory pCatagory)\n\t\t\tthrows BusinessException;", "public void setCategory (String mode) { category = mode; }", "Boolean insertCategory(DvdCategory category) throws DvdStoreException;", "Command createCommandWith(CommandCreator creator);", "public void setCategory(String category){\n this.category = category;\n }", "public void setCategory(String cat)\n\t{\n\t\tif(cat!=null)\n\t\t\tthis.category = cat;\n\t}", "public void setAdditionalCategoryCat(java.lang.Integer additionalCategoryCat) {\r\n this.additionalCategoryCat = additionalCategoryCat;\r\n }", "Category selectCategory(String name);", "public String getCategoryString(){\r\n\t\tMarketplaceConfig.Category c = MarketplaceConfig.Category.get(this.category);\r\n\t\tif(c == null || c.name() == null || \"\".equals(c.name())) return \"NONE\";\r\n\t\treturn c.name();\r\n\t}", "CmdRule createCmdRule();", "public JComponent addNameGlobal(Color color)\n {\n Category globalCategory = new Category(this, getSynthName(), color);\n //globalCategory.makeUnresettable();\n \n JComponent comp;\n String[] params;\n HBox hbox = new HBox();\n \n VBox vbox = new VBox();\n HBox hbox2 = new HBox();\n comp = new PatchDisplay(this, 9);\n hbox2.add(comp);\n vbox.add(hbox2);\n \n comp = new StringComponent(\"Performance Name\", this, \"name\", 15, \"Name must be up to 15 ASCII characters.\")\n {\n public String replace(String val)\n {\n return revisePatchName(val);\n }\n \n public void update(String key, Model model)\n {\n super.update(key, model);\n updateTitle();\n }\n };\n vbox.addBottom(comp); // doesn't work right :-(\n hbox.add(vbox);\n \n /*\n LabelledDial delay = new LabelledDial(\"Delay\", this, \"hillclimbdelay\", Style.COLOR_A(), 0, 5000); \n hbox.add(delay);\n */\n \n hbox.add(Strut.makeHorizontalStrut(130));\n\n globalCategory.add(hbox, BorderLayout.WEST);\n return globalCategory;\n }" ]
[ "0.60259396", "0.5897441", "0.58901274", "0.5831833", "0.57282495", "0.57066643", "0.5572332", "0.55660146", "0.55193883", "0.5497953", "0.5466227", "0.54599875", "0.5438968", "0.54026526", "0.5365556", "0.52999717", "0.52826726", "0.52065676", "0.5171109", "0.50930476", "0.5046256", "0.50218534", "0.5017524", "0.500791", "0.5001363", "0.4986607", "0.4971459", "0.4969498", "0.4962232", "0.49524125", "0.49337444", "0.49274102", "0.49244088", "0.49161386", "0.49125868", "0.49083713", "0.489896", "0.4884713", "0.48846185", "0.48787338", "0.48517185", "0.48390937", "0.48389766", "0.48332834", "0.48306888", "0.48290306", "0.48162928", "0.48120055", "0.48032632", "0.479573", "0.47817227", "0.47732416", "0.47727776", "0.47725764", "0.47678623", "0.47385463", "0.47041348", "0.47035438", "0.4691375", "0.46901438", "0.46646762", "0.4653511", "0.46262354", "0.4618538", "0.4618246", "0.46158022", "0.4613085", "0.46089718", "0.46089718", "0.4602004", "0.45941117", "0.45941117", "0.45934156", "0.45931938", "0.45870844", "0.4585657", "0.45848137", "0.4580062", "0.45754611", "0.45699483", "0.45598146", "0.45571515", "0.45551744", "0.4550742", "0.45488992", "0.4540925", "0.454069", "0.45381424", "0.45341024", "0.45303947", "0.45286304", "0.452326", "0.45134476", "0.4511451", "0.45104605", "0.45064422", "0.45048046", "0.44994372", "0.4499223", "0.44961822" ]
0.5754034
4
Executes the Add Category Command to add a Category into the Category List.
@Override public CommandResult execute() { if (exceedLengthLimit()) { return new CommandResult(MESSAGE_CATEGORY_EXCEED_LIMIT); } try { Module parentModule = DirectoryTraverser.getModuleDirectory(moduleCode); Category toAdd = new Category(parentModule, categoryName, categoryPriority); parentModule.getCategories().add(toAdd); StorageManager.setIsSave(); return new CommandResult(messageAddCategorySuccess(categoryName)); } catch (ModuleManager.ModuleNotFoundException e) { return new CommandResult(MESSAGE_MODULE_NOT_FOUND); } catch (CategoryManager.DuplicateCategoryException e) { return new CommandResult(MESSAGE_DUPLICATE_CATEGORY); } catch (IncorrectDirectoryLevelException e) { return new CommandResult(MESSAGE_INCORRECT_DIRECTORY_LEVEL); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNewCategory(Category category) throws CostManagerException;", "void addCategory(Category category);", "@Override\r\n\tpublic void addCategory() {\n\t\tCategory cat=new Category();\r\n\t\tcat.setNameCategory(\"Computing Tools\");\r\n\t\tem.persist(cat);\r\n\t\t\r\n\t}", "Category addNewCategory(Category category);", "void add(ProductCategory category);", "public void newCategory() {\n btNewCategory().push();\n }", "public AddCategoryCommand(String moduleCode, String categoryName) {\n this(moduleCode, categoryName, 0);\n }", "public void addCategory(ProductCatagory pCatagory)\n\t\t\tthrows BusinessException;", "public void addCategory(Category c) {\n\t\tcategoryDao.save(c);\n\t}", "@Override\r\n\tpublic void addCategory(Category category) {\n\t\tgetHibernateTemplate().save(category);\r\n\t}", "public static void addCategory(Context context, String category) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getWritableDatabase();\r\n\r\n // Don't allow adding if there's already a non-deleted category with that name\r\n Cursor cursor = db.query(\r\n CategoryTable.TABLE_NAME,\r\n new String[]{CategoryTable._ID},\r\n CategoryTable.COLUMN_NAME_IS_DELETED + \" = 0 AND \" + CategoryTable.COLUMN_NAME_CATEGORY_NAME + \" = ?\",\r\n new String[]{category},\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if(cursor.getCount() > 0) {\r\n cursor.close();\r\n throw new IllegalArgumentException(\"Category with name already exists\");\r\n }\r\n cursor.close();\r\n\r\n // Check if there's a deleted category that can be re-enabled\r\n ContentValues updateValues = new ContentValues();\r\n updateValues.put(CategoryTable.COLUMN_NAME_IS_DELETED, 0);\r\n\r\n int count = db.update(\r\n DbContract.CategoryTable.TABLE_NAME,\r\n updateValues,\r\n CategoryTable.COLUMN_NAME_CATEGORY_NAME + \" = ?\",\r\n new String[]{category}\r\n );\r\n if(count > 0) return;\r\n\r\n // Otherwise add it as normal\r\n ContentValues insertValues = new ContentValues();\r\n insertValues.put(CategoryTable.COLUMN_NAME_CATEGORY_NAME, category);\r\n db.insert(CategoryTable.TABLE_NAME, null, insertValues);\r\n db.close();\r\n }", "@Test\n public void addToCategory() throws Exception {\n withProductAndUnconnectedCategory(client(), (final Product product, final Category category) -> {\n assertThat(product.getMasterData().getStaged().getCategories()).isEmpty();\n\n final String orderHint = \"0.123\";\n final Product productWithCategory = client()\n .executeBlocking(ProductUpdateCommand.of(product, AddToCategory.of(category, orderHint)));\n\n final Reference<Category> categoryReference = productWithCategory.getMasterData().getStaged().getCategories().stream().findAny().get();\n assertThat(categoryReference.referencesSameResource(category)).isTrue();\n assertThat(productWithCategory.getMasterData().getStaged().getCategoryOrderHints().get(category.getId())).isEqualTo(orderHint);\n\n final Product productWithoutCategory = client()\n .executeBlocking(ProductUpdateCommand.of(productWithCategory, RemoveFromCategory.of(category)));\n\n assertThat(productWithoutCategory.getMasterData().getStaged().getCategories()).isEmpty();\n });\n }", "public void addCategory(String categoryName) {\n if(!containsCategory(categoryName)) {\n Category cat = new Category(categoryName);\n categories.add(cat);\n }\n }", "private void addNewCategory() {\n Utils.replaceFragment(getActivity(),new AddCategoriesFragment());\n }", "@RequestMapping(value = \"/add\", method = GET)\n public String addCategory(Model model) {\n model.addAttribute(\"action\", ADD_ACTION);\n model.addAttribute(\"category\", new Category());\n return FORM_VIEW;\n }", "@Override\n\tpublic void add(Category category) {\n\t\tsessionFactory.getCurrentSession().persist(category);\n\t\tsessionFactory.getCurrentSession().flush();\n\t}", "public Categorie addCategorie(Categorie c);", "public void createCategory(String categoryName) {\n wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.className(\"page-title\"))));\n Actions builder = new Actions(driver);\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminCatalog\")));\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminProducts\")));\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminCategories\")));\n builder.click(driver.findElement(By.id(\"subtab-AdminCategories\"))).perform();\n\n waitForContentLoad(\"Women\");\n WebElement creatNew = driver.findElement(By.id(\"page-header-desc-category-new_category\"));\n creatNew.click();\n WebElement newName = driver.findElement(By.id(\"name_1\"));\n newName.sendKeys(categoryName);\n WebElement saveBtn = driver.findElement(By.id(\"category_form_submit_btn\"));\n saveBtn.click();\n // TODO implement logic for new category creation\n if (categoryName == null) {\n throw new UnsupportedOperationException();\n }\n }", "@Test\n\tpublic void testAddCategory() {\n\t\tcategory = new Category();\n\t\tcategory.setName(CATEGORY_NAME);\n\t\tcategory.setDescription(\"A wonderful addition to your home. 80 inches\");\n\t\tcategory.setImageURL(\"CAT_1.png\");\n\n\t\tassertEquals(\"Successfully added a category to the database table\", true, categoryDAO.add(category));\n\t}", "public WebDriver add_category(String category_name)\n {\n driver.findElement(By.xpath(\"//*[@id=\\\"go_add_category\\\"]\")).click();\n\n driver.findElement(By.xpath(\"//*[@id=\\\"name\\\"]\")).sendKeys(category_name);\n\n driver.findElement(By.xpath(\"//*[@id=\\\"submit\\\"]\")).click();\n\n return driver;\n }", "@Override\n\tpublic boolean addCategory(String catName) {\n\t\tTransaction tx=sessionFactory.getCurrentSession().beginTransaction();\n\t\tboolean found =categoryhome.isFound(catName);\n\t\tif(found==true)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\tCategory cat =new Category();\n\t\tcat.setName(catName);\n\t\tsessionFactory.getCurrentSession().save(cat);\n\t\ttx.commit();\n\t\t\treturn true;\n\t\t}\n\t}", "Boolean insertCategory(DvdCategory category) throws DvdStoreException;", "@Override\n\tpublic Category addCategory(Category cat) {\n\t\treturn dao.addCategory(cat);\n\t}", "public AddCategoryCommand(String moduleCode, String categoryName, int categoryPriority) {\n this.moduleCode = moduleCode;\n this.categoryName = categoryName;\n this.categoryPriority = categoryPriority;\n }", "private void saveNewCategory() {\n String name = newCategory_name.getText()\n .toString();\n int defaultSizeType = categoryDefaultSize.getSelectedItemPosition() - 1;\n String color = String.format(\"%06X\", (0xFFFFFF & categoryColor.getExactColor()));\n int parentCategoryId = -1;\n if (parentCategory != null) {\n parentCategoryId = parentCategory.getId();\n }\n String icon = categoryIcon.getSelectedItem();\n categoryDataSource.editCategory(categoryId, name, name, parentCategoryId, defaultSizeType,\n icon, color);\n\n setResult(Activity.RESULT_OK);\n this.finish();\n }", "public void addCategory(AtomCategory category) {\n if(!categories.contains(category)) {\n \tthis.categories.add(category);\n }\n }", "@Override\r\n\tpublic boolean addCategory(List<Category> categories) throws CategoryCreationException {\n\t\tboolean stat=false;\r\n\t\ttry {\r\n\t\t\tstat=categoryDao.addCategory(categories);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tthrow new CategoryCreationException(\"Error in creating object check your inputs\");\r\n\t\t}\r\n\t\treturn stat;\r\n\t}", "@PostMapping(path=\"/category/add\")\n\tpublic @ResponseBody String addNewCategory(@RequestBody Category n) {\n\t\tcategoryRepository.save(n);\n\t\treturn \"Saved\";\n\t}", "@Override\n\tpublic int add(FoodCategory foodCategory) {\n\t\treturn foodCategoryDao.add(foodCategory);\n\t}", "protected int AddCategory(String categoryName, String categoryColor) {\n int resnum = Integer.parseInt(this.IniFile.getIniString(this.appIniFile,\n \"resource\", \"resnum\", \"0\", (byte) 0));\n for (int i = 1; i <= resnum; i++) {\n String resname = this.IniFile.getIniString(this.appIniFile, \"resource\",\n \"resname\" + i, \"0\", (byte) 0);\n if (resname.equals(categoryName)) {\n return 0;\n }\n }\n resnum = resnum + 1;\n this.IniFile.writeIniString(this.appIniFile, \"resource\", \"resnum\", resnum + \"\");\n this.IniFile.writeIniString(this.appIniFile, \"resource\", \"resid\" + resnum,\n \"group\" + resnum);\n this.IniFile.writeIniString(this.appIniFile, \"resource\", \"resname\" + resnum,\n categoryName);\n this.IniFile.writeIniString(this.appIniFile, \"resource\", \"resicon\" + resnum, \"\");\n this.IniFile.writeIniString(this.appIniFile, \"resource\", \"resbkcolor\" + resnum,\n categoryColor);\n Map<String, String> group = new HashMap<String, String>();\n group.put(\"group\", categoryName);\n this.groups.add(group);\n List<Map<String, String>> child = new ArrayList<Map<String, String>>();\n this.childs.add(child);\n this.exlist_adapter.notifyDataSetChanged();\n return 1;\n }", "public boolean addCategory(Category c){\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(DBEntryContract.CategoryEntry.COLUMN_NAME_TITLE, c.title);\n\t\t// Insert the new row, returning the primary key value of the new row\n\t\tlong newRowId;\n\t\tnewRowId = db.insert(\n\t\t\t\t\tDBEntryContract.CategoryEntry.TABLE_NAME,\n\t\t\t\t\tnull,\n\t\t\t\t\tvalues);\n\t\t\n\t\tif (newRowId != -1)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public void insert(ZCategory category) {\r\n\t\tZCategory x = this.selectCategory(category.getCatId());\r\n\t\tif(x == null) // Don't Add Duplicate Category\r\n\t\t{\r\n\t\tString newRow = categoryToString(category);\r\n\t\tfm.AppendRow(newRow);\r\n\t\t}\r\n\t}", "public Long addCategory(AddCategoryDTO category) throws CategoryException {\n\n Category categoryFromDB = categoryRepository.findCategoryByName(category.getCategoryName());\n if(categoryFromDB != null){\n throw new CategoryException(\"Already such category !!!\");\n }\n categoryFromDB = new Category();\n categoryFromDB.setName(category.getCategoryName());\n if(category.getParentCategoryId() != null) {\n Category parentCategory = categoryRepository.findCategoryById(category.getParentCategoryId());\n if(parentCategory == null){\n throw new CategoryException(\"No such parent category !!!\");\n }\n categoryFromDB.setParentCategory(parentCategory);\n }\n Long newCategoryId = categoryRepository.save(categoryFromDB).getId();\n return newCategoryId;\n }", "public void addCat(Cat catToAdd)\r\n {\r\n if(catToAdd != null){\r\n catCollection.add(catToAdd);\r\n }\r\n }", "public int addCategory(Category cat) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void createCategory(Category category) { \n\t\tif (categoryExists(category))\n\t\t\treturn; \n\n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction();\n\n\t\tsession.save(category);\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\n\t}", "@PostMapping()\n\t@ApiOperation(value = \"categoryAPI\")\n\t@ApiResponses(value = { @ApiResponse(code = 201, message = \"Category added\", response = String.class),\n\t\t\t@ApiResponse(code = 400, message = \"Invalid Category\", response = Category.class) })\n\n\tpublic ResponseEntity<?> addCategory(@RequestBody CategoryDTO categoryDTO) throws ValidatorException {\n\n\t\ttry {\n\t\t\tcategoryService.addCategory(categoryDTO);\n\t\t\treturn new ResponseEntity<>(HttpStatus.CREATED);\n\n\t\t} catch (ServiceException e) {\n\t\t\tMessage message = new Message(e.getMessage());\n\t\t\treturn new ResponseEntity<>(message,HttpStatus.BAD_REQUEST);\n\t\t}\n\n\t}", "CreateCategoryResponse createCategory(CreateCategoryRequest request);", "public boolean addToCategory (String category, PublicKey key) {\n Logger.write(\"VERBOSE\", \"DB\", \"addToCategory(\" + category + \", ...)\");\n \n PublicKey[] members = getCategoryMembers(category);\n if (Arrays.asList(members).contains(key)) {\n return false;\n }\n \n try {\n execute(DBStrings.addToCategory.replace(\"__catID__\", category)\n .replace(\"__key__\", Crypto.encodeKey(key)));\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n return false;\n }\n \n return true;\n }", "public Flowable<Category> addCategory(final Category newCategory) {\n return executeTransaction((bgRealm, subscriber) -> {\n if (newCategory.getId() == 0) {\n // Auto Incremental Id\n Number currentIdNum = bgRealm.where(Category.class).max(\"id\");\n int nextId = currentIdNum == null ? 1 : currentIdNum.intValue() + 1;\n newCategory.setId(nextId);\n }\n bgRealm.insert(newCategory);\n });\n }", "public long createCategory(CategoryModel categoryModel){\n //access the database\n SQLiteDatabase db = this.getWritableDatabase();\n\n //set the parameters\n ContentValues values = new ContentValues();\n values.put(InventoryContract.CategoryEntry.COLUMN_CATEGORY_NAME, categoryModel.getName());\n\n //insert the row\n long category_id = db.insert(CategoryEntry.TABLE_NAME, null, values);\n\n return category_id;\n }", "@PostMapping(path = \"menus/{id}/categories\")\n ResponseEntity<?> post(@RequestBody Category body, @PathVariable String id) {\n Menu findMenu = menuRepository.findById(id)\n .orElseThrow(() -> new CategoryNotFound(\"Category with id: \" + id + \" Not Found\"));\n Category newCategory = repository.save(body);\n findMenu.getCategories().add(newCategory);\n Menu SavedMenu = menuRepository.save(findMenu);\n // must be created\n return ResponseEntity.ok(SavedMenu);\n }", "@RequestMapping(value = \"/Category\", method = RequestMethod.POST)\n @ResponseStatus(HttpStatus.NO_CONTENT)\n @ResponseBody\n public void addCategory(@RequestBody Category category) {\n blogDAO.addCategory(category);\n }", "public String createCategory()\n {\n logger.info(\"**** In createCategory in Controller ****\");\n if (category != null && StringUtils.isNotEmpty(category.getCategoryName()))\n {\n String creationMessage = categoryService.createCategory(category);\n if (creationMessage.equalsIgnoreCase(Constants.CATEGORY_CREATION_SUCCESS))\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, Constants.CATEGORY_CREATION_SUCCESS, Constants.CATEGORY_CREATION_SUCCESS);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n else if (creationMessage.equalsIgnoreCase(Constants.CATEGORY_ALREADY_EXISTS))\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, Constants.CATEGORY_ALREADY_EXISTS, Constants.CATEGORY_ALREADY_EXISTS);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n else if (creationMessage.equalsIgnoreCase(Constants.CATEGORY_CREATION_EXCEPTION))\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, Constants.CATEGORY_CREATION_EXCEPTION, Constants.CATEGORY_CREATION_EXCEPTION);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n else if (creationMessage.equalsIgnoreCase(Constants.FAILURE))\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, Constants.CATEGORY_CREATION_FAILURE, Constants.CATEGORY_CREATION_FAILURE);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n }\n\n return Constants.CREATE_CATEGORY_VIEW;\n }", "public ToDoBuilder addCategory(String category) {\n if (!category.equals(\"?\") && !category.equals(\"null\")) {\n this.category = category;\n }\n return this;\n }", "public void setCategory(String newCategory) {\n category = newCategory;\n }", "private void createCategory() {\n Uri uri = TimeSeriesData.TimeSeries.CONTENT_URI;\n Intent i = new Intent(Intent.ACTION_INSERT, uri);\n startActivityForResult(i, ARC_CATEGORY_CREATE);\n }", "boolean add(DishCategory dishCategory );", "protected boolean addCategory(int conId, Category cat) {\n\t\tContest cs = getContest(conId);\n\t\tif(cs == null) {\n\t\t\treturn false;\n\t\t}\n\t\tcs.addCategory(cat);\n\t\treturn true;\n\t}", "void createCodeCategory(CodeCategory codeCategory)\n throws DAOException;", "public void setCategory(Category c) {\n this.category = c;\n }", "@Override\n\tpublic ZuelResult addContentCategory(TbContentCategory contentCategory) throws ServiceException {\n\t\ttry {\n contentCategory.setId(ZuelIdUtil.getId());\n contentCategory.setIsParent(false);\n contentCategory.setSortOrder(1);\n contentCategory.setStatus(ZuelContentStatus.CONTENT_CATEGORY_OK);\n Date now = new Date();\n contentCategory.setCreated(now);\n contentCategory.setUpdated(now);\n boolean isCreated = service.addContentCategory(contentCategory);\n if (isCreated) { \n return ZuelResult.ok(contentCategory);\n }\n }catch (ServiceException e){\n e.printStackTrace();\n throw e; \n }\n return ZuelResult.error(\"服务器忙,请稍后重试!\");\n\t}", "public void create(Category category) {\n category_dao.create(category);\n }", "public void setCategory(String category);", "public int addCategory(String catName, int sessionID) {\r\n\t\tfor (int i=0;i<sessions.size();i++) {\r\n\t\t\tSession s = sessions.get(i);\r\n\t\t\tif (s.getID() == sessionID && s.getUser() instanceof Administrator) {\r\n\t\t\t\tAdministrator ad = (Administrator)(s.getUser());\r\n\t\t\t\treturn ad.addCategory(catName);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "public void setCategory(String category) {\r\n this.category = category;\r\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(java.lang.String category) {\n this.category = category;\n }", "public void onAddCategoryButtonClicked(View v){\n //starts addcategory activity\n Intent addCategoryIntent = new Intent(this, AddCategoryActivity.class);\n startActivity(addCategoryIntent);\n }", "public void setCategoryName(final String categoryName);", "@Override\r\n\tpublic int AddCategory(String name, int parentid) {\n\t\tConnection conn=getConn();\r\n\t\tString sql=\"insert into easybuy_product_category values(?,?)\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps=conn.prepareStatement(sql);\r\n\t\t\tps.setString(1, name);\r\n\t\t\tps.setInt(2, parentid);\r\n\t\t\treturn ps.executeUpdate();\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\treturn 0;\r\n\t\t}finally{\r\n\t\t\tcloseConn();\r\n\t\t}\r\n\t}", "public void setCategory(String category){\n this.category = category;\n }", "@RequestMapping(value = \"addCategory\", method = RequestMethod.POST)\r\n\tpublic ModelAndView addCategory(@ModelAttribute AdminFormBean formBean) {\r\n\t\tCategory category = formBean.getCategory();\r\n\t\tcategoryService.addCategory(category);\r\n\t\treturn new ModelAndView(\"redirect:/admin\");\r\n\t}", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tdbHelper.InsertCategory(listResult);\r\n\t\t\t\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\t\t\t\tmsg.obj = \"CategorySave\";\r\n\t\t\t\t\t\t\thandler.sendMessage(msg);\r\n\t\t\t\t\t\t}", "public static void addCategoryType(String description) {\n\t\tConnection conn = null;\n PreparedStatement ps = null;\n try {\n \t// Get a connection to the specified JDBC URL.\n \t\tconn = JDBCConnection.getConnection();\n // Create a Statement object for sending SQL statements to the database.\n \t\t// Statement: The object used for executing a static SQL statement and returning the results it produces.\n \t\tps = conn.prepareStatement(\"INSERT INTO observation_categories ( description ) VALUES ( ? )\");\n \t\tps.setString( 1, description );\n \t\tps.execute();\n \t} catch(SQLException e) {\n \te.printStackTrace();\n } finally {\n\t\t\tJDBCConnection.closeConnection(conn, ps, null);\n\t\t}\n }", "public String addNew() throws Exception {\r\n\t\tgetNavigationPanel(2);\r\n\t\tExpensesCategoryModel model = new ExpensesCategoryModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tmodel.getData(expenses, request);\r\n\t\texpenses.setLoadFlag(true);\r\n\t\treset();\r\n\t\t//\texpenses.setFlag(true);\r\n\r\n\t\texpenses.setPanelFlag(\"2\");\r\n\t\texpenses.setRetrnFlag(\"success\");\r\n\r\n\t\tmodel.terminate();\r\n\t\treturn \"success\";\r\n\r\n\t}", "public Category(String categoryName) {\n this.categoryName = categoryName;\n }", "public Category(String categoryName) {\n this.categoryName = categoryName;\n }", "UpdateCategoryResponse updateCategory(UpdateCategoryRequest request) throws RevisionException;", "public void setCategory(Category cat) {\n this.category = cat;\n }", "@Override\r\n\tpublic void add(SecondCategory scategory) {\n\t\tscategory.setCreattime(new Date());\r\n\t\tscategoryDao.add(scategory);\r\n\t}", "@Override\n public Category createCategory(Category newCategory)\n {\n // format the string\n String query = \"INSERT INTO Categories(CategoryName, Description, CreationDate)\";\n query += \" VALUES ('%1$s', '%2$s', '%3$s')\";\n \n query = String.format(query, newCategory.getCategoryName(), newCategory.getDescription(),\n newCategory.getCreationDate());\n \n // if everything worked, inserted id will have the identity key\n // or primary key\n int insertedId = DataService.executeCreate(query);\n if (insertedId > 0)\n {\n return getCategoryById(insertedId);\n }\n \n return null;\n }", "@Test\n public void addCategory_DatabaseUpdates(){\n int returned = testDatabase.addCategory(category);\n Category retrieved = testDatabase.getCategory(returned);\n assertEquals(\"addCategory - Correct Category Name\", \"Lunch\", retrieved.getName());\n assertEquals(\"addCategory - Set Category ID\", returned, retrieved.getKeyID());\n }", "public void newCustomer () {\r\n\t\t//input category id.\r\n\t\t//TODO\r\n boolean ok = false;\r\n do { \r\n my.printCategoies();\r\n try {\r\n System.out.println(\"Category:\");\r\n Scanner scan = new Scanner(System.in);\r\n String cat = scan.next();\r\n \r\n Category c = my.getCategory(cat);\r\n //\r\n if (c!=null ) {\r\n // add the new customer to a category\r\n //input new customer.\r\n Customer theNewCustomer = readCustomer(cat);\r\n if ( theNewCustomer != null ) {\r\n my.add(c, theNewCustomer);\r\n ok = true;\r\n }\r\n \r\n }else{\r\n System.out.println(\"Category not exist\");\r\n }\r\n \r\n } catch (Exception e) {\r\n System.out.println(\"Sorry, try again\");\r\n }\r\n } while (ok == false);\r\n \r\n\t\t\r\n\t}", "@Override\r\n\tpublic boolean add(Se_cat se_cat) {\n\t\t\t\treturn se_catdao.add(se_cat);\r\n\t}", "public void addRemoteCategory(String name) {\n url = Constants.addCategory;\n params = new HashMap<>();\n params.put(param_category_name, \"\" + name);\n\n if (ApiHelper.checkInternet(mContext)) {\n mApiHelper.addCategory(name, mIRestApiCallBack, false, url, params);\n } else {\n mIRestApiCallBack.onNoInternet();\n }\n\n }", "@PostMapping(\"/add\")\n\tpublic ResponseEntity<?> add(@RequestBody String body){\n\t\tCategoryVO newCat = null;\n\t\ttry {\n\t\t\tnewCat = new ObjectMapper().readValue(body, CategoryVO.class);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tCategoryVO cat = catService.add(newCat);\n\t\treturn checkNull(cat);\n\t}", "void updateCategory(String category){}", "public void addCategoryToContract(Contract contract, String category) {\n contract_dao.addCategoryToContract(contract, category);\n }", "public void setCategory(Category category) {\r\n this.category = category;\r\n }", "public void addOption(final PreferencesCategory category) {\n this.category = category;\n\n for (final PreferencesSetting setting : category.getSettings()) {\n if (settings.get(setting) == null) {\n final JComponent component = compFactory.getComponent(setting);\n component.setName(setting.getTitle());\n settings.put(setting, component);\n }\n if (setting.isSet()) {\n addCurrentOption(settings.get(setting));\n } else {\n addAddableOption(settings.get(setting));\n }\n }\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "void updateCategory(Category category);", "void updateCategory(Category category);", "void addRuleCategory(RuleCategory rc) throws ResultException, DmcValueException {\n if (checkAndAdd(rc.getObjectName(),rc,ruleCategoryDefs) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsg(rc.getObjectName(),rc,ruleCategoryDefs,\"rule categories\"));\n \tthrow(ex);\n }\n \n if (checkAndAddDOT(rc.getDotName(),rc,globallyUniqueMAP,null) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(rc.getObjectName(),rc,globallyUniqueMAP,\"definition names\"));\n throw(ex);\n }\n\n if (performIDChecks){\n\t // Bump up the rule category ID by the amount of schemaBaseID\n\t int base = rc.getDefinedIn().getSchemaBaseID();\n\t int range = rc.getDefinedIn().getSchemaIDRange();\n\t int current = rc.getRuleCategoryID();\n\t \n\t if (current >= range){\n\t \tResultException ex = new ResultException(\"Number of rule categories exceeds schema ID range: \" + rc.getName());\n\t \tthrow(ex); \t\n\t }\n\t \n\t rc.setRuleCategoryID(base + current);\n }\n\n if (ruleCategoriesByID.get(rc.getRuleCategoryID()) != null){\n \tResultException ex = new ResultException();\n \tex.addError(clashingIDsMsg(rc.getRuleCategoryID(),rc,ruleCategoriesByID,\"ruleCategoryID\"));\n \tthrow(ex); \t\n }\n }", "public void save() {\n if (category != null) {\n category.save();\n }\n }", "public int AddCategory(Inventory inventory, String description) throws ExistingCatException{\r\n\t\tif (description != null && description.length() != 0){\r\n\t\t\tfor (Category c: inventory.category_list)\r\n\t\t\t\tif (c.description.equals(description)){\r\n\t//\t\t\t\tSystem.out.println(\"existed\");\r\n\t\t\t\t\tthrow new ExistingCatException();\r\n\t\t\t\t}\r\n\t\t\tCategory c = new Category(description,inventory);\r\n\t\t\tinventory.category_list.add(c);\r\n\t\t\treturn c.code;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "@RequestMapping(value = { \"/saveCategory\" }, method = RequestMethod.POST)\r\n\tpublic String saveCategory(@ModelAttribute Category category) {\r\n\t\tModelAndView modelAndView = new ModelAndView(\"page\");\r\n\t\tif (category.getId() == 0) {\r\n\t\t\tcategoryDAO.addCategory(category);\r\n\t\t\tmodelAndView.addObject(\"title\", \"Add Category\");\r\n\t\t\tmodelAndView.addObject(\"ifUserClickedAddCategory\", true);\r\n\t\t} else {\r\n\t\t\tcategoryDAO.updateCategory(category);\r\n\t\t}\r\n\t\treturn \"redirect:/admin/addcategory?op=add&status=success\";\r\n\t}", "public void selectCategory() {\n\t\t\r\n\t}", "@Override\n\tpublic Result postProcessorCreateCategory(CreateCategoryMessageEntity categoryRequestMessageEntity) {\n\t\treturn new Result(ResultStatus.SUCCESS);\n\t}", "public void setCategory(String category) {\n\t\tthis.category = category;\n\t}", "public void setCategory(String category) {\n\t\tthis.category = category;\n\t}", "@Query(\"create (n:RecommendationCategories) set n.categories_id={id} return n;\")\n List<RecommendationCategories> addCategory(@Param(\"id\") int id);" ]
[ "0.7322147", "0.721239", "0.71627754", "0.6966476", "0.675716", "0.660845", "0.64886093", "0.64738333", "0.6283368", "0.62260425", "0.62218636", "0.6201347", "0.6179128", "0.6161126", "0.61470264", "0.6145567", "0.61363554", "0.6126458", "0.6123005", "0.61078984", "0.61035335", "0.61000055", "0.60870326", "0.60482925", "0.600124", "0.5993758", "0.59918565", "0.5937439", "0.5917813", "0.59135365", "0.59009117", "0.58767414", "0.5871962", "0.58647245", "0.5858677", "0.5836379", "0.5833662", "0.5819999", "0.5818284", "0.5814187", "0.5774909", "0.57728595", "0.5765895", "0.57419175", "0.5739078", "0.5716837", "0.5711581", "0.5703606", "0.5689007", "0.56850076", "0.5675637", "0.56696635", "0.56687385", "0.56578994", "0.5651959", "0.56468105", "0.564316", "0.564316", "0.564316", "0.564316", "0.564316", "0.56402385", "0.56391394", "0.562853", "0.5626036", "0.5614587", "0.56076187", "0.56028533", "0.56019276", "0.55755895", "0.55750495", "0.55750495", "0.5564883", "0.5561025", "0.55477667", "0.554376", "0.5537167", "0.55329776", "0.553166", "0.55233055", "0.55145913", "0.5504518", "0.55036056", "0.5502014", "0.5491441", "0.54760003", "0.54760003", "0.54760003", "0.54760003", "0.5475452", "0.5475452", "0.54645747", "0.5457091", "0.54492617", "0.5441812", "0.5440979", "0.54335916", "0.5432169", "0.5432169", "0.5415732" ]
0.73412037
0
Assumes that each of the n input elements is an integer in the range 0 to k for some integer k
public static void countingSort(int[] array, int k) { int[] workStorage = new int[k + 1]; int[] result = new int[array.length]; for (int i = 0; i < array.length; i++) { workStorage[array[i]] = workStorage[array[i]] + 1; } for (int i = 0; i < k; i++) { workStorage[i + 1] = workStorage[i + 1] + workStorage[i]; } for (int i = array.length - 1; i >= 0; i--) { result[workStorage[array[i]] - 1] = array[i]; workStorage[array[i]] = workStorage[array[i]] - 1; } for (int i = 0; i < array.length; i++) { array[i] = result[i]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ArrayList<ArrayList<Integer>> combine1(int n, int k) {\r\n\tArrayList<ArrayList<Integer>> result = new ArrayList<ArrayList<Integer>>();\r\n\tif (n < 1 || k < 1) {\r\n\t return result;\r\n\t}\r\n\tif (n < k) {\r\n\t return result;\r\n\t}\r\n\tif (k == 1) {\r\n\t for (int i = 1; i <= n; i++) {\r\n\t\tArrayList<Integer> aResult = new ArrayList<Integer>();\r\n\t\taResult.add(i);\r\n\t\tresult.add(aResult);\r\n\t }\r\n\t return result;\r\n\t}\r\n\r\n\tfor (int i = n; i > 0; i--) {\r\n\t ArrayList<ArrayList<Integer>> temp = combine1(i - 1, k - 1);\r\n\t for (ArrayList<Integer> aResult : temp) {\r\n\t\taResult.add(i);\r\n\t }\r\n\t result.addAll(temp);\r\n\t}\r\n\r\n\t// get rid of duplicate sets\r\n\tLinkedHashSet<ArrayList<Integer>> finalResult = new LinkedHashSet<ArrayList<Integer>>();\r\n\tfor (ArrayList<Integer> aResult : result) {\r\n\t Collections.sort(aResult);\r\n\t finalResult.add(aResult);\r\n\t}\r\n\tresult = new ArrayList<ArrayList<Integer>>(finalResult);\r\n\r\n\treturn result;\r\n }", "public int[] constructArray(int n, int k) {\n int[] result = new int[n];\n if(k == 1) {\n for(int i = 0; i < result.length; i++)\n result[i] = i+1;\n return result;\n }\n \n boolean takeFromMin = true;\n int min = k / 2, j = 1;\n if(k % 2 == 0)\n takeFromMin = true;\n else takeFromMin = false;\n\n // If even, min starts at the end\n // [2,3,4,5,6,7,8,9,10,1]\n //\n // If odd, min starts at end - 1\n // [2,3,4,5,6,7,8,9,1,10]\n for(int i = result.length-1; i >= 0; i--) {\n if(takeFromMin && j <= min) {\n result[i] = j;\n j++;\n takeFromMin = false;\n }\n else {\n result[i] = n;\n n--;\n takeFromMin = true;\n }\n }\n return result;\n }", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int k = in.nextInt();\n ArrayList<Integer> list = new ArrayList<>();\n for(int arr_i=0; arr_i < n; arr_i++){\n int integer = in.nextInt();\n list.add(new Integer(integer));\n }\n in.close();\n\n\n\n if(k == 1){\n System.out.println(k);\n return;\n }\n\n for(int i = 0;i < list.size();i ++){\n int x = list.get(i) % k;\n list.set(i, x);\n }\n\n int[] kx = new int[k];\n for(int i = 0;i < k;i ++){\n kx[i] = 0;\n }\n for(int i = 0;i < list.size();i ++){\n int x = list.get(i);\n kx[x] ++;\n }\n\n\n int num = 0;\n int A = 0;\n if(k % 2 == 0){\n A = k / 2 - 1;\n }else{\n A = k / 2;\n }\n if(kx[0] != 0){\n num += 2;\n }\n for(int i = 1; i <= A;i ++){\n if(kx[i] >= kx[k - i]){\n num += kx[i];\n }else {\n\n num += kx[k - i];\n }\n\n }\n System.out.println(num);\n }", "public List<List<Integer>> combineIterative(int n, int k) {\n if (k > n) return Collections.emptyList();\n List<List<Integer>> result = new ArrayList<>();\n for (int i = 1; i <= n - k + 1; ++i) result.add(Arrays.asList(i));\n for (int i = 2; i <= k; ++i) {\n List<List<Integer>> tmp = new ArrayList<>();\n for (List<Integer> elem : result) {\n int lastNum = elem.get(elem.size() - 1);\n for (int j = lastNum + 1; j <= n - k + i; ++j) {\n List<Integer> copy = new ArrayList<>(elem);\n copy.add(j);\n tmp.add(copy);\n }\n }\n result = tmp;\n }\n return result;\n }", "public static ArrayList<Integer> kSmallest(int n, int[] input, int k) {\n PriorityQueue<Integer> pq = new PriorityQueue<>(Collections.reverseOrder());\r\n for (int i = 0; i < k; i++) {\r\n pq.add(input[i]);\r\n }\r\n for (int i = k; i < input.length; i++) {\r\n int temp = pq.peek();\r\n if (temp > input[i]) {\r\n pq.poll();\r\n pq.add(input[i]);\r\n }\r\n }\r\n\r\n ArrayList<Integer> ans = new ArrayList<>();\r\n Iterator iterator = pq.iterator();\r\n\r\n while (iterator.hasNext()) {\r\n ans.add((int) iterator.next());\r\n }\r\n return ans;\r\n\r\n }", "static void selectKItems(int stream[], int n, int k)\n {\n int i; // index for elements in stream[]\n\n // reservoir[] is the output array. Initialize it with\n // first k elements from stream[]\n int reservoir[] = new int[k];\n for (i = 0; i < k; i++)\n reservoir[i] = stream[i];\n Random r = new Random();\n // Iterate from the (k+1)th element to nth element\n for (; i < n; i++)\n {\n // Pick a random index from 0 to i.\n int j = r.nextInt(i + 1);\n\n // If the randomly picked index is smaller than k,\n // then replace the element present at the index\n // with new element from stream\n if(j < k)\n reservoir[j] = stream[i];\n }\n System.out.println(\"Following are k randomly selected items\");\n System.out.println(Arrays.toString(reservoir));\n }", "static int numOfSubsets(int[] arr, int n, int k) {\n List<Integer> vect1 = new ArrayList<Integer>(); \n List<Integer> vect2 = new ArrayList<Integer>(); \n List<Integer> subset1 = new ArrayList<Integer>(); \n List<Integer> subset2 = new ArrayList<Integer>(); \n \n // ignore element greater than k and divide\n // array into 2 halves\n for (int i = 0; i < n; i++) {\n \n // ignore element if greater than k\n if (arr[i] > k)\n continue;\n if (i <= n / 2)\n vect1.add(arr[i]);\n else\n vect2.add(arr[i]);\n }\n \n // generate all subsets for 1st half (vect1)\n for (int i = 0; i < (1 << vect1.size()); i++) {\n int value = 1;\n for (int j = 0; j < vect1.size(); j++) {\n if (i & (1 << j))\n value *= vect1[j];\n }\n \n // add only in case subset product is less\n // than equal to k\n if (value <= k)\n subset1.add(value);\n }\n \n // generate all subsets for 2nd half (vect2)\n for (int i = 0; i < (1 << vect2.size()); i++) {\n int value = 1;\n for (int j = 0; j < vect2.size(); j++) {\n if (i & (1 << j))\n value *= vect2[j];\n }\n \n // add only in case subset product is\n // less than equal to k\n if (value <= k)\n subset2.add(value);\n }\n \n // sort subset2\n sort(subset2.begin(), subset2.end());\n \n int count = 0;\n for (int i = 0; i < subset1.size(); i++)\n count += upper_bound(subset2.begin(), subset2.end(),\n (k / subset1[i]))\n - subset2.begin();\n \n // for null subset decrement the value of count\n count--;\n \n // return count\n return count;\n }", "public ArrayList<ArrayList<Integer>> combine(int n, int k) {\r\n\r\n\tArrayList<ArrayList<Integer>> result = new ArrayList<ArrayList<Integer>>();\r\n\r\n\t// Key: constraints of recursion\r\n\tif (n < 1 || n < k || k < 1)\r\n\t return result;\r\n\r\n\tif (k == 1) {\r\n\t for (int i = 1; i <= n; i++) {\r\n\t\tArrayList<Integer> aList = new ArrayList<Integer>();\r\n\t\taList.add(i);\r\n\t\tresult.add(aList);\r\n\t }\r\n\t return result;\r\n\t}\r\n\r\n\tfor (int i = n; i > 0; i--) {\r\n\t ArrayList<ArrayList<Integer>> temp = combine(i - 1, k - 1);\r\n\r\n\t for (ArrayList<Integer> aList : temp) {\r\n\t\taList.add(i);\r\n\t }\r\n\r\n\t result.addAll(temp);\r\n\t}\r\n\r\n\treturn result;\r\n }", "public int findPairs(int[] nums, int k) {\n if (k < 0) {\n return 0;\n }\n Set<Integer> unique = new HashSet<>();\n Set<Integer> duplicate = new HashSet<>();\n for (int n : nums) {\n if (!unique.add(n)) {\n duplicate.add(n);\n }\n }\n if (k == 0) {\n return duplicate.size();\n }\n int count = 0;\n for (int v : unique) {\n if (unique.contains(v + k)) {\n count += 1;\n }\n }\n return count;\n }", "public List<List<Integer>> combinationSum3(int k, int n) {\n List<List<Integer>> res = new ArrayList<>();\n int min = 0, max = 0;\n for (int i = 1; i <= k; i++) {\n min += i;\n max += (10 - i);\n }\n if (n > max || n < min) return res;\n List<Integer> list = new ArrayList<>();\n dfs(k, n, res, list, 1);\n return res;\n }", "private static long combinations(int n, int k) {\n\t\tif (k > n / 2) {\n\t\t\tk = n - k;\n\t\t}\n\n\t\tlong result = 1;\n\n\t\tfor (int i = 1, j = n - k + 1; i <= k; i++, j++) {\n\t\t\tresult = result * j / i;\n\t\t}\n\n\t\treturn result;\n\t}", "public static void getLeastNumbers_2(int[] input, int[] output) {\n int start = 0;\n int end = input.length - 1;\n int k = output.length;\n int index = partition(input, start, end);\n while(index != k - 1) {\n if(index > k - 1) {\n end = index - 1;\n index = partition(input, start, end);\n }\n else {\n start = index + 1;\n index = partition(input, start, end);\n }\n }\n \n for(int i = 0; i < k; ++i)\n output[i] = input[i];\n }", "public int subarraysWithKDistinct(int[] nums, int k) {\n return lessThanOrEqualToK(nums, k) - lessThanOrEqualToK(nums, k - 1);\n }", "public static int[] sortInNk(int[] input, int k) {\r\n int length = input.length;\r\n int[] map = new int[k];\r\n int[] output = new int[length];\r\n\r\n // get min O(n)\r\n // this block can be replaced with\r\n // min = input[0];\r\n // it will reduce time complexity but\r\n // than the size of the map would have to be increased\r\n int min = Integer.MAX_VALUE;\r\n for (int currentValue : input) {\r\n if (currentValue < min) {\r\n min = currentValue;\r\n }\r\n }\r\n\r\n // create map O(n)\r\n for (int currentValue : input) {\r\n map[currentValue - min]++;\r\n }\r\n\r\n // map to output O(n)\r\n int mapIter = 0;\r\n for (int i = 0; i < length; i++) {\r\n while (map[mapIter] == 0) {\r\n mapIter++;\r\n if (mapIter == length) {\r\n break;\r\n }\r\n }\r\n // FIXME can this block be done better?\r\n while (map[mapIter] > 0) {\r\n output[i] = min + mapIter;\r\n map[mapIter]--;\r\n if (map[mapIter] > 0) {\r\n i++;\r\n }\r\n }\r\n }\r\n\r\n return output;\r\n }", "public static long binom(int n, int k) {\n if (k > n || n < 0 || k < 0) {\n return 0;\n }\n\n if (bin == null)\n bin = new ArrayList<ArrayList<Long>>();\n\n if (bin.size() <= n) {\n for (int i = bin.size(); i <= n; i++) {\n ArrayList<Long> newList = new ArrayList<Long>();\n bin.add(newList);\n }\n }\n\n if (bin.get(n).size() <= k) {\n for (int i = 0; i <= n; i++) {\n if (bin.get(i).size() <= k && bin.get(i).size() <= i) {\n for (int j = bin.get(i).size(); j <= k && j <= i; j++) {\n bin.get(i).add(Long.valueOf(0));\n }\n }\n }\n }\n\n return recBinom(n, k);\n }", "public List<List<Integer>> combinationSum3(int k, int n) {\n if (n < k || n > 45 || k > 9)\n return Collections.EMPTY_LIST;\n\n\n List<List<Integer>> response = new ArrayList<>();\n int candidates[] = {1, 2, 3, 4, 5, 6, 7, 8, 9};\n combinationSum3(candidates, k, 0, 0, n, response, new ArrayList<>());\n return response;\n }", "public int kth1(int k) {\n\t int[] dp = new int[k];\n\t int indexTwo = 0;\n\t int indexThree = 0; \n\t int numberOfTwo = 2;\n\t int numberOfThree = 3;\n\t int nextNumber = 1;\n\t dp[0] = 1;\n\t for (int i = 1 ; i < k ; i++) {\n\t nextNumber = Math.min(numberOfTwo, numberOfThree);\n\t dp[i] = nextNumber;\n\t if (nextNumber == numberOfTwo) {\n\t indexTwo += 1;\n\t numberOfTwo = dp[indexTwo] * 2;\n\t }\n\t if (nextNumber == numberOfThree) {\n\t indexThree +=1;\n\t numberOfThree = dp[indexThree] * 3;\n\t }\n\t }\n\t return nextNumber;\n\t }", "static int expt(int n,int k) {\n\t\tif (k==0)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn n*expt(n,k-1);\n\t}", "public List<List<Integer>> getCandidateA(int nStartVal, int k, int n) {\n \tint nMin; \r\n \tint nMax; \r\n \tint i;\r\n \tList<List<Integer>> lstlstCombSum = new ArrayList<List<Integer>>();\r\n List<Integer> lstResult = new ArrayList<Integer>();\r\n \t\r\n \tif (nStartVal > n || k == 0) return lstlstCombSum;\r\n \t\r\n \tif (k == 1) {\r\n \t\tif (n > 9) return lstlstCombSum;\r\n \t\tlstResult.add(n);\r\n \t\tlstlstCombSum.add(lstResult);\r\n \t\treturn lstlstCombSum;\r\n \t}\r\n \t\r\n \tnMin = nStartVal;\r\n \tnMax = (int) (n - (k-1)*k/2)/k; //Max value occurs when the remaining numbers are: x (the maxvalue), x+1, x+2 ... x+k-1 (the sum should be n)\r\n \t\r\n \tfor (i = nMin; i <= nMax; i++) { //Possible value of the first\r\n \t\tList<List<Integer>> lstlstCombSumTmp = new ArrayList<List<Integer>>();\r\n \t\tlstlstCombSumTmp = getCandidateA(i+1, k-1, n-i);\r\n \t\t\r\n \t\tif (lstlstCombSumTmp.isEmpty()) continue;\r\n \t\t\r\n \t\tfor (List<Integer> lstOneCombSum:lstlstCombSumTmp) {\r\n \t\t\tlstOneCombSum.add(0, i);\r\n \t\t\tlstlstCombSum.add(lstOneCombSum);\r\n \t\t}\r\n \t\t\r\n \t}\r\n \t\r\n \treturn lstlstCombSum;\r\n }", "public static int kInversePairs(int n, int k) {\n int mod = 1000000007;\n if (k > n * (n - 1) / 2 || k < 0) return 0;\n if (k == 0 || k == n * (n - 1) / 2) return 1;\n long[][] dp = new long[n + 1][k + 1];\n dp[2][0] = 1;\n dp[2][1] = 1;\n for (int i = 3; i <= n; i++) {\n dp[i][0] = 1;\n for (int j = 1; j <= Math.min(k, i * (i - 1) / 2); j++) {\n dp[i][j] = dp[i][j - 1] + dp[i - 1][j];\n if (j >= i) dp[i][j] -= dp[i - 1][j - i];\n dp[i][j] = (dp[i][j] + mod) % mod;\n }\n }\n return (int) dp[n][k];\n }", "static long sumOfGroup(int k) {\n long start = 1;\n long sum = 0;\n for(int i=1;i<=k;i++){\n long count = 0;\n sum = 0;\n while(count<i){\n if(start%2 == 1){\n sum = sum+start;\n count++;\n }\n start++;\n }\n }\n return sum;\n }", "public List<List<Integer>> combinationSum3(int k, int n) {\n List<List<Integer>> ans = new ArrayList<>();\n backtack(ans, new LinkedList<>(), k, n, 1);\n return ans;\n }", "public List<int[]> kSmallestPairs(int[] nums1, int[] nums2, int k) {\n return null;\n }", "public List<List<Integer>> kSmallestPairs(int[] num1, int[] num2, int k) {\n LinkedList<List<Integer>> result = new LinkedList<>();\n if(num1 == null || num2 == null || num1.length == 0 || num2.length == 0 || k == 0) { return result; }\n \n PriorityQueue<Node> queue = new PriorityQueue<Node>((e1, e2) -> e1.sum - e2.sum);\n for(int id = 0; id < num1.length; id++) {\n queue.offer(new Node(num1[id], num2[0], 0));\n }\n \n \n while(k-- > 0 && !queue.isEmpty()) {\n Node tmp = queue.poll();\n result.add(Arrays.asList(tmp.f1, tmp.f2));\n if(tmp.index == num2.length - 1) { continue; }\n queue.offer(new Node(tmp.f1, num2[tmp.index + 1], tmp.index + 1));\n }\n \n return result;\n }", "public List<Integer> topKFrequent(int[] nums, int k) {\n\n\tList<Integer>[] bucket = new List[nums.length + 1];\n\tMap<Integer, Integer> frequencyMap = new HashMap<Integer, Integer>();\n\n\tfor (int n : nums) {\n\t\tfrequencyMap.put(n, frequencyMap.getOrDefault(n, 0) + 1);\n\t}\n\n\t// assgin elements in bucket and frequency will serve as bucket index\n\tfor (int key : frequencyMap.keySet()) {\n\t\tint frequency = frequencyMap.get(key);\n\t\tif (bucket[frequency] == null) {\n\t\t\tbucket[frequency] = new ArrayList<>(); // imp step\n\t\t}\n\t\tbucket[frequency].add(key);\n\t}\n\n\tList<Integer> res = new ArrayList<>();\n\n\tfor (int pos = bucket.length - 1; pos >= 0 && res.size() < k; pos--) {\n\t\tif (bucket[pos] != null) {\n\t\t\tres.addAll(bucket[pos]);\n\t\t}\n\t}\n\treturn res;\n}", "public static int countPairs(List<Integer> arr, long k) {\n arr = arr.stream().sorted().collect(Collectors.toList());\n Map<String, Long> map = new HashMap<>();\n for (Integer i : arr) {\n if (i <= k && i <= (k - i) && arr.contains((int) k - i)) {\n map.put(i + \"_\" + (k - i), (long) (i + (i + 1)));\n }\n }\n return map.size();\n }", "private static int findPairs(int[] nums, int k) {\n if(nums == null || nums.length == 0 || k < 0)\n return 0;\n\n int count = 0;\n Map<Integer, Integer> map = new HashMap<>();\n for(int i : nums)\n map.put(i, map.getOrDefault(i, 0) + 1);\n\n for(Map.Entry<Integer, Integer> entry : map.entrySet()) {\n if(k == 0) {\n if(entry.getValue() >= 2)\n count++;\n } else {\n if(map.containsKey(entry.getKey() + k))\n count++;\n }\n }\n return count;\n }", "public static int findPairs(int[] nums, int k) {\n \tif(k<0){\n \t\treturn 0;\n \t}\n \t\n int re=0;\n Map<Integer, Integer> map=new HashMap<Integer, Integer>();\n for(int num: nums){\n \tif(map.containsKey(num)){\n \t\tif(k==0&&map.get(num)==1){\n \t\t\tre++;\n \t\t\tmap.put(num, 0);\n \t\t}\n \t\tcontinue;\n \t}\n \tif(map.containsKey(num+k)){\n \t\tre++;\n \t}\n \tif(map.containsKey(num-k)){\n \t\tre++;\n \t}\n \tmap.put(num, 1);\n }\n return re;\n }", "static int workbook(int n, int k, int[] arr) {\n int specialProblems = 0;\n int page = 1;\n for (int i = 0; i < n; i++) {\n for (int j = 1; j <= arr[i]; j++) {\n if (j == page)\n specialProblems++;\n if (j % k == 0)\n page++;\n }\n if (arr[i] % k != 0) page++;\n }\n return specialProblems;\n }", "public List<List<Integer>> combine(int n, int k) {\n List<List<Integer>> res = new ArrayList<>();\n dfs(res,1,k,new ArrayList<>(),n);\n return res;\n }", "private static List<Integer> getTopKFrequentElementsAverageCase(int[] nums, int k) {\n if(k > nums.length) {\n return new ArrayList<>();\n }\n\n Map<Integer, Integer> numToCount = new HashMap<>();\n\n for(int num : nums) {\n numToCount.put(num, numToCount.getOrDefault(num, 0) + 1);\n }\n\n PriorityQueue<Integer> queue = new PriorityQueue<>(new Comparator<Integer>() {\n @Override\n public int compare(Integer i1, Integer i2) {\n return numToCount.get(i1) - numToCount.get(i2);\n }\n });\n\n for(int num : numToCount.keySet()) {\n queue.add(num);\n\n if(queue.size() > k) {\n queue.poll();\n }\n }\n\n List<Integer> result = new ArrayList<>();\n\n while(!queue.isEmpty()) {\n result.add(queue.poll());\n }\n\n // queue will add the nums in reverse order\n Collections.reverse(result);\n return result;\n }", "public static int[] mostCompetitive(int[] nums, int k) {\n int[] copy = Arrays.copyOf(nums, nums.length); // 复制一个数组\n Arrays.sort(copy); // 排序\n for (int value : copy) { // 挨个顺序作为最小竞争子序列的头元素\n for (int j = 0; j < nums.length; j++) {\n if (nums[j] == value) {\n // 判断后续元素个数可够k长度\n if(k == 1){\n int[] ret = new int[1];\n ret[0] = nums[j];\n return ret;\n }\n if (j + k > nums.length) break;\n else if (j + k == nums.length) return Arrays.copyOfRange(nums, j, nums.length);\n else {\n int[] child = Arrays.copyOfRange(nums, j + 1, nums.length);\n int[] childMost = mostCompetitive(child, k - 1);\n System.out.println(Arrays.toString(childMost));\n // 取前k-1即为最优解\n int[] ret = new int[k];\n ret[0] = nums[j];\n System.arraycopy(childMost, 0, ret, 1, k - 1);\n System.out.println(Arrays.toString(ret));\n return ret;\n }\n }\n }\n }\n // [10, 23, 61, 62, 34, 41, 80, 25, 91, 43, 4, 75, 65, 13, 37, 41, 46, 90, 55, 8, 85, 61, 95, 71]\n // [10, 23, 61, 62, 34, 41, 80, 25, 91, 43, 4, 75, 65, 13, 37, 41, 46, 90, 55, 8, 85, 61, 95, 71]\n /* 2\n 4 3 3 5 4 9 6 3\n 3\n 3 5 4 9 6 3\n 2\n 5 4 9 6\n 1\n */\n return Arrays.copyOf(nums, k); // 这步不会执行\n }", "static int nonDivisibleSubset(int k, int[] S) {\n\t\tint result = 0;\n\n\t\tArrayList < ArrayList < Integer >> solutions = new ArrayList < ArrayList < Integer >>();\n\t\tArrayList < HashSet < Integer >> minSets = new ArrayList < HashSet < Integer >>();\n\n\t\tsolutions.add(new ArrayList <Integer > ( Arrays.asList ( S [ 0 ])));\n\t\tminSets.add (new HashSet <Integer > ( ));\n\t\tminSets.get(0).add ( S [ 0 ] % k);\n\n\n\t\t// Go over all the numbers\n\t\tfor ( int i = 1; i < S.length; i++ ){\n\t\t\tint n = S [ i ]; \n\t\t\tint m = S [ i ] % k; // Number we will add to all the elements of all the minSets.\n\n\t\t\t// Go over all the minSets.\n\t\t\t// For each one, check that each element plus m is not divisible by k.\n\n\t\t\tboolean workedForASet = false;\n\t\t\tfor ( int j = 0; j < minSets.size(); j++){\n\t\t\t\t// For each set, check all the elements of the set.\n\n\t\t\t\tHashSet < Integer > minSet = minSets.get(j);\n\t\t\t\tIterator < Integer > iter = minSet.iterator();\n\n\t\t\t\tboolean works = true;\n\t\t\t\twhile ( iter.hasNext() && works ){\n\t\t\t\t\tint num = iter.next();\n\t\t\t\t\tif ( (num + m) % k == 0 ){\n\t\t\t\t\t\tworks = false;\n\t\t\t\t\t\tworkedForASet = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ( works ){\n\t\t\t\t\tsolutions.get(j).add(n);\n\t\t\t\t\tminSet.add(m);\n\t\t\t\t}\n\t\t\t} \n\n\t\t\tif ( !workedForASet ){\n\t\t\t\tsolutions.add(new ArrayList <Integer > ( Arrays.asList ( n )));\n\t\t\t\tminSets.add (new HashSet <Integer > ( ));\n\t\t\t\tminSets.get (minSets.size() - 1).add ( m ); \n\t\t\t} \n\t\t}\n\n\t\t// Find the solution with the most elements.\n\n\t\tfor ( ArrayList <Integer > solution : solutions ){\n\t\t\tresult = Math.max ( result, solution.size() );\n\t\t\tSystem.out.println ( solution );\n\t\t}\n\n\t\tif ( result == 1 ) result = 0;\n\t\treturn result;\n\t}", "private static int solution1(int[] arr, int k) {\n\t\tif ( arr == null || arr.length < k ) {\n\t\t\treturn Integer.MIN_VALUE;\n\t\t}\n\t\t\n\t\tint[] a = Arrays.copyOfRange( arr, 0, arr.length );\n\t\tdisplayArray(a);\n\t\tArrays.sort(a);\n\t\tdisplayArray(a);\n\t\t\n\t\treturn a[a.length - k];\n\t}", "public String getPermutation(int n, int k) {\n if(n<1)\n return null;\n List<Long> list=new LinkedList<Long>();\n for(long i=1;i<=n;i++){\n list.add(i);\n }\n long kk=k-1;\n StringBuilder res=new StringBuilder();\n long total=1;\n for(long i=2;i<n;i++){\n total*=i;\n }\n for(long i=n-1;i>=0;i--){\n res.append(list.remove((int)(kk/total)));\n kk=kk%total;\n if(i>0)\n total=total/i;\n }\n return res.toString();\n }", "public static int numberOfPairs(int[] a, long k) {\n\t\t\n\t\tArrayList<Integer> list = new ArrayList<>();\n\t\t\n\t\tfor(int x : a) {\n\t\t\tlist.add(x);\n\t\t}\n\n\t\tArrayList<String> distinct = new ArrayList<>();\n\t\t\n\t\tfor(Integer curr : list) {\n\t\t\t\n\t\t\tint indexCurr = list.indexOf(curr);\n\t\t\t\n\t\t\tint anotherOne = (int) (k - curr);\n\t\t\t\n\t\t\tlist.set(indexCurr, curr*(-1));\n\t\t\t\n\t\t\tif(list.contains(anotherOne)) {\n\t\t\t\t\n\t\t\t\tint indexAnotherOne = list.indexOf(anotherOne);\n\t\t\t\t\n\t\t\t\tif(indexAnotherOne!=indexCurr) {\n\t\t\t\t\tString Way1 = curr+\"\"+anotherOne;\n\t\t\t\t\tString Way2 = anotherOne+\"\"+curr;\n\t\t\t\t\tif(!distinct.contains(Way1) && !distinct.contains(Way2)) {\n\t\t\t\t\t\tdistinct.add(Way1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlist.set(indexCurr, curr);\n\t\t\n\t\t}\n\t\t\n\t\treturn distinct.size();\n\t\t\n }", "public List<Integer> pickRandom(int n, int k) {\n\t\tList<Integer> wynik = new ArrayList<Integer>();\n\t Random random = new Random();\n\t Set<Integer> picked = new HashSet<>();\n\t while(picked.size() < n) {\n\t \tint sizeNaPoczatku = picked.size();\n\t \tint znaleziona = random.nextInt(k);\n\t picked.add(znaleziona);\n\t int sizeNaKoncu = picked.size();\n\t if(sizeNaPoczatku != sizeNaKoncu) {\n\t \twynik.add(znaleziona);\n\t }\n\t }\n\t return wynik;\n\t}", "public List<Integer> topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map = new HashMap<>();\n for (int num : nums) {\n map.put(num, map.getOrDefault(num, 0) + 1);\n }\n\n List<Integer>[] bucket = new List[nums.length + 1];\n for (int num : map.keySet()) {\n int freq = map.get(num);\n if (bucket[freq] == null) {\n bucket[freq] = new ArrayList<>();\n }\n bucket[freq].add(num);\n }\n List<Integer> res = new ArrayList<>();\n for (int i = bucket.length - 1; i >= 0 && res.size() < k; i--) {\n if (bucket[i] != null) {\n res.addAll(bucket[i]);\n }\n }\n return res;\n }", "private static int getSmallerThanOrEqualToKCount(int[] a, int k){\n int left=0, right=a.length-1;\n while(left<right){\n int mid=left+(right+1-left)/2;\n if(a[mid]>k){\n right=mid-1;\n } else{\n left=mid;\n }\n }\n return left-0+1;\n }", "private static int[] topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map = new HashMap<>();\n for (int n: nums){\n map.put(n, map.getOrDefault(n, 0) + 1);\n }\n\n // Step2: Build max heap.\n PriorityQueue<Integer> pq = new PriorityQueue<>();\n for (int value: map.values()){\n pq.add(value);\n if (pq.size() > k){\n pq.poll();\n }\n }\n\n // Step3: Build result list.\n ArrayList<Integer> retList = new ArrayList<>();\n for (int n: pq){\n for (Map.Entry<Integer, Integer> entry: map.entrySet()){\n if (n == entry.getValue()){\n retList.add(entry.getKey());\n }\n }\n }\n\n return retList.stream().distinct().mapToInt(x -> x).toArray();\n }", "public int partitionArray(int[] nums, int k) {\n Arrays.sort(nums);\n \n int min = nums[0], max = nums[0], count = 1;\n \n for(int i=0; i<nums.length; i++){\n \n // taking max and min for each group\n min = Math.min(min, nums[i]);\n max = Math.max(max, nums[i]);\n \n // if the difference between max and min is more than k in a group a new group is needed\n if(max - min > k){\n count++;\n // reseting the max and min for the new group\n max = min = nums[i];\n }\n }\n \n return count;\n }", "public int solution2(int[] nums, int k) {\n PriorityQueue<Integer> pq = new PriorityQueue<Integer>();\n \n for (int i : nums) {\n pq.offer(i);\n \n if (pq.size() > k) {\n pq.poll();\n }\n }\n \n \n return pq.peek();\n }", "public static int[] linearOdd(int k)\n\t{\t\t\n\t\tnumOfCalls++;\t\t\n\t\tint[] A = new int[3]; //an array A[0] is kth,A[1] is k-1,A[2] is k-2\n\t\tint i = 0, j = 0, m=0;\t\t\n\t\tif (k == 1) //(base)\n\t\t{\n\t\t\ti=1;\n\t\t\tm=1;\n\t\t\tj=1;\t\t\t\n\t\t\tA[0] = i; A[1] = j;A[2]=m;\n\t\t\tOddnumber=1;\t\n\t\t\treturn (A);\t\t// this will return (1,1,1) \n\t\t}\n\t\telse if( k==2 || k==3){ \n\t\t\tA = linearOdd(k - 1);\n\t\t\ti=1;\n\t\t\tm=1;\n\t\t\tj=1;\t\t\t\n\t\t\tA[0] = i; A[1] = j;A[2]=m;\n\t\t\tOddnumber=1;\n\t\t\treturn (A);\t\t// this will return (1,1,1)\n\t\t}\n\t\telse\n\t\t{\t\t\t\n\t\t\tA = linearOdd(k - 1); //recursion to get kn-1,kn-2,kn-3\n\t\t\ti = A[0];\n\t\t\tj = A[1];\n\t\t\tm = A[2];\n\t\t\tA[0] = i + j +m;\n\t\t\tA[1] = i;\n\t\t\tA[2] = j;\n\t\t\tOddnumber=i+j+m;\n\t\t\treturn (A);\t\t// this will return (i+j+m, i,j)\n\t\t}\n\t}", "public List<Integer> topKFrequent3(int[] nums, int k) {\n HashMap<Integer, Integer> map = new HashMap<>();\n for (int num : nums) {\n map.put(num, map.getOrDefault(num, 0) + 1);\n }\n\n TreeMap<Integer, List<Integer>> freqMap = new TreeMap<>();\n for (int num : map.keySet()) {\n int freq = map.get(num);\n if (freqMap.containsKey(freq)) {\n freqMap.get(freq).add(num);\n } else {\n freqMap.put(freq, new LinkedList<>());\n freqMap.get(freq).add(num);\n }\n }\n\n List<Integer> res = new ArrayList<>();\n while (res.size() < k) {\n Map.Entry<Integer, List<Integer>> entry = freqMap.pollLastEntry();\n res.addAll(entry.getValue());\n }\n return res;\n }", "private List<List<Node>> combinationHelper(int k, int n) {\n\t\tList<List<Node>> res = new ArrayList<List<Node>>();\n\t\tList<int[]> combRes = combinationHelperImpl(k, n);\n\t\tfor (int[] elem : combRes) {\n\t\t\tArrays.sort(elem);\n\t\t\tList<Node> tmp = new ArrayList<Node>();\n\t\t\tfor (int i : elem) {\n\t\t\t\ttmp.add(queryNodes.get(i));\n\t\t\t}\n\t\t\tres.add(new ArrayList<Node>(tmp));\n\t\t}\n\t\treturn res;\n\t}", "public List<Integer> addToArrayForm(int[] nums, int k) {\n List<Integer> result = new LinkedList<>();\n int i = nums.length - 1;\n int carry = 0;\n while (i >= 0 || k > 0 || carry > 0) {\n int sum = carry;\n sum += i >= 0 ? nums[i--] : 0;\n sum += k % 10;\n result.add(0, sum % 10);\n carry = sum / 10;\n k /= 10;\n }\n return result;\n }", "private static void findKClosestNumbers(int[] arr, int key, int k) {\n\n\t\tPriorityQueue<Integer> pq;\n\t\tint max = findMaxInArr(arr);\n\t\tint min = findMinInArr(arr);\n\n\t\tint maxDiff = Math.abs(key - max);\n\t\tint minDiff = Math.abs(key - min);\n\n\t\tif (maxDiff <= minDiff) {\n\t\t\tpq = new PriorityQueue<>(Collections.reverseOrder());\n\t\t} else {\n\t\t\tpq = new PriorityQueue<>();\n\t\t}\n\n\t\tfor (int e : arr) {\n\t\t\tpq.add(e);\n\t\t}\n\n\t\tint c = 0;\n\n\t\twhile (c < k) {\n\t\t\tSystem.out.println(pq.remove());\n\t\t\tc++;\n\t\t}\n\n\t}", "private static <Key extends Comparable<Key> > void sink(Key [] a,int k, int n){\n while(2*k<=n){\n int max=2*k;\n if(max<n &&less(a, max, max+1)) max++;\n if(!less(a,k,max)) break; \n exch(a,max,k);\n k=max;\n }\n }", "public int digitCounts(int k, int n) {\n if (k <= 0 || n < 0) {\n return 0;\n }\n if (n == 0) {\n return 1;\n }\n// int res=0;\n ArrayList<Integer> arrayList = new ArrayList<>();\n for (int i = 0; i <= k; i++) {\n\n if ((i + \"\").indexOf(n + \"\") != -1) {\n arrayList.add(i);\n }\n }\n System.out.println(Arrays.asList(arrayList) + \" have \" + (arrayList.toString().length() - arrayList.toString().replace(n + \"\", \"\").length()) + \" n ( n = \" + n + \" )\");\n return arrayList.size();\n }", "private static List<Integer> getTopKFrequentElementsBestCase(int[] nums, int k) {\n if(k > nums.length) {\n return new ArrayList<>();\n }\n\n Map<Integer, Integer> numToCount = new HashMap<>();\n int max = 0;\n for(int i = 0; i < nums.length; i++) {\n numToCount.put(nums[i], numToCount.getOrDefault(nums[i], 0) + 1);\n max = Math.max(max, numToCount.get(nums[i]));\n }\n\n List<Integer>[] numsPerFrequency = new ArrayList[max + 1];\n for(int i = 1; i <= max; i++) {\n numsPerFrequency[i] = new ArrayList<>();\n }\n\n for(Map.Entry<Integer, Integer> entry : numToCount.entrySet()) {\n numsPerFrequency[entry.getValue()].add(entry.getKey());\n }\n\n List<Integer> result = new ArrayList<>();\n\n for(int i = max; i >= 0; i--) {\n List<Integer> numsWithThisFreq = numsPerFrequency[i];\n\n for(int num : numsWithThisFreq) {\n result.add(num);\n if(result.size() == k) {\n return result;\n }\n }\n }\n\n return new ArrayList<>();\n }", "public List<List<Integer>> combineRecursive(int n, int k) {\n if (k > n) return Collections.emptyList();\n List<List<Integer>> result = new ArrayList<>();\n List<Integer> elem = new ArrayList<>();\n combine(n, k, 1, elem, result);\n return result;\n }", "public List<Integer> addToArrayForm(int[] nums, int k) {\n List<Integer> result = new ArrayList<>();\n int i = nums.length - 1;\n int carry = 0;\n while (i >= 0 || k > 0 || carry > 0) {\n int sum = carry;\n sum += i >= 0 ? nums[i--] : 0;\n sum += k % 10;\n result.add(sum % 10);\n carry = sum / 10;\n k /= 10;\n }\n Collections.reverse(result);\n return result;\n }", "private static int solution3( int[] arr, int k) {\n\t\tif ( arr == null || arr.length < k ) {\n\t\t\treturn Integer.MIN_VALUE;\n\t\t}\n\t\t\n\t\t// Store the first k elements in a temporary array\n\t\tint[] tmp = Arrays.copyOfRange( arr, 0, k);\n\t\tint[] a = Arrays.copyOfRange( arr, 0, arr.length);\n\t\tint res = Integer.MAX_VALUE;\n\t\t\n\t\t\n\t\t// Loop for n-k times: each times for element in a[k] to a[n-1], find the largest to switch with tmp[j] for j = 0 to k-1\n\t\tfor ( int i = 0; i < k; ++i ) {\n\t\t\tint max = tmp[i];\n\t\t\tint index = i;\n\t\t\t\n\t\t\tfor ( int j = k; j < a.length; ++j ) {\n\t\t\t\tif ( a[j] > max ) {\n\t\t\t\t\tmax = a[j];\n\t\t\t\t\tindex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif ( index != i ) {\n\t\t\t\ta[index] = tmp[i];\n\t\t\t\ttmp[i] = max;\n\t\t\t}\n\t\t\t\n\t\t\tres = Math.min(res, tmp[i]);\n\t\t}\n\t\t\n\t\t\n\t\treturn res;\n\t}", "public final static void main(String[] args) {\n\t\tfinal int n = 8;\n\t\tfinal int k = 4;\n\n\t\tStreamSupport.stream(\n\t\t\t\tnew PermutationSpliterator(Selection.of(n, k)),\n\t\t\t\tfalse)\n\t\t\t\t.forEachOrdered(a -> {});\n\n\t\tfor (int cur = 0; cur < 70; cur++) {\n\t\t\tlong tCur = cur;\n\t\t\tfinal int x = (n - k)+1;\n\t\t\tint i = k;\n\t\t\tfinal int[] array = new int[k];\n\t\t\twhile (i >= 1) {\n\t\t\t\tarray[i-1] = (int) (tCur % x);\n\t\t\t\ttCur /= i--;\n\t\t\t}\n\t\t}\n\t}", "public int[] getLeastNumbers2(int[] arr, int k) {\n if (k == 0) {\n return new int[0];\n }\n PriorityQueue<Integer> queue = new PriorityQueue<>((n1, n2) -> n2 - n1);\n for (int i = 0; i < k; i++) {\n queue.add(arr[i]);\n }\n for (int i = k; i < arr.length; i++) {\n if (arr[i] < queue.peek()) {\n queue.poll();\n queue.add(arr[i]);\n }\n }\n int[] results = new int[k];\n int i = 0;\n while (!queue.isEmpty()) {\n results[i++] = queue.poll();\n }\n return results;\n }", "public static int[] maximumFromConsecutiveKElements(int[] a, int k) {\r\n int length = a.length;\r\n int outputLength = length - k + 1;\r\n int[] maximums = new int[outputLength];\r\n\r\n // O(n)\r\n for (int i = 0; i < outputLength; i++) {\r\n int currentMax = Integer.MIN_VALUE;\r\n // O(k)\r\n for (int j = 0; j < k; j++) {\r\n int currentValue = a[i + j];\r\n if (currentValue > currentMax) {\r\n currentMax = currentValue;\r\n }\r\n }\r\n maximums[i] = currentMax;\r\n }\r\n\r\n return maximums;\r\n }", "private static BigInteger binomial(int n, int k) {\n BigInteger ret = new BigInteger(\"1\");\n if (k > n) {\n return BigInteger.ZERO;\n } else {\n \tif (binom[n][k] != null) {\n \t\treturn binom[n][k];\n \t}\n if (k > n / 2) {\n k = n - k;\n }\n // (n choose i+1) = (n choose i) * (n - i) / (i + 1)\n for (int i = 0; i < k; i++) {\n ret = ret.multiply(BigInteger.valueOf(n - i)).divide(BigInteger.valueOf(i + 1));\n }\n }\n return binom[n][k] = ret;\n }", "public static List<List<Integer>> gen_size_k_candidate(Map<List<Integer>, Float> oldCandidate, Integer k){\n\n List<List<Integer>> sizeKPlusCandidate = new ArrayList<>();\n\n // size 2 candidate\n if( k <= 1){\n List<Integer> size1Candidate = new ArrayList<>();\n for (List<Integer> size1: oldCandidate.keySet()){\n size1Candidate.addAll(size1);\n }\n // sort\n Collections.sort(size1Candidate);\n // Generate\n sizeKPlusCandidate = CombinationGenerator.findsort(size1Candidate, 2);\n\n }else {\n List<List<Integer>> oldList = new ArrayList<>();\n oldList.addAll(oldCandidate.keySet());\n\n for(int iOld = 0; iOld < oldList.size()-1; iOld ++){\n for(int jOld =iOld+1; jOld < oldList.size(); jOld++){\n // check k element of feature is the same\n List<Integer> formerList = new ArrayList<>();\n List<Integer> laterList = new ArrayList<>();\n\n for (int fl=0; fl < k-1; fl++){\n formerList.add(oldList.get(iOld).get(fl));\n laterList.add(oldList.get(jOld).get(fl));\n }\n\n if (formerList.equals(laterList)){\n\n HashSet<Integer> tempCandidate = new HashSet<>();\n\n tempCandidate.addAll(oldList.get(iOld));\n tempCandidate.addAll(oldList.get(jOld));\n\n List<Integer> tempCandidateList = new ArrayList<>();\n tempCandidateList.addAll(tempCandidate);\n\n Collections.sort(tempCandidateList);\n // Prunning\n List<List<Integer>> prunningCandidate = CombinationGenerator.findsort(tempCandidateList, k);\n\n int flag = 0;\n for(List<Integer> checkPrun: prunningCandidate){\n if(oldCandidate.containsKey(checkPrun)){\n flag++;\n }\n }\n if (flag == k+1){\n sizeKPlusCandidate.add(tempCandidateList);\n }\n }\n }\n }\n }\n return sizeKPlusCandidate;\n }", "private static ArrayList<ArrayList<Integer>> generatePartition(int n) {\n \tArrayList<ArrayList<Integer>> partitions = new ArrayList<>();\n \t// store the partition in non-increasing order, each value should be larger than 1\n \tInteger[] partition = new Integer[n];\n \t// the first partition is n itself\n \tpartition[0] = n;\n \tpartitions.add(new ArrayList<Integer>(Arrays.asList(Arrays.copyOf(partition, 1))));\n \t// if all value are 2, then it can not partition any further\n \tint k = 0;\n \twhile (partition[0] > 2) {\n \t\t// generate next partition\n \t\tint remain = 0;\n \t\t// find the rightmost value which is larger than 2\n \t\twhile (partition[k] < 3) {\n \t\t\tremain += partition[k];\n \t\t\tk--;\n \t\t}\n \t\tpartition[k]--;\n \t\tremain++;\n \t\t// if remain is more, divide it in different values of size partition[k]\n \t\twhile (remain > partition[k]) {\n \t\t\tpartition[k + 1] = partition[k];\n \t\t\tremain -= partition[k];\n \t\t\tk++;\n \t\t}\n \t\tpartition[k + 1] = remain;\n \t\tk++;\n \t\t// ignore all partitions contain value 1\n \t\tif (partition[k] > 1) {\n \t\t\tpartitions.add(new ArrayList<Integer>(Arrays.asList(Arrays.copyOf(partition, k + 1))));\n \t\t}\n \t}\n \treturn partitions;\n }", "private void dfs(List<List<Integer>> res, List<Integer> tmp, int n, int k, int start) {\n\t\tif(tmp.size() == k) {\n\t\t\tres.add(new ArrayList<Integer>(tmp));\n\t\t\treturn;\n\t\t}\n\t\tfor(int i=start;i<=n;i++) {\n\t\t\t//i <= (n - (k - tmp.size()) + 1) 剪枝,当可选的数已经不够时,直接剪枝\n\t\t\ttmp.add(i);\n\t\t\tdfs(res,tmp,n,k,i+1);//i+1,别老忘写+1\n\t\t\ttmp.remove(tmp.size()-1);\n\t\t}\n\t}", "public static ArrayList<Integer> kLargest(int input[], int k) {\n\tMaxPQComparator maxPQComparator = new MaxPQComparator();\n\t\tPriorityQueue<Integer> pQueue = new PriorityQueue<>(maxPQComparator);\n\t\tArrayList<Integer> output = new ArrayList<>();\n\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\tpQueue.add(input[i]);\n\t\t}\n\t\twhile (pQueue.size() != k) {\n\t\t\tpQueue.remove();\n\t\t}\n\t\twhile (!pQueue.isEmpty()) {\n\t\t\toutput.add(pQueue.remove());\n\t\t}\n\t\treturn output;\t\n\t}", "public int[] topKFrequent(int[] nums, int k) {\n Map<Integer, Integer> map = new HashMap();\n for(int num : nums) {\n map.put(num, map.getOrDefault(num, 0) + 1);\n }\n\n /*\n * List<int[]> list\n * List of int[]\n\n * List<Integer>[] array\n * Array of List<Integer>\n */\n List<Integer>[] bucket = new ArrayList[nums.length + 1];\n for(int key : map.keySet()) {\n int freq = map.get(key);\n\n if(bucket[freq] == null) {\n List<Integer> list = new ArrayList();\n list.add(key);\n\n bucket[freq] = list;\n } else {\n bucket[freq].add(key);\n }\n }\n\n int[] result = new int[k];\n int index = 0;\n for(int i = bucket.length - 1; i >= 0; i--) {\n if(bucket[i] != null) {\n for(int num : bucket[i]) {\n result[index] = num;\n index++;\n\n if(index == k) {\n return result;\n }\n }\n }\n }\n\n return result;\n }", "private void helper(int[] S, int k, int p, ArrayList<ArrayList<Integer>> result, ArrayList<Integer> set) {\n if(k==0) {\n result.add(set);\n return;\n }\n if(S.length-p>=k) {\n ArrayList<Integer> newSet = new ArrayList<Integer>(set);\n newSet.add(S[p]);\n helper(S, k-1, p+1, result, newSet); //if S[p] be choosen\n helper(S, k, p+1, result, set); // if S[p] not be choosen\n }\n\n }", "public int generate(int k) {\n int result = 0;\n\n for (int i = 0; i < k; i++) {\n result = 2 * result + step();\n }\n return result;\n }", "public int findKthNumber(int m, int n, int k) {\n int low = 1, high = m * n + 1, mid;\n\n while (low < high) {\n mid = low + ((high - low) >> 1);\n if (count(mid, m, n) >= k) {\n high = mid;\n } else {\n low = mid + 1;\n }\n }\n return high;\n }", "static int eggDrop(int n, int k) {\r\n if(k == 0 || k == 1) {\r\n return k;\r\n }\r\n\r\n // We need k trials for one egg \r\n // and k floors \r\n if(n == 1) {\r\n return k;\r\n }\r\n \r\n int min = Integer.MAX_VALUE;\r\n int i, res;\r\n // Consider all droppings from \r\n //1st floor to kth floor and \r\n // return the minimum of these \r\n // values plus 1.\r\n for(i = 1; i <= k; i++) { // Mistake 1 : Start for loop from 1 instead of 0\r\n res = Math.max(eggDrop(n-1, i-1), eggDrop(n, k-i));\r\n if(res < min) {\r\n min = res;\r\n }\r\n }\r\n\r\n return min + 1;\r\n }", "private static int choose(int n, int k) {\n return factorial(n) / (factorial(k) * factorial(n - k));\n }", "private static List<Integer> findKLargestElement(List<Integer> a, int k) {\n PriorityQueue<Integer> minHeap = new PriorityQueue<Integer>(k);\n int i = 0;\n while (i <= k) {\n minHeap.add(a.get(i)); // O(k)\n i++;\n }\n\n // Not insert rest of the n-k elements .. slowly..\n // We are trying to store all k greatest numbers in heap..\n // with min heap telling us which is the smallest among the k largest.\n for (i = k; i < a.size(); i++) {\n if (a.get(i) > minHeap.peek()) {\n minHeap.remove();\n minHeap.add(a.get(i));\n }\n }\n return Arrays.asList(minHeap.toArray(new Integer[k]));\n }", "public static int numSubarrayProductLessThanK(int[] nums, int k) {\n if(k <= 1) return 0;\n int prod = 1;\n int left = 0;\n int ans = 0;\n \n for (int right = 0; right < nums.length; right++) {\n prod *= nums[right];\n \n while(prod >= k) {\n prod /= nums[left];\n left++;\n }\n ans += right - left + 1; \n }\n \n return ans;\n }", "static void binomialCoeff(int C[][], int n, int k)\n {\n for (int i = 0; i <= n; i++) {\n for (int j = 0; j <= Math.min(i, k); j++)\n {\n\n // Base Cases\n if (j == 0 || j == i)\n C[i][j] = 1;\n\n // Calculate value using previously\n // stored values\n else\n C[i][j] = C[i - 1][j - 1] +\n C[i - 1][j];\n }\n }\n }", "public static String KthPermutation(int n, int k){\n if(n > 9 || k <= 0) return \"\";\n if(n == 1) return \"1\";\n\n int[] factors = new int[n + 1];\n factors[0] = 1;\n for(int i = 1; i <= n; i++) factors[i] = factors[i - 1] * i;\n\n k = k - 1;\n k = k % factors[n];\n\n StringBuilder nums = new StringBuilder(\"123456789\");\n StringBuilder permutation = new StringBuilder();\n for(int i = n - 1; i >= 0; i--){\n int curNum = k / factors[i];\n permutation.append(nums.charAt(curNum));\n nums.deleteCharAt(curNum);\n k = k - curNum * factors[i];\n }\n return permutation.toString();\n }", "public int KthInArrays(int[][] arrays, int k) {\n return 0;\n }", "public static int getSpectators(int n, int k, int t){\n\t if( t <= k && t <= n)\n\t {\n\t return (t);\n\t }\n\t else if(t <= n) \n\t {\n \t return (k);\n\t } \n\t else \n\t {\n\t\treturn(Math.max(0, k - (t - n)));\n\t }\n\t}", "private void subsets(int[] S, int k, ArrayList<ArrayList<Integer>> result) {\n ArrayList<Integer> set = new ArrayList<Integer>();\n helper(S, k, 0, result, set);\n }", "public int count(int n, int k)\n {\n\n long MOD = 1000000007;\n long res;\n\n res = (long)Math.pow(k, n);\n Map<Integer, Integer> divisor = new HashMap<>();\n\n long count = 0;\n for(int i = 2; i <= k; i++) {\n if(!(i % 2 == 0 && divisor.containsKey(i / 2))) {\n int div = divisorCount(i);\n divisor.put(i, div);\n count += div - 1;\n }\n else{\n int log2 = 31 - Integer.numberOfLeadingZeros(i);\n int div;\n if(Math.pow(2, log2) == i){\n div = divisor.get(i / 2) + 1;\n\n }\n else\n div = divisor.get(i / 2) * 2;\n\n divisor.put(i, div);\n count += div - 1;\n\n }\n\n }\n\n res -= (n - 1) * Math.pow(k, n - 2) * count;\n return (int)(res % MOD);\n }", "private static int findKthSmallestElementUsingQuickSelect(int[] a, int low, int high, int k) {\n\n //CHECKS\n //In your original method check if array is null or empty\n //k is from 1 to n\n\n //If k is smaller than number of elements in array\n if (k > 0 && k <= a.length) {\n\n int pi = partition(a, low, high);\n\n if (pi == k - 1) {\n return a[pi];\n }\n if (pi > k - 1) {\n return findKthSmallestElementUsingQuickSelect(a, low, pi - 1, k);\n } else {\n return findKthSmallestElementUsingQuickSelect(a, pi + 1, high, k);\n }\n }\n return Integer.MAX_VALUE;\n }", "public static void main(String[] args){\n int n;int k;\n Scanner sc=new Scanner(System.in);\n n=sc.nextInt();\n k=sc.nextInt();\n int[] a=new int[n];\n int[] reMain=new int[k];\n int num=0;\n for(int i=0;i<k;i++){\n reMain[i]=0;\n }\n for(int i=0;i<n;i++){\n int d=sc.nextInt()%k;\n reMain[d]++;\n }\n int p=0;\n if(k%2==0)\n p=k/2;\n else p=(k+1)/2;\n for(int i=1;i<p;i++){\n if(reMain[i]>reMain[k-i])\n num+=reMain[i];\n else\n num+=reMain[k-i];\n \n }\n if(reMain[p]%2==1 && k%2==0)\n num++;\n if(k==2)\n num=reMain[1];\n \n \n System.out.println(num);\n\t}", "@Override \n public int binom(int n, int k){\n this.binumInputCheck(n, k);\n if ( n == 0 || k == 0 || n == k )\n return 1;\n \n if(k > n/2)\n k = n - k; \n \n if(this.saveArr[n][k] != 0)\n return this.saveArr[n][k];\n \n this.saveArr[n][k] = binom(n-1, k-1) + binom(n-1, k);\n return this.saveArr[n][k];\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint K = scan.nextInt();\n\t\tint[] num = new int[N];\n\t\tfor (int i=0;i<N;i++) {\n\t\t\tnum[i] = scan.nextInt();\n\t\t\tif (num[i] == 1) {\n\t\t\t\tlist.add(i);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i=0;i<=list.size()-K;i++) {\n\t\t\tSystem.out.println(list.get(i+K-1)-list.get(i)+1);\n\t\t\tresult.add(list.get(i+K-1)-list.get(i)+1);\n\t\t}\n\t\tCollections.sort(result);\n\t\tif (result.size()==0) System.out.println(\"-1\");\n\t\telse System.out.println(result.get(0));\n\t}", "public List<Integer> topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map=new HashMap<Integer, Integer>();\n for(int num:nums)\n {\n if(map.containsKey(num))\n map.put(num, map.get(num)+1);\n else\n map.put(num,1);\n }\n\t\t//make min heap\n PriorityQueue<Node> pq=new PriorityQueue<Node>(new Comparator<Node>(){\n public int compare(Node a, Node b)\n {\n return a.count-b.count;\n }\n });\n for(int key:map.keySet())\n {\n Node n=new Node(key, map.get(key));\n pq.offer(n);\n if(pq.size()>k)\n pq.poll();\n }\n List<Integer> list=new ArrayList<Integer>();\n while(!pq.isEmpty())\n {\n list.add(pq.poll().n);\n }\n \n return list;\n }", "public static Set<Set<Object>> createSubsets(int n, int k) {\n Set<Set<Object>> power_set = new HashSet<Set<Object>>(); //power set\n Set<Set<Object>> set_of_subsets = new HashSet<Set<Object>>(); //only \"tickets\" set\n List<Object> set_list = new ArrayList<Object>(); //set\n \n double power_set_size;\n int mask;\n \n //determine the size of a power set\n power_set_size = Math.pow(2, n);\n \n //create a list containing all numbers from 1 to n\n for (int i = 0; i < n; i++) {\n set_list.add(i+1);\n }\n \n //create a powerset based on the set\n for(int i = 0; i < power_set_size; i++){\n \n Set<Object> subset = new HashSet<Object>();\n mask = 1;\n \n for(int j = 0; j < n; j++){\n \n if((mask & i) != 0){\n subset.add(set_list.get(j));\n }\n mask = mask << 1;\n }\n power_set.add(subset);\n }\n \n //pick all the subsets from a power set that are size k\n for(Set<Object> curr_subset : power_set) {\n if(curr_subset.size() == k) {\n set_of_subsets.add(curr_subset);\n }\n }\n return set_of_subsets;\n }", "public BigInteger calculatePermutations(long n, long k) {\n\t\treturn Factorial.factorial(n).divide(Factorial.factorial(n-k));\n\t}", "public int solution1(int[] nums, int k) {\n final int N = nums.length;\n Arrays.sort(nums);\n \n return nums[N-k];\n }", "public int kth(int k) {\n\t int counter = 0;\n\t int begin = 0;\n\t while (counter < k) {\n\t begin++;\n\t if (check(begin) == 1) {\n\t counter++;\n\t }\n\t }\n\t return begin;\n\t }", "public static void main(String[] args) {\n\t\n\t Scanner in = new Scanner(System.in);\n\t int n = in.nextInt();\n\t int k = in.nextInt();\n\t int a[] = new int[n];\n\t for(int a_i=0; a_i < n; a_i++){\n\t a[a_i] = in.nextInt();\n\t }\n\t int count=0;\n\t for(int a1=0;a1<n-1;a1++)\n\t {\n\t \tfor(int b=1;b<n;b++)\n\t \t{\n\t \t if(a[a1]+a[b]%3==0)\n\t \t {\n\t \t\t count++;\n\t \t }\n\t \t}\n\t }\n\t System.out.println(count);\n\n\t}", "private static int select (int[] arr, int p, int n, int k){\n //threshold of 17\n if(n < 17 ){\n insertionSort(arr, p, p+n-1);\n return arr[p + n - k];\n }else{\n int q = randomizedPartition(arr,p,p+n-1);\n int left = q-p;\n int right = n - left - 1;\n if(right >= k)\n return select(arr,q+1,right,k);\n else if(right + 1 == k )\n return arr[q];\n else\n return select(arr,p,left,k-right-1);\n }\n }", "public void rotate(int[] nums, int k) {\n\t\tif(nums == null || nums.length == 0 || k <= 0){\n\t\t\treturn;\n\t\t}\n\t\tint n = nums.length, count = 0;\n\t\tk %= n;\n\t\tfor(int start = 0; count < n; start++){\n\t\t\tint cur = start;\n\t\t\tint prev = nums[start];\n\t\t\tdo{\n\t\t\t\tint next = (cur + k) % n;\n\t\t\t\tint temp = nums[next];\n\t\t\t\tnums[next] = prev;\n\t\t\t\tcur = next;\n\t\t\t\tprev = temp;\n\t\t\t\tcount++;\n\t\t\t}while(start != cur);\n\t\t}\n\t}", "public void findSubSeqWithGivenSum(int[] a, int n, int k, List<Integer> chosen) {\n\t\t// base case\n\t\t// Remaining sum == 0\n\t\tif (k == 0) {\n\t\t\tSystem.out.println(\"Combination found : \" + chosen);\n\t\t\treturn;\n\t\t}\n\n\t\t// if remaining elements == 0\n\t\tif (n == -1) {\n\t\t\tSystem.out.println(\"Hitting end\");\n\t\t\treturn;\n\t\t}\n\n\t\tList<Integer> withCurrent = new ArrayList<>();\n\t\twithCurrent.addAll(chosen);\n\t\twithCurrent.add(a[n]);\n\n\t\tList<Integer> withoutCurrent = new ArrayList<>();\n\t\twithoutCurrent.addAll(chosen);\n\n\t\t// If a[n] is chosen\n\t\tif (a[n] <= k)\n\t\t\tfindSubSeqWithGivenSum(a, n - 1, k - a[n], withCurrent);\n\n\t\tfindSubSeqWithGivenSum(a, n - 1, k, withoutCurrent);\n\n\t}", "public static List<Integer> topKFrequent(int[] nums, int k) {\n \tMap<Integer, Integer> map=new HashMap<Integer, Integer>();\n \tfor(int i=0; i<nums.length; i++){\n \t\tif(!map.containsKey(nums[i])){\n \t\t\tmap.put(nums[i], 1);\n \t\t}else{\n \t\t\tmap.put(nums[i], 1+map.get(nums[i]));\n \t\t}\n \t}\n \tList<Map.Entry<Integer, Integer>> list=new ArrayList<Map.Entry<Integer, Integer>>(map.entrySet());\n \tCollections.sort(list, new Comparator<Map.Entry<Integer, Integer>>(){\n \t\tpublic int compare( Map.Entry<Integer, Integer> o1, Map.Entry<Integer, Integer> o2){\n \t\t\treturn o2.getValue().compareTo(o1.getValue());\n \t\t}\n \t});\n \tList<Integer> re=new ArrayList<Integer>();\n \tfor(int i=0; i<k; i++){\n \t\tre.add(list.get(i).getKey());\n \t}\n \treturn re;\n }", "public static ArrayList<ArrayList<Integer>> fourSum(ArrayList<Integer> a, int k) {\n Collections.sort(a);\n System.out.println(a);\n LinkedHashMap<Integer, List<List<Integer>>> m = new LinkedHashMap<Integer, List<List<Integer>>>();\n for (int i = 0; i <= a.size() - 3; i++) {\n for (int j = i + 1; j <= a.size() - 2; j++) {\n if (m.get(a.get(i) + a.get(j)) == null) {\n ArrayList<List<Integer>> v = new ArrayList<List<Integer>>();\n List<Integer> c = new ArrayList<Integer>();\n c.add(i);\n c.add(j);\n v.add(c);\n m.put(a.get(i) + a.get(j), v);\n } else {\n List<List<Integer>> v = m.get(a.get(i) + a.get(j));\n List<Integer> c = new ArrayList<Integer>();\n c.add(i);\n c.add(j);\n v.add(c);\n m.put(a.get(i) + a.get(j), v);\n }\n\n }\n }\n LinkedHashSet<ArrayList<Integer>> res = new LinkedHashSet<ArrayList<Integer>>();\n for (int i = 2; i <= a.size() - 1; i++) {\n for (int j = i + 1; j < a.size(); j++) {\n List<List<Integer>> v = m.get(k - (a.get(i) + a.get(j)));\n if (v != null && v.size() >= 1) {\n for (List<Integer> l : v) {\n\n if (l.get(0) < l.get(1) && l.get(1) < i && l.get(1) < j) {\n //System.out.println(l.get(0) + \" \" + l.get(1) + \" \" + i + \" \" + j);\n ArrayList<Integer> out = new ArrayList<Integer>();\n out.add(a.get(l.get(0)));\n out.add(a.get(l.get(1)));\n out.add(a.get(i));\n out.add(a.get(j));\n Collections.sort(out);\n //System.out.println(out);\n res.add(out);\n }\n }\n }\n }\n }\n return new ArrayList<ArrayList<Integer>>(res);\n }", "public List<Integer> pickRandomBetween(int n, int l, int k) {\n\t\tList<Integer> wynik = new ArrayList<Integer>();\n\t Random random = new Random();\n\t Set<Integer> picked = new HashSet<>();\n\t while(picked.size() < n) {\n\t \tint sizeNaPoczatku = picked.size();\n\t \tint znaleziona = random.nextInt(k-l) + l;\n\t picked.add(znaleziona);\n\t int sizeNaKoncu = picked.size();\n\t if(sizeNaPoczatku != sizeNaKoncu) {\n\t \twynik.add(znaleziona);\n\t }\n\t }\n\t return wynik;\n\t}", "static int beautifulDays(int i, int j, int k) {\n return (int) IntStream.range(i, j + 1).filter(day -> Math.abs(day - reverseInt(day)) % k == 0).count();\n }", "public int kthLargestElement(int k, ArrayList<Integer> numbers) {\n\t\tthis.k = k;\r\n\t\tkthQsort(numbers, 0, numbers.size()-1);\r\n\t\treturn rs;\r\n }", "public int kSum(int[] A, int k, int target) {\n\t\tint res=0;\r\n\t\t//考虑k=1的情况\r\n//\t\tif (k==1) {\r\n//\t\t\tfor(int i=0;i<A.length;i++) {\r\n//\t\t\t\tif (A[i]==target) {\r\n//\t\t\t\t\tres++;\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t\treturn res;\r\n//\t\t}\r\n//\t\tint sum_k_1=0;\r\n//\t\tint sum=target-sum_k_1;\r\n//\t\tif (k>1 && k<A.length) {\r\n//\t\t\tfor(int i=0;i<A.length-1;i++) {\r\n//\t\t\t\tfor(int j=i+1;j<A.length;j++) {\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\t//动态规划\r\n\t\tint n=A.length;\r\n\t\tint[][][] f=new int[n+1][k+1][target+1];\r\n\t\tfor(int i=0;i<n+1;i++) {\r\n\t\t\tf[i][0][0]=1;\r\n\t\t}\r\n\t\tfor(int i=1;i<=n;i++) {\r\n\t\t\tfor(int j=1;j<=k && j<=i;j++) {\r\n\t\t\t\tfor(int t=1;t<=target;t++) {\r\n\t\t\t\t\tf[i][j][t]=0;\r\n\t\t\t\t\tif (t>=A[i-1]) {\r\n\t\t\t\t\t\tf[i][j][t]=f[i-1][j-1][t-A[i-1]];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tf[i][j][t]+=f[i-1][j][t];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn f[n][k][target];\r\n }", "public int subarraysDivByK(int[] nums, int k) {\n\t \n int n = nums.length;\n\t\tint [] cumulativeMods = new int[n]; //store cumulative modulus\n int count =0; //count subarrays\n\t\tHashMap <Integer,Integer> repeatedMonitor = new HashMap<>();\n\t\t\n repeatedMonitor.put(0,1); \n\t\t//magic hidden zero :P, next appearing of 0 in cumulative will be the second to the monitor, \n\t\t//if you love to know why, do search xD\n\t\t\n cumulativeMods[0]= nums[0]%k<0? (nums[0]%k)+k : nums[0]%k;\n \n\t\t//Fill cumulativeMods array\n for(int i=1; i<n; i++){\n cumulativeMods[i] = cumulativeMods[i-1]+nums[i];\n cumulativeMods[i] = cumulativeMods[i]%k <0? (cumulativeMods[i]%k)+k: cumulativeMods[i]%k;\n } \n \n\t\t//count contiguous subarrays by monitoring the repeated items in cumulativeMods\n int toAdd=0;\n for(int i=0; i<n; i++){\n toAdd = repeatedMonitor.getOrDefault(cumulativeMods[i],0); \n count+= toAdd;\n repeatedMonitor.put(cumulativeMods[i], toAdd+1);\n }\n return count; \n }", "static int getMinimumCost(int k, Integer[] c) {\n\tArrays.sort(c, Collections.reverseOrder());\n\tint[] num = new int[k];\n\tint total = 0;\n\tfor (int ind = 0; ind < c.length; ind++) {\n\t int v = ind % k;\n\t total += (num[v]++ + 1) * c[ind];\n\t}\n\n\treturn total;\n }", "public void combineTwo(int n, int k) {\n // init first combination\n LinkedList<Integer> nums = new LinkedList<Integer>();\n for(int i = 1; i < k + 1; ++i)\n nums.add(i);\n nums.add(n + 1); //add as a sentinel\n\n List<List<Integer>> output = new ArrayList<>();\n int j = 0;\n //the while loop breaks when you have processed the first k combinations\n while (j < k) {\n // add current combination\n output.add(new LinkedList(nums.subList(0, k)));\n //\n // if nums[j] + 1 == nums[j + 1] increase nums[j] by one\n // the loop breaks when nums[j] + 1 != nums[j + 1]\n j = 0;\n while ((j < k) && (nums.get(j + 1) == nums.get(j) + 1))\n nums.set(j, j++ + 1);\n nums.set(j, nums.get(j) + 1); //increment the number at jth index\n }\n this.possibleCombinations = output;\n }", "public static int eggDrop(int n, int k) {\n\t\tif(k == 0 || k==1) {\n\t\t\treturn k;\n\t\t}\n\t\tif(n==1) {\n\t\t\treturn k;\n\t\t}\n\t\tint res = 0;\n\t\tint min = Integer.MAX_VALUE;\n\t\tint x;\n\t\tfor(x=1; x<=k; x++) {\n\t\t\tres = 1+Math.max(eggDrop(n-1, x-1), eggDrop(n, k-x));\n\t\t\tif(res < min)min = res;\n\t\t}\n\t\treturn min+1;\n\t}", "public static int singleNumber(int[] nums, int k) {\n int len = nums.length, result = 0;\n int[] countBits = new int[32];\n\n for (int i = 0; i < 32; i++) {\n for (int j = 0; j < len; j++) {\n // if the bit position at i is set, we increment countBits[i] by 1.\n if (((nums[j] >> i) & 1) == 1)\n countBits[i]++;\n }\n\n result |= ((countBits[i] % k) << i);\n }\n return result;\n }", "public int C(int n, int k) {\n\tif (choose[n][k] != -1)\n\t\treturn choose[n][k];\n\tint t = C(n-1,k-1) + C(n-1,k);\n\tchoose[n][k] = t;\n\treturn t;\n}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n List<ArrayList<Integer>> lines = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n int l = sc.nextInt();\n ArrayList<Integer> line = new ArrayList<>();\n for (int j = 0; j < l; j++) {\n line.add(sc.nextInt());\n }\n lines.add(line);\n }\n\n int k = sc.nextInt();\n for (int i = 0; i < k; i++) {\n int lineNumber = sc.nextInt();\n int elementNumber = sc.nextInt();\n\n if(lines.get(lineNumber - 1).size() >= elementNumber){\n System.out.println(lines.get(lineNumber - 1).get(elementNumber - 1));\n }else{\n System.out.println(\"ERROR!\");\n }\n }\n }" ]
[ "0.7319114", "0.72423595", "0.7160667", "0.7083634", "0.70693564", "0.7063191", "0.70236063", "0.69188255", "0.68660134", "0.68209726", "0.68173313", "0.6691898", "0.6633013", "0.6619681", "0.656778", "0.65668106", "0.655025", "0.6518116", "0.65143067", "0.65028304", "0.6494233", "0.6483336", "0.647587", "0.64600956", "0.6448241", "0.6444181", "0.6440853", "0.6438405", "0.64310414", "0.64197093", "0.6418388", "0.64149576", "0.64090925", "0.6384861", "0.6372797", "0.6371527", "0.636786", "0.6357045", "0.63510007", "0.6348936", "0.63373923", "0.63356805", "0.6324309", "0.6312778", "0.6303985", "0.6296351", "0.6280592", "0.62371737", "0.6234419", "0.6233051", "0.6225046", "0.62245864", "0.6221834", "0.62207854", "0.62182194", "0.62181765", "0.6206934", "0.6193028", "0.61920816", "0.6188", "0.61636466", "0.61574304", "0.61456823", "0.6141792", "0.6138872", "0.61316466", "0.6129874", "0.61280274", "0.6122258", "0.6119223", "0.61149156", "0.6113504", "0.611024", "0.61044955", "0.60995865", "0.6098416", "0.6093734", "0.6091451", "0.608685", "0.6072936", "0.60721236", "0.6069253", "0.60638815", "0.60607433", "0.60571706", "0.6051431", "0.60504216", "0.6045613", "0.60410684", "0.60318995", "0.60297024", "0.6017093", "0.6015509", "0.6003254", "0.599769", "0.5993944", "0.5993862", "0.59913516", "0.5986679", "0.5984807", "0.5968438" ]
0.0
-1
Check if a currency could be available for the given locale.
public static boolean localeSupportsCurrencyRetrieval (@Nullable final Locale aLocale) { return aLocale != null && aLocale.getCountry () != null && aLocale.getCountry ().length () == 2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasCurrency();", "boolean hasCurrencyCode();", "boolean hasCurrencyConstant();", "boolean hasLocale();", "public boolean isSetCurrency()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(CURRENCY$10) != 0;\n }\n }", "boolean isCurrencyAware();", "public boolean hasCurrency() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public boolean hasCurrency() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "boolean hasTradeCurrency();", "boolean hasSettlementCurrency();", "public boolean isAvailable() throws KKException\r\n {\r\n return isAvailable(MODULE_PAYMENT_CYBERSOURCESA_STATUS);\r\n }", "protected boolean isAvailableForLanguage(Language language){\n return true;\n }", "public static boolean isValidCurrency(String input) {\n\t\tboolean isValid = false;\n\t\tif (CommonUtils.isNotNullOrEmpty(input) && input.contains(Currency.lookup(input).toString())) {\n\t\t\tisValid = true;\n\t\t} else {\n\t\t\tSystem.out.println(Constants.INVALID_CURRENCY + input);\n\t\t}\n\t\treturn isValid;\n\t}", "boolean isBillingAvailable(String packageName);", "public boolean isCurrencyRegistered(String identifier) {\n return exchangeRates.containsKey(identifier);\n }", "public boolean checkTodayCurrencyListInDb() {\n LOGGER.info(\"CHECKING OF EXISTING CURRENCY LIST IN DB.\");\n List<Optional<Currency>> optionalList = currencyRepository.findByDateOfValue(LocalDate.now());\n\n return !optionalList.isEmpty();\n }", "boolean hasMoney();", "@Override\n\tpublic boolean isCurrency(int arg0) throws SQLException {\n\t\treturn false;\n\t}", "private static boolean isQualifiedLocale(Locale locale) {\r\n\t\tResourceBundle rb = ResourceBundleProvider.getAdminBundle(locale);\r\n\t\tif(isAvailable(rb, locale)) {\r\n\t\t\trb = ResourceBundleProvider.getAuditEventsBundle(locale);\r\n\t\t\tif(isAvailable(rb, locale))\t{\r\n\t\t\t\trb = ResourceBundleProvider.getExceptionsBundle(locale);\r\n\t\t\t\tif(isAvailable(rb, locale))\t{\r\n\t\t\t\t\trb = ResourceBundleProvider.getFormatBundle(locale);\r\n\t\t\t\t\tif(isAvailable(rb, locale))\t{\r\n\t\t\t\t\t\trb = ResourceBundleProvider.getPageMessagesBundle(locale);\r\n\t\t\t\t\t\tif(isAvailable(rb, locale)) {\r\n\t\t\t\t\t\t\trb = ResourceBundleProvider.getTermsBundle(locale);\r\n\t\t\t\t\t\t\tif(isAvailable(rb, locale)) {\r\n\t\t\t\t\t\t\t\trb = ResourceBundleProvider.getTextsBundle(locale);\r\n\t\t\t\t\t\t\t\tif(isAvailable(rb, locale)) {\r\n\t\t\t\t\t\t\t\t\trb = ResourceBundleProvider.getWordsBundle(locale);\r\n\t\t\t\t\t\t\t\t\tif(isAvailable(rb, locale)) {\r\n\t\t\t\t\t\t\t\t\t\trb = ResourceBundleProvider.getWorkflowBundle(locale);\r\n\t\t\t\t\t\t\t\t\t\treturn isAvailable(rb, locale);\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}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "boolean isCreditCardIsSingleAvailablePayment();", "boolean hasMoneyValue();", "boolean hasMoneyValue();", "public boolean isTypeAvailable(Class<? extends Resource> resourceType, OgemaLocale locale);", "public int isLanguageAvailable(String lang, String country, String variant) {\n return mSelf.isLanguageAvailable(lang, country, variant);\n }", "public boolean isCurrency(int column) throws SQLException {\n\t\t\treturn false;\n\t\t}", "boolean hasExchangeprice();", "boolean hasCampaignprice();", "boolean hasAmount();", "boolean hasAmount();", "@Test\n\tpublic void areCompatible_shouldConfirmSameLanguageMissingCountryAsCompatible() {\n\t\tLocale lhs = Locale.US;\n\t\tLocale rhs = Locale.ENGLISH;\n\t\t\n\t\tassertTrue(LocaleUtility.areCompatible(lhs, rhs));\n\t}", "private boolean validaCompra() {\n\n List<Purchase> purchasesList = billingClient.queryPurchases(INAPP).getPurchasesList();\n if (purchasesList != null && !purchasesList.isEmpty()) {\n for (Purchase purchase : purchasesList) {\n if (purchase.getSku().equals(skuId)) {\n return true;\n }\n }\n }\n return false;\n\n }", "boolean hasCountryCode();", "boolean hasCountryCode();", "@Test\n\tpublic void areCompatible_shouldConfirmDifferentLanguageMissingCountryAsCompatible() {\n\t\tLocale lhs = Locale.US;\n\t\tLocale rhs = Locale.FRENCH;\n\t\t\n\t\tassertFalse(LocaleUtility.areCompatible(lhs, rhs));\n\t}", "boolean hasCountry();", "public boolean containsCountryRate(\n java.lang.String key) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n return internalGetCountryRate().getMap().containsKey(key);\n }", "public boolean containsCountryRate(\n java.lang.String key) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n return internalGetCountryRate().getMap().containsKey(key);\n }", "@Test\n public void currencyTest() {\n assertEquals(\"GBP\", authResponse.getCurrency());\n }", "public boolean checkAvailability(Media media) {\n\t\t return false;\n\t }", "public boolean isPaymentAvailable() {\n return payment != null && !payment.isEmpty();\n }", "private void checkLocaleIsEquivalentToRoot(Locale locale) {\n DecimalFormatSymbols root = DecimalFormatSymbols.getInstance(Locale.ROOT);\n DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(locale);\n\tdfs.setPerMill(root.getPerMill());\n assertEquals(root, dfs);\n }", "private void checkBuyCard(PropertyCard card) {\n\t\tboolean almostComplete = checkCollection(this, card);\n\t\tif(almostComplete) {\n\t\t\tboolean boughtCard = buyCard(card);\n\t\t\tif(!boughtCard) {\n\t\t\t\tboolean madeChanges = checkPayment(card.getPrice());\n\t\t\t\tif(madeChanges) {\n\t\t\t\t\tbuyCard(card);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tboolean opponentAlmostComplete = false;\n\t\t\tfor(Player p: getPlayers()) {\n\t\t\t\tif(checkCollection(p,card)) {\n\t\t\t\t\topponentAlmostComplete = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(opponentAlmostComplete) {\n\t\t\t\tbuyCard(card);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(getMoney()-card.getPrice()>=100) {\n\t\t\t\t\tbuyCard(card);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void test001IsInternationalCard() {\n assertTrue(\"Slot 0 is not DUAL_MODE card. The test case maybe need to be modified!\",\n mManageSimMsg.isInternationalCard(0));\n assertFalse(\"Slot 1 is DUAL_MODE card. The test case maybe need to be modified!\",\n mManageSimMsg.isInternationalCard(1));\n }", "boolean hasLanguage();", "public boolean isSetCurrencyID() {\n return this.currencyID != null;\n }", "boolean hasPrice();", "boolean hasPrice();", "boolean hasPrice();", "Boolean isAvailable();", "public boolean cryptoCurrencyAmountHold(Double sellingAmount, String cryptoCurrency) {\n\t\tboolean valid = false;\n\t\tDouble totalAmountAvailable = transRepo.sumUpNumberOfCoinsForCryptoCurrency(this.portfolio.getId(), cryptoCurrency);\n\t\tif (totalAmountAvailable == null ) {\n\t\t\tvalid = false;\n\t\t\t\n\t\t} else if (totalAmountAvailable != null && totalAmountAvailable>=sellingAmount) {\n\t\t\tvalid = true;\n\t\t} else {\n\t\t\tvalid = false;\n\t\t}\n\t\t\n\t\treturn valid;\n\t}", "public boolean checkValidity() {\n String sep = DECIMAL_FORMAT.getDecimalFormatSymbols().getDecimalSeparator() + \"\";\n String name = nameField.getText().trim();\n String priceText = valueField.getText().trim();\n if (name.equals(\"\") || priceText.equals(\"\")) {\n Utils.showWarningMessage(getRootPane(), \"The fields can not be empty!\");\n return false;\n }\n String price = priceText.replace(sep, \"\");\n if (!price.matches(\"^[0-9]+$\")) {\n Utils.showWarningMessage(getRootPane(), \"Please enter a valid price!\");\n return false;\n }\n int priceInt = Integer.parseInt(price);\n if (priceInt == 0) {\n Utils.showWarningMessage(getRootPane(), \"The price can not be 0.\");\n return false;\n }\n return true;\n }", "boolean hasLanguageConstant();", "public boolean isSomethingBuyable(GameClient game){\n for(Level l : Level.values()){\n for(ColorDevCard c : ColorDevCard.values()){\n try {\n NumberOfResources cost = dashBoard[l.ordinal()][c.ordinal()].getCost();\n cost = cost.safe_sub(game.getMe().getDiscounted());\n game.getMe().getDepots().getResources().sub(cost);\n return true;\n } catch (OutOfResourcesException | NullPointerException ignored) {}\n }\n }\n return false;\n }", "boolean hasAlreadCheckCard();", "public boolean canCredit(double amount);", "boolean isCartValid();", "@PostConstruct\n public void initCurrencies() {\n if (converterFacade.getAllCurrencies().isEmpty()) {\n converterFacade.createCurrency(\"EUR\", \"Euros\", 0.1023976481d);\n converterFacade.createCurrency(\"SEK\", \"Swedish Krona\", 1d);\n converterFacade.createCurrency(\"USD\", \"US Dollar\", 0.1100736983d);\n converterFacade.createCurrency(\"BGP\", \"British Pound\", 0.0872583118);\n }\n }", "public static boolean isNetworkAvailable(Context con) {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) con.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }", "private boolean isAvailable(String month, int day) {\n\t\treturn false;\n\t}", "public static boolean isBillingReady ()\n {\n return (!CShell.isGuest() && !CShell.isPermaguest()\n && !MemberMailUtil.isPlaceholderAddress(CShell.creds.accountName));\n }", "public boolean isAvailableByPercentage(long amountPercentage, long expectedDLSize, long DLPercentage, long expectedULSize, long ULPercentage) {\n return true;\n\t}", "boolean hasPayment();", "boolean hasPayment();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "@Transactional(readOnly = true)\n public boolean checkAvailableBalance(Long accountId, Double amount) {\n return getAccountBalance(accountId) < amount;\n }", "protected boolean isAvailable(String configKey) throws KKException\n {\n boolean available = getConfigurationValueAsBool(configKey, false);\n\n if (log.isDebugEnabled())\n {\n log.debug(configKey + \" Available? \" + available);\n }\n\n return available;\n }", "@Test\n public void testIsSameCurrency() {\n \n Money moneyUsd = new Money(new BigDecimal(\"1.23\"), Currency.getInstance(\"USD\"));\n Money moneyUsd2 = new Money(new BigDecimal(\"1.23\"), Currency.getInstance(\"USD\"));\n Money moneyCad = new Money(new BigDecimal(\"1.23\"), Currency.getInstance(\"CAD\"));\n\n assertTrue(\"Currencies same\", moneyUsd.isSameCurrency(moneyUsd2));\n assertTrue(\"Currencies same symmetric\", moneyUsd2.isSameCurrency(moneyUsd));\n assertFalse(\"Currencies different\", moneyUsd.isSameCurrency(moneyCad));\n \n }", "boolean hasI18();", "public boolean enableLocaleOverride( ) {\n\t\ttry {\n\t\t\tURIBuilder builder = new URIBuilder( I18N_URL );\n\t\t\tbuilder.addParameter( \"locale\", \"en_US\" );\n\t\t\tHttpGet get = new HttpGet( builder.build( ).toURL( ).toString( ) );\n\t\t\tString result = EntityUtils.toString( this.httpClient( ).execute( get ).getEntity( ) ).trim( );\n\t\t\treturn result.contains(\"Succeeded\" );\n\t\t} catch( Exception e ) {\n\t\t\tthrow new FitbitExecutionException( e );\n\t\t}\n\t}", "public int hasCreditIssued() {\n\n\t\tint NO = 0;\n\t\tint YES = 1;\n\t\tint PENDING = 2;\n\n\t\tint hasCredits = 0;\n\t\tCollection<ErpComplaintModel> complaints = getComplaints();\n\t\thasCredits = (complaints.size() > 0) ? YES : NO;\n\t\tfor (ErpComplaintModel complaint : complaints) {\n\t\t\tif (EnumComplaintStatus.PENDING.equals(complaint.getStatus())) {\n\t\t\t\thasCredits = PENDING;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn hasCredits;\n\t}", "public boolean isComplete() {\r\n return currency != null && amount != null;\r\n }", "private boolean DeriveStockWith_FundIsAvailable() {\n\t\tif (getFunds() > 0) {\n\t\t\tif (calculateInputStock_Items() > getFunds()) {\n\t\t\t\tSystem.err.println(\"Insufficient Funds, Cannot restock\");\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t\t// available funds can accommodate input stock requirement\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.err.println(\"Insufficient Funds\");\n\t\t}\n\t\treturn false;\n\t}", "@Deprecated(since = CurrencyTests.DEPRECATED_SINCE_3_0, forRemoval = false)\n @Test\n public void getCurrency()\n {\n final Currency currency = Currency.of(CurrencyTests.EUR);\n assertEquals(CurrencyTests.EUR, currency.getCurrency(), CurrencyTests.CURRENCY_CODE_NOT_AS_EXPECTED);\n }", "public boolean isCryptoInputValid(String input) {\n\t\tOnlineCourseQuery query = new OnlineCourseQuery();\n\t\t\n\t\tList<String> tempFiatCurrencyList = Arrays.asList(\"CHF\");\n\t\tList<String> tempcryptoCurrencyList = Arrays.asList(input);\n\t\t\n\t\ttry {\n\t\t\tJSONObject resultObject = query.getOnlineCourseData(tempcryptoCurrencyList, tempFiatCurrencyList);\n\t\t\t\n\t\t\t Iterator<String> keys = resultObject.keys();\n\t\t\t String str = keys.next();\n\t\t\t String result = resultObject.optString(str);\n\t\t\t \n\t\t\t if (result.equals(\"Error\")) {\n\t\t\t\t return false;\n\t\t\t }\n\t\t\t \n\t\t\t return true;\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\n\t\t}\n\t\treturn false;\n\t}", "public boolean validateCard(int accountNum) {\n\t\tint index; //loop control variable\n\t\tboolean found; //flag indicating search results\n\t\t\n\t\t//element 0 is the starting point of the search\n\t\tindex = 0;\n\t\t\n\t\t//if the charge number is never found, this value will not be changed\n\t\tfound = false;\n\t\t\n\t\t//now we'll search the array\n\t\twhile(!found && index < chargeCard.length) {\n\t\t\tif(chargeCard[index] == accountNum) {\n\t\t\t\tfound = true;\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\treturn found;\n\t}", "boolean check(double amount) {\n\t\treturn (balance >= amount);\n\t}", "boolean hasAllowedCredit();", "public static boolean isNetworkAvailable(Context c) {\n\t\tConnectivityManager connectivityManager = (ConnectivityManager) c\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tNetworkInfo activeNetworkInfo = connectivityManager\n\t\t\t\t.getActiveNetworkInfo();\n\t\treturn activeNetworkInfo != null && activeNetworkInfo.isConnected();\n\t}", "public String getIsCurrency() {\n return this.isCurrency;\n }", "public boolean hasTradeCurrency() {\n return ((bitField0_ & 0x00010000) == 0x00010000);\n }", "Currency getCurrency();", "public boolean hasSettlementCurrency() {\n return ((bitField0_ & 0x00020000) == 0x00020000);\n }", "public boolean canUseCard() {\n \t\tif (usedCard)\n \t\t\treturn false;\n \n \t\tfor (int i = 0; i < cards.length; i++) {\n \t\t\tif (cards[i] > 0)\n \t\t\t\treturn true;\n \t\t}\n \n \t\treturn false;\n \t}", "public void validateSourceCurrency(ATMSparrowFinancialMessage atmFinancialSparrowMessage, BankFusionEnvironment env) {\n ArrayList params = new ArrayList();\n params.add(atmFinancialSparrowMessage.getCurrencySourceAccount());\n List currencyBO = null;\n try {\n currencyBO = env.getFactory().findByQuery(IBOCurrency.BONAME, currencyWhereClause, params, null);\n }\n catch (BankFusionException bfe) {\n logger.error(\"Error while find by query for currency: \" + atmFinancialSparrowMessage.getCurrencySourceAccount(), bfe);\n }\n if (currencyBO == null || currencyBO.isEmpty()) {\n atmFinancialSparrowMessage.setAuthorisedFlag(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG);\n Object[] field = new Object[] { atmFinancialSparrowMessage.getCurrencySourceAccount() };\n if (atmFinancialSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_0)\n || atmFinancialSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_6)) {\n // populateErrorDetails(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG,\n // ATMConstants.WARNING, 7512, BankFusionMessages.ERROR_LEVEL,\n populateErrorDetails(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG, ATMConstants.WARNING,\n ChannelsEventCodes.E_INVALID_CURRENCY_CODE, BankFusionMessages.ERROR_LEVEL, atmFinancialSparrowMessage,\n field, env);\n }\n else if (atmFinancialSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_1)\n || atmFinancialSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_2)\n || atmFinancialSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_3)\n || atmFinancialSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_7)\n || atmFinancialSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_5)\n || atmFinancialSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_8)) {\n // populateErrorDetails(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG,\n // ATMConstants.CRITICAL, 7513, BankFusionMessages.ERROR_LEVEL,\n populateErrorDetails(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG, ATMConstants.CRITICAL,\n ChannelsEventCodes.E_INVALID_CURRENCY_CODE_FORCE_POST_NOT_POSTED, BankFusionMessages.ERROR_LEVEL,\n atmFinancialSparrowMessage, field, env);\n }\n }\n\n boolean isCurrencyValid = false;\n isCurrencyValid = isCurrencyValid(atmFinancialSparrowMessage.getAccount(),\n atmFinancialSparrowMessage.getCurrencySourceAccount(), env);\n if (!isCurrencyValid) {\n if (atmFinancialSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_0)\n || atmFinancialSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_6)) {\n atmFinancialSparrowMessage.setAuthorisedFlag(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG);\n atmFinancialSparrowMessage.setErrorCode(\"Warning\");\n atmFinancialSparrowMessage.setErrorDescription(\"Invalid Currency Code\");\n }\n else if (atmFinancialSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_1)\n || atmFinancialSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_7)\n || atmFinancialSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_3)\n || atmFinancialSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_5)\n || atmFinancialSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_8)) {\n String errorMessge = \"Invalid Currency Code. Force Post Not Posted\";\n atmFinancialSparrowMessage.setAuthorisedFlag(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG);\n atmFinancialSparrowMessage.setErrorCode(ATMConstants.CRITICAL);\n atmFinancialSparrowMessage.setErrorDescription(errorMessge);\n\n }\n return;\n }\n\n }", "private static boolean isPrice(String token) {\n return priceRegex.matcher(token).matches();\n }", "public boolean checkStock(String symbol) {\n\t\tfor(Stock s : stockList) {\n\t\t\tif(s.getSymbol().equals(symbol))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "boolean hasExternalAttributionCredit();", "public boolean hasSettlementCurrency() {\n return ((bitField0_ & 0x00020000) == 0x00020000);\n }", "public boolean hasCountry() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "boolean CanBuyDevCard();", "@Override\n protected int onIsLanguageAvailable(String lang, String country, String variant) {\n if (\"eng\".equals(lang)) {\n // We support two specific robot languages, the british robot language\n // and the american robot language.\n if (\"USA\".equals(country) || \"GBR\".equals(country)) {\n // If the engine supported a specific variant, we would have\n // something like.\n //\n // if (\"android\".equals(variant)) {\n // return TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE;\n // }\n return TextToSpeech.LANG_COUNTRY_AVAILABLE;\n }\n\n // We support the language, but not the country.\n return TextToSpeech.LANG_AVAILABLE;\n }\n\n return TextToSpeech.LANG_NOT_SUPPORTED;\n }", "public boolean hasCurrencyID() {\n return fieldSetFlags()[10];\n }", "static public boolean isNetworkAvailable(Context c) {\n ConnectivityManager cm =\n (ConnectivityManager)c.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n return activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n }", "public boolean hasTradeCurrency() {\n return ((bitField0_ & 0x00010000) == 0x00010000);\n }", "public static boolean isResourceAvailable(final String resourcePath) {\n try {\n final boolean value =\n FacesContext.getCurrentInstance().getExternalContext().getResource(resourcePath) != null;\n return value;\n } catch (final Exception e) {\n return false;\n }\n }", "boolean isSetAmount();", "boolean hasBonusMoney();" ]
[ "0.72586244", "0.6808766", "0.6592708", "0.64132535", "0.64117557", "0.6277317", "0.6155287", "0.6151433", "0.6120811", "0.6033543", "0.60235935", "0.5671762", "0.5646923", "0.55921435", "0.55905044", "0.5588712", "0.5579091", "0.55767024", "0.5535671", "0.5415472", "0.5395007", "0.5395007", "0.5357401", "0.53420967", "0.5330648", "0.5269888", "0.5171906", "0.5160667", "0.5160667", "0.5152446", "0.5119791", "0.5104394", "0.5104394", "0.5091793", "0.5088548", "0.5068418", "0.50326943", "0.50206786", "0.50154823", "0.50027853", "0.49913076", "0.49734873", "0.4906534", "0.49049178", "0.4900915", "0.48892185", "0.48892185", "0.48892185", "0.48675203", "0.48608527", "0.48500007", "0.4839242", "0.4837235", "0.48255485", "0.4816574", "0.47927913", "0.47922263", "0.47879153", "0.47748366", "0.47676533", "0.47483292", "0.473337", "0.473337", "0.47281358", "0.47281358", "0.47281358", "0.47281358", "0.4708165", "0.47043556", "0.47020096", "0.46957695", "0.46870664", "0.46747944", "0.4668901", "0.46686476", "0.46633133", "0.46630514", "0.46584567", "0.4650044", "0.46415517", "0.46393156", "0.46379718", "0.46334034", "0.46331868", "0.46298343", "0.4620092", "0.46152267", "0.46115056", "0.46000165", "0.4599465", "0.4594997", "0.45885935", "0.45820236", "0.45789117", "0.45788926", "0.45776567", "0.45774892", "0.45730016", "0.45725378", "0.45696098" ]
0.7240117
1
Adopt the passed text value according to the requested decimal separator.
@Nullable private static String _getTextValueForDecimalSeparator (@Nullable final String sTextValue, @Nonnull final EDecimalSeparator eDecimalSep, @Nonnull final EGroupingSeparator eGroupingSep) { ValueEnforcer.notNull (eDecimalSep, "DecimalSeparator"); ValueEnforcer.notNull (eGroupingSep, "GroupingSeparator"); final String ret = StringHelper.trim (sTextValue); // Replace only, if the desired decimal separator is not present if (ret != null && ret.indexOf (eDecimalSep.getChar ()) < 0) switch (eDecimalSep) { case COMMA: { // Decimal separator is a "," if (ret.indexOf ('.') > -1 && eGroupingSep.getChar () != '.') { // Currency expects "," but user passed "." return StringHelper.replaceAll (ret, '.', eDecimalSep.getChar ()); } break; } case POINT: { // Decimal separator is a "." if (ret.indexOf (',') > -1 && eGroupingSep.getChar () != ',') { // Pattern contains no "," but value contains "," return StringHelper.replaceAll (ret, ',', eDecimalSep.getChar ()); } break; } default: throw new IllegalStateException ("Unexpected decimal separator [" + eDecimalSep + "]"); } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDecimalSeparator(String decimalSeparator) {\n\t\tthis.decimalSeparator = decimalSeparator;\n\t\trequestRepaint();\n\t}", "public void setDecimalSeparator(char decSep)\r\n {\r\n m_decimalSeparator = decSep;\r\n }", "public static TextFormatter soloDecimales() {\r\n DecimalFormatSymbols simbolo = new DecimalFormatSymbols();\r\n simbolo.setDecimalSeparator('.');\r\n DecimalFormat format = new DecimalFormat(\"#.00\", simbolo);\r\n return new TextFormatter<>(c -> {\r\n if (c.getControlNewText().isEmpty()) {\r\n return c;\r\n }\r\n ParsePosition parsePosition = new ParsePosition(0);\r\n Object object = format.parse(c.getControlNewText(), parsePosition);\r\n if (object == null || parsePosition.getIndex() < c.getControlNewText().length()) {\r\n return null;\r\n } else {\r\n return c;\r\n }\r\n });\r\n }", "@Override\n public void setUp() {\n\n LocaleConvertUtils.deregister();\n\n final NumberFormat nf = NumberFormat.getNumberInstance();\n final String result = nf.format(1.1);\n\n // could be commas instead of stops in Europe.\n decimalSeparator = result.charAt(1);\n\n }", "public void prueba(){\r\n //Float f = Float.parseFloat(jtfValor.getText());\r\n String s = \"100.000,5\";\r\n \r\n String d = s.replace(\".\",\"\");\r\n // s.replaceAll(\",\", \".\");\r\n // s.trim();\r\n System.out.println(d);\r\n \r\n }", "public String addDecimal();", "public static String toDotDecimalSeparator(String str) {\r\n return str.replaceAll(\",(?=[0-9]+,)\", \"\").replaceAll(\",\", \".\");\r\n }", "@Override\r\n\t\t\t\tpublic String textFormatter(String value) {\n\t\t\t\t\tDouble tmp = Double.parseDouble(value);\r\n\t\t\t\t\tDecimalFormat df = new DecimalFormat(\"0.00\");\r\n\t\t\t\t\tString label = df.format(tmp).toString();\r\n\t\t\t\t\treturn (label);\r\n\t\t\t\t}", "@Override\n\t\t\tprotected String formatValue(String text) {\n\t\t\t\treturn text.substring(0, text.lastIndexOf('.'));\n\t\t\t}", "public String check_after_decimal_point(double decimal) {\n String result = null;\n String[] after_point = String.valueOf(decimal).split(\"[:.]\");\n if (after_point[after_point.length - 1].equals(\"0\")) {\n result = after_point[0];\n } else {\n result = String.valueOf(decimal).replace(\".\", \",\");\n }\n return result;\n }", "private String getCSVSeparator(){\n DecimalFormatSymbols s = new DecimalFormatSymbols(getLocale());\n if(s.getDecimalSeparator() == ',')\n return \";\";\n else\n return \",\";\n }", "public char getDecimalSeparator()\r\n {\r\n return (m_decimalSeparator);\r\n }", "void insertDecimalPoint();", "private void outputBasedOnText(Editable s) {\n String stringValue = s.toString();\n if (stringValue.length() > 1 && stringValue.substring(stringValue.length() - 1).equals(\".\")) { // If the last char in string is \".\"\n convertInput(Double.parseDouble(stringValue.substring(0, stringValue.length() - 1)));\n } else if (!stringValue.matches(\"[-+]?\\\\d*\\\\.?\\\\d+\")) { // Check if stringValue is numeric\n convertInput(0);\n } else {\n convertInput(Double.parseDouble(stringValue));\n }\n }", "public void setSep(Integer sep) {\n this.sep = sep;\n }", "public String getDecimalSeparator() {\n NumberFormat nf = NumberFormat.getInstance(getLocalCurrency().getLocale());\n if (nf instanceof DecimalFormat) {\n DecimalFormatSymbols sym = ((DecimalFormat) nf).getDecimalFormatSymbols();\n return Character.toString(sym.getDecimalSeparator());\n }\n return \".\";\n }", "public void setThousandsSeparator(char sep)\r\n {\r\n m_thousandsSeparator = sep;\r\n }", "public void setSeparator(String separator) {\n\t\tthis.separator = separator;\n\t}", "public static String format(Object val, String pattern, char groupsepa, char decimalsepa)\n {\n if(val == null)\n {\n\t return \"\";\n } \n try\n {\n\t DecimalFormat _df = new DecimalFormat();\n\t _df.setRoundingMode(RoundingMode.HALF_UP);\n\t _df.applyPattern(pattern);\n\n\t String standardFrmt = _df.format(val);\n\t // need first to replace by #grpSep# so that in case the group separator is equal to dot . the replacement will be correct\n\t String returnFrmt = standardFrmt.replace(\",\",\"#grp#\");\n\t returnFrmt = returnFrmt.replace(\".\",decimalsepa+\"\");\n\t returnFrmt = returnFrmt.replace(\"#grp#\",groupsepa+\"\");\n\t return returnFrmt;\n\n }\n catch(Exception ex)\n {\n\t log.error(ex, \"[NumberUtil] Error caught in method format\");\n\t return \"\";\n }\n}", "private static String removeDigitGroupSeparatorAndDecimalPlaces(final String input, final char digitGroupSeparator)\n {\n // Make sure we only deal with known characters for digit group separation\n Assert.assertTrue(\"Expected digit group separator to be either ',' or '.'\", digitGroupSeparator == ',' || digitGroupSeparator == '.');\n\n // Which decimal separator do we have (based on provided digit group separator)\n final char decimalSeparator = (digitGroupSeparator == ',') ? '.' : ',';\n\n // Trim the string, remove any digit group separators and copy the string\n String output = input.trim().replace(String.valueOf(digitGroupSeparator), \"\");\n\n // Find potential decimal separator in our string..\n final int decimalSeparatorPosition = output.indexOf(decimalSeparator);\n if (decimalSeparatorPosition > 0)\n {\n // ..and ignore everything including and after the decimal separator (= remove decimal\n // places)\n output = output.substring(0, decimalSeparatorPosition);\n }\n\n return output;\n }", "public static Symbol decimal(String text)\r\n\t{\r\n\t\treturn number(text, 10);\r\n\t}", "private String modifyValue(String value) {\n double d = Double.parseDouble(value);\n int v = round(d);\n return String.valueOf(v);\n }", "private void parseAndFormatInput() {\n try {\n String input = getText();\n if (input == null || input.length() == 0) {\n return;\n }\n Number parsedNumber = nf.parse(input);\n BigDecimal newValue = new BigDecimal(parsedNumber.toString());\n setNumber(newValue);\n selectAll();\n } catch (ParseException ex) {\n // If parsing fails keep old number\n setText(nf.format(number.get()));\n }\n }", "public void setDefaultExtractLineSeparator (String linesep);", "public abstract double fromBasicUnit(double valueJTextInsert);", "public static String prettyPrintDecimal(double value, String unit, String separator)\n {\n int prefixIndex = (int) Math.floor(Math.log10(Math.abs(value)) / 3);\n double base = value * Math.pow(1000.0, -prefixIndex);\n if (prefixIndex == 0 || !Double.isFinite(value) || !Double.isFinite(base) || value == 0)\n return String.format(\"%.3f%s%s\", value, separator, unit);\n else if (prefixIndex > UNIT_PREFIXES_BASE || prefixIndex < -UNIT_PREFIXES_BASE)\n return String.format(\"%.3fe%+d%s%s\",\n base,\n prefixIndex * 3,\n separator,\n unit);\n else\n return String.format(\"%.3f%s%c%s\",\n base,\n separator,\n UNIT_PREFIXES.charAt(UNIT_PREFIXES_BASE + prefixIndex),\n unit);\n }", "public void setSeparator(String s) {\n\t\tseparator = s;\n\t}", "public void setSeparacion(double separacion) {\r\n\t\tthis.separacion = separacion;\r\n\t}", "@Override\n public void onClick(View v) {\n if(curr.isEmpty()){\n curr = \"0.\";\n dot_inserted=true;\n }\n /*check fr validation if dot_inserted is equals to false append \".\"*/\n /*Add it to the string*/\n if(dot_inserted == false){\n curr = curr + \".\";\n dot_inserted = true;\n }\n displayNum();\n }", "public void setFieldSeparator(String fieldSeparator)\n\t{\n\t\tthis.fieldSeparator = fieldSeparator;\n\t}", "public static String[] returnGroupDecimalSep()\n {\n String[] returnVal = new String[]{\",\",\".\"};\n // if at level of presentation level then take the separators from session\n if(ActionContext.getContext() != null && ServletActionContext.getRequest() != null)\n {\n \t HashMap<String , Object> theFormats = RootUtil.returnNumberFormat(ServletActionContext.getRequest().getSession());\n \t returnVal[0] = StringUtil.nullEmptyToValue(theFormats.get(\"groupSepa\"), \",\");\n \t returnVal[1] = StringUtil.nullEmptyToValue(theFormats.get(\"decimalSepa\"), \".\");\n }\n else\n {\n \t// if there is not session then need to take the separators from initial load if available\n \tif(ConstantsCommon.PATH_GROUP_SEPARATOR != null)\n \t{\n \t returnVal[0] = ConstantsCommon.PATH_GROUP_SEPARATOR;\n \t}\n \tif(ConstantsCommon.PATH_DECIMAL_SEPARATOR != null)\n \t{\n \t returnVal[1] = ConstantsCommon.PATH_DECIMAL_SEPARATOR;\n \t}\n }\n return returnVal;\n }", "private double parseAmount(String amount){\n return Double.parseDouble(amount.replace(\",\", \".\"));\n }", "public static String formatoDecimal(Double valor) \n\t{\n\t\treturn decimal.format(valor);\n\t}", "public static String formatarBigDecimalParaStringComVirgula(BigDecimal valor) {\r\n\r\n\t\tString valorItemAnterior = \"\" + valor;\r\n\t\tvalorItemAnterior = valorItemAnterior.replace(\".\", \",\");\r\n\t\treturn valorItemAnterior;\r\n\t}", "private void roundNumber(String roundingFormat){\n float num1 = 0;\n num1 = Float.parseFloat(txtBox.getText());\n DecimalFormat format = new DecimalFormat(roundingFormat);\n txtBox.setText(String.valueOf(format.format(num1)));\n }", "public static String format(Object val, String pattern, String groupsepa, String decimalsepa)\n {\n try\n {\n \t String theGrpSep = groupsepa;\n \t String theDecSep = decimalsepa;\n \t if(theGrpSep == null || theGrpSep.isEmpty() || theDecSep == null || theDecSep.isEmpty())\n \t {\n \t // return group and decimal separator from session if any\n \t String[] grpDecArr = returnGroupDecimalSep();\n \t if(theGrpSep == null || theGrpSep.isEmpty())\n \t {\n \t\t theGrpSep = grpDecArr[0];\n \t }\n \t if(theDecSep == null || theDecSep.isEmpty())\n \t {\n \t\t theDecSep = grpDecArr[1];\n \t }\n \t }\n \t return format(val,pattern, theGrpSep.charAt(0), theDecSep.charAt(0));\n }\n catch(Exception e )\n {\n \t log.error(e, \"[NumberUtil] Error caught in method format\");\n \t return \"\";\n }\n }", "public void setDecimalSeparatorAlwaysShown(boolean newValue) {\n decimalSeparatorAlwaysShown = newValue;\n }", "private void setUpFormat() {\n form = (DecimalFormat)NumberFormat.getNumberInstance();\n form.setMaximumFractionDigits(precision);\n }", "public DecimalFormat() {\n // Always applyPattern after the symbols are set\n this.symbols = new DecimalFormatSymbols();\n applyPattern(mPattern, false);\n }", "@Accessor(qualifier = \"fieldSeparator\", type = Accessor.Type.SETTER)\n\tpublic void setFieldSeparator(final Character value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(FIELDSEPARATOR, value);\n\t}", "private static void appendDecimalUnit(@NonNull SpannableStringBuilder builder, @NonNull String localizedText, double number, int precision, @NonNull String unit) {\n TtsSpan.MeasureBuilder measureBuilder = new TtsSpan.MeasureBuilder()\n .setUnit(unit);\n\n if (precision == 0) {\n measureBuilder.setNumber((long)number);\n } else {\n // Round before extracting integral and decimal parts\n double roundedNumber = Math.round(Math.pow(10, precision) * number) / Math.pow(10.0, precision);\n long integerPart = (long) roundedNumber;\n // Extract the decimal part\n String fractionalPart = String.format(\"%.\" + precision + \"f\", (roundedNumber - integerPart)).substring(2);\n measureBuilder.setIntegerPart(integerPart)\n .setFractionalPart(fractionalPart);\n }\n\n builder.append(\" \")\n .append(localizedText, measureBuilder.build(), SPAN_INCLUSIVE_EXCLUSIVE);\n }", "private String nanoFormat(String amount) {\n BigDecimal amountBigDecimal;\n try {\n amountBigDecimal = new BigDecimal(sanitizeNoCommas(amount));\n } catch(NumberFormatException e) {\n return amount;\n }\n\n if (amountBigDecimal.compareTo(new BigDecimal(0)) == 0) {\n return amount;\n } else {\n String decimal;\n String whole;\n String[] split = amount.split(\"\\\\.\");\n if (split.length > 1) {\n // keep decimal length at 10 total\n whole = split[0];\n decimal = split[1];\n decimal = decimal.substring(0, Math.min(decimal.length(), MAX_NANO_DISPLAY_LENGTH));\n\n // add commas to the whole amount\n if (whole.length() > 0) {\n DecimalFormat df = new DecimalFormat(\"#,###\");\n whole = df.format(new BigDecimal(sanitizeNoCommas(whole)));\n }\n\n amount = whole + \".\" + decimal;\n } else if (split.length == 1) {\n // no decimals yet, so just add commas\n DecimalFormat df = new DecimalFormat(\"#,###\");\n amount = df.format(new BigDecimal(sanitizeNoCommas(amount)));\n }\n return amount;\n }\n }", "private String formatDec(double number) {\n String returnString = \"\";\n DecimalFormat df = new DecimalFormat(\"#.##\");\n df.setRoundingMode(RoundingMode.HALF_UP);\n returnString = df.format(number);\n int dotPosition = returnString.lastIndexOf(\".\");\n if (dotPosition == -1) {\n returnString += \".00\";\n } else {\n if (returnString.substring(dotPosition, returnString.length() - 1).length() == 1) {\n returnString += \"0\";\n }\n }\n return returnString;\n }", "public String CurrencyFormatter(double val) {\n\n\n NumberFormat nf = NumberFormat.getCurrencyInstance();\n DecimalFormatSymbols decimalFormatSymbols = ((DecimalFormat) nf).getDecimalFormatSymbols();\n decimalFormatSymbols.setCurrencySymbol(\"\");\n ((DecimalFormat) nf).setDecimalFormatSymbols(decimalFormatSymbols);\n String ft=nf.format(val).trim();\n return ft;\n\n }", "public void setGroupingSeparator(AVT v)\n {\n m_groupingSeparator_avt = v;\n }", "public void setDecimal(java.math.BigDecimal param) {\n this.localDecimal = param;\n }", "private double convert(double d){\n\t\tDecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\",symbols); \n\t\treturn Double.valueOf(df.format(d));\n\t}", "public static String multiFormatNumber(Number theValue, String format, String groupSep, String decimalSep) throws BaseException\n {\n try\n {\n \tString result = null;\n \tNumber value = theValue;\n \tDecimalFormat _df = new DecimalFormat();\n \t_df.setRoundingMode(RoundingMode.HALF_UP);\n \tif(format.indexOf(\";\") == -1)\n \t{\n \t _df.applyPattern(format);\n\t result = _df.format(value);\n\t \n \t}\n \telse\n \t{\n\n \t String[] formatting = null;\n \t String[] formatType = { \"posFrmt\", \"negFrmt\", \"zeroFrmt\", \"nullFrmt\" };\n \t HashMap<String,String> formatMap = new HashMap<String,String>();\n \t formatting = format.split(\";\");\n\n \t for(int i = 0; i < formatting.length; i++)\n \t {\n \t\tformatMap.put(formatType[i], formatting[i]);\n \t }\n\n \t \n \t if(value == null)\n \t {\n \t\tif(formatMap.get(\"nullFrmt\") != null)\n \t\t{\n \t\t _df.applyPattern(formatMap.get(\"nullFrmt\"));\n \t\t result = _df.format(0);\n \t\t}\n \t }\n \t else\n \t {\n \t\tDouble valDouble = value.doubleValue();\n \t\tif(valDouble > 0)\n \t\t{\n \t\t if(formatMap.get(\"posFrmt\") != null)\n \t\t {\n \t\t\t_df.applyPattern(formatMap.get(\"posFrmt\"));\n \t\t\tresult = _df.format(value);\n \t\t }\n \t\t}\n \t\telse if(valDouble < 0)\n \t\t{\n \t\t if(formatMap.get(\"negFrmt\") != null)\n \t\t {\n \t\t\t_df.applyPattern(formatMap.get(\"negFrmt\"));\n \t\t\tvalue = Math.abs(valDouble);\n \t\t\tresult = _df.format(value);\n \t\t }\n \t\t}\n \t\telse if(valDouble == 0)\n \t\t{\n \t\t if(formatMap.get(\"zeroFrmt\") == null)\n \t\t {\n \t\t\t_df.applyPattern(formatMap.get(\"posFrmt\"));\n \t\t }\n \t\t else\n \t\t {\n \t\t\t_df.applyPattern(formatMap.get(\"zeroFrmt\")); \t\t\t\n \t\t }\n \t\t result = _df.format(valDouble);\n \t\t}\n \t }\n \t}\n \t\n \tString returnFrmt = null;\n \tif(result != null)\n \t{\n \t String theGrpSep = groupSep;\n \t String theDecSep = decimalSep;\n \t if(theGrpSep == null || theGrpSep.isEmpty() || theDecSep == null || theDecSep.isEmpty())\n \t {\n \t\t// return group and decimal separator from session if any\n \t\tString[] grpDecArr = returnGroupDecimalSep();\n \t\tif(theGrpSep == null || theGrpSep.isEmpty())\n \t\t{\n \t\t theGrpSep = grpDecArr[0];\n \t\t}\n \t\tif(theDecSep == null || theDecSep.isEmpty())\n \t\t{\n \t\t theDecSep = grpDecArr[1];\n \t\t}\n \t }\n \t // need first to replace by #grpSep# so that in case the group separator is equal to dot . the replacement will be correct\n \t returnFrmt = result.replace(\",\",\"#grp#\");\n \t returnFrmt = returnFrmt.replace(\".\",theDecSep+\"\");\n \t returnFrmt = returnFrmt.replace(\"#grp#\",theGrpSep+\"\");\n \t}\n\t \n\t return returnFrmt;\n }\n catch(Exception e)\n {\n \t throw new BaseException(e);\n }\n }", "public\n void insertString(int offset, String str, AttributeSet a) throws BadLocationException {\n if (str == null) {\n return;\n }\n\n /* Insert the string if it is formatted properly. */\n try {\n double d = Double.parseDouble(str);\n } catch (NumberFormatException e) {\n\n /* Handle decimal points the first time they appear. */\n if (!str.equals(\".\")) {\n return;\n } else if (str.equals(\".\") && !firstDecimal) {\n return;\n } else {\n firstDecimal = false;\n }\n }\n\n\n /* If the string was successfully parsed but had a decimal point\n in it (as could happen when this class is instantiated with\n a given value), the firstDecimal flag must be set. */\n if (str.indexOf(\".\") != -1) {\n firstDecimal = false;\n }\n\n /* Insert the string into the field. */\n super.insertString(offset, str, a);\n }", "public static double ensureDecimal(String rawValue, int place) {\r\n\t\tString returnValue = \"\";\r\n\t\tif (rawValue.indexOf(\".\") == -1) {\r\n\t\t\treturnValue = rawValue.substring(0, (place - 1)) + \".\"\r\n\t\t\t\t\t+ rawValue.substring(place - 1);\r\n\t\t\t// System.out.println(returnValue);\r\n\t\t\treturn (Double.parseDouble(returnValue));\r\n\t\t} else\r\n\t\t\treturn Double.parseDouble(rawValue);\r\n\t}", "public String formatoDecimales(double valorInicial, int numeroDecimales ,int espacios) { \n String number = String.format(\"%.\"+numeroDecimales+\"f\", valorInicial);\n String str = String.valueOf(number);\n String num = str.substring(0, str.indexOf(',')); \n String numDec = str.substring(str.indexOf(',') + 1);\n \n for (int i = num.length(); i < espacios; i++) {\n num = \" \" + num;\n }\n \n for (int i = numDec.length(); i < espacios; i++) {\n numDec = numDec + \" \";\n }\n \n return num +\".\" + numDec;\n }", "public void setExtractLineSeparator (String linesep);", "@Override\n\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\ttry{\n\t\t\t\tbillAmount = Double.parseDouble(s.toString()) / 100.0;\n\t\t\t}\n\t\t\tcatch(NumberFormatException e)\n\t\t\t{\n\t\t\t\tbillAmount = 0.0;\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tamountDisplayTextView.setText(currencyFormat.format(billAmount));\n\t\t\tupdateStandard();\n\t\t\tupdateCustom();\n\t\t}", "public void set_post_comma(int val)\n {\n if(val <= this.raw_value.length)\n {\n this.post_comma_digits = val;\n }\n }", "public static void setFieldSeparator(char field) {\r\n\t\tfieldSep=\"\"+field;\r\n\t}", "static void parseDecimalAfterDot(Lexer<CSSToken, CharInput> lexer, CSSUnit defaultUnit, int beforeDecimal, BiConsumer<Integer, CSSUnit> toCall) throws IOException, ParserException {\n\t\tfinal CSSToken token = CSSParserHelperSize.parseDecimalAfterDot(lexer, defaultUnit,beforeDecimal, UNIT_OR_SEMICOLON_TOKENS, toCall);\n\t}", "public boolean isDecimalSeparatorAlwaysShown() {\n return decimalSeparatorAlwaysShown;\n }", "public static void setTextFieldDouble(TextField txt) {\n\t\ttxt.textProperty().addListener((obs, oldValue, newValue)->{\n\t\t\tif(newValue!=null && !newValue.matches(\"\\\\d*([\\\\.]\\\\d*)?\")) {\n\t\t\t\ttxt.setText(oldValue);\n\t\t\t}\n\t\t});\n\t}", "private void replaceCommaToDot(String contentString)\n {\n char[] charArray = contentString.toCharArray();\n \n for(int i = 0; i < charArray.length; i++)\n {\n //if comma, then replace to dot.\n if(charArray[i] == ',')\n {\n charArray[i] = '.'; \n }\n } \n //reconvert to String.\n contentString = charArray.toString();\n }", "public Integer getSep() {\n return sep;\n }", "public static String format1Decimals(double value, String suffix) {\n\t\tString p = String.valueOf(value);\n\t\tint ix = p.indexOf('.') + 1;\n\t\tint ex = p.indexOf('E');\n\t\tchar fraction = p.charAt(ix);\n\t\tif (fraction == '0') {\n\t\t\tif (ex != -1) {\n\t\t\t\treturn p.substring(0, ix - 1) + p.substring(ex) + suffix;\n\t\t\t} else {\n\t\t\t\treturn p.substring(0, ix - 1) + suffix;\n\t\t\t}\n\t\t} else {\n\t\t\tif (ex != -1) {\n\t\t\t\treturn p.substring(0, ix) + fraction + p.substring(ex) + suffix;\n\t\t\t} else {\n\t\t\t\treturn p.substring(0, ix) + fraction + suffix;\n\t\t\t}\n\t\t}\n\t}", "public JsonFactory setRootValueSeparator(String sep)\n/* */ {\n/* 696 */ this._rootValueSeparator = (sep == null ? null : new SerializedString(sep));\n/* 697 */ return this;\n/* */ }", "@Override\n public void onClickAtOKButton(int position) {\n DecimalFormat df = new DecimalFormat(\"####0.00\");\n\n\n\n }", "abstract String toDot();", "private void formatsetting() {\n SharedPreferences sharedPreferences =this.getSharedPreferences(Settings.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n //Fetching thepatient_mobile_Number value form sharedpreferences\n String FormattedString = sharedPreferences.getString(Settings.Format_Selected_SHARED_PREF,\"Thousands separator\");\n String DecimalplaceString= sharedPreferences.getString(Settings.Decimal_Place_Selected_SHARED_PREF,\"2\");\n Settings settings=new Settings(FormattedString,DecimalplaceString);\n formatter= settings.setting();\n }", "private void formatsetting() {\n SharedPreferences sharedPreferences =this.getSharedPreferences(Settings.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n //Fetching thepatient_mobile_Number value form sharedpreferences\n String FormattedString = sharedPreferences.getString(Settings.Format_Selected_SHARED_PREF,\"Thousands separator\");\n String DecimalplaceString= sharedPreferences.getString(Settings.Decimal_Place_Selected_SHARED_PREF,\"2\");\n Settings settings=new Settings(FormattedString,DecimalplaceString);\n formatter= settings.setting();\n }", "@Test\n public final void whenSemicolonDelimiterIsSpecifiedThenItIsUsedToSeparateNumbers() {\n assertEquals(3+6+15, StringCalculator.add(\"//;\\n3;6;15\"));\n }", "private void trataDesconto(String x){\n \n Double sub;\n \n descontoField.setText(porcentagem.format((Double.parseDouble(x))/100));\n descontoField.setEnabled(true);\n sub = retornaSubTotal(this.getVlrTotalItem(), Double.parseDouble(x));\n subTotalField.setText(moeda.format(sub));\n lblTotalGeral.setText(subTotalField.getText());\n this.setVlrTotalItem(sub);\n}", "DecimalFormat(String pattern, DecimalFormatSymbols symbols) {\n // Always applyPattern after the symbols are set\n this.symbols = (DecimalFormatSymbols) symbols.clone();\n applyPattern(pattern, false);\n }", "@Override\n public void onChanged(Double aDouble) {\n if (aDouble*1000 < 1) {\n etOutputValue.setText(\"0.0\");\n } else {\n DecimalFormat decimalFormat = new DecimalFormat(\"#,##0.###\");\n etOutputValue.setText(decimalFormat.format(aDouble));\n }\n }", "public Segment(double value, String text) {\n this(value);\n setText(text);\n }", "private static String decimalFormatLabel(final long value, final long divider,\r\n\t\t\tfinal String unit) {\r\n\t\tfinal double result = divider > 1 ? (double) value / (double) divider\r\n\t\t\t\t: (double) value;\r\n\t\treturn new DecimalFormat(\"#,##0.#\").format(result) + \" \" + unit;\r\n\t}", "private static String formatPRECIO(String var1)\r\n\t{\r\n\t\tString temp = var1.replace(\".\", \"\");\r\n\t\t\r\n\t\treturn( String.format(\"%09d\", Integer.parseInt(temp)) );\r\n\t}", "private static String removeDigitGroupSeparators(final String input)\n {\n final String output = input.trim();\n\n // Replace one occurrence only, otherwise we will generate an incorrect result\n if (output.contains(\",\"))\n {\n return output.replace(\",\", \"\");\n }\n else\n {\n return output.replace(\".\", \"\");\n }\n }", "private void setPresText(double pascals){\n String text;\n Formatter fmt = new Formatter();\n\n if (!((Double)pascals).isNaN()) {\n text = fmt.format(\"%4.2f mb\", pascals/100).out().toString();\n enableView(presText, true);\n }\n else {\n text = \"-- mb\";\n enableView(presText, false);\n }\n\n presText.setText(text);\n }", "public void calcPrecioTotal() {\n try {\n float result = precioUnidad * Float.parseFloat(unidades.getText().toString());\n prTotal.setText(String.valueOf(result) + \"€\");\n }catch (Exception e){\n prTotal.setText(\"0.0€\");\n }\n }", "static public String nf(float num, int lead, int decimal) {\n\t\tif (formatFloat==null) nfInitFormats();\n\t\tformatFloat.setMinimumIntegerDigits(lead);\n\t\tformatFloat.setMaximumFractionDigits(decimal);\n\t\tformatFloat.setMinimumFractionDigits(decimal);\n\n\t\treturn formatFloat.format(num).replace(\",\", \".\");\n\t}", "String getSeparator();", "private String doubleToDecimalString(double toFormat){\r\n\r\n String d = \"\";\r\n DecimalFormat df = new DecimalFormat(\"0.00\");\r\n d = df.format(toFormat);\r\n\r\n return d;\r\n }", "public void setValue (String text) throws ParseException {\n\t\tParsing t = new Parsing(text);\n\t\tint posini;\n\t\t/* Ignore the leading blanks */\n\t\tt.gobbleSpaces();\n\t\tposini = t.pos;\n\t\t/* Take care of units requiring data in Sexagesimal */\n\t\tif ((symbol.charAt(0) == '\"') && (symbol.indexOf(':')>0)) \t// \"\n\t\t\tvalue = t.parseSexa();\n\t\telse value = t.parseFactor();\n\t\tif (t.pos == posini) {\t\t// Nothing (NaN checked in Parsing)\n\t\t\tvalue = 0./0. ;\n\t\t\t// while ((t.pos < t.length) && (t.a[t.pos] == '-')) t.pos++;\n\t\t}\n\t\t/* Skip the trailing blanks */\n\t\tt.gobbleSpaces();\n\t\tif (t.pos < t.length) throw new ParseException\n\t\t(\"****Unit: setValue '\" + text + \"'+\" + t.pos, t.pos);\n\t}", "private String filterDecimalString(String string) {\n return string\n .replaceAll(\"[^0-9.]\", \"\")\n .replaceFirst(\"\\\\.\", \"@\")\n .replaceAll(\"\\\\.\", \"\")\n .replaceFirst(\"@\", \".\");\n }", "private static String format2(double d) {\n return new DecimalFormat(\"#.00\").format(d);\n }", "private String formatUsNumber(Editable text) {\n\t\tStringBuilder cashAmountBuilder = null;\n\t\tString USCurrencyFormat = text.toString();\n//\t\tif (!text.toString().matches(\"^\\\\$(\\\\d{1,3}(\\\\,\\\\d{3})*|(\\\\d+))(\\\\.\\\\d{2})?$\")) { \n\t\t\tString userInput = \"\" + text.toString().replaceAll(\"[^\\\\d]\", \"\");\n\t\t\tcashAmountBuilder = new StringBuilder(userInput);\n\n\t\t\twhile (cashAmountBuilder.length() > 3 && cashAmountBuilder.charAt(0) == '0') {\n\t\t\t\tcashAmountBuilder.deleteCharAt(0);\n\t\t\t}\n\t\t\twhile (cashAmountBuilder.length() < 3) {\n\t\t\t\tcashAmountBuilder.insert(0, '0');\n\t\t\t}\n\t\t\tcashAmountBuilder.insert(cashAmountBuilder.length() - 2, '.');\n\t\t\tUSCurrencyFormat = cashAmountBuilder.toString();\n\t\t\tUSCurrencyFormat = Util.getdoubleUSPriceFormat(Double.parseDouble(USCurrencyFormat));\n\n//\t\t}\n\t\tif(\"0.00\".equals(USCurrencyFormat)){\n\t\t\treturn \"\";\n\t\t}\n\t\tif(!USCurrencyFormat.contains(\"$\"))\n\t\t\treturn \"$\"+USCurrencyFormat;\n\t\treturn USCurrencyFormat;\n\t}", "@Override public String toDot() {\r\n return value.toDot(); \r\n }", "public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition ignore)\n/* */ {\n/* 1101 */ toAppendTo.append(format(number, this.defaultRuleSet));\n/* 1102 */ return toAppendTo;\n/* */ }", "public void setDefaultSourceLineSeparator (String linesep);", "static double formatNumber(double d) {\n\tDecimalFormat df= new DecimalFormat(COMMA_SEPERATED);\n\tSystem.out.println(\"number \"+df.format(d));\n\treturn d;\n\t\n\t\n\t}", "public DpFormatter(int dp) {\r\n mNf = new DecimalFormat(\"0.\" + TextUtils.repeat(\"0\", dp));\r\n }", "public void llenarnumerodecimales(java.awt.event.KeyEvent evt, int tamanioEntero, int tamanioDecimal, String txt){\n char c = evt.getKeyChar();\r\n int bDecimal = 0, bEntero = 0;\r\n// if ((c >= '0') || (c <= '9') && bEntero)\r\n// bEntero++;\r\n if (((c < '0') || (c > '9')) && (c != KeyEvent.VK_BACK_SPACE) && (c != '.')) {\r\n evt.consume();\r\n JOptionPane.showMessageDialog(null, \"Debe ingresar sólo números!!!\", \"Mensaje del sistema\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n if (c == '.' && txt.contains(\".\")) {\r\n evt.consume();\r\n JOptionPane.showMessageDialog(null, \"No puede ingresar más puntos!!!\", \"Mensaje del sistema\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "@Override\n public void afterTextChanged(Editable s) {\n String temp = s.toString();\n int d = temp.indexOf(\".\");\n if (d < 0) {\n return;\n }\n if (temp.length() - d - 1 > 2) {\n s.delete(d + 3, d + 4);\n } else if (d == 0) {\n s.delete(d, d + 1);\n }\n\n }", "public static String getDisplayCurrencyFormatTwoDecimalFixedAccounting(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\n\t\t\t\t\"###,###.#\");\n\t\tformat.setMaximumFractionDigits(2);\n\t\tformat.setMinimumFractionDigits(2);\n\t\t\n\t\tif (val < 0){\n\t\t\treturn \"(\"+ format.format(val * -1) + \")\";\t\n\t\t}else{\n\t\t\treturn format.format(val);\t\n\t\t}\n\n\t}", "public List<String> putDecimal(String p) {\n List<String> decCoordinates = new ArrayList<>();\n decCoordinates.add(p);\n\n //add a decimal point in between every index in s and add the value to the list of decimal coordinates\n for (int i = 1; i < p.length(); i++) {\n decCoordinates.add(p.substring(0, i) + \".\" + p.substring(i));\n }\n return decCoordinates;\n }", "private String moneyFormat(String money)\n {\n if(money.indexOf('.') == -1)\n {\n return \"$\" + money;\n }\n else\n {\n String dec = money.substring(money.indexOf('.')+1 , money.length());\n if(dec.length() == 1)\n {\n return \"$\" + money.substring(0, money.indexOf('.')+1) + dec + \"0\";\n }\n else\n {\n return \"$\" + money.substring(0, money.indexOf('.')+1) + dec.substring(0,2);\n }\n }\n }", "private void setFileSeparator() {\n\t\tthis.fileSeparator = System.getProperty(\"file.separator\");\n\t}", "public void setLineSeparator(String separator) {\r\n defaultFormat.lineSeparator = separator;\r\n }", "private ARXDecimal(String format, Locale locale) {\r\n if (format == null || format.equals(\"Default\")){\r\n this.format = null;\r\n this.string = null;\r\n this.locale = locale;\r\n } else {\r\n this.format = new DecimalFormat(format, new DecimalFormatSymbols(locale));\r\n this.string = format;\r\n this.locale = locale;\r\n }\r\n }", "public void setDateSeparator(char dateSeparator)\r\n {\r\n m_dateSeparator = dateSeparator;\r\n }", "BaseValue(boolean isVisible, int textColor, int textSize, float value,\n String suffix, Typeface font, DecimalFormat decimalFormat) {\n super(isVisible, textColor, textSize, font);\n mValue = value;\n mSuffix = suffix;\n mDecimalFormat = decimalFormat;\n }", "public NDArrayStrings(String colSep, int precision) {\n this.colSep = colSep;\n if (!colSep.replaceAll(\"\\\\s\", \"\").equals(\",\")) this.newLineSep = \"\";\n StringBuilder decFormatNum = new StringBuilder(\"0.\");\n\n int prec = Math.abs(precision);\n this.precision = prec;\n boolean useHash = precision < 0;\n\n while (prec > 0) {\n decFormatNum.append(useHash ? \"#\" : \"0\");\n prec -= 1;\n }\n this.decimalFormat = localeIndifferentDecimalFormat(decFormatNum.toString());\n }", "public static void main(String[] args) {\n\t\tdouble d = 1234567.437;\n\n\t\tDecimalFormat one = new DecimalFormat(\"###,###,###.###\");\n\t\tSystem.out.println(one.format(d)); // 1,234,567.437\n\n\t\tDecimalFormat two = new DecimalFormat(\"000,000,000.00000\");\n\t\tSystem.out.println(two.format(d)); // 001,234,567.43700\n\n\t\tDecimalFormat three = new DecimalFormat(\"$#,###,###.##\");\n\t\tSystem.out.println(three.format(d)); // $1,234,567.44\n\t}" ]
[ "0.65182686", "0.65147406", "0.6141453", "0.6066366", "0.593134", "0.5922321", "0.5801452", "0.5789569", "0.57544065", "0.5647937", "0.56298876", "0.5553773", "0.5523267", "0.5521636", "0.5469127", "0.5450157", "0.5449471", "0.54254395", "0.54092354", "0.533518", "0.52944165", "0.5266549", "0.52196354", "0.5219302", "0.51757777", "0.5171816", "0.5113988", "0.5107442", "0.5098664", "0.50894207", "0.5078683", "0.5055193", "0.5043891", "0.5041075", "0.5024294", "0.50240964", "0.5022263", "0.50004435", "0.4997938", "0.4979749", "0.49709594", "0.49557483", "0.49451965", "0.4928862", "0.49247718", "0.48796588", "0.4878335", "0.48715603", "0.4861939", "0.48565915", "0.4852163", "0.4843596", "0.4843428", "0.48344046", "0.48336512", "0.4810046", "0.48094308", "0.48051423", "0.4801629", "0.47863007", "0.4781695", "0.4780821", "0.4775292", "0.4774856", "0.47517332", "0.47517332", "0.47439674", "0.47433048", "0.4733274", "0.4729444", "0.47294107", "0.47264454", "0.47189984", "0.47178888", "0.47166726", "0.4710082", "0.4704286", "0.46944985", "0.46919963", "0.46887848", "0.4683585", "0.4677416", "0.46762654", "0.46732235", "0.4673194", "0.4669426", "0.46690726", "0.4657142", "0.4649613", "0.46380925", "0.46367323", "0.46360978", "0.46326986", "0.46306512", "0.46293053", "0.46114022", "0.45955563", "0.45939174", "0.45917836", "0.45742992" ]
0.6717054
0
Constructor for the bin claw
public BinClaw( PlasmaDoubleSolenoid solen, DigitalInput topSwitch, DigitalInput botSwitch ) { solenoid = solen; motor1 = new Talon( Constants.BIN_MOTOR_PORT ); topLimitSwitch = topSwitch; botLimitSwitch = botSwitch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Binary() { \n\t_decNum = 0;\n\t_binNum = \"0\";\n }", "public SmartBin() {\n items = new ItemType[7];\n curWeight = 0;\n curArrayIndex = 0;\n binNumber = \"SM\" + generateBinNumber();\n }", "public Binary( int n ) {\n\t_decNum = n;\n\t_binNum = decToBin(n);\n }", "public BinNumber(int currentBinNum) {\n this.currentBinNum = currentBinNum;\n }", "public Bombas(int x,int y) {\n \tsuper(x,y);\n }", "public BbsOperation () {\r\n\t\tsuper();\r\n\t}", "private Binomial(int n) {\n N = n;\n }", "public BinaryNode() {\n\t\tthis(null);\t\t\t// Call next constructor\n\t}", "public BinTree( BiNode root )\n {\n _root = root;\n }", "public void setBin(java.lang.String bin) {\r\n this.bin = bin;\r\n }", "public BinaryPulseNeuralFunction() {\n super();\n }", "public BinaryNode(String dataPortion) {\n\t\tthis(dataPortion, null, null);\t\t\t// Call next constructor\n\t}", "public Bite() {\r\n\t\tsuper(8, \"bites\");\r\n\t}", "public Bout()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n CreaBoutique();\n\n }", "public BinaryMatrixNew() {\n\t\t\tsuper(Matrixes.<R, C>newValidating(PredicateUtils.inBetween(0d, 1d)));\n\t\t}", "public Binarization(int threshold) {\n this.threshold = threshold;\n }", "public BinaryTree() {\n\t}", "public Boop() {\n\t\tsuper();\n\t}", "public BinaryArray(int[] binaries) {\n this.binaries = binaries;\n }", "public AbstractBinaryInteraction() {\n\n\t}", "private Histogram(int[] bins, double minValue, double maxValue) {\n this(bins.length - 2, minValue, maxValue);\n System.arraycopy(bins, 0, this.bins, 0, bins.length);\n }", "public BinNode (E data)\n {\n this.data = data;\n left = null;\n right = null;\n }", "public void setBin(final ByteArray bin) {\n this.bin = bin;\n }", "Constructor() {\r\n\t\t \r\n\t }", "public BinaryTree(){}", "public BitTwiddle() {\r\n\t\t}", "public HashMap(int bins){\n\t\tthis.numOfBins=bins;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}", "public BinaryHeap() {\n }", "public java.lang.String getBin() {\r\n return bin;\r\n }", "static void initBin(int[] binToInt)\n {\n for(int i = 0; i < 32; i++)\n {\n binToInt[i] = 0;\n }\n }", "public void setOpBin(int n) {\n opBin=Translate.decTobinN(n, 8);\n }", "BinaryOperation(final String binOperation, final int prior) {\n operation = binOperation;\n priority = prior;\n }", "public BbsOperation (java.lang.Integer id) {\r\n\t\tsuper(id);\r\n\t}", "public BLabel()\n {\n this((String) null, WEST);\n }", "public Binary(PrintWriter pw){\n\t\tthis.pw = pw;\n\t\tbinary = null;\n\t}", "public EmoticonBO()\n {}", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "private BinaryTree() {\n root = new Node(0);\n }", "public bly(int paramInt, Random paramRandom, bjb parambjb, EnumDirection paramej)\r\n/* 10: */ {\r\n/* 11:831 */ super(paramInt);\r\n/* 12: */ \r\n/* 13:833 */ this.m = paramej;\r\n/* 14:834 */ this.d = a(paramRandom);\r\n/* 15:835 */ this.l = parambjb;\r\n/* 16: */ }", "public Constructor(){\n\t\t\n\t}", "public FeedBinServiceImpl(Bin bin) {\n this.bin = bin;\n this.observers = ConcurrentHashMap.newKeySet();\n }", "public Bishop()\n {\n super();\n }", "private void createBin(int size) \n\t{\n\t// create an array of the appropriate type\n\tfBin = (Object[]) Array.newInstance(fClass, size);\t\n\t}", "public void setInBin(int n) {\n inBin=Translate.decTobinN(n, 4);\n }", "public NotBinaryNumberException(String bin) \n {\n super(bin + \" is not a binary number.\");\n }", "private Recycler(Class cls) \n\t{\n\tfClass = cls;\n\n\t// create an array with the initial bin size\n\tcreateBin(BIN_GROW_SIZE);\n\t}", "public ByteArray getBin() {\n return bin;\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 bin1 = new hellofx.Bin();\n bin3 = new hellofx.Bin();\n bin4 = new hellofx.Bin();\n bin5 = new hellofx.Bin();\n bin10 = new hellofx.Bin();\n bin12 = new hellofx.Bin();\n bin14 = new hellofx.Bin();\n bin15 = new hellofx.Bin();\n bin16 = new hellofx.Bin();\n bin17 = new hellofx.Bin();\n bin18 = new hellofx.Bin();\n bin20 = new hellofx.Bin();\n bin22 = new hellofx.Bin();\n bin23 = new hellofx.Bin();\n bin24 = new hellofx.Bin();\n bin25 = new hellofx.Bin();\n bin26 = new hellofx.Bin();\n bin27 = new hellofx.Bin();\n bin28 = new hellofx.Bin();\n bin29 = new hellofx.Bin();\n bin30 = new hellofx.Bin();\n bin32 = new hellofx.Bin();\n bin33 = new hellofx.Bin();\n bin34 = new hellofx.Bin();\n bin35 = new hellofx.Bin();\n bin11 = new hellofx.Bin();\n bin13 = new hellofx.Bin();\n bin19 = new hellofx.Bin();\n bin21 = new hellofx.Bin();\n bin31 = new hellofx.Bin();\n bin36 = new hellofx.Bin();\n bin37 = new hellofx.Bin();\n bin38 = new hellofx.Bin();\n bin39 = new hellofx.Bin();\n bin40 = new hellofx.Bin();\n bin41 = new hellofx.Bin();\n bin42 = new hellofx.Bin();\n bin43 = new hellofx.Bin();\n bin44 = new hellofx.Bin();\n bin45 = new hellofx.Bin();\n bin46 = new hellofx.Bin();\n bin47 = new hellofx.Bin();\n bin48 = new hellofx.Bin();\n bin49 = new hellofx.Bin();\n bin50 = new hellofx.Bin();\n bin51 = new hellofx.Bin();\n bin52 = new hellofx.Bin();\n bin53 = new hellofx.Bin();\n bin54 = new hellofx.Bin();\n bin55 = new hellofx.Bin();\n bin56 = new hellofx.Bin();\n bin57 = new hellofx.Bin();\n bin58 = new hellofx.Bin();\n bin59 = new hellofx.Bin();\n bin60 = new hellofx.Bin();\n bin61 = new hellofx.Bin();\n bin62 = new hellofx.Bin();\n bin63 = new hellofx.Bin();\n bin64 = new hellofx.Bin();\n bin65 = new hellofx.Bin();\n bin66 = new hellofx.Bin();\n bin67 = new hellofx.Bin();\n bin68 = new hellofx.Bin();\n bin69 = new hellofx.Bin();\n bin70 = new hellofx.Bin();\n bin71 = new hellofx.Bin();\n bin72 = new hellofx.Bin();\n bin73 = new hellofx.Bin();\n bin74 = new hellofx.Bin();\n bin75 = new hellofx.Bin();\n bin76 = new hellofx.Bin();\n bin77 = new hellofx.Bin();\n bin78 = new hellofx.Bin();\n bin79 = new hellofx.Bin();\n bin80 = new hellofx.Bin();\n bin81 = new hellofx.Bin();\n bin82 = new hellofx.Bin();\n bin83 = new hellofx.Bin();\n bin84 = new hellofx.Bin();\n bin85 = new hellofx.Bin();\n bin86 = new hellofx.Bin();\n bin87 = new hellofx.Bin();\n bin88 = new hellofx.Bin();\n bin89 = new hellofx.Bin();\n bin90 = new hellofx.Bin();\n bin91 = new hellofx.Bin();\n bin92 = new hellofx.Bin();\n bin93 = new hellofx.Bin();\n bin94 = new hellofx.Bin();\n bin95 = new hellofx.Bin();\n bin96 = new hellofx.Bin();\n bin97 = new hellofx.Bin();\n bin98 = new hellofx.Bin();\n bin99 = new hellofx.Bin();\n bin100 = new hellofx.Bin();\n bin101 = new hellofx.Bin();\n bin102 = new hellofx.Bin();\n bin103 = new hellofx.Bin();\n bin104 = new hellofx.Bin();\n bin105 = new hellofx.Bin();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setPreferredSize(new java.awt.Dimension(666, 489));\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 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin66, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin68, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin71, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin73, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin74, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin76, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin84, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin86, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin90, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin92, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin93, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin95, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin100, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin101, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin103, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin70, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin63, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin75, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin60, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(bin88, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin81, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(bin94, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin72, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin102, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin99, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin56, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin57, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin59, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin62, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin64, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin67, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin78, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin80, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin87, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin91, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin96, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin98, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin79, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin82, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin89, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin58, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin105, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin65, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin104, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(bin83, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin69, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(bin97, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin61, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin85, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin77, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin32, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin33, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin35, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(bin24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(bin28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin34, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin30, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin36, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin38, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin39, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin41, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin44, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin46, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin50, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin52, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin53, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin55, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin45, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin47, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin51, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin31, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin40, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(bin48, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin42, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(bin54, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin37, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bin49, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bin43, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))\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.LEADING)\n .addComponent(bin10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin30, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin32, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin33, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin34, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin35, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin38, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin39, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin40, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin41, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin31, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin36, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin37, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin52, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin53, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin54, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin55, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin42, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin44, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin46, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin48, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin50, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin43, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin45, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin47, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin49, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin51, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin60, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin73, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin74, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin75, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin76, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin63, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin66, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin68, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin70, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin71, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin72, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin92, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin93, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin94, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin95, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin81, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin84, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin86, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin88, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin90, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin99, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin100, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin101, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin102, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin103, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin104, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin62, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin64, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin65, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin67, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin105, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin56, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin57, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin58, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin59, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin61, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin91, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin96, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin97, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin98, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin69, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin78, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin80, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin83, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin87, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bin77, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin79, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin82, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin85, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bin89, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))\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.PREFERRED_SIZE, 414, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 414, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "public Boleta(){\r\n\t\tsuper();\r\n\t}", "public BinaryTree()\r\n\t{\r\n\t\t// Initialize field values\r\n\t\tthis.counter = 0;\r\n\t\tthis.arrayCounter = 0;\r\n\t\tthis.root = null;\r\n\t}", "public Boleto() {\n this(3.0);\n }", "public LocalUniformBinaryPatternHistogram(int blocksize_x, int blocksize_y) {\n\t\tthis.blocksize_x = blocksize_x;\n\t\tthis.blocksize_y = blocksize_y;\n\t}", "public BFUnit(){\n \n }", "public BinaryField(JNIBinaryField field)\n\t{\n\t\tsetInternal(field);\n\t}", "public DataInt() {\n }", "private RunLengthEncoder() {\r\n }", "public Billfold()\n {\n \n }", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "public Orbiter() {\n }", "public BabbleValue() {}", "public Coin() {\n this.conteneurs = new ArrayList<>();\n this.col = Couleur.INNOCUPE;\n }", "public Cell()\n\t{\n\t}", "Composite() {\n\n\t}", "public Boat() {\n }", "public Histogram(int bins, double minValue, double maxValue) {\n this.bins = new int[bins + 2];//Two additional bins for out-of-bounds values.\n this.minValue = minValue;\n this.maxValue = maxValue;\n binDiff = (maxValue - minValue) / bins;\n }", "public Wall(int x, int y)\r\n\t{\r\n\t\tsuper(x,y);\r\n\t}", "private BinaryTreeMethods() {\n }", "public WeightedEdge(){\n\t\t\n\t}", "public Coin(String coin, String base){\n this.coin = coin;\n this.base = base;\n }", "public Chromosome(){\n super();\n }", "public Cell(){}", "public synchronized void setBinCount(int count)\n { binCount = count;\n this.whitener = new Whitener(binCount);\n this.binValues = new float[binCount];\n this.meanValues = new float[binCount];\n this.whiteBinValues = new float[binCount];\n this.peakBinValues = new float[binCount];\n }", "public BinaryNumber(int length){\n\t\tdata = new int[length];\n\t\tfor (int i=0; i<length; i++){\n\t\t\tdata[i] = 0;\n\t\t}\n\t}", "public Stat() {\n\t\tdata = new SuperArray();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic RelationClass() {\n\t\t\n\t\tParser pars = new Parser(FILE_NAME); \t\t\t\t\t\t\t\n\t\tint bucketlength = 0;\n\t\tbucketlength = (int) (pars.getNumOfLines()*BUCKET_MULTIPLIER);\n\t\tbuckets = (Node<k,v>[]) new Node<?,?>[bucketlength];\n\t\tpars.process(this);\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "public BarSeat(){\n\t\tsuper(1);\n\t}", "public BLabel(Icon image)\n {\n this(image, WEST);\n }", "public buu(bos bos, bux bux) {\n super(buv.a, bos);\n this.h = bux;\n }", "public TwoSum() {\n\n }", "private ByteTools(){}", "public BinarySearchTree() {\n\n\t}", "private NodoBin<T> clonarAS(NodoBin<T> r){\t\t\t\t\n if(r==null)\n return r;\n else\n {\n NodoBin<T> aux=new NodoBin<T>(r.getInfo(), clonarAS(r.getIzq()), clonarAS(r.getDer()));\n return aux;\n }\n }", "@Test\n public void testConstructor3()\n {\n final BinaryEncoder encoder = new BinaryEncoder(0, 16, 1.0);\n assertThat(encoder.getMin(), is(0.0));\n assertThat(encoder.getMax(), is(16.0));\n assertThat(encoder.getDelta(), is(1.0));\n assertThat(encoder.getLength(), is(4));\n }", "public JodaBeanBinWriter binWriter() {\n return new JodaBeanBinWriter(this, false);\n }", "private Bits32() {\r\n }", "public Bonus (){\n\t\tsuper (); \n\t\t//TODO [CORRECCION] Tiene una clase Config, utilizarla para estos valores fijos.\n\t\tthis.tiempoDeVida = Config.BONUS_VIDA; // cantidad de turnos\n\t\tPosicion posicion = new Posicion(randX.nextInt(), randY.nextInt());\n\t\tTamanio tamanio = new Tamanio(Config.BONUS_ANCHO, Config.BONUS_ALTO);\n\t\tthis.setPosicion(posicion);\n\t\tthis.setTamanio(tamanio);\n\t}", "public Bid() {}", "public BinaryNumber(int length) {\n\t\tdata = new int[length];\n\t\tfor(int i = 0;i < length;i++) {\n\t\t\tdata[i] = 0;\n\t\t}\n\t}", "public Banco(){}", "public C05_BMI() {\n\t\t\n\t}", "public LInfSCBLens(){\n\tsuper();\n }", "public Ball(int number){\r\n this.num = number;\r\n }", "public BVHashtable()\n {\n super();\n }", "public Pixel() {\r\n\t\t}", "public BinaryTree() {\n count = 0;\n root = null;\n }", "public BArbol(NodoArbol primero) {\n this.primero = primero;\n }", "public void setParBin(int n) {\n parBin=Translate.decTobinN(n, 16);\n }", "public BinNumber(ChartConfig config, int dataSize) {\n this.currentBinNum = calculateBinNumWithConfig(config, dataSize);\n }", "public BatchControl() {\n super();\n }", "public BilanComptable() {\n initComponents();\n \n \n \n }", "public BinaryTreeZusatz(BinaryNode wurzel) {\n super(wurzel);\n }" ]
[ "0.74702716", "0.6796388", "0.66518843", "0.66424245", "0.66361886", "0.6364595", "0.6292284", "0.6281987", "0.62780964", "0.6210843", "0.6140244", "0.6139339", "0.61266345", "0.61151266", "0.6112886", "0.61106986", "0.6103802", "0.60913116", "0.6070378", "0.6014087", "0.60096616", "0.6001382", "0.5999099", "0.5973993", "0.5973319", "0.59327954", "0.59171563", "0.59163594", "0.59104514", "0.59025294", "0.5885002", "0.5882773", "0.5880843", "0.58356297", "0.5830026", "0.5816014", "0.5814322", "0.5807703", "0.5794293", "0.57899386", "0.578405", "0.57713246", "0.5769363", "0.5766091", "0.57592916", "0.5753529", "0.57466227", "0.57434446", "0.5741615", "0.5734364", "0.57162774", "0.571464", "0.5712107", "0.57084835", "0.5694956", "0.5677394", "0.5675198", "0.56682503", "0.5662666", "0.5656678", "0.5640194", "0.56260073", "0.5605225", "0.55983466", "0.559674", "0.559663", "0.55870426", "0.558351", "0.5582853", "0.5571635", "0.55672616", "0.5563847", "0.556329", "0.55480146", "0.5543874", "0.5541941", "0.5541134", "0.5526411", "0.55102634", "0.5506071", "0.55036277", "0.5502529", "0.55006534", "0.5500028", "0.54914755", "0.5490411", "0.5486787", "0.54848534", "0.5479829", "0.5473304", "0.5471822", "0.5468423", "0.5468291", "0.54672605", "0.5460229", "0.5458226", "0.5456342", "0.5455395", "0.5449415", "0.5429223", "0.54276735" ]
0.0
-1
Raise the claw. The claw will keep going until told otherwise
public void up() { motor1.set( Constants.CLAW_MOTOR_SPEED ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void chew() {\n MessageUtility.logSound(name,\"Bleats and Stomps its legs, then chews\");\n }", "public void raiseFoodFlag(){\n\t\tif(foodFlag != true && amountWorms > 0){\n\t\t\tfoodFlag = true;\n\t\t\tsw.getInstance(this);\n\t\t\tamountWorms--;\n\t\t\tAquaFrame.initWormStatus(amountWorms);\n\t\t}\n\t\telse{\n\t\t\tint num = 0;\n\t\t\tif(amountWorms == 0){\n\t\t\t\tupdate();\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void cookChicken(int noOfChicken) {\n System.out.println(\"please place the chicken in the grill machine\");\r\n grillmachine.setState(grillmachine.getCookingState());\r\n\t}", "public void openHangerClaws() {\n\t\tcubeSolenoid.set(DoubleSolenoid.Value.kForward);\n\t\t\n\t}", "public void raise(){\r\n elevatorTalon1.set(basePWM);\r\n elevatorTalon2.set(basePWM * pwmModifier);\r\n }", "public void act()\n {\n \n if (wait < 75)\n {\n wait = wait + 1;\n }\n \n \n \n \n \n \n if (wait == 75)\n {\n change();\n checkForBounce();\n checkForEdge();\n checkWin(); \n }\n \n \n }", "public void appraise(Belief belief, Agent agent) {\n this.gamygdala.appraise(belief, agent);\n }", "public void caughtCheating(){\n\t\tinGoodStanding = false;\n\t}", "public void clawOpen(){\n claw.setPosition(0.1);\n }", "public void appraise(Belief belief) {\n this.gamygdala.appraise(belief, null);\n }", "@Override\n\tpublic void laugh() {\n\t\tSystem.out.println(\"Can laugh\");\n\t}", "public void fly() \r\n\t{\r\n\t\tSystem.out.println(\"Sparrow flying high...\"); \r\n\t}", "public void close(){\n \tisClosed = true;\n \tClawAct.set(true);\n\t\tRobot.oi.armRumble(RUMBLE_DURATION);\n }", "@Override\n\tpublic void breath() {\n\n\t}", "public void breath() {\n\t\tif (alive) {\n\t\t\t_age++;\n\t\t\t// Respiration process\n\t\t\tboolean canBreath = useEnergy(Math.min((_mass - _lowmaintenance) / Utils.SEGMENT_COST_DIVISOR, _energy));\n\t\t\tif ((_age >> 8) > _geneticCode.getMaxAge() || !canBreath) {\n\t\t\t\t// It's dead, but still may have energy\n\t\t\t\tdie(null);\n\t\t\t} else {\n\t\t\t\tif (_energy <= Utils.tol) {\n\t\t\t\t\talive = false;\n\t\t\t\t\t_world.decreasePopulation();\n\t\t\t\t\t_world.organismHasDied(this, null);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// The corpse slowly decays\n\t\t\tuseEnergy(Math.min(_energy, Utils.DECAY_ENERGY));\n\t\t}\n\t}", "public ResetClawArm() {\n\n\t\tif(Robot.kClawArm.isClawRetracted() == true) {\n\t\t\taddSequential(new DeployClawArm());\n\t\t}\n\t\telse {\n\t\t\taddSequential(new RetractClawArm());\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic void fly() {\n\t\tsuper.fly();\r\n\t\tsuper.fly();\r\n\t\tsuper.fly();\r\n\t}", "public void fly() {\r\n\t\tSystem.out.print(\"This Goose flies\");\r\n\t}", "public void effect() {\n if (course == 2) {\n //RIGHT\n x += fac;\n } else if (course == 5) {\n //LEFT\n x -= fac;\n } else {\n y = (int)(origY + fac * f * Math.tan(angle)) + offsetY;\n x = (int)(origX + fac * f) + offsetX;\n }\n boolean b = computeCell();\n\n if (b) {\n //Detect ennemy\n if (current != null) {\n Player p = current.getOccupied();\n if (p != null && p != thrower) {\n p.makeHimWait((Params.howLongBlockingMagician * 1000) / 2);\n this.destroy();\n }\n }\n }\n //Detect ennemy's cell\n if (current != null) {\n Team te = current.getOwner();\n if (te != thrower.getTeam() && current.getType() == 1) {\n current.setHp(current.getHp() - Params.archerDammage);\n if (current.getHp() <= 0) {\n current.setOwner(thrower.getTeam());\n current.setHp(thrower.getInitHP());\n }\n }\n if (current.isHeight()) {\n this.destroy();\n }\n } else {\n int bound = 10;\n //System.out.println(game.getWidth());\n if (this.x < -bound || this.x > game.getWidth() + bound || this.y < -bound ||\n this.y > game.getHeight() + bound) {\n this.destroy();\n }\n }\n\n f++;\n }", "@Override\r\n public void fromFearToChase() {\r\n if (afraid()) {\r\n startChase();\r\n }\r\n }", "public void act() \n {\n move(3);\n turnAtEdge(); \n StrikeSeaHorse();\n }", "public void eat() {\n if (!isTired()) {\n hunger -= 3;\n fatigue += 2;\n\n if (!muted) {\n System.out.println(\"eat\\t\\t|\\tYummy this is tasty!\");\n }\n }\n }", "@Override\r\n\tpublic void fly() {\n\t\t\r\n\t}", "public void brake() {\n\t\tsetPower(Motor.STOP);\r\n\t}", "private void aimlessScout() {\n\t\ttargetFlower = null;\n\t\t// if bee is sufficiently far from flower, look for other flowers\n\t\tif((clock.time - tempTime) > 0.15) {\n\t\t\tstate = \"SCOUTING\";\n\t\t}\n\t\t// otherwise keep flying\n\t\telse{\n\t\t\tcurrentAngle += RandomHelper.nextDoubleFromTo(-Math.PI/8, Math.PI/8);\n\t\t\tspace.moveByVector(this, 4, currentAngle,0);\n\t\t\tNdPoint myPoint = space.getLocation(this);\n\t\t\tgrid.moveTo(this, (int) myPoint.getX(), (int) myPoint.getY());\n\t\t\t//energy -= exhaustionRate;\n\t\t\tfood -= highMetabolicRate;\n\t\t}\n\t}", "public void act() \r\n {\r\n key();\r\n win();\r\n fall();\r\n lunch();\r\n }", "public void act() \r\n {\r\n super.mueve();\r\n super.tocaBala();\r\n super.creaItem();\r\n \r\n if(getMoveE()==0)\r\n {\r\n \r\n if(shut%3==0)\r\n {\r\n dispara();\r\n shut=shut%3;\r\n shut+=1;\r\n \r\n }\r\n else \r\n shut+=1;\r\n }\r\n super.vidaCero();\r\n }", "@Override\n\tpublic void swim() {\n\t\tthis.fly();\n\t}", "public void raiseFlatbed(){\n if(getCurrentSpeed() == 0){\n flatbed.raiseFlatbed();\n }\n }", "public void eat() {\n\t\tSystem.out.println(this.name + \" the \" + this.type + \" ate their rabbit meat.\");\n\t}", "public void act() \n {\n verificaClique();\n }", "public void act()\n {\n // if (claimer ==null){\n // this.setClaim(false);\n //}\n if(claimer == null){\n setClaim(false);\n }\n if (energy>0){\n \n removeEnergy(decayRate);\n\n }\n else {\n // getWorld().removeObject(this);\n\n }\n \n //check the energy decay\n //change size and weight\n //\n }", "public void cheat() {\r\n announce( \"cheat\" );\r\n }", "@Test\r\n\tpublic void testCaughtandThrownCorrectRecycling() throws InterruptedException{\n\t\tCollisions collision = new Collisions();\r\n\t\tDebris d = d3;\r\n\t\tMovementController.move(d);\r\n\t\tint d_xpos = d.getPosX();\r\n\t\tint d_ypos = d.getPosY();\r\n\t\tgc.getMainPlayer().updatePos(d_xpos, d_ypos);\r\n\t\tassertTrue(collision.checkCollision(gc.getMainPlayer(),d));\r\n\t\tThread.sleep(500);\r\n\t\td.catching();\r\n\t\tassertEquals(d.getState(), eFloaterState.LIFTED);\r\n\t\t\r\n\t\t\r\n\t\tThrowChoice action1 = gc.new ThrowChoice(eThrowDirection.LEFT, d);\r\n\t\taction1.actionPerformed(new ActionEvent(action1, ActionEvent.ACTION_PERFORMED, null){});\r\n\t\t//ThrowChosen\r\n\t\tThrowChosen action2 = gc.new ThrowChosen(d);\r\n\t\taction2.actionPerformed(new ActionEvent(action2, ActionEvent.ACTION_PERFORMED, null){});\r\n\t\tSystem.out.println(d.getState());\r\n\t\t\t\r\n\t\tassertEquals(d.getState(), eFloaterState.THROWING);\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\tspawnDebris action3 = gc.new spawnDebris();\r\n\t\taction3.actionPerformed(new ActionEvent(action3, ActionEvent.ACTION_PERFORMED, null){});\r\n\t\t\r\n\t\tThread.sleep(2000);\r\n\t\tassertEquals(d.getState(), eFloaterState.RESTING);\r\n\t\t//Resting on a bin\r\n\t\tassertTrue(d.getPosY()>140 && d.getPosY()<160);\r\n\t\t\r\n\t}", "public void open(){\n \ttriggerTimer.reset();\n \tisClosed = false;\n \tClawAct.set(false);\n\t\tRobot.oi.armRumble(RUMBLE_DURATION);\n }", "private void courseEffects() {\n\t\t\n\t}", "abstract public void triggerExplosion();", "private void clawBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clawBtnActionPerformed\n // TODO add your handling code here:\n\n if (clawFlag == 1) {\n clawFlag = 0;\n } else {\n clawFlag = 1;\n }\n\n repaint();\n\n }", "public void gainHealth()\n\t{\n\t\tSystem.out.println(\"1 heart gained\");\n\t}", "@Override\n\tpublic void passedBy() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(250);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 250 dollars by landing on Bonus Square\");\n\n\t}", "@Override\n public void eat() {\n System.out.println(\"Now doggo is eating\");\n chew();\n super.eat();\n }", "public void throwBait() {\n\t\tpokemon.eatBait();;\n\t}", "private void selfHeal() {\n\t\t\n\t\t//IF the Droid is carrying an item...\n\t\tif (this.getItemCarried() != null){\n\t\t\t\n\t\t\t//If the item is an oil can...\n\t\t\tif (this.getItemCarried().getShortDescription() == \"an oil can\" ) {\n\t\t\t\n\t\t\t\t//If the Droids health is LOWER than half...\n\t\t\t\tif((this.getInitialHP()/2) > this.getHitpoints()) {\n\t\t\t\t\tsay(this.getShortDescription() + \" is at or below half HP. \"\n\t\t\t\t\t\t\t+ \" Healing itself...\");\n\t\t\t\t\t\n\t\t\t\t\t//Implementing a new HealDroid method (Droid heals on itself)\n\t\t\t\t\t//public HealDroid(SWEntityInterface theTarget, MessageRenderer m) {\n\t\t\t\t\tHealDroid droidHeal = new HealDroid(this, messageRenderer);\n\t\t\t\t\t\n\t\t\t\t\tscheduler.schedule(droidHeal, this, 1);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}", "public void bake() {\n\t\twhile(true) {\n\t\t\tSystem.out.print(\"attempting to bake 1 souffle...\");\n\t\t\tif(Math.random() < 0.5) {\n\t\t\t\tSystem.out.println(\"success!\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"but it didn't rise\");\n\t\t\t\tprepare();\n\t\t\t}\n\t\t}\n\t}", "public void tick(){\n oilLevel --;\n maintenance --;\n happiness --;\n health --;\n boredom ++;\n }", "private void repaired() { //active\n activate();\n this.damageState = DamageState.DAMAGED;\n this.setCurrentLife(this.maxLife / REPAIR_LIFE_FACTOR);\n }", "public void eat() {\n\t\tSystem.out.println(\"Ape eating\");\n\t}", "@Override\n\tpublic void fly() {\n\t\t\n\t}", "public void act()\r\n {\n if (Greenfoot.getRandomNumber(1000)< flyRate)\r\n {\r\n addObject(new Fly(), getWidth(), Greenfoot.getRandomNumber(300));\r\n //flyRate++;\r\n }\r\n }", "public void act()\n {\n \n //move();\n //if(canSee(Worm.class))\n //{\n // eat(Worm.class);\n //}\n //else if( atWorldEdge() )\n //{\n // turn(15);\n //}\n\n }", "public void crown();", "public void accomplishGoal() {\r\n isAccomplished = true;\r\n }", "public void eatHay(Hay hay) {\n raiseFoodLevel(20);\n }", "public void raise()\n {\n dock_item.select();\n }", "@Override\r\n\tpublic void quack() {\n\t\tmGoose.honk();\r\n\t}", "private void eat3(){\n System.out.println(\"Fried Chicken\");\r\n }", "private final void kill() {\n\t\tgrown=false;\t\t\n\t}", "@Override\n protected void execute() {\n if (mClaw.getTargetMode() == TargetMode.CARGO) {\n // If the claw is in automatic mode (i.e. no input), determine the speeds\n if (mClaw.getControlMode() == ControlMode.AUTO) {\n // If there is cargo loaded, HOLD it\n if (mClaw.cargoLeftPresent() && mClaw.cargoRightPresent()) {\n mClaw.setSpinMode(SpinMode.HOLD);\n }\n else {\n mClaw.setSpinMode(SpinMode.STOP);\n }\n }\n // Otherwise we just use the ensureMode functionality to correctly spin\n }\n else if (mClaw.getTargetMode() == TargetMode.HATCH) {\n // If the claw is in automatic mode (i.e. no input), determine the speeds\n if (mClaw.getControlMode() == ControlMode.AUTO) {\n // If there is cargo loaded, HOLD it\n if (mClaw.hatchLeftPresent() && mClaw.hatchRightPresent()) {\n mClaw.setSpinMode(SpinMode.HOLD);\n }\n else {\n mClaw.setSpinMode(SpinMode.STOP);\n }\n }\n // Otherwise we just use the ensureMode functionality to correctly spin\n }\n\n // Make the appropriate adjustments\n mClaw.ensureMode();\n }", "@Override\r\n\tpublic void onMachine() {\n System.out.println(\"Please On the machine to cook \");\r\n grillmachine.setState(grillmachine.getOnState());\r\n\t}", "public void descend()\n {\n lift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.FLOAT);\n extend.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.FLOAT);\n\n latch.release();\n\n lift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n extend.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n intake.deploy();\n }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "public void eat( ) // Start eating\r\n {\r\n isEating = true; // Change the state\r\n isSleeping = false;\r\n return;\r\n }", "@Override\n\tpublic void landedOn() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(300);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 300 dollars by landing on Bonus Square\");\n\t\tMonopolyGameController.allowCurrentPlayerToEndTurn();\n\n\t}", "public void autoGrab(){\n \tif (getTrigger() == true){\n\t \tif(triggerTimer.get() >= TRIGGER_LOCKOUT){\n\t\t \tClawAct.set(true);\n\t\t \tisClosed = true;\n\t \t\tRobot.oi.armRumble(RUMBLE_DURATION);\n\t \t}\n \t}\n\n }", "public void act() \n {\n setLocation(getX(),getY()+1);\n givePower();\n delete();\n }", "public void fireScourge() {\n\t\t// Has player waited cooldown before trying to fire again?\t\tCHANGED to 10000\n\t\tif (System.currentTimeMillis() - this.lastFired > Config.WEAPON_COOLDOWN_TIME * 10000) {\n\t\t\tSystem.out.println(player.getDisplayName() + \" is attempting to launch napalm\");\n\t\t\t// Can this airship drop scourge?\n\t\t\tif (this.properties.FIRES_SCOURGE) {\n\t\t\t\tBlock[] cannons = getCannons();\n\t\t\t\tint numfiredcannons = 0;\n\t\t\t\tfor (int i = 0; i < cannons.length; i++) {\n\t\t\t\t\tif (cannons[i] != null && cannons[i].getRelative(0, -1, 0).getType().equals(Material.AIR) && cannonHasTnt(cannons[i], Config.NUM_TNT_TO_DROP_NAPALM)) {\n\t\t\t\t\t\tboolean missingMaterial = false;\n\t\t\t\t\t\tfor (int id : Config.MATERIALS_NEEDED_FOR_SCOURGE) {\n\t\t\t\t\t\t\tif (!cannonHasItem(cannons[i], id, 1))\n\t\t\t\t\t\t\t\tmissingMaterial = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!missingMaterial && numfiredcannons < this.properties.MAX_NUMBER_OF_CANNONS) {\n\t\t\t\t\t\t\tnumfiredcannons++;\n\t\t\t\t\t\t\tlastFired = System.currentTimeMillis();\n\t\t\t\t\t\t\twithdrawTnt(cannons[i], Config.NUM_TNT_TO_DROP_SCOURGE);\n\t\t\t\t\t\t\tfor (int id : Config.MATERIALS_NEEDED_FOR_SCOURGE) {\n\t\t\t\t\t\t\t\twithdrawItem(cannons[i], id, 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Fire some scourge TODO: maybe add sound effects for scourge dropping? :P\n\t\t\t\t\t\t\tnew Scourge(cannons[i]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// More cannons on ship than allowed. Not all fired - can break out of loop now.\n\t\t\t\t\t\t\t//player.sendMessage(ChatColor.AQUA + \"Some purifiers did not fire. Max cannon limit is \" + ChatColor.GOLD + this.properties.MAX_NUMBER_OF_CANNONS);\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.AQUA + \"Some purifiers did not fire. item check = \" + ChatColor.GOLD + missingMaterial);\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.AQUA + \"numFiredCannons = \" + ChatColor.GOLD + numfiredcannons);\n\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}\n\t\t\t} else\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + this.properties.SHIP_TYPE + \" CANNOT DROP NAPALM\");\n\t\t} else\n\t\t\tplayer.sendMessage(ChatColor.GOLD + \"COOLING DOWN FOR \" + ChatColor.AQUA + (int)(Math.round(6 - (System.currentTimeMillis() - this.lastFired) / 1000)) + ChatColor.GOLD + \" MORE SECONDS\");\n\t}", "@Override\n\tpublic void eat() {\n\t\t\n\t}", "public void reveal() {\n revealed = true;\n }", "@Override\r\n\tpublic void laught() {\n\r\n\t}", "protected void execute() {\n \tif (!initialized) {\n \tRobot.claw.resetClawPosition();\n \tRobot.claw.setClawTargetDegrees(0);\n \tclawOffset = -armDegrees;\n \tinitialized = true;\n \t}\n \t\n \t//Adjust the angle of the claw when the dpad is held\n \tif (Robot.oi.getGamepad2().getPOV() == 90) {\n \t\tif (Robot.oi.getGamepad2().getRawButton(8)) {\n \t\t\tRobot.claw.setClawTargetDegrees(Robot.claw.getClawTargetDegrees() + 1);\n \t\t} else {\n \t\t\tRobot.claw.setClawTargetDegrees(Robot.claw.getClawTargetDegrees() + 0.3);\n \t\t}\n \t} else if (Robot.oi.getGamepad2().getPOV() == 270) {\n \t\tif (Robot.oi.getGamepad2().getRawButton(8)) {\n \t\t\tRobot.claw.setClawTargetDegrees(Robot.claw.getClawTargetDegrees() - 1);\n \t\t} else {\n \t\t\tRobot.claw.setClawTargetDegrees(Robot.claw.getClawTargetDegrees() - 0.3);\n \t\t}\n \t}\n \t\n \tarmDegrees = Robot.arm.getArmDegrees();\n \tgoalClawDegrees = armDegrees + Robot.claw.getClawTargetDegrees() + clawOffset;\n \tgoalClawPosition = (goalClawDegrees * Robot.clawTicsPerDegree());\n \tRobot.claw.setClaw(goalClawPosition);\n \t\n \tSystem.out.println(\"goalClawDegrees = \" + goalClawDegrees + \" tics per degree = \" + Robot.clawTicsPerDegree());\n \tSystem.out.println(\"armDegrees = \" + armDegrees + \" Claw target = \" + Robot.claw.getClawTargetDegrees());\n }", "public void fireBombs() {\n electricSide.set(Value.kForward);\n pneumaticSide.set(Value.kForward);\n }", "@Override\n\tpublic void startEating() {\n\t\tthrow new RuntimeException(\"Robot cant eat\");\n\t}", "public void throwBall() {\r\n\t\tthis.move();\r\n\t\tballCount--;\r\n\r\n\t}", "public void heal3()\r\n {\r\n this.health = 1200;\r\n Story.healText3();\r\n }", "public void settle() {\n\t\tif (status.equals(FacturaStatus.ABONADA)) {\n\t\t\tthrow new IllegalStateException(\"La factura ya está abonada.\");\n\t\t} else if (this.sumarCargos() != importe) {\n\t\t\tthrow new IllegalStateException(\"Los pagos hehcos no cubren el total del importe de la factura.\");\n\t\t} else {\n\t\t\tthis.status = FacturaStatus.ABONADA;\n\t\t}\n\t}", "public void lookAround() {\n\t\t\tdisplay(\"The room is full of gold!\");\n\t\t}", "public void eat()\n {\n System.out.println(\"You have eaten now and you are not hungry any more\");\n }", "public void act() \n {\n if (canGiveTestimony()) {\n giveTestimony();\n }\n }", "public void turnCW() {\n turn(true);\n }", "public void eat() {\n\t\tSystem.out.println(\"They eat...\");\n\t}", "private void action() {\r\n moveSnake();\r\n if (hasEatenPowerUp() == false) checkForCollisionWithSelf();\r\n if (hasHitBoundry() == false) redraw();\r\n }", "@Override\n\tpublic void activity() {\n\t\tSystem.out.println(\"relaxing\");\n\t}", "public void eat () {\n System.out.println(\"He's eating everything\" );\n }", "public void raiseBed(int angle) {\n\n if (getCurrentSpeed() == 0)\n truckBed.raiseRamp(angle);\n else\n System.out.println(\"You can't raise the bed when the truck is moving.\");\n }", "@Override\n\tpublic void cook() {\n\t\tSystem.out.println(\"Cooking....\\n\");\n\t}", "private void remindGoal()\n {\n System.out.println(\"you have to Pick up all three items and get back outside!\");\n }", "public void checkGrowth() {\n if (age == 100) {\n double h = ((Growable)delegate).currentHealth;\n delegate = new Sprout(gc, x, y, h);\n }\n if (age == 200) {\n double h = ((Growable)delegate).currentHealth;\n delegate = new Bud(gc, x, y, h);\n }\n if (age == 300) {\n double h = ((Growable)delegate).currentHealth;\n delegate = new Blossom(gc, x, y, h);\n }\n if (age == 400) {\n double h = ((Growable)delegate).currentHealth;\n delegate = new Bloom(gc, x, y, h);\n }\n if (age == 500) {\n delegate = new Seed(gc, x, y);\n age = 0;\n GameManager.score += 100;\n }\n\n if (getCurrentHealth() <= 0) {\n delegate = new Seed(gc, x, y);\n GameManager.lives--;\n }\n delegate.wilt();\n delegate.update();\n }", "public void fire() {\n \tintakeTalon1.set(1);\n \tintakeTalon2.set(1);\n }", "public void onImpact() {\r\n die();\r\n }", "private void sharplyChange(){\r\n\t\t\tgovernmentLegitimacy -= 0.3;\r\n\t\t}", "public void eat() {\r\n System.out.println(\"ORANGES\");\r\n }", "void bake() {\n\t\tSystem.out.println(\"Bake for 25 mins at 350\\u00b0\");\n\t}", "@Override\n protected void end() {\n Robot.SCISSOR.extendLift(0);\n }", "public void eatApple() {\n\t\teaten = peeled && !eaten ? true : false;\n\t}", "public void onImpact() {\n die();\r\n this.getArrow().remove();\r\n }", "private void pulse()\n {\n }", "public void turnCCW() {\n turn(false);\n }", "public void act() \n {\n moveAround();\n die();\n }", "public void makesHereBack(){this.piece.affect();}", "public boolean cure() {\r\n\t\tboolean needsCure = life < LIFE;\r\n\t\tif(needsCure) {\r\n\t\t\tlife = LIFE;\r\n\t\t\tSystem.out.println(\"I needed that! Thanks.\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"I don't need that! Give it to someone else, don't waste it! Thanks.\");\r\n\t\t}\r\n\t\treturn needsCure;\r\n\t}", "public void act() {\t\n\t\twhile (true) { \n\t\t\tleft(60); \n\t\t\t\n\t\t\t// draw a rectangle \n\t\t\tmove(70);\n\t\t\tright(90); \n\t\t\tmove(30); \n\t\t\tright(90); \n\t\t\tmove(70);\n\t\t\tright(90); \n\t\t\tmove(30); \n\t\t\tright(90); \n\t\t}\n\t}" ]
[ "0.67241305", "0.63670385", "0.6189121", "0.6181196", "0.6171663", "0.6165449", "0.6157402", "0.6146658", "0.6137977", "0.6131366", "0.60959", "0.60522974", "0.6032906", "0.6008876", "0.5951194", "0.59223706", "0.5889118", "0.58760834", "0.58754444", "0.5860245", "0.58550024", "0.58393455", "0.5833693", "0.579059", "0.5782832", "0.5773654", "0.5759576", "0.57504755", "0.5740159", "0.5717554", "0.5699649", "0.56937987", "0.5690193", "0.5656081", "0.56467533", "0.5643134", "0.5632852", "0.56327313", "0.5628183", "0.5617283", "0.56156725", "0.56125665", "0.56017315", "0.55975187", "0.55920446", "0.5590681", "0.55874", "0.55870706", "0.5582558", "0.5582467", "0.5580222", "0.55649555", "0.55647576", "0.55627805", "0.55602616", "0.5557927", "0.55504596", "0.55442095", "0.55411637", "0.5535771", "0.5535622", "0.55296624", "0.55207664", "0.5520081", "0.55165", "0.55154496", "0.55110663", "0.55100375", "0.5506279", "0.55052054", "0.54998505", "0.54987025", "0.5497524", "0.54812545", "0.5480337", "0.54762673", "0.5474752", "0.546289", "0.54598033", "0.5452348", "0.54456925", "0.5436935", "0.5435962", "0.5425164", "0.54246366", "0.5417577", "0.54138505", "0.5412496", "0.54117393", "0.5408988", "0.5403223", "0.5401151", "0.54010725", "0.5395389", "0.5392811", "0.53798145", "0.5378942", "0.537883", "0.53747725", "0.53718656", "0.53650784" ]
0.0
-1
Lowers the claw. The claw will keep going until told otherwise
public void down() { motor1.set( -Constants.CLAW_MOTOR_SPEED ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void chew() {\n MessageUtility.logSound(name,\"Bleats and Stomps its legs, then chews\");\n }", "public void sleep() {\n hunger += 1;\n fatigue = 0;\n\n if (isHungry()) {\n mood -= 1;\n } else {\n mood += 1;\n }\n\n if (!muted) {\n System.out.println(\"sleep\\t|\\tzzzZZZ *sheep*\");\n }\n }", "private void aimlessScout() {\n\t\ttargetFlower = null;\n\t\t// if bee is sufficiently far from flower, look for other flowers\n\t\tif((clock.time - tempTime) > 0.15) {\n\t\t\tstate = \"SCOUTING\";\n\t\t}\n\t\t// otherwise keep flying\n\t\telse{\n\t\t\tcurrentAngle += RandomHelper.nextDoubleFromTo(-Math.PI/8, Math.PI/8);\n\t\t\tspace.moveByVector(this, 4, currentAngle,0);\n\t\t\tNdPoint myPoint = space.getLocation(this);\n\t\t\tgrid.moveTo(this, (int) myPoint.getX(), (int) myPoint.getY());\n\t\t\t//energy -= exhaustionRate;\n\t\t\tfood -= highMetabolicRate;\n\t\t}\n\t}", "public void raiseFoodFlag(){\n\t\tif(foodFlag != true && amountWorms > 0){\n\t\t\tfoodFlag = true;\n\t\t\tsw.getInstance(this);\n\t\t\tamountWorms--;\n\t\t\tAquaFrame.initWormStatus(amountWorms);\n\t\t}\n\t\telse{\n\t\t\tint num = 0;\n\t\t\tif(amountWorms == 0){\n\t\t\t\tupdate();\n\t\t\t}\n\t\t}\n\t}", "public void turnOnCooler() {\n oilPompController.turnPompsOn();\n breakController.turnOff();\n mainPowerController.turnOn();\n supportPowerController.turnOn();\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n System.out.println(\"Waiting to stand up was interrupted.\");\n }\n supportPowerController.turnOff();\n System.out.println(\"System is running.\");\n }", "public void caughtCheating(){\n\t\tinGoodStanding = false;\n\t}", "public void fly() \r\n\t{\r\n\t\tSystem.out.println(\"Sparrow flying high...\"); \r\n\t}", "protected void wash() throws InterruptedException {\n\t\t// Lock hatch\n\t\tmyMachine.setLock(true);\n\n\t\tpreWash();\n\t\tmainWash();\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\trinse();\n\t\t}\n\t\tcentrifuge();\n\t\t// Unlock\n\t\tmyMachine.setLock(false);\n\t}", "public void lowerHealth() {\n Greenfoot.playSound(\"hit.wav\");\n lives--;\n move(-100);\n if (lives == 0) {\n die();\n }\n }", "public void repair(){\n if(health < 9) {\n this.health++;\n }\n }", "public void raiseFlatbed(){\n if(getCurrentSpeed() == 0){\n flatbed.raiseFlatbed();\n }\n }", "public void brake() {\n\t\tsetPower(Motor.STOP);\r\n\t}", "private void white(){\n\t\tthis.arretes_fW();\n\t\tthis.coins_fW();\n\t\tthis.coins_a1W();\n\t\tthis.coins_a2W();\n\t\tthis.aretes_aW();\n\t\tthis.cube[4] = \"W\";\n\t}", "private void pump_water() {\n\t\t\r\n\t}", "private void sharplyChange(){\r\n\t\t\tgovernmentLegitimacy -= 0.3;\r\n\t\t}", "public void fireScourge() {\n\t\t// Has player waited cooldown before trying to fire again?\t\tCHANGED to 10000\n\t\tif (System.currentTimeMillis() - this.lastFired > Config.WEAPON_COOLDOWN_TIME * 10000) {\n\t\t\tSystem.out.println(player.getDisplayName() + \" is attempting to launch napalm\");\n\t\t\t// Can this airship drop scourge?\n\t\t\tif (this.properties.FIRES_SCOURGE) {\n\t\t\t\tBlock[] cannons = getCannons();\n\t\t\t\tint numfiredcannons = 0;\n\t\t\t\tfor (int i = 0; i < cannons.length; i++) {\n\t\t\t\t\tif (cannons[i] != null && cannons[i].getRelative(0, -1, 0).getType().equals(Material.AIR) && cannonHasTnt(cannons[i], Config.NUM_TNT_TO_DROP_NAPALM)) {\n\t\t\t\t\t\tboolean missingMaterial = false;\n\t\t\t\t\t\tfor (int id : Config.MATERIALS_NEEDED_FOR_SCOURGE) {\n\t\t\t\t\t\t\tif (!cannonHasItem(cannons[i], id, 1))\n\t\t\t\t\t\t\t\tmissingMaterial = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!missingMaterial && numfiredcannons < this.properties.MAX_NUMBER_OF_CANNONS) {\n\t\t\t\t\t\t\tnumfiredcannons++;\n\t\t\t\t\t\t\tlastFired = System.currentTimeMillis();\n\t\t\t\t\t\t\twithdrawTnt(cannons[i], Config.NUM_TNT_TO_DROP_SCOURGE);\n\t\t\t\t\t\t\tfor (int id : Config.MATERIALS_NEEDED_FOR_SCOURGE) {\n\t\t\t\t\t\t\t\twithdrawItem(cannons[i], id, 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Fire some scourge TODO: maybe add sound effects for scourge dropping? :P\n\t\t\t\t\t\t\tnew Scourge(cannons[i]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// More cannons on ship than allowed. Not all fired - can break out of loop now.\n\t\t\t\t\t\t\t//player.sendMessage(ChatColor.AQUA + \"Some purifiers did not fire. Max cannon limit is \" + ChatColor.GOLD + this.properties.MAX_NUMBER_OF_CANNONS);\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.AQUA + \"Some purifiers did not fire. item check = \" + ChatColor.GOLD + missingMaterial);\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.AQUA + \"numFiredCannons = \" + ChatColor.GOLD + numfiredcannons);\n\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}\n\t\t\t} else\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + this.properties.SHIP_TYPE + \" CANNOT DROP NAPALM\");\n\t\t} else\n\t\t\tplayer.sendMessage(ChatColor.GOLD + \"COOLING DOWN FOR \" + ChatColor.AQUA + (int)(Math.round(6 - (System.currentTimeMillis() - this.lastFired) / 1000)) + ChatColor.GOLD + \" MORE SECONDS\");\n\t}", "private void sleep() {\n\t\ttargetFlower = null;\n\t\tif(startForaging()) {\n\t\t\t// add food to bee's crop for upcoming foraging run\n\t\t\tif(food < startingCrop){\n\t\t\t\thive.food -= (startingCrop - food);\n\t\t\t\tfood = startingCrop;\n\t\t\t}\n\t\t\tif(startScouting() || hive.dancingBees.size() <= 0) {\n\t\t\t\tstate = \"SCOUTING\";\n\t\t\t\tcurrentAngle = RandomHelper.nextDoubleFromTo(0, 2*Math.PI);\n\t\t\t}\n\t\t\telse{ // else follow a dance\n\t\t\t\t// if bee follows dance, store angle and distance in the bee object\n\t\t\t\tint index = RandomHelper.nextIntFromTo(0, hive.dancingBees.size() - 1);\n\t\t\t\tNdPoint flowerLoc = space.getLocation(hive.dancingBees.get(index).targetFlower);\n\t\t\t\tNdPoint myLoc = space.getLocation(this);\n\t\t\t\tdouble ang = SpatialMath.calcAngleFor2DMovement(space, myLoc, flowerLoc);\n\t\t\t\tdouble dist = space.getDistance(flowerLoc, myLoc);\n\t\t\t\t\n\t\t\t\t// start following dance at correct angle\n\t\t\t\tcurrentAngle = ang;\n\t\t\t\tfollowDist = dist;\n\t\t\t\tstate = \"FOLLOWING\";\n\t\t\t}\n\t\t}\n\t\telse { // continue sleeping\n\t\t\thive.food -= lowMetabolicRate/2;\n\t\t\thover(grid.getLocation(hive));\n\t\t\t// update energy and food storage\n\t\t\tif(food > startingCrop){\n\t\t\t\tfood -= foodTransferRate;\n\t\t\t\thive.food += foodTransferRate;\n\t\t\t}\n\t\t}\n\t}", "public void tick(){\n oilLevel --;\n maintenance --;\n happiness --;\n health --;\n boredom ++;\n }", "public void bake() {\n\t\twhile(true) {\n\t\t\tSystem.out.print(\"attempting to bake 1 souffle...\");\n\t\t\tif(Math.random() < 0.5) {\n\t\t\t\tSystem.out.println(\"success!\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"but it didn't rise\");\n\t\t\t\tprepare();\n\t\t\t}\n\t\t}\n\t}", "public void eat() {\n if (!isTired()) {\n hunger -= 3;\n fatigue += 2;\n\n if (!muted) {\n System.out.println(\"eat\\t\\t|\\tYummy this is tasty!\");\n }\n }\n }", "private int heavyAttack() {\n return attack(6, 2);\n }", "public void breath() {\n\t\tif (alive) {\n\t\t\t_age++;\n\t\t\t// Respiration process\n\t\t\tboolean canBreath = useEnergy(Math.min((_mass - _lowmaintenance) / Utils.SEGMENT_COST_DIVISOR, _energy));\n\t\t\tif ((_age >> 8) > _geneticCode.getMaxAge() || !canBreath) {\n\t\t\t\t// It's dead, but still may have energy\n\t\t\t\tdie(null);\n\t\t\t} else {\n\t\t\t\tif (_energy <= Utils.tol) {\n\t\t\t\t\talive = false;\n\t\t\t\t\t_world.decreasePopulation();\n\t\t\t\t\t_world.organismHasDied(this, null);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// The corpse slowly decays\n\t\t\tuseEnergy(Math.min(_energy, Utils.DECAY_ENERGY));\n\t\t}\n\t}", "@Override\r\n\tpublic void cookChicken(int noOfChicken) {\n System.out.println(\"please place the chicken in the grill machine\");\r\n grillmachine.setState(grillmachine.getCookingState());\r\n\t}", "public void cutHair(){\r\n \t\t System.out.println(\"The barber is cutting hair\");\r\n \t\t\ttry {\r\n\t\t\t sleep(5000);\r\n \t\t\t } catch (InterruptedException ex){ }\r\n \t\t }", "public void heal3()\r\n {\r\n this.health = 1200;\r\n Story.healText3();\r\n }", "public void turnCCW() {\n turn(false);\n }", "private static void caloriesBurned(int weight)\n {\n System.out.println(\"No more losers\");\n }", "public void turnCW() {\n turn(true);\n }", "@Override\n public void stress() {\n _brain.heart.accelerate(2);\n }", "public void get_haircut(){\r\n \t\t\tSystem.out.println(\"Customer \" + this.iD + \" is getting his hair cut\");\r\n \t\t\ttry {\r\n \t\t\t\tsleep(5050);\r\n \t\t\t } catch (InterruptedException ex) {}\r\n \t\t }", "@Override\r\n public void fromFearToChase() {\r\n if (afraid()) {\r\n startChase();\r\n }\r\n }", "public void lowerFoodFlag(){\n\t\tif(amountWorms == 0)\n\t\t\tJOptionPane.showMessageDialog(null , \"Run out all the worms!\",\"Warning Food\",JOptionPane.PLAIN_MESSAGE);\n\t\tfoodFlag = false;\n\t}", "private final void maintain(){\n\t\tif(host.getStrength()>MAINTENANCE_COST){\n\t\t\thost.expend(MAINTENANCE_COST);\n\t\t}\n\t\telse{\n\t\t\tkill();\n\t\t}\n\t}", "void bust() {\n\t\t_loses++;\n\t\t//_money -= _bet;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}", "@Override\n\tpublic void laugh() {\n\t\tSystem.out.println(\"Can laugh\");\n\t}", "private void fullRepaired() { //full life\n this.active = true;\n this.damageState = DamageState.FULL;\n }", "private void selfHeal() {\n\t\t\n\t\t//IF the Droid is carrying an item...\n\t\tif (this.getItemCarried() != null){\n\t\t\t\n\t\t\t//If the item is an oil can...\n\t\t\tif (this.getItemCarried().getShortDescription() == \"an oil can\" ) {\n\t\t\t\n\t\t\t\t//If the Droids health is LOWER than half...\n\t\t\t\tif((this.getInitialHP()/2) > this.getHitpoints()) {\n\t\t\t\t\tsay(this.getShortDescription() + \" is at or below half HP. \"\n\t\t\t\t\t\t\t+ \" Healing itself...\");\n\t\t\t\t\t\n\t\t\t\t\t//Implementing a new HealDroid method (Droid heals on itself)\n\t\t\t\t\t//public HealDroid(SWEntityInterface theTarget, MessageRenderer m) {\n\t\t\t\t\tHealDroid droidHeal = new HealDroid(this, messageRenderer);\n\t\t\t\t\t\n\t\t\t\t\tscheduler.schedule(droidHeal, this, 1);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}", "public void sleep() {\n \t\thealth = maxHealthModifier;\n \t\ttoxicity = 0;\n \t}", "public void clawOpen(){\n claw.setPosition(0.1);\n }", "public void breakWall() {\r\n\tbustedWall = true;\r\n}", "public void startFalling() {\n\t\tfalling = true;\n\t\tsetSpeedY(FALL_SPEED);\n\t}", "public void punch (int health)\n {\n\thealth -= 8;\n\thealth2 = health;\n }", "public void powerOn() \n\t{\n\t\t//put active to true\n\t\tactive = true;\n\t\t\n\t\t// Set attached lever\n\t\tif (FactoryModPlugin.LEVER_OUTPUT_ENABLED) {\n\t\t\tsetActivationLever(true);\n\t\t}\n\t\t\n\t\t//lots of code to make the furnace light up, without loosing contents.\n\t\tFurnace furnace = (Furnace) factoryPowerSourceLocation.getBlock().getState();\n\t\tbyte data = furnace.getData().getData();\n\t\tItemStack[] oldContents = furnace.getInventory().getContents();\n\t\tfurnace.getInventory().clear();\n\t\tfactoryPowerSourceLocation.getBlock().setType(Material.BURNING_FURNACE);\n\t\tfurnace = (Furnace) factoryPowerSourceLocation.getBlock().getState();\n\t\tfurnace.setRawData(data);\n\t\tfurnace.update();\n\t\tfurnace.getInventory().setContents(oldContents);\n\t\t//reset the production timer\n\t\tcurrentProductionTimer = 0;\n\t}", "@Override\r\n\tpublic void uniqueOnStartInteraction() {\n\t\tif (Main.clientPlayer.getNumWood() < cost) {\r\n\t\t\tMain.clientPlayer.stopInteraction();\r\n\t\t}\r\n\r\n\t}", "public void specialEffect() {\n if (getDefense() > 0) {\n setDefense(0);\n setCurrentHealth(currentHealth + 50);\n }\n\n }", "public void eatApple() {\n\t\teaten = peeled && !eaten ? true : false;\n\t}", "public int adjustForCrowding() {\n int deadGuppyCount = 0;\n\n Collections.sort(this.guppiesInPool, new Comparator<Guppy>() {\n @Override\n public int compare(Guppy g1, Guppy g2) {\n return Double.compare(g1.getHealthCoefficient(), g2.getHealthCoefficient());\n }\n });\n\n Guppy weakestGuppy;\n Iterator<Guppy> it = guppiesInPool.iterator();\n double volumeNeeded = this.getGuppyVolumeRequirementInLitres();\n\n while (it.hasNext() && volumeNeeded > this.getVolumeLitres()) {\n weakestGuppy = it.next();\n volumeNeeded -= (weakestGuppy.getVolumeNeeded() / ML_TO_L_CONVERSION);\n\n weakestGuppy.setIsAlive(false);\n\n\n deadGuppyCount++;\n\n }\n return deadGuppyCount;\n }", "public void baptism() {\n for (Card targetCard : Battle.getInstance().getActiveAccount().getActiveCardsOnGround().values()) {\n if (targetCard instanceof Minion) {\n targetCard.setHolyBuff(2, 1);\n }\n }\n }", "@Override\n\tpublic void landedOn() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(300);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 300 dollars by landing on Bonus Square\");\n\t\tMonopolyGameController.allowCurrentPlayerToEndTurn();\n\n\t}", "public void penalize(int[] fighter, int grade) {\n//choose which skill to penalize\n Random rnd = new Random();\n int penalty = ATTACK;\n if (rnd.nextBoolean()) {\n penalty = DEFENSE;\n }\n//It is penalized. Low minimum up to 1\n fighter[penalty] -= grade;\n if (fighter[penalty] < 1) {\n fighter[penalty] = 1;\n }\n }", "void increaseStrength() {\n if (this.strokeStrength + 0.25 <= 6) {\n this.strokeStrength += 0.25;\n }\n this.updateAcc();\n this.updateStick();\n }", "@Override\n\tpublic void passedBy() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(250);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 250 dollars by landing on Bonus Square\");\n\n\t}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "public void gainHealth()\n\t{\n\t\tSystem.out.println(\"1 heart gained\");\n\t}", "private void beat() {\n\t\t\tSystem.out.println(\"Heart beating\");\n\t\t}", "public void play() {\n\t\tif (happiness + 10 > 100) {\n\t\t\thappiness = 100;\n\t\t} else {\n\t\t\thappiness += 10;\n\t\t}\n\t}", "@Override\n\tpublic void swim() {\n\t\tthis.fly();\n\t}", "public void heal2()\r\n {\r\n this.health = 900;\r\n Story.healText2();\r\n }", "public void begin(){\r\n\t\t\ttry {\r\n\t\t\t\twhile( !superpower )\r\n\t\t\t\t\tThread.sleep( 10 );\r\n\t\t\t}\r\n\t\t\tcatch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t}", "public void makeHappy() {\n while (statusEnum() != TamagotchiMood.HAPPY) {\n if (!isHungry() && !isTired()) {\n play();\n } else if (isHungry() && !isTired()) {\n eat();\n } else {\n sleep();\n }\n }\n\n if (!muted) {\n System.out.println(\"I can do thing on my own now and will rule the world! MUHAHAHA!\");\n }\n }", "public void reduceAnimalHappiness() {\n\t\thappiness -= 10;\n\t}", "private void strengthen(float hp) {\n this.hp += hp;\n if (this.hp > MAX_HP) {\n this.hp = MAX_HP;\n }\n }", "@Override\n public int strongPowerLevel(int side) {\n return 0;\n }", "public void hunterStartCarrying(DPlayer hunter){\n hunter.getPlayerState().setCarrying(true);\n }", "protected void incrementHunger()\n {\n food_level--;\n if(food_level <= 0) {\n setDead();\n }\n }", "public void power() {\r\n\t\tpowerOn = !powerOn;\r\n\t}", "@Override\n public String performSpecialEffect() {\n this.health += HEALTH_STEAL_AMOUNT;\n return \"The vampire stole a bit of health after it attacked.\";\n }", "public void act()\r\n {\n if (Greenfoot.getRandomNumber(1000)< flyRate)\r\n {\r\n addObject(new Fly(), getWidth(), Greenfoot.getRandomNumber(300));\r\n //flyRate++;\r\n }\r\n }", "@Override\r\n\tpublic void autoSeatHeat() {\n\t\t\r\n\t}", "@Override\n\tpublic void upgrade() {\n\t\tthis.power += 5;\n\t}", "private void brewCoffeeGrinds() {\r\n LOG.debug( \"Brewing coffee grinds\" );\r\n }", "public void stay() {\n energy -= 0.01;\n if (energy < 0) {\n energy = 0;\n }\n }", "public void raise(){\r\n elevatorTalon1.set(basePWM);\r\n elevatorTalon2.set(basePWM * pwmModifier);\r\n }", "@Override\n\tpublic void breath() {\n\n\t}", "@Override\n\tpublic void reduceCurrentHp(final double damage, final L2Character attacker, final boolean awake)\n\t{\n\t\t/*\n\t\t * if ((this instanceof L2SiegeGuardInstance) && (attacker instanceof L2SiegeGuardInstance)) //if((this.getEffect(L2Effect.EffectType.CONFUSION)!=null) && (attacker.getEffect(L2Effect.EffectType.CONFUSION)!=null)) return; if ((this instanceof L2MonsterInstance)&&(attacker instanceof\n\t\t * L2MonsterInstance)) if((this.getEffect(L2Effect.EffectType.CONFUSION)!=null) && (attacker.getEffect(L2Effect.EffectType.CONFUSION)!=null)) return;\n\t\t */\n\t\t\n\t\tif (isRaid() && attacker != null && attacker.getParty() != null && attacker.getParty().isInCommandChannel() && attacker.getParty().getCommandChannel().meetRaidWarCondition(this))\n\t\t{\n\t\t\tif (firstCommandChannelAttacked == null) // looting right isn't set\n\t\t\t{\n\t\t\t\tsynchronized (this)\n\t\t\t\t{\n\t\t\t\t\tif (firstCommandChannelAttacked == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tfirstCommandChannelAttacked = attacker.getParty().getCommandChannel();\n\t\t\t\t\t\tif (firstCommandChannelAttacked != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcommandChannelTimer = new CommandChannelTimer(this);\n\t\t\t\t\t\t\tcommandChannelLastAttack = System.currentTimeMillis();\n\t\t\t\t\t\t\tThreadPoolManager.getInstance().scheduleGeneral(commandChannelTimer, 10000); // check for last attack\n\t\t\t\t\t\t\tfirstCommandChannelAttacked.broadcastToChannelMembers(new CreatureSay(0, Say2.PARTYROOM_ALL, \"\", \"You have looting rights!\")); // TODO: retail msg\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\telse if (attacker.getParty().getCommandChannel().equals(firstCommandChannelAttacked)) // is in same channel\n\t\t\t{\n\t\t\t\tcommandChannelLastAttack = System.currentTimeMillis(); // update last attack time\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * // CommandChannel if(commandChannelTimer == null && isRaid() && attacker != null) { if(attacker.isInParty() && attacker.getParty().isInCommandChannel() && attacker.getParty().getCommandChannel().meetRaidWarCondition(this)) { firstCommandChannelAttacked = attacker.getParty().getCommandChannel();\n\t\t * commandChannelTimer = new CommandChannelTimer(this, attacker.getParty().getCommandChannel()); ThreadPoolManager.getInstance().scheduleGeneral(_commandChannelTimer, 300000); // 5 min firstCommandChannelAttacked.broadcastToChannelMembers(new CreatureSay(0, Say2.PARTYROOM_ALL, \"\",\n\t\t * \"You have looting rights!\")); } }\n\t\t */\n\t\tif (isEventMob)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Add damage and hate to the attacker AggroInfo of the L2Attackable aggroList\n\t\tif (attacker != null)\n\t\t{\n\t\t\taddDamage(attacker, (int) damage);\n\t\t}\n\t\t\n\t\t// If this L2Attackable is a L2MonsterInstance and it has spawned minions, call its minions to battle\n\t\tif (this instanceof L2MonsterInstance)\n\t\t{\n\t\t\tL2MonsterInstance master = (L2MonsterInstance) this;\n\t\t\t\n\t\t\tif (this instanceof L2MinionInstance)\n\t\t\t{\n\t\t\t\tmaster = ((L2MinionInstance) this).getLeader();\n\t\t\t\t\n\t\t\t\tif (!master.isInCombat() && !master.isDead())\n\t\t\t\t{\n\t\t\t\t\tmaster.addDamage(attacker, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (master.hasMinions())\n\t\t\t{\n\t\t\t\tmaster.callMinionsToAssist(attacker);\n\t\t\t}\n\t\t\t\n\t\t\tmaster = null;\n\t\t}\n\t\t\n\t\t// Reduce the current HP of the L2Attackable and launch the doDie Task if necessary\n\t\tsuper.reduceCurrentHp(damage, attacker, awake);\n\t}", "public void power()\r\n {\r\n powerOn = true;\r\n }", "public void buyHealth() {\n this.healthMod++;\n heathMax += 70 * healthMod;\n }", "private void coins_a1W(){\n\t\tthis.cube[4] = this.cube[15]; \n\t\tthis.cube[15] = this.cube[26];\n\t\tthis.cube[26] = this.cube[38];\n\t\tthis.cube[38] = this.cube[27];\n\t\tthis.cube[27] = this.cube[4];\n\t}", "@Override\r\n\tpublic void fly() {\n\t\tsuper.fly();\r\n\t\tsuper.fly();\r\n\t\tsuper.fly();\r\n\t}", "@Override\n\tpublic void attack() {\n\t\tSystem.out.println(\"Woof! Woof! *Crunch!*\");\n\t}", "private void coins_fW(){\n\t\tthis.cube[4] = this.cube[0]; \n\t\tthis.cube[0] = this.cube[6];\n\t\tthis.cube[6] = this.cube[8];\n\t\tthis.cube[8] = this.cube[2];\n\t\tthis.cube[2] = this.cube[4];\n\t}", "public void wash() {\n synchronized (this) {\n LOGGER.info(\"{}:Actual machine state:{}\", Thread.currentThread().getName(),\n getWashingMachineState());\n if (WashingMachineState.WASHING.equals(washingMachineState)) {\n LOGGER.error(\"ERROR:Cannot wash if the machine has already been washing\");\n return;\n }\n washingMachineState = WashingMachineState.WASHING;\n }\n LOGGER.info(\"{}:Doing the washing\", Thread.currentThread().getName());\n try {\n Thread.sleep(50);\n } catch (Exception e) {\n e.printStackTrace();\n }\n endWashing();\n }", "private void harvest() {\n\t\t// if VERY far from flower, it must have died. start scouting\n\t\tif(grid.getDistance(grid.getLocation(targetFlower),grid.getLocation(this)) > 200) {\n\t\t\tstate = \"SCOUTING\";\n\t\t}\n\t\t// if crop storage is full, return to hive with information\n\t\telse if(food >= maxCrop) {\n\t\t\tif(targetFlower != null) {\n\t\t\t\tlastFlowerNectar = targetFlower.food;\n\t\t\t}\n\t\t\tstate = \"RETURNING\";\n\t\t}\n\t\t// if daylight is diminishing, return to hive\n\t\telse if(clock.time > (endForagingTime + 1.0)){\n\t\t\tlastFlowerNectar = 0;\n\t\t\tstate = \"RETURNING\";\n\t\t}\n\t\t// if flower loses all nectar, start scouting for new flower\n\t\telse if(targetFlower.food <= 0){\n\t\t\tstate = \"AIMLESSSCOUTING\";\n\t\t\ttempTime = clock.time;\n\t\t}\n\t\t// semi-random decision to scout for new flower if current flower has low food\n\t\telse if(RandomHelper.nextIntFromTo(0,(int)(maxFlowerNectar/4)) > targetFlower.food &&\n\t\t\t\tRandomHelper.nextDoubleFromTo(0,1) < forageNoise){\n\t\t\tstate = \"AIMLESSSCOUTING\";\n\t\t\ttempTime = clock.time;\n\t\t}\n\t\t// otherwise continue harvesting current flower\n\t\telse{\n\t\t\thover(grid.getLocation(targetFlower));\n\t\t\ttargetFlower.food -= foragingRate;\n\t\t\tfood += foragingRate;\n\t\t\tfood -= lowMetabolicRate;\n\t\t}\n\t}", "@Override\n public int damage() {\n int newDamage=criticalStrike();\n return newDamage;\n }", "public int thunderclap();", "public void act()\n {\n \n if (wait < 75)\n {\n wait = wait + 1;\n }\n \n \n \n \n \n \n if (wait == 75)\n {\n change();\n checkForBounce();\n checkForEdge();\n checkWin(); \n }\n \n \n }", "public void changeCostumeLeft(){\n if(costume == 0){\n costume = 3;\n }\n else{\n costume--;\n }\n Locker.updateCostume(costume);\n if (PrefLoader.level3()){\n PrefLoader.updateFile(true,true);\n\n }\n else if (PrefLoader.level2()){\n PrefLoader.updateFile(true,false);\n }\n else{\n PrefLoader.updateFile();\n }\n }", "public void bake() {\n System.out.println(\"Baking for 25 min at 350\");\n }", "public void hungry()\r\n {\r\n \tSystem.out.println(\"I'm hungry!! Feed me!!\");\r\n \tbarking();\r\n }", "private void scout() {\n\t\ttargetFlower = null;\n\t\t// fly to flower if nearby\n\t\tif(foundFlower()) {\n\t\t\tstate = \"TARGETING\";\n\t\t}\n\t\t// otherwise keep scouting\n\t\telse{\n\t\t\t// change angle randomly during flight\n\t\t\tcurrentAngle += RandomHelper.nextDoubleFromTo(-Math.PI/8, Math.PI/8);\n\t\t\tspace.moveByVector(this, 4, currentAngle,0);\n\t\t\tNdPoint myPoint = space.getLocation(this);\n\t\t\tgrid.moveTo(this, (int) myPoint.getX(), (int) myPoint.getY());\n\t\t\tfood -= highMetabolicRate;\n\t\t}\n\t}", "public void openHangerClaws() {\n\t\tcubeSolenoid.set(DoubleSolenoid.Value.kForward);\n\t\t\n\t}", "private void courseEffects() {\n\t\t\n\t}", "public void doArriveEffect(Card c) {\r\n\t\t// May change later\r\n\t\tif (c.getName().contentEquals(\"Shrine\")) {\r\n\t\t\tdragonClank += 3;\r\n\t\t\tif (dragonClank > 24) {\r\n\t\t\t\tdragonClank = 24;\r\n\t\t\t}\r\n\t\t// Overlord and Watcher so far\r\n\t\t} else {\r\n\t\t\tfor (int j = 0; j < players.size(); j++) {\r\n\t\t\t\tif (!players.get(j).isDead() && !players.get(j).isFree()) {\r\n\t\t\t\t\tplayers.get(j).updateClankOnBoard(1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tupdateBoardNoImageChange();\r\n\t}", "@Override\n public void consume(Player p) {\n if(boostType.equals(\"force\")){\n p.setStrength(p.getStrength() + 1);\n }else if(boostType.equals(\"life\")){\n p.modifyLife(1);\n }else if(boostType.equals(\"force+\")){\n p.setStrength(p.getStrength() + 2);\n }else if(boostType.equals(\"life+\")) {\n p.modifyLife(2);\n }else if(boostType.equals(\"force++\")){\n p.setStrength(p.getStrength() + 3);\n }else if(boostType.equals(\"life++\")) {\n p.modifyLife(3);\n }\n Thread t = new Thread(this);\n t.start();\n }", "@Override\r\n public void fromDeathToChase() {\r\n if (eaten()) {\r\n startChase();\r\n }\r\n }", "public void COPower(){\r\n COP = true;\r\n }", "void gainHealth(int points) {\n this.health += points;\n }", "public void lift(){\n\t\twhile(Math.abs(robot.lift1.getCurrentPosition()-robot.startingHeight)<3900&&opModeIsActive()){\n\t\t\trobot.lift1.setPower(1);\n\t\t\trobot.lift2.setPower(1);\n\t\t}\n\t\tlift(\"stop\");\n\t}", "public void heal1()\r\n {\r\n this.health = 700;\r\n Story.healText1();\r\n }", "public void fullyHeal() {\n removeStatus();\n getActualMoves().restoreAllPP();\n healHealthFraction(1);\n }", "public void win(int wager){\n bankroll += wager;\n }" ]
[ "0.73152936", "0.6528626", "0.6422481", "0.63983244", "0.63968104", "0.6360375", "0.6307921", "0.6218004", "0.62108105", "0.6197091", "0.61928856", "0.61830986", "0.6175561", "0.6162193", "0.6158049", "0.6114942", "0.61102515", "0.61056775", "0.6101818", "0.609825", "0.6089742", "0.6078774", "0.60635304", "0.6059503", "0.6057", "0.6044364", "0.6028898", "0.6028891", "0.60225344", "0.601101", "0.6010635", "0.60036945", "0.5998254", "0.5991743", "0.5984849", "0.5968055", "0.5965693", "0.5932847", "0.59220725", "0.591971", "0.5916873", "0.5913075", "0.58920336", "0.5887806", "0.5886535", "0.5879683", "0.587172", "0.58522624", "0.5843043", "0.58399737", "0.5833282", "0.5833192", "0.5832684", "0.5825985", "0.58153296", "0.5813309", "0.5807493", "0.5806619", "0.579295", "0.5787094", "0.57847506", "0.5781563", "0.57795143", "0.5777945", "0.5771439", "0.57598054", "0.5755305", "0.57546043", "0.57436746", "0.5742013", "0.5740988", "0.5736007", "0.5727067", "0.5723172", "0.5720825", "0.57192755", "0.571824", "0.5714641", "0.57124186", "0.5704", "0.56977683", "0.5697738", "0.56889707", "0.56870157", "0.568154", "0.5681518", "0.568086", "0.5677467", "0.56753665", "0.567467", "0.5673795", "0.5671644", "0.565795", "0.56563044", "0.5653958", "0.5651017", "0.5646384", "0.5644853", "0.56433994", "0.56410897", "0.5638444" ]
0.0
-1
Stop the claw from moving any more
public void stop() { motor1.set( Constants.CLAW_MOTOR_STOPPED ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stopMoving()\n {\n mouthPosition = 0;\n }", "public void stopMovement() {\r\n this.canMove = false;\r\n }", "public void stopMovement() {\n this.movementComposer.stopMovement();\n }", "public void forceStop() {\r\n\t\tchaseObj = false;\r\n\t}", "public static void stopMoving()\n {\n //System.out.println(\"player stopped moving\");\n runSound.stop();\n walkSound.stop();\n }", "public void stop() {\n this.setCurrentCell(0);\n this.setPicX(0);\n slowDownX();\n slowDownY();\n setMoving(false);\n if (moveDown) {\n this.setPicY(0);\n } else if (moveUp) {\n this.setPicY(211);\n } else if (moveLeft) {\n this.setPicY(141);\n } else if (moveRight) {\n this.setPicY(74);\n }\n }", "public void stop()\n\t{\n\t\tfrogVelocityX = 0;\n\t}", "public void stop()\r\n\t{\r\n\t\tif (state == State.ENTERING) {\r\n\t\t\tsetSpeed(0);\r\n\t\t\tstate = State.STOPPED;\r\n\t\t\tsetSprite(\"pedestrians/\"+spriteName.substring(0,spriteName.indexOf(\"Walk1.gif\")) + \"Stop1.gif\");\r\n\t\t}\r\n\t}", "public void stop()\n {\n mover.stop();\n }", "public void stopMotors() {\n\t\tRobotMap.frontLeft.set(0);\n\t\tRobotMap.backLeft.set(0);\n\t\tRobotMap.frontRight.set(0);\n\t\tRobotMap.backRight.set(0);\n\t}", "private void moveClawDown() {\n\t\tMotor.A.setSpeed(45);\n\t\tMotor.A.rotate(-90);\n\t}", "public void turnCCW() {\n turn(false);\n }", "public void terminate() {\n this.isDying = true;\n //this.isStaticCollidable = false;\n //this.isDynamicCollidable = false;\n\n this.setProp(ObjectProps.PROP_STATICCOLLIDABLE, false);\n this.setProp(ObjectProps.PROP_DYNAMICCOLLIDABLE, false);\n\n this.action = DYING;\n this.velX = 0;\n this.velY = 5;\n }", "public void endMove()\n\t{\n\t\tBMTron.delayed += 50;\n\t\tif (delayed == 2000)\n\t\t{\n\t\t\tfor (int i = 0; i < 5; i++) \n\t\t\t{\n\t\t\t\tif (players[i].exist)\n\t\t\t\t{\n\t\t\t\t\tmove[i].interrupt();\n\t\t\t\t}\n\t\t\t}\n\t\t\trepaint.interrupt();\n\t\t\tBMTron.frame.setVisible(false);\n\t\t\tSelection.frame.setVisible(true);\n\t\t\tdelayed = 0;\n\t\t}\n\t}", "void stop() {\n this.currentDirection = 0;\n this.currentVelocity = 0;\n }", "public void StopClip() {\n clip.stop();\n }", "private static void turnAwayFromWall() {\n while (true) {\n if (readUsDistance() > OPEN_SPACE) {\n leftMotor.stop();\n rightMotor.stop();\n // re-calibrate theta, offset will be added to this angle\n odometer.setTheta(0);\n System.out.println(\"starting localization...\");\n prevDist = 255;\n dist = prevDist;\n break;\n }\n }\n }", "public void stop_moving() {\n\t\tlogger.info(\"Human stop requested!\");\n\t\tPublisher move_base = new Publisher(\"/ariac_human/stop\", \"std_msgs/Bool\", bridge);\t\t\n\t\tmove_base.publish(new Bool(true)); \n\t}", "private void cleaningBallot() {\n\t\tturnLeft();\n\t\tmove();\n\t\tgrabStrayBeepers();\n\t\tturnAround();\n\t\tmove();\n\t\tmove();\n\t\tgrabStrayBeepers();\n\t}", "public void terminate(){\n tState.stop();\n tMovement.stop();\n collision.remove(this); \n }", "public void act() \n {\n move(-2);\n\n if(getX() <= 0)\n {\n getWorld().removeObject(this);\n } \n\n }", "public void stopShooting() {\n\t\tgetWeapon().releaseMain();\n\t\tsetShooting(false);\n\t}", "public void killPlayer(){\n setInPlay(false);\n setDx(0.0f);\n setDy(0.04f);\n }", "public void stopWheel()\n {\n setVectorTarget(Vector2D.ZERO);\n\n turnMotor.setPosition(0.5);\n\n if (driveMotor != null)\n driveMotor.setVelocity(0);\n }", "private boolean stop() {\n\t\tboolean collide = false;\n\n\t\tdist = (int) MathMachine.distance((xOrigin - this.x), (yOrigin - this.y)); // distance traveled\n\t\tif (dist >= move_range) collide = true;\n\n\t\tif (Math.abs(x - xD) <= 2 && Math.abs(y - yD) <= 2) { // adding 8 shifts the collision box from the top left corner to the bottom right.\n\t\t\tcollide = true; // this is the important statement for collision detection. It works by looking at the tile you want to go to and seeing if it is solid.\n\t\t}\n\n\t\treturn collide;\n\t}", "@Override\n\tpublic boolean stopLeft() {\n\t\tboolean rs = super.stopLeft();\n\t\tif(rs == true && this.y_dir == STOP){\n\t\t}\n\t\treturn rs;\n\t}", "public void stop() {\n\t\tthis.velocity = 0.0;\n\t}", "public void stop() {\n intake(0.0);\n }", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tmoving = false;\n\t\t}", "public void moveStopped()\n {\n for (GraphElement element : elements) {\n if(element instanceof Moveable) {\n Moveable moveable = (Moveable) element;\n moveable.setPositionToGhost();\n }\n } \n }", "public void stopShoot(){\n\t\tshoot.set(0);\n\t}", "private void climbWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.goUpWall();\n\t\tthis.goAcrossWall();\n\t\tthis.goDownWall();\n\t}", "public void liftOff() {\n\t\tL.trace(\"liftOff\");\n\t\tif (canFly()) {\n\t\t\tjump();\n\t\t}\n\t}", "public void move() {\n\t\tif (!visible) {\r\n\t\t\thideTurtle();\r\n\t\t}\r\n\t}", "void stopAccelerating() {\n isAccelerating = false;\n }", "public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}", "public void act()\n {\n setPosition(posX + liftDirection[0] * liftSpeed, posY\n + liftDirection[1] * liftSpeed);\n setLocation(posToLoc(posX, posY));\n\n if (posY < 50)\n removeSelf();\n }", "private void bounceOffHorizontalWall() {\n vy = -vy;\n }", "public void laserMoveUp()\r\n\t{\r\n\r\n\t\tif (y > 0)\r\n\t\t\ty -= 20;\r\n\r\n\t\telse\r\n\t\t\tdestroyed = true;\r\n\r\n\t}", "@Override\n\tpublic void action() {\n\t if (firingBall.getY() + firingBall.getRadius() < this.y) { \n\t //deactivate absorber locally and in GameBoard\n\t firingBall = null;\n\t gb.removeFromActiveList(this);\n\t }\n\t}", "@FXML\n private void stopMoving(){\n\n Main.gang.setMoving(false);\n drivingTransition.stop();\n updateGUI();\n }", "public void stop() {\n if (clip == null) return;\n clip.stop();\n }", "public void act() \n {\n advance(); // move forward in the correct direction\n\n if(canSee(Ground.class) || atWorldEdge()) {\n getWorld().removeObject(this);\n return; \n }\n\n bImpact();\n takeExplosionTimer();\n }", "public void turnCW() {\n turn(true);\n }", "private static boolean runAway(Critter foo){\n\t\tif(foo.moved) {\n\t\t\tfoo.energy = foo.getEnergy() - Params.walk_energy_cost;\n\t\t\tif (foo.getEnergy() <= 0) {\n\t\t\t\tfoo.isAlive=false;\n\t\t\t}\n\t\t\treturn false;\n\t\t} else {\n\t\t\tint dir = getRandomInt(8);\n\t\t\tif(canMove(foo, dir)) {\n\t\t\t\tfoo.walk(dir);\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\tfoo.energy = foo.getEnergy() - Params.walk_energy_cost;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "private final void kill() {\n\t\tgrown=false;\t\t\n\t}", "public void stopMotors(){\n\t\tsynchStop(MMXCOMMAND_BRAKE);\n\t}", "@Override\n public void stop() {\n if (FLM != null) FLM.setPower(0);\n if (FRM != null) FRM.setPower(0);\n if (BLM != null) BLM.setPower(0);\n if (BRM != null) BRM.setPower(0);\n if (BigSuck != null) BigSuck.setPower(0);\n if (SmallSuck != null) SmallSuck.setPower(0);\n if (UpLift != null) UpLift.setPower(0);\n if (DragArm != null) DragArm.setPosition(DragArmRestPosition);\n if (LiftGrab != null) LiftGrab.setPosition(LiftGrabRestPosition);\n if (LiftSwivel != null) LiftSwivel.setPosition(LiftSwivelRestPosition);\n }", "private void bulletMoveOffScreen() {\r\n\t\tif(bullet != null && (bullet.getX() > getWidth() || bullet.getX() < 0)){\r\n\t\t\tremove(bullet);\r\n\t\t\tbullet = null;\r\n\t\t}\r\n\t}", "protected void goAway() {\n\t\tthis.setVisible(false);\n\t\tthis.setBounds(-800, -800, mWidth, mHeight);\n\t}", "public void act(){\n // Removing object, if out of the simulated zone\n if (atWorldEdge()){\n getWorld().removeObject(this);\n return;\n }\n\n //Move Thanos up\n setLocation (getX(), getY() - speed);\n }", "public void stop() {\n enemyTimeline.stop();\n }", "public void gerak() \n {\n setLocation(getX(),getY()-5);\n if(getY()<20){\n getWorld().removeObject(this);\n }else\n cek_kena();\n \n }", "private void turnAround() {\r\n this.setCurrentDirection(-getCurrentDirection());\r\n }", "public void move() {\n energy -= 0.03;\n if (energy < 0) {\n energy = 0;\n }\n }", "private void bounceOffVerticalWall() {\n vx = -vx;\n }", "public void move()\r\n\t{\r\n\t\ty-=8;\r\n\t}", "public void down(){\n\t\tmoveX=0;\n\t\tmoveY=1;\n\t}", "private void goAcrossWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.move();\n\t\tthis.turnRight();\n\t}", "public void stop()\r\n {\r\n breakoutAnimator = null;\r\n }", "public void act() \n {\n moveAround();\n die();\n }", "public void move(long timePassed) {\n\t\tif (x < -100) {\r\n\t\t\tthis.destroy();\r\n\t\t}\r\n\r\n\t\tsuper.move(timePassed);\r\n\t}", "public void stop() {\r\n _keepGoing = false;\r\n }", "public void pleaseStop()\n {\n\t this.doorgaan_thread = false;\n\t this.doorgaan_wheel = true;\n draad = null; // waarom? \n }", "public void stop() {\n\t\tsetPower(Motor.STOP);\r\n\t}", "public void stop() {\n elevator1.set(0);\n elevator2.set(0); \n \n }", "@Override\n public void kill() {\n alive = false;\n Board.getInstance().setPoints(points);\n }", "public void brake() {\n\t\tsetPower(Motor.STOP);\r\n\t}", "private void moveBack(){\r\n\t\tturnAround();\r\n\t\tmove();\r\n\t}", "public void bounceOffEdge()\n {\n int margin = 2;\n\n if (getX() <= margin || getX() >= getWorld().getWidth() - margin) //left or right side\n {\n turn(180);\n }\n if (getY() <= margin || getY() >= getWorld().getHeight() - margin) //top or bottom side\n {\n turn(180);\n }\n }", "public void move(){\n super.move();\n if(getX() >= Main.WIDTH - getWidth() * 1.5) {\n setDirection(-1);\n } else if(getX() <= 50) {\n setDirection(1);\n }\n }", "@Override\n\tpublic void stop() {\n\t\tsetAccelerate(false);\n\t}", "public void stop() {\n\tanimator = null;\n\toffImage = null;\n\toffGraphics = null;\n }", "public void cancel() {\n target.setAllowFlight(false);\n target.setWalkSpeed(0.01F);\n target.setFlySpeed(0.01F);\n targets.remove(target);\n\n JavaUtils.broadcastStage(\"done\",this);\n }", "@Override\n public void move() {\n if (movementCooldown > 0) {\n movementCooldown --;\n } else {\n super.move();\n movementCooldown = MAX_MOVEMENT_COOLDOWN;\n }\n }", "private void moveToWall() {\n\t\t// TODO Auto-generated method stub\n\t\t// if front is clear then keep moving\n\t\twhile (this.frontIsClear()) {\n\t\t\tthis.move();\n\t\t}\n\t}", "public synchronized void stopGame(){\n \t\tif (running){\n \t\t\trunning = false;\n \t\t}\n \t}", "public void stop(){\n\t\tthis.timer.stop();\n\t\t//whenever we stop the entire game, also calculate the endTime\n\t\tthis.endTime = System.nanoTime();\n\t\tthis.time = this.startTime - this.endTime;\t//calculate the time difference\n\t\t\n\t\tthis.stop = true;\n\t}", "public void dontMove() {\r\n\t\tspeed = 0;\r\n\t\tif(!playerNear().equals(\"n\")) {\r\n\t\t\tif(playerNear().equals(\"left\")) {\r\n\t\t\t\tsetIcon(leftImage);\r\n\t\t\t}\r\n\t\t\telse if(playerNear().equals(\"right\")) {\r\n\t\t\t\tsetIcon(rightImage);\r\n\t\t\t}\r\n\t\t\trepaint();\r\n\t\t}\r\n\t}", "public void stopTurning() {\r\n turningPID.disable();\r\n tankDrive(0, 0);\r\n }", "public void stop() {\n climberMotors.stopMotor();\n }", "public void leftPressNotGround() {\n if(!grounded) {\n if(animation.getDirection() == 1) {\n animation.setDirection(-1);\n } \n if(xSpeed > -5) { \n xSpeed -= AIR; \n }\n else {\n xSpeed = -5;\n }\n }\n }", "public void goToEnd() {\n\t\tcurrentClip.stop();\n\t\tsetPosition(currentClip.getMicrosecondLength());\n\t\tisPlaying = false;\n\t}", "public void stop() {\n\t\tdrive.tankDrive(0, 0);\n\t}", "public void act() \n {\n // Add your action code here.\n /*\n if ( pixelsMoved >= 20 )\n {\n moving = false;\n pixelsMoved = 0;\n }\n */\n if ( moving )\n {\n move(1);\n pixelsMoved++;\n \n if ( pixelsMoved >= 20 )\n {\n setMoving( false );\n }\n }\n }", "private void wentOffWall() {\n //random location\n b.numX = r.nextInt(2400) + 100;\n b.numY = r.nextInt(1400) + 100;\n //random speed\n b.xSpeed = this.newSpeed();\n b.ySpeed = this.newSpeed();\n }", "public void hunterStopCarrying(DPlayer hunter, boolean atWill){\n hunter.getPlayerState().setCarrying(false);\n\n if (!atWill){\n hunterStunned(hunter);\n }\n }", "public void deten(){\n\t \tanimacion2.stop();\n\t }", "public void stop()\n {\n robot.FL_drive.setPower(0);\n robot.FR_drive.setPower(0);\n robot.BL_drive.setPower(0);\n robot.BR_drive.setPower(0);\n }", "void driveStop() {\n flMotor.setPower(0);\n frMotor.setPower(0);\n blMotor.setPower(0);\n brMotor.setPower(0);\n }", "@Override\n public void stop() {\n leftFrontDrive.setPower(0.0);\n rightFrontDrive.setPower(0.0);\n leftRearDrive.setPower(0.0);\n rightRearDrive.setPower(0.0);\n\n // Disable Tracking when we are done;\n targetsUltimateGoal.deactivate();\n\n //closes object detection to save system resouces\n if (tfod != null) {\n tfod.shutdown();\n }\n }", "public void throwBall() {\r\n\t\tthis.move();\r\n\t\tballCount--;\r\n\r\n\t}", "public void moveBlueCrab() {\n\t\tloseLife();\n\t\tif (wallOverlapX()) {\n\t\t\tif (hitRight) {\n\t\t\t\tif (xVel > 0) {\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else if (hitLeft) {\n\t\t\t\tif (xVel < 0) {\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (wallOverlapY()) {\n\t\t\tif (hitUp) {\n\t\t\t\tif (yVel < 0) {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else if (hitDown) {\n\t\t\t\tif (yVel > 0) {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint xLow = xPos;\n\t\tint xHigh =xPos + width;\n\t\tint yTop = yPos;\n\t\tint yBot = yPos + height;\n\t\tfor (int i = 0; i < game.m.walls.size(); i++) {\n\t\t\tif (game.m.walls.get(i).wallHit(this) > 0) {\n//\t\t\t\twhile (game.m.walls.get(i).wallHit(this)) {\n\t\t\t\tif (game.m.walls.get(i).wallHit(this) == 4) {\n\t\t\t\t\tif (yVel < 0) {\n\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 1) {\n\t\t\t\t\t\t\t\tif (xVel > 0) {\n\t\t\t\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 2) {\n\t\t\t\t\t\t\t\tif (xVel < 0) {\n\t\t\t\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (game.m.walls.get(i).wallHit(this) == 3) {\n\t\t\t\t\tif (yVel > 0) {\n\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 1) {\n\t\t\t\t\t\t\t\tif (xVel > 0) {\n\t\t\t\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 2) {\n\t\t\t\t\t\t\t\tif (xVel < 0) {\n\t\t\t\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (game.m.walls.get(i).wallHit(this) == 2) {\n\t\t\t\t\tif (xVel < 0) {\n\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 3) {\n\t\t\t\t\t\t\t\tif (yVel > 0) {\n\t\t\t\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 4) {\n\t\t\t\t\t\t\t\tif (yVel < 0) {\n\t\t\t\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (game.m.walls.get(i).wallHit(this) == 1) {\n\t\t\t\t\tif (xVel > 0) {\n\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 3) {\n\t\t\t\t\t\t\t\tif (yVel > 0) {\n\t\t\t\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 4) {\n\t\t\t\t\t\t\t\tif (yVel < 0) {\n\t\t\t\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n//\t\t\t\tif (xVel > 0) {\n//\t\t\t\t\txPos -= 20;\n//\t\t\t\t\treturn;\n//\t\t\t\t} \n//\t\t\t\telse if (xVel < 0) {\n//\t\t\t\t\txPos += 20;\n//\t\t\t\t\treturn;\n//\t\t\t\t}\n//\t\t\t\tif (yVel > 0) {\n//\t\t\t\t\tyPos -= 20;\n//\t\t\t\t\treturn;\n//\t\t\t\t}\n//\t\t\t\telse if (yVel < 0) {\n//\t\t\t\t\tyPos += 20;\n//\t\t\t\t\treturn;\n//\t\t\t\t}\n//\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (xPos <= 0) {\n\t\t\tif (xVel > 0) {\n\t\t\t\txPos += xVel;\n\t\t\t} else if (yPos + height <= game.mapHeight && yPos >= 0){\n\t\t\t\tyPos += yVel;\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (xPos + width >= game.mapWidth) {\n\t\t\tif (xVel < 0) {\n\t\t\t\txPos += xVel;\n\t\t\t} else if (yPos + height <= game.mapHeight && yPos >= 0){\n\t\t\t\tyPos += yVel;\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (yPos <= 0) {\n\t\t\tif (yVel > 0) {\n\t\t\t\tyPos += yVel;\n\t\t\t} else if (xPos + width <= game.mapWidth && xPos >= 0){ \n\t\t\t\txPos += xVel;\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (yPos + height >= game.mapHeight) { \n\t\t\tif (yVel < 0) {\n\t\t\t\tyPos += yVel;\n\t\t\t} else if (xPos + width <= game.mapWidth && xPos >= 0){\n\t\t\t\txPos += xVel;\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\t\t\txPos += xVel;\n\t\t\tyPos += yVel;\n\t\t}\n\n\t}", "protected void end() {\n\t\tRobot.conveyor.Stop();\n\t}", "public void intakeStop()\n {\n intake_up.set(ControlMode.PercentOutput, 0.0f);\n intake_down.set(ControlMode.PercentOutput, 0.0f);\n }", "public static void stopCase(Robot r)\n {\n while(r.frontIsClear() == false)\n while(r.canPickThing() == false)\n break;\n }", "public void enemyoff(){\n getWorld().removeObject(this);\n }", "public void moveDown() {\n if (ycoor <= Game.heightOfGameBoard - movingSpeed) {\n ycoor = ycoor + movingSpeed;\n }\n\n }", "public void turnOff(int x, int y);", "public void move()\r\n\t{\r\n\t\tfor (int a = 0; a < bullets.size(); a++)\r\n\t\t{\r\n\t\t\tBullet bullet = bullets.get(a);\r\n\t\t\tif (!bullet.move())\r\n\t\t\t{\r\n\t\t\t\tbullets.remove(a);\r\n\t\t\t\ta--;\r\n\t\t\t}\r\n\t\t}\r\n\t}" ]
[ "0.7944375", "0.7518561", "0.740571", "0.70077837", "0.6986479", "0.69814247", "0.69432855", "0.67426103", "0.66788787", "0.667237", "0.66265976", "0.66236985", "0.6620983", "0.6590545", "0.6583095", "0.6553033", "0.65449864", "0.65363675", "0.6527928", "0.65273106", "0.6503821", "0.65023255", "0.64945894", "0.64900213", "0.6481733", "0.64649683", "0.64426255", "0.64412004", "0.64377767", "0.6423473", "0.64218926", "0.6393018", "0.63758266", "0.63707334", "0.6363476", "0.63446563", "0.6344526", "0.63309747", "0.63126683", "0.63124186", "0.6300225", "0.62969863", "0.62711203", "0.62662745", "0.6262746", "0.6253496", "0.625342", "0.6243394", "0.6240755", "0.6234091", "0.6179732", "0.6150471", "0.6144786", "0.6135062", "0.6120666", "0.61110604", "0.61096", "0.61078066", "0.61048", "0.6101651", "0.6099517", "0.60860395", "0.6080089", "0.6077681", "0.6077096", "0.6069084", "0.6064468", "0.60640925", "0.60635656", "0.6050251", "0.60489017", "0.6038471", "0.6036256", "0.6031618", "0.60290086", "0.6023106", "0.60179234", "0.6014799", "0.6013357", "0.60095406", "0.5995689", "0.5981385", "0.5978836", "0.5976568", "0.5967126", "0.59654284", "0.59648323", "0.5964828", "0.5962257", "0.5961948", "0.596092", "0.59515", "0.59500754", "0.59440917", "0.59349823", "0.5929188", "0.59282655", "0.5926563", "0.5924536", "0.59210646" ]
0.6119203
55
Move the claw all the way to the top until it triggers its top limit switch
public boolean goAllUp() { if ( topLimitSwitch.get() ) { stop(); } else { up(); } return topLimitSwitch.get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void climbWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.goUpWall();\n\t\tthis.goAcrossWall();\n\t\tthis.goDownWall();\n\t}", "private void moveToWall() {\n\t\t// TODO Auto-generated method stub\n\t\t// if front is clear then keep moving\n\t\twhile (this.frontIsClear()) {\n\t\t\tthis.move();\n\t\t}\n\t}", "public static void chop() {\n RSObject[] tree = Objects.findNearest(7, Yew); //finds the nearest Yew in which we had earlier set the ID of\n if (tree.length > 0)\n if (tree[0].isOnScreen()) { //if tree is on the screen it will move onto clickObject which will be called from the rMouse class.\t\t\t \n\t\t\t Mouse.setSpeed(rMouse.mouseSpeed);\n\t\t\t\trMouse.clickObject(7, \"Yew\", \"Chop down\"); //finds/clicks the an interactive object with the name Yew\n\t\t\t\t\tGeneral.sleep(1500 + rand1);\n\n }else{\n\t\t\t Mouse.setSpeed(rMouse.mouseSpeed);\n Walking.walkTo(tree[0].getPosition());\n while (Player.isMoving())\n General.sleep(800 + rand1);\n }\n\t\t\n }", "protected void moveFrontAndLaterally() {\n\n dbugThis(\"================================= NEW TRY ====================================================\");\n botTop.swing(BotTop.SWING_UP_COMMAND, true);\n autonomousIdleTasks();\n botTop.openClaw();\n autonomousIdleTasks();\n justWait(1000);\n moveXInchesFromFrontObject(DISTANCE_TO_STONEWALL, 10000, 0.2);\n boolean right = true;\n while (opModeIsActive()) {\n justWait(1000);\n if (right) {\n moveRight(40.0, 0.4);\n right = false;\n }\n else {\n moveLeft(40.0, 0.4);\n right = true;\n }\n }\n return;\n }", "public void puke(){\r\n top = null;\r\n size = 0;\r\n \r\n }", "void top() {\n startAnimation(topSubCubes(), Axis.Y, Direction.CLOCKWISE);\n topCubeSwap();\n }", "private void moveBack(){\r\n\t\tturnAround();\r\n\t\tmove();\r\n\t}", "public void autoScoreBottomCenterPeg() {\n getRobotDrive().goForward(-.5); //Speed at which to back up\n Timer.delay(1); //Time to continue backing up\n getRobotDrive().stop(); //Stop backing up\n arm.armJag.set(.4); //Speed to lower arm *may need to be inverted*\n Timer.delay(.5); //Time to lower arm\n arm.grabTube(true); //Opens the claw to release Ub3r Tube\n getRobotDrive().goForward(-.5); //Speed at which to back up again\n arm.armJag.set(.3); //Lowers arm safely to ground.\n\n }", "protected void lowerBot() {\n lowerBot(-.3);\n }", "public void setTop() {\n reset(State.TOP);\n }", "public void movePacmans() {\n\t\ttry {\n\t\t\tgz.redraw();\n\t\t}\n\t\tcatch(NullPointerException npe) {\n\t\t\tgz.pauseGame();\n\t\t}\n\t}", "public void updateTopBorder(){\n\n\n //Go up until reach maximum border height and then go down, so zig zag, maximum will increase when score increases.\n //Every 100 points insert random blocks\n\n for (int i = 0; i < topborder.size(); i++){\n topborder.get(i).update();\n\n //Remove top border if off map and replace by adding a new one\n if (topborder.get(i).getX()<-25){\n topborder.remove(i);\n\n //Retrieves the last element in the array list\n if (topborder.get(topborder.size()-1).getHeight()>=maxBorderHeight){\n top = false;\n }\n if (topborder.get(topborder.size()-1).getHeight()<=minBorderHeight){\n top = true;\n }\n\n //New border will have a larger height, else smaller height\n if (top){\n topborder.add(new TopBorder(BitmapFactory.decodeResource(getResources(),R.drawable.newborder), topborder.get(topborder.size()-1).getX()+25, 0, topborder.get(topborder.size()-1).getHeight()+1));\n }\n else {\n topborder.add(new TopBorder(BitmapFactory.decodeResource(getResources(),R.drawable.newborder), topborder.get(topborder.size()-1).getX()+25, 0, topborder.get(topborder.size()-1).getHeight()-1));\n }\n }\n }\n\n }", "private void goAcrossWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.move();\n\t\tthis.turnRight();\n\t}", "public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}", "public void moveUp()\n {\n if (!this.search_zone.isTopBorder(this.y_position))\n {\n this.y_position = (this.y_position - 1);\n }\n }", "public void plan()\n {\n turnRight();\n while(isFrontClear())\n {\n while(isBrainHere()) {\n takeBrain();\n }\n move();\n }\n \n if (isBrainHere()) {\n takeBrain();\n }\n \n turnRight();\n if (!isFrontClear()) {\n turnAround();\n }\n \n goCenter();\n \n turnAround();\n move();\n win();\n }", "public void bottomTopCheck() {\n bLCollide = false;\n bRCollide = false;\n tLCollide = false;\n tRCollide = false;\n if(grounded) {\n bottomCollision(); \n }\n else if(!grounded) {\n if(ySpeed > 0 || Math.abs(xSpeed) > Math.abs(ySpeed)) {\n bottomCollision(); \n }\n else if(ySpeed < 0 || Math.abs(xSpeed) > Math.abs(ySpeed)) {\n topCollision();\n }\n }\n }", "private void shiftPlayerPiecesBottomToTop(int colNum) {\n for (int i = 0; i < playerPiecePositions.length; i++) {\n Position pos = playerPiecePositions[i];\n if (pos.getColNum() == colNum) {\n playerPiecePositions[i] = nextPositionBottomToTop(pos);\n playerPieces[i].addPreviousPlayerPosition(pos);\n }\n }\n }", "void moveWest() {\n xpos = xpos - xspeed;\n if (xpos <= 0){ // 20\n xpos = width; // 25\n }\n }", "public void updateTopBorder(){\n if (player.getScore()%50 ==0){\n topBorders.add(new TopBorder(BitmapFactory.decodeResource(getResources(),R.drawable.brick),\n topBorders.get(topBorders.size()-1).getX()+20,\n 0,\n (int)(rand.nextDouble()*maxBorderHeight)+1 ));\n }\n //update top border\n for (int i=0; i<topBorders.size(); i++){\n topBorders.get(i).update();\n //if border off screen -> remove\n if (topBorders.get(i).getX()<-20){\n topBorders.remove(i);\n //calculate topdown which determines the direction of border (up or down)\n if (topBorders.get(topBorders.size()-1).getHeight()>=maxBorderHeight){\n topDown = false;\n }\n if (topBorders.get(topBorders.size()-1).getHeight()<=minBorderHeight){\n topDown = true;\n }\n //new border added will have larger height\n if (topDown){\n topBorders.add(new TopBorder(BitmapFactory.decodeResource(getResources(),R.drawable.brick),\n topBorders.get(topBorders.size()-1).getX()+20,\n 0,\n topBorders.get(topBorders.size()-1).getHeight()+1));\n }\n //new border added will have smaller height\n else {\n topBorders.add(new TopBorder(BitmapFactory.decodeResource(getResources(),R.drawable.brick),\n topBorders.get(topBorders.size()-1).getX()+20,\n 0,\n topBorders.get(topBorders.size()-1).getHeight()-1));\n }\n }\n }\n }", "private void moveClawUp() {\n\t\tMotor.A.setSpeed(45);\n\t\tMotor.A.rotate(90);\n\t\t\n\t}", "void topInv() {\n startAnimation(topSubCubes(), Axis.Y, Direction.ANTICLOCKWISE);\n topCubeSwap();\n topCubeSwap();\n topCubeSwap();\n }", "private void shiftPlayerPiecesTopToBottom(int colNum) {\n for (int i = 0; i < playerPiecePositions.length; i++) {\n Position pos = playerPiecePositions[i];\n if (pos.getColNum() == colNum) {\n playerPiecePositions[i] = nextPositionTopToBottom(pos);\n playerPieces[i].addPreviousPlayerPosition(pos);\n }\n }\n }", "public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}", "public void onSwipeTop() {\n if (moodNumber < Constants.tabSmiley.length - 1) {\n moodNumber++;\n swipeDisplay();\n }\n }", "public void move() {\n\t\t\tar.setAhead(10 * fahrtrichtung);\n\n\t\t\t// Wie schnell sich der Roboter drehen soll\n\t\t\tar.setTurnRight(45 * drehrichtung);\n\t\t\tar.execute();\n\t\t\tfarbschema = farbschema * (-1);\n\t\t}", "@Override\n public void move() {\n if (movementCooldown > 0) {\n movementCooldown --;\n } else {\n super.move();\n movementCooldown = MAX_MOVEMENT_COOLDOWN;\n }\n }", "public void clawOpen(){\n claw.setPosition(0.1);\n }", "public void move(){\n super.move();\n if(getX() >= Main.WIDTH - getWidth() * 1.5) {\n setDirection(-1);\n } else if(getX() <= 50) {\n setDirection(1);\n }\n }", "private void cleaningBallot() {\n\t\tturnLeft();\n\t\tmove();\n\t\tgrabStrayBeepers();\n\t\tturnAround();\n\t\tmove();\n\t\tmove();\n\t\tgrabStrayBeepers();\n\t}", "private void wrap() {\n if (myCurrentLeftX % (Grass.TILE_WIDTH * Grass.CYCLE) == 0) {\n if (myLeft) {\n myCowboy.move(Grass.TILE_WIDTH * Grass.CYCLE, 0);\n myCurrentLeftX += (Grass.TILE_WIDTH * Grass.CYCLE);\n for (int i = 0; i < myLeftTumbleweeds.length; i++) {\n myLeftTumbleweeds[i]\n .move(Grass.TILE_WIDTH * Grass.CYCLE, 0);\n }\n for (int i = 0; i < myRightTumbleweeds.length; i++) {\n myRightTumbleweeds[i].move(Grass.TILE_WIDTH * Grass.CYCLE,\n 0);\n }\n } else {\n myCowboy.move(-(Grass.TILE_WIDTH * Grass.CYCLE), 0);\n myCurrentLeftX -= (Grass.TILE_WIDTH * Grass.CYCLE);\n for (int i = 0; i < myLeftTumbleweeds.length; i++) {\n myLeftTumbleweeds[i].move(-Grass.TILE_WIDTH * Grass.CYCLE,\n 0);\n }\n for (int i = 0; i < myRightTumbleweeds.length; i++) {\n myRightTumbleweeds[i].move(-Grass.TILE_WIDTH * Grass.CYCLE,\n 0);\n }\n }\n }\n }", "private void goUpWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.turnLeft();\n\t\tthis.move(2);\n\t\tthis.turnRight();\n\t}", "void movePrev()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == front) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.prev; //moves cursor toward front of the list\n index--; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t}\n\t}", "public void nextLevelTogo() {\n if (this.myClearedLines % 2 == 0) {\n myLinesToGo = 2;\n } else {\n myLinesToGo = 1;\n }\n }", "void loopy() {\n if (position.y < -50) {\n position.y = Constants.height + 50;\n } else\n if (position.y > Constants.height + 50) {\n position.y = -50;\n }\n if (position.x< -50) {\n position.x = Constants.width +50;\n } else if (position.x > Constants.width + 50) {\n position.x = -50;\n }\n }", "private void turnAround() {\n d = Math.random();\n if (d < 0.1) {\n changeAppearance();\n }\n }", "private Location[] overrunsTop () {\n Location nextLocation;\n Location nextCenter;\n \n // exact calculation for exact 90 degree heading directions (don't want trig functions\n // handling this)\n if (getHeading() == THREE_QUARTER_TURN_DEGREES) {\n nextLocation = new Location(getX(), 0);\n nextCenter = new Location(getX(), myCanvasBounds.getHeight());\n return new Location[] { nextLocation, nextCenter };\n }\n \n double angle = FULL_TURN_DEGREES - getHeading();\n if (getHeading() < THREE_QUARTER_TURN_DEGREES) {\n angle = -(getHeading() - HALF_TURN_DEGREES);\n }\n angle = Math.toRadians(angle);\n nextLocation = new Location(getX() + getY() / Math.tan(angle), 0);\n nextCenter = new Location(getX() + getY() / Math.tan(angle),\n myCanvasBounds.getHeight());\n \n // eliminates race condition - if next location overruns left/right AND top/bottom it checks\n // to see which is overrun first and corrects\n if (nextLocation.getX() > myCanvasBounds.getWidth())\n // right\n return overrunRight();\n else if (nextLocation.getX() < 0) // left\n return overrunLeft();\n \n return new Location[] { nextLocation, nextCenter };\n }", "private void moveRemainingMhos() {\n\t\t\n\t\t//Iterate through every mho's X and Y values\n\t\tfor(int i = 0; i < mhoLocations.size()/2; i++) {\n\t\t\t\n\t\t\t//Assign mhoX and mhoY to the X and Y values of the mho that is currently being tested\n\t\t\tint mhoX = mhoLocations.get(i*2);\n\t\t\tint mhoY = mhoLocations.get(i*2+1);\n\t\t\t\n\t\t\t//Check if there is a fence 1 block away from the mho\n\t\t\tif(newMap[mhoX][mhoY+1] instanceof Fence || newMap[mhoX][mhoY-1] instanceof Fence || newMap[mhoX-1][mhoY] instanceof Fence || newMap[mhoX-1][mhoY+1] instanceof Fence || newMap[mhoX-1][mhoY-1] instanceof Fence || newMap[mhoX+1][mhoY] instanceof Fence || newMap[mhoX+1][mhoY+1] instanceof Fence || newMap[mhoX+1][mhoY-1] instanceof Fence) {\n\t\t\t\t\n\t\t\t\t//Assign the new map location as a Mho\n\t\t\t\tnewMap[mhoX][mhoY] = new BlankSpace(mhoX, mhoY, board);\n\t\t\t\t\n\t\t\t\t//Set the mho's move in the moveList\n\t\t\t\tmoveList[mhoX][mhoY] = Legend.SHRINK;\n\t\t\t\t\n\t\t\t\t//remove each X and Y from mhoLocations\n\t\t\t\tmhoLocations.remove(i*2+1);\n\t\t\t\tmhoLocations.remove(i*2);\n\t\t\t\t\n\t\t\t\t//Call moveRemainingMhos again, because the list failed to be checked through completely\n\t\t\t\tmoveRemainingMhos();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "private void makeMove(){\r\n\t\tif(cornerColorIs(GREEN)){\r\n\t\t\tif(noBeepersPresent()){\r\n\t\t\t\tmove();\r\n\t\t\t\tpaintCorner(GREEN);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\tif(noBeepersPresent()){\r\n\t\t\t\tmove();\r\n\t\t\t\tpaintCorner(RED);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n//\t\tif(()) {\r\n//\t\t if(cornerColorIs(GREEN)) {\r\n//\t\t move();\r\n//\t\t paintCorner(GREEN);\r\n//\t\t } else {\r\n//\t\t move();\r\n//\t\t paintCorner(RED);\r\n//\t\t }\r\n//\t\t}noBeepersPresent\r\n\t}", "public void setWhereToGo() {\n\t\tfloat diffZ=mApplications.get(CurIndex).getZ() - Constants.displayedPlace;\r\n\t\tif( Math.abs(diffZ) < Constants.threshold)\r\n\t\t{\r\n\t\t\tif(diffZ >=0)\r\n\t\t\t\tgoTo(Constants.TO_BACKWARD_CENTER);\r\n\t\t\telse\r\n\t\t\t\tgoTo(Constants.TO_FORWARD_CENTER);\r\n\t\t}\r\n\t\telse if( diffZ >= 0) // go to disappeared place\r\n\t\t{\r\n\t\t\tgoTo(Constants.TO_FRONT);\r\n\t\t}\r\n\t\telse if( diffZ < 0) // go to origin place\r\n\t\t{\r\n\t\t\tgoTo(Constants.TO_BACK);\r\n\t\t}\r\n\t}", "public void scrollScreen(){\r\n//for smile\r\n\t\tif (smile.getY() < (Constants.GAMEHEIGHT/3)){\r\n\r\n\t\t\tfor (int a = 0; a < arrayPlat.size(); a++){\r\n\r\n\t\t\t\tarrayPlat.get(a).setY(arrayPlat.get(a).getY() + (Constants.GAMEHEIGHT/3 - smile.getY()) );\r\n\t\t\t\t\t\t}\r\n\t\t\t//for monster\r\n\t\t\tfor(Monster monster:arrayMonster) {\r\n\t\t\t\tmonster.setY(monster.getY() + (Constants.GAMEHEIGHT/3 - smile.getY()) );\r\n\r\n\t\t\t}\r\n\r\n\t\t\tsmile.setY(Constants.GAMEHEIGHT/3);\r\n\r\n\t\t}\r\n\r\n\t}", "public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n double increamentalDist = 50.0;\n while ( runtime.milliseconds() < 5000 ) {\n int loops0 = 0;\n while ((loops0 < 10) && ( mR.getNumM() == 0 )) {\n mR.update();\n loops0 ++;\n }\n if (mR.getNumM() <= 1) {\n int loops = 0;\n while ( mR.getNumM() <= 1 )\n driveTrainEnc.moveLeftRightEnc(increamentalDist, 2000);\n continue;\n } else if ( mR.getHAlignSlope() > 2.0 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED,Math.atan(mR.getHAlignSlope()),2000);\n continue;\n } else if (! mR.isGoldFound()) {\n\n driveTrainEnc.moveLeftRightEnc(increamentalDist,2000);\n continue;\n } else if ( mR.getFirstGoldAngle() > 1.5 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED, mR.getFirstGoldAngle(),2000);\n continue;\n }\n }\n driveTrainEnc.stop();\n }", "private void fly() {\n\t\tint xTarget = 12 *Board.TILE_D;\r\n\t\tint yTarget = 12 * Board.TILE_D;\r\n\t\tif(centerX - xTarget >0) {\r\n\t\t\tcenterX--;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcenterX++;\r\n\t\t}\r\n\t\tif(centerY - yTarget > 0) {\r\n\t\t\tcenterY --;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcenterY ++;\r\n\t\t}\r\n\t}", "private void aimlessScout() {\n\t\ttargetFlower = null;\n\t\t// if bee is sufficiently far from flower, look for other flowers\n\t\tif((clock.time - tempTime) > 0.15) {\n\t\t\tstate = \"SCOUTING\";\n\t\t}\n\t\t// otherwise keep flying\n\t\telse{\n\t\t\tcurrentAngle += RandomHelper.nextDoubleFromTo(-Math.PI/8, Math.PI/8);\n\t\t\tspace.moveByVector(this, 4, currentAngle,0);\n\t\t\tNdPoint myPoint = space.getLocation(this);\n\t\t\tgrid.moveTo(this, (int) myPoint.getX(), (int) myPoint.getY());\n\t\t\t//energy -= exhaustionRate;\n\t\t\tfood -= highMetabolicRate;\n\t\t}\n\t}", "private void putEveryOtherBeeper() {\n\t\twhile (frontIsClear()) {\n\t\t\tif (beepersPresent()) {\n\t\t\t\tmove();\n\t\t\t\tif (frontIsClear()) {\n\t\t\t\t\tmove();\n\t\t\t\t\tputBeeper();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tmove();\n\t\t\t\tputBeeper();\n\t\t\t}\n\t\t}\t\n\t}", "private void turnAround() {\r\n this.setCurrentDirection(-getCurrentDirection());\r\n }", "public void move() {\n Grid<Actor> gr = getGrid();\n if (gr == null) {\n return;\n }\n Location loc = getLocation();\n if (gr.isValid(next)) {\n setDirection(getLocation().getDirectionToward(next));\n moveTo(next);\n } else {\n removeSelfFromGrid();\n }\n Flower flower = new Flower(getColor());\n flower.putSelfInGrid(gr, loc);\n }", "public void makeTop()\n {\n top250 = new Movie[TOP_LENGTH];\n for (final Movie m : this)\n {\n final int rank = m.getRank();\n if (rank > 0 && rank <= TOP_LENGTH)\n {\n top250[rank - 1] = m;\n }\n }\n }", "private void swim(int speed){\r\n moveMuscles();\r\n moveBackFin();\r\n super.move(speed);\r\n\r\n }", "void moveEast() {\n xpos = xpos + xspeed;\n if (xpos > width){\n xpos = 0; // 30\n }\n }", "public void moveEverythingALittle(){\n //ponieważ wszystko idealnie jest zsynchronizowane to else nie wykona sie gdy current = getDestination\n if(player.getCurrentX()<player.getDestinationX())\n player.currentX += 1;\n else if(player.getCurrentX()>player.getDestinationX())\n player.currentX -= 1;\n\n if( player.getCurrentY()<player.getDestinationY())\n player.currentY += 1;\n else if( player.getCurrentY()>player.getDestinationY())\n player.currentY -= 1;\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n if(item.getCurrentX()<item.getDestinationX())\n item.currentX += 1;\n else if(item.getCurrentX()>item.getDestinationX())\n item.currentX -= 1;\n\n if( item.getCurrentY()<item.getDestinationY())\n item.currentY += 1;\n else if ( item.getCurrentY()>item.getDestinationY())\n item.currentY -= 1;\n }\n }", "void toyPlacingfStuff(){\n //nu stiu daca asta ramane\n gettingBackToInitial();\n nearingTheWallBefore();\n parallelToTheWall();\n actualToyPlacing();\n }", "private void bulletMoveOffScreen() {\r\n\t\tif(bullet != null && (bullet.getX() > getWidth() || bullet.getX() < 0)){\r\n\t\t\tremove(bullet);\r\n\t\t\tbullet = null;\r\n\t\t}\r\n\t}", "public void moveMouth()\n {\n mouthPosition++;\n\n if(mouthPosition > Integer.parseInt(\"5\"))\n {\n mouthPosition = 0;\n }\n }", "@Override\r\n public void move() {\r\n Grid<Actor> gr = getGrid();\r\n if (gr == null) {\r\n return;\r\n }\r\n Location loc = getLocation();\r\n if (gr.isValid(next)) {\r\n setDirection(getLocation().getDirectionToward(next));\r\n moveTo(next);\r\n } else {\r\n removeSelfFromGrid();\r\n }\r\n Flower flower = new Flower(getColor());\r\n flower.putSelfInGrid(gr, loc);\r\n }", "public void snakeUp(){\r\n\t\tspeedUp();\r\n\t\tpoints += 100;\r\n\t}", "public void specialMove() {\n\t\tChessSquare initial = getSquare();\n\t\tChessSquare next;\n\t\t\n\t\tif(initial.getNorth() != null){\n\t\t\tnext = initial.getNorth();\n\t\t\t\n\t\t\tif((next.getOccupant() == null) || (!next.getOccupant().getColor().equals(this.getColor())))\n\t\t\t\tnext.removeOccupant();\n\t\t\tif(next.getEast() != null)\n\t\t\t\tif((next.getEast().getOccupant() == null) || (!next.getEast().getOccupant().getColor().equals(this.getColor())))\n\t\t\t\t\tnext.removeOccupant();\n\t\t\tif(next.getWest() != null && next.getWest().getOccupant() == null)\n\t\t\t\tif((next.getWest().getOccupant() == null) || (!next.getWest().getOccupant().getColor().equals(this.getColor())))\n\t\t\t\t\tnext.removeOccupant();\n\t\t}\n\t\t\n\t\tif(initial.getSouth() != null){\n\t\t\tnext = initial.getSouth();\n\t\t\t\n\t\t\tif((next.getOccupant() == null) || (!next.getOccupant().getColor().equals(this.getColor())))\n\t\t\t\tnext.removeOccupant();\n\t\t\tif(next.getEast() != null)\n\t\t\t\tif((next.getEast().getOccupant() == null) || (!next.getEast().getOccupant().getColor().equals(this.getColor())))\n\t\t\t\t\tnext.removeOccupant();\n\t\t\tif(next.getWest() != null)\n\t\t\t\tif((next.getWest().getOccupant() == null) || (!next.getWest().getOccupant().getColor().equals(this.getColor())))\n\t\t\t\t\tnext.removeOccupant();\n\t\t\t\n\t\t}\n\t\t\n\t\tnext = initial.getEast();\n\t\tif(next != null)\n\t\t\tif((next.getOccupant() == null) || (!next.getOccupant().getColor().equals(this.getColor())))\n\t\t\t\tnext.removeOccupant();\n\t\tnext = initial.getWest();\n\t\tif(next != null)\n\t\t\tif((next.getOccupant() == null) || (!next.getOccupant().getColor().equals(this.getColor())))\n\t\t\t\tnext.removeOccupant();\n\t\tsetCountdown(9);\n\t}", "public void lift(){\n\t\twhile(Math.abs(robot.lift1.getCurrentPosition()-robot.startingHeight)<3900&&opModeIsActive()){\n\t\t\trobot.lift1.setPower(1);\n\t\t\trobot.lift2.setPower(1);\n\t\t}\n\t\tlift(\"stop\");\n\t}", "private static void move() {\r\n\t\ttry {\r\n\t\t\tThread.sleep(timer);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\trunTime += timer;\r\n\t\tif (runTime > stepUp) {\r\n\t\t\ttimer *= 0.9;\r\n\t\t\tstepUp += 5000;\r\n\t\t}\r\n\r\n\t\tupdateSnake(lastMove);\r\n\t\t// updateField();\r\n\r\n\t\tif (score >= 10 && (r.nextInt(40) == 0)) {\r\n\t\t\taddFood(MOUSE);\r\n\t\t}\r\n\t\tif (score >= 30 && (r.nextInt(50) == 0)) {\r\n\t\t\taddFood(POISON);\r\n\t\t}\r\n\t}", "@Override\n protected void moveOver(){\n incrementXPos(getWidth()/2);\n if(pointUp){\n incrementYPos(-1*getHeight());\n } else {\n incrementYPos(getHeight());\n }\n incrementCol();\n setPointDirection();\n }", "public void act() \n {\n move(3);\n turnAtEdge(); \n StrikeSeaHorse();\n }", "public void moveBomber(){\n\t\t\t\n\t\t\tif (startredtimer) redtimer++;\n\t\t\tif (redtimer > 5) {\n\t\t\t\tredtimer = 0;\n\t\t\t\tstartredtimer = false;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif (rand.nextInt(21) == 20){ //controls the switching of directions\n\t\t\t\tif (direction == 1) direction = 0;\n\t\t\t\telse if (direction == 0) direction = 1;\n\t\t\t}\n\t\t\tif (direction == 1){ //actually moves the plain\n\t\t\t\tx += 10;\n\t\t\t\tr = true;\n\t\t\t}\n\t\t\telse if (direction == 0){\n\t\t\t\tx -= 10;\n\t\t\t\tr = false;\n\t\t\t}\n\t\t\t\n\t\t\tif (x <= 0) x = 992; //handles the ofscrean plane\n\t\t\telse if ( x >= 992) x = 0;\n\t\t\t\n\t\t\tthis.setBounds(x,y,100,50); //updates the bounds\n\t\t\t\n\t\t}", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tif (gr.isValid(next)) {\n\t\t\tsetDirection(getLocation().getDirectionToward(next));\n\t\t\tmoveTo(next);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t\tFlower flower = new Flower(getColor());\n\t\tflower.putSelfInGrid(gr, loc);\n\t}", "public void PutTopDown()\n\t{\n\t\tif(isStateTop)\n\t\t{\n\t\t\tSystem.out.println(\"Putting top down\");\n\t\t\tisStateTop=false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Top is already down\");\n\t\t}\n\t}", "public void PutTopUp()\n\t{\n\t\tif(!isStateTop)\n\t\t{\n\t\t\tSystem.out.println(\"Putting top up\");\n\t\t\tisStateTop=true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Top is already up\");\n\t\t}\n\t}", "void bottom() {\n startAnimation(bottomSubCubes(), Axis.Y, Direction.ANTICLOCKWISE);\n bottomCubeSwap();\n }", "public void makeNextMove() {\n\t\ttakeNextNonTabuedCheapestStep();\n\t\t}", "public int moveToWall() {\n return moveToWall(false);\n }", "public void goToStart() {\n\t\tsetPosition(0);\n\t}", "public void setTop(int x) {\r\n topSide = x;\r\n }", "private void think()\n\t{\n\t\tboolean bChange=false;\n\t\tif ((mMoveY+Height)<0)\n\t\t\tbChange=true;\n\t\tif ((mMoveX+Width)<0)\n\t\t\tbChange=true;\n\t\tif ((mMoveY+Height)>500)\n\t\t\tbChange=true;\n\t\tif ((mMoveX+Width)>500)\n\t\t\tbChange=true;\n\t\tif (bChange)\n\t\t{\n\t\t\t//Go in opposite direction\n\t\t\tDirection = Direction+4;\n\t\t\tif (Direction>7)\n\t\t\t\tDirection-=8;\n\t\t\tif (Direction<0)\n\t\t\t\tDirection=0;\n\t\t}\t\t\n\t}", "private void knockDown( int count ) {\n for (int i=0; i<count; ++i) {\n int x = 1+r.nextInt(rows);\n int y = 1+r.nextInt(cols);\n if (!downWall( x, y, r.nextInt(4))) --i;\n }\n }", "private void limitScreenMovement() {\r\n\t\tif (x < counterLimit) {\r\n\t\t\tx = counterLimit;\r\n\t\t\tdx = 0;\r\n\t\t} else if (x >= 1) {\r\n\t\t\tMain.endGame();\r\n\t\t}\r\n\t}", "public void flap(){\n bird.setY(bird.getY() - 6);\n }", "public void adjustUp() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].y = tiles[x][y].y - 4;\n backGroundTiles[x][y].y = backGroundTiles[x][y].y - 4;\n grassTiles[x][y].y = grassTiles[x][y].y - 4;\n }\n }", "private void moveClawDown() {\n\t\tMotor.A.setSpeed(45);\n\t\tMotor.A.rotate(-90);\n\t}", "private static void next()\n {\n if ( cX + 2 * clientW > maxX )\n {\n if ( cY + 2 * clientH < maxY )\n {\n cX = 0; cY += clientH;\n }\n } else {\n cX += clientW;\n }\n // No room on screen\n // All new windows are tiled on top of each other\n }", "public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}", "private void putToTop()\r\n {\r\n OrderManager manager = myOrderManagerRegistry.getOrderManager(ourKey);\r\n manager.activateParticipant(ourKey);\r\n manager.moveToTop(ourKey);\r\n }", "public void act() \r\n {\r\n move(5);\r\n if(isAtEdge())\r\n turn(4);\r\n if(Greenfoot.getRandomNumber(35) < 34)\r\n turn(10);\r\n if(Greenfoot.getRandomNumber(20)<5)\r\n turn(-15);\r\n }", "private void moveUpDown(int Height) {\n d = Math.random();\n if (d < 0.1 && getY() + wolfHeight <= Height - Height / 40) setY(getY() + Height / 40);\n else if (d > 0.9 && getY() >= 15) setY(getY() - Height / 40);\n }", "@Test\n void RookMoveOutOfBound() {\n Board board = new Board(8, 8);\n Piece rook = new Rook(board, 1, 5, 1);\n board.getBoard()[1][5] = rook;\n board.movePiece(rook, -1, 5);\n }", "@FXML\n\tprivate void moveUp(ActionEvent event) {\n\t\t\n\t\tRandom rand = new Random();\n\t\t\n\t\tint combatroll = rand.nextInt(101);\n\t\tint itemroll = rand.nextInt(101);\n\t\t\n\t\t\n\t\tif(l.upValid && combat == false) {\n\t\t\tunsetValidMoves();\n\t\t\tl.moveUp();\n\t\t\tsetCurrentPos();\n\n\t\t\tif(currentPos != finishCircle) {\n\t\t\t\tif(combatroll >= 80) { \n\t\t\t\t\n\t\t\t\t\tcombat();\t\n\t\t\t\t}else if(itemroll>=40) {\n\t\t\t\t\trollCommonDrop();\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\n\t\t\telse if(currentPos == finishCircle) {\n\t\t\t\t\n\t\t\t\tbossfight();\n\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "void moveNorthEast(){\n xpos = xpos + 3;\n ypos = ypos-xspeed;\n if (xpos > width){ // 20\n xpos = random(-width/2, width/2); // 25\n ypos = width; // 30\n }\n }", "private void moverAbajo()\n\t{\n\t\twhile (true)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tThread.sleep(VentanaJuego.RapidezMovimientoJefe);\n\t\t\t\tJefe.setLocation(Jefe.getX(), Jefe.getY() + 5);\n\t\t\t\tif (Jefe.getY() > 275)\n\t\t\t\t{\n\t\t\t\t\tmoverArriba();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (InterruptedException e)\n\t\t\t{\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}", "public void scrollToTop()\n {\n ensureIndexIsVisible(0);\n }", "public void act()\n {\n \n if (wait < 75)\n {\n wait = wait + 1;\n }\n \n \n \n \n \n \n if (wait == 75)\n {\n change();\n checkForBounce();\n checkForEdge();\n checkWin(); \n }\n \n \n }", "public int moveToWall(final boolean placeBeepers) {\n int distance = 0;\n\n while (frontIsClear()) {\n move();\n distance++;\n if (placeBeepers) {\n putBeeper();\n }\n }\n\n return distance;\n }", "public void scrollWalls(){\n\t\tfor(int i = 0; i < walls.length; i+=2) {\n\t\t\tif (walls[i].getX() > -150) {\n\t\t\t\twalls[i].setX(walls[i].getX() - 2);\n\t\t\t\twalls[i + 1].setX(walls[i + 1].getX() - 2);\n\t\t\t} else {\n\t\t\t\twalls[i].setX(700);\n\t\t\t\twalls[i + 1].setX(700);\n\t\t\t}\n\t\t}\n\t}", "protected void wander() {\n\t\tfor(int i=3;i>0;){\n\t\t\tfindChest();\n\t\t\tint num = ((int) (Math.random()*100)) % 4;\n\t\t\tswitch (num+1){\n\t\t\t\tcase 1 :\n\t\t\t\t\tif(!(character.xOfFighter-1==game.getXofplayer()&&character.yOfFighter==game.getYofplayer())\n\t\t\t\t\t\t\t&&game.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter-1,character.yOfFighter)){\n\t\t\t\t\t\tcharacter.xOfFighter = character.xOfFighter-1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\tif(!(character.xOfFighter==game.getXofplayer()&&character.yOfFighter-1==game.getYofplayer())&&\n\t\t\t\t\t\t\tgame.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter,character.yOfFighter-1)){\n\t\t\t\t\t\tcharacter.yOfFighter = character.yOfFighter-1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\tif(!(character.xOfFighter+1==game.getXofplayer()&&character.yOfFighter==game.getYofplayer())&&\n\t\t\t\t\t\t\tgame.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter+1,character.yOfFighter)){\n\t\t\t\t\t\tcharacter.xOfFighter = character.xOfFighter+1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\t\tif(!(character.xOfFighter==game.getXofplayer()&&character.yOfFighter+1==game.getYofplayer())&&\n\t\t\t\t\t\t\tgame.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter,character.yOfFighter+1)){\n\t\t\t\t\t\tcharacter.yOfFighter = character.yOfFighter+1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfindChest();\n\t}", "public void moveLeft() {\r\n\t\t\r\n\t\tint leftSteps=10;\r\n\t\t\ttopX-= leftSteps;\r\n\t}", "public void laserMoveUp()\r\n\t{\r\n\r\n\t\tif (y > 0)\r\n\t\t\ty -= 20;\r\n\r\n\t\telse\r\n\t\t\tdestroyed = true;\r\n\r\n\t}", "public DefaultStabilizeClimb() {\n\t\trequires(Robot.climb);\n\t}", "public void makeMove() {\n\t\tif (CheckForVictory(this)) {\n\t\t\t// System.out.println(\"VICTORY\");\n\t\t\tInterface.goalReached = true;\n\t\t\tfor (int i = 0; i < tmpStrings.length; i++) {\n\t\t\t\tif (moveOrder[i] == 0)\n\t\t\t\t\ttmpStrings[i] = \"turn left\";\n\t\t\t\telse if (moveOrder[i] == 1)\n\t\t\t\t\ttmpStrings[i] = \"turn right\";\n\t\t\t\telse\n\t\t\t\t\ttmpStrings[i] = \"go forward\";\n\n\t\t\t\tInterface.info.setText(\"Generation: \" + Parallel.generationNo + 1 + \" and closest distance to goal: \" + 0);\n\t\t\t}\n\t\t} else {\n\t\t\tmoveOrder[this.movesMade] = moves.remove();\n\t\t\tswitch (moveOrder[this.movesMade]) {\n\t\t\tcase (0):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 0)\n\t\t\t\t\tface = 3;\n\t\t\t\telse\n\t\t\t\t\tface--;\n\t\t\t\tbreak;\n\t\t\tcase (1):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 3)\n\t\t\t\t\tface = 0;\n\t\t\t\telse\n\t\t\t\t\tface++;\n\t\t\t\tbreak;\n\t\t\tcase (2):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 0 && Y - 1 >= 0)\n\t\t\t\t\tY--;\n\t\t\t\telse if (face == 1 && X + 1 <= map[0].length - 1)\n\t\t\t\t\tX++;\n\t\t\t\telse if (face == 2 && Y + 1 <= map.length - 1)\n\t\t\t\t\tY++;\n\t\t\t\telse if (face == 3 && X - 1 >= 0)\n\t\t\t\t\tX--;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Error making move :(\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void moveUp()\n\t{\n\t\tthis.grid.moveUp();\n\t}", "private void moveAround()\n {\n if(getY()>75)\n {\n setRotation(270);\n }\n else if(getX()<75)\n {\n setRotation(0);\n }\n else if (getX()>getWorld().getWidth()-50)\n {\n setRotation(180);\n }\n else if (isTouching(Player.class))\n {\n Actor actor = getOneIntersectingObject(Player.class);\n turnTowards(actor.getX(), actor.getY());\n turn(180);\n }\n else if(Greenfoot.getRandomNumber(100) < 3)\n {\n setRotation(Greenfoot.getRandomNumber(360));\n }\n move(1);\n }", "public void moveBoss() {\n\t\tdouble position = boss.getTranslateY();\n\t\tspeed = Math.random()*30;\n\t\tif(position > 600-70) {\n\t\t\tRandom r = new Random();\n\t\t\tboss.setTranslateY(-6);\n\t\t\tboss.setTranslateX(r.nextInt(900));\n\t\t}else {\n\t\tboss.setTranslateY(position + speed);\n\t\t}\n\t}", "public void move() {\n energy -= 0.03;\n if (energy < 0) {\n energy = 0;\n }\n }", "public void moveBlueCrab() {\n\t\tloseLife();\n\t\tif (wallOverlapX()) {\n\t\t\tif (hitRight) {\n\t\t\t\tif (xVel > 0) {\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else if (hitLeft) {\n\t\t\t\tif (xVel < 0) {\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (wallOverlapY()) {\n\t\t\tif (hitUp) {\n\t\t\t\tif (yVel < 0) {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else if (hitDown) {\n\t\t\t\tif (yVel > 0) {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint xLow = xPos;\n\t\tint xHigh =xPos + width;\n\t\tint yTop = yPos;\n\t\tint yBot = yPos + height;\n\t\tfor (int i = 0; i < game.m.walls.size(); i++) {\n\t\t\tif (game.m.walls.get(i).wallHit(this) > 0) {\n//\t\t\t\twhile (game.m.walls.get(i).wallHit(this)) {\n\t\t\t\tif (game.m.walls.get(i).wallHit(this) == 4) {\n\t\t\t\t\tif (yVel < 0) {\n\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 1) {\n\t\t\t\t\t\t\t\tif (xVel > 0) {\n\t\t\t\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 2) {\n\t\t\t\t\t\t\t\tif (xVel < 0) {\n\t\t\t\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (game.m.walls.get(i).wallHit(this) == 3) {\n\t\t\t\t\tif (yVel > 0) {\n\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 1) {\n\t\t\t\t\t\t\t\tif (xVel > 0) {\n\t\t\t\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 2) {\n\t\t\t\t\t\t\t\tif (xVel < 0) {\n\t\t\t\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (game.m.walls.get(i).wallHit(this) == 2) {\n\t\t\t\t\tif (xVel < 0) {\n\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 3) {\n\t\t\t\t\t\t\t\tif (yVel > 0) {\n\t\t\t\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 4) {\n\t\t\t\t\t\t\t\tif (yVel < 0) {\n\t\t\t\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (game.m.walls.get(i).wallHit(this) == 1) {\n\t\t\t\t\tif (xVel > 0) {\n\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 3) {\n\t\t\t\t\t\t\t\tif (yVel > 0) {\n\t\t\t\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 4) {\n\t\t\t\t\t\t\t\tif (yVel < 0) {\n\t\t\t\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n//\t\t\t\tif (xVel > 0) {\n//\t\t\t\t\txPos -= 20;\n//\t\t\t\t\treturn;\n//\t\t\t\t} \n//\t\t\t\telse if (xVel < 0) {\n//\t\t\t\t\txPos += 20;\n//\t\t\t\t\treturn;\n//\t\t\t\t}\n//\t\t\t\tif (yVel > 0) {\n//\t\t\t\t\tyPos -= 20;\n//\t\t\t\t\treturn;\n//\t\t\t\t}\n//\t\t\t\telse if (yVel < 0) {\n//\t\t\t\t\tyPos += 20;\n//\t\t\t\t\treturn;\n//\t\t\t\t}\n//\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (xPos <= 0) {\n\t\t\tif (xVel > 0) {\n\t\t\t\txPos += xVel;\n\t\t\t} else if (yPos + height <= game.mapHeight && yPos >= 0){\n\t\t\t\tyPos += yVel;\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (xPos + width >= game.mapWidth) {\n\t\t\tif (xVel < 0) {\n\t\t\t\txPos += xVel;\n\t\t\t} else if (yPos + height <= game.mapHeight && yPos >= 0){\n\t\t\t\tyPos += yVel;\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (yPos <= 0) {\n\t\t\tif (yVel > 0) {\n\t\t\t\tyPos += yVel;\n\t\t\t} else if (xPos + width <= game.mapWidth && xPos >= 0){ \n\t\t\t\txPos += xVel;\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (yPos + height >= game.mapHeight) { \n\t\t\tif (yVel < 0) {\n\t\t\t\tyPos += yVel;\n\t\t\t} else if (xPos + width <= game.mapWidth && xPos >= 0){\n\t\t\t\txPos += xVel;\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\t\t\txPos += xVel;\n\t\t\tyPos += yVel;\n\t\t}\n\n\t}", "private void moveMehran() {\r\n\t\tif(count == 300 && dragon2 == null && mehran != null) {\r\n\t\t\tdouble x = mehran.getX();\r\n\t\t\tdouble y = mehran.getY();\r\n\t\t\tfor(int i = 1; i < animationArr.length; i++) {\r\n\t\t\t\tremove(mehran);\r\n\t\t\t\tmehran = animationArr[i];\r\n\t\t\t\tadd(mehran, x, y);\r\n\t\t\t\tmoveBullet();\r\n\t\t\t\tpause(DELAY);\r\n\t\t\t}\r\n\t\t\tlaser = new GRect(mehran.getX() - 1, mehran.getY() + 100, LASER_WIDTH, LASER_HEIGHT);\r\n\t\t\tlaser.setFilled(true);\r\n\t\t\tlaser.setColor(Color.RED);\r\n\t\t\tadd(laser);\r\n\t\t\tfor(int i = animationArr.length - 1; i > 0; i--) {\r\n\t\t\t\tremove(mehran);\r\n\t\t\t\tmehran = animationArr[i];\r\n\t\t\t\tadd(mehran, x, y);\r\n\t\t\t\tmoveBullet();\r\n\t\t\t\tpause(DELAY);\r\n\t\t\t}\r\n\t\t\tcount = 0;\r\n\t\t}\r\n\t}", "public void moveUp()\n\t{\n\t\ty = y - STEP_SIZE;\n\t}" ]
[ "0.6526372", "0.6298553", "0.62494177", "0.61146617", "0.6013537", "0.5973304", "0.58496207", "0.5783184", "0.5770197", "0.57549894", "0.5745936", "0.57399523", "0.5734878", "0.57287014", "0.5716069", "0.56953925", "0.5679775", "0.5669275", "0.56646234", "0.5644416", "0.56427395", "0.56245637", "0.5605131", "0.5601014", "0.5600977", "0.56003934", "0.55879396", "0.5576028", "0.55741423", "0.55703574", "0.5556547", "0.5548623", "0.5546438", "0.55381125", "0.55102116", "0.5471469", "0.54674494", "0.54668486", "0.54595613", "0.5455229", "0.5452378", "0.544877", "0.5447802", "0.5446367", "0.54299235", "0.5426605", "0.54259366", "0.5425106", "0.5422861", "0.5421829", "0.5420467", "0.5412255", "0.54078454", "0.5405385", "0.5393305", "0.53913325", "0.53878385", "0.5381066", "0.5380189", "0.53768337", "0.5374057", "0.53721803", "0.53583115", "0.5348803", "0.53413135", "0.53325766", "0.5326352", "0.53259134", "0.5325609", "0.53204554", "0.53027946", "0.53025436", "0.52979904", "0.5295824", "0.52897406", "0.5282924", "0.52815235", "0.5280926", "0.5273941", "0.52737725", "0.52729976", "0.5272226", "0.5271594", "0.52708596", "0.5267778", "0.5267682", "0.5266574", "0.52649593", "0.52640605", "0.5263239", "0.5258815", "0.52580196", "0.52556264", "0.52472144", "0.5246588", "0.5245098", "0.52422565", "0.5235732", "0.52333915", "0.5218632", "0.5217142" ]
0.0
-1
Move the claw down until it triggers its bottom limit switch
public boolean goAllDown() { if ( botLimitSwitch.get() ) { stop(); } else{ down(); } return botLimitSwitch.get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void climbWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.goUpWall();\n\t\tthis.goAcrossWall();\n\t\tthis.goDownWall();\n\t}", "private void moveUpDown(int Height) {\n d = Math.random();\n if (d < 0.1 && getY() + wolfHeight <= Height - Height / 40) setY(getY() + Height / 40);\n else if (d > 0.9 && getY() >= 15) setY(getY() - Height / 40);\n }", "public void moveDown() {\n if (ycoor <= Game.heightOfGameBoard - movingSpeed) {\n ycoor = ycoor + movingSpeed;\n }\n\n }", "private void moveClawDown() {\n\t\tMotor.A.setSpeed(45);\n\t\tMotor.A.rotate(-90);\n\t}", "public void autoScoreBottomCenterPeg() {\n getRobotDrive().goForward(-.5); //Speed at which to back up\n Timer.delay(1); //Time to continue backing up\n getRobotDrive().stop(); //Stop backing up\n arm.armJag.set(.4); //Speed to lower arm *may need to be inverted*\n Timer.delay(.5); //Time to lower arm\n arm.grabTube(true); //Opens the claw to release Ub3r Tube\n getRobotDrive().goForward(-.5); //Speed at which to back up again\n arm.armJag.set(.3); //Lowers arm safely to ground.\n\n }", "public void moveDown()\n {\n if (!this.search_zone.isDownBorder(this.y_position))\n {\n this.y_position = (this.y_position + 1);\n }\n }", "public void moveDown() {\n\t\tstate.updateFloor(state.getFloor()-1);\n\t}", "private void moveClawUp() {\n\t\tMotor.A.setSpeed(45);\n\t\tMotor.A.rotate(90);\n\t\t\n\t}", "private void goDownWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.move(2);\n\t\tthis.turnLeft();\n\t}", "public synchronized void moveDown(){\n if (!this.isAtBottom()){\n for (int j = 1; j < 25; j++){\n for (int i = 1; i < 13; i++){\n if (this.movable[i][j]){\n this.map[i][j - 1] = this.map[i][j];\n this.movable[i][j - 1] = this.movable[i][j];\n this.colors[i][j - 1] = this.colors[i][j];\n\n this.map[i][j] = false;\n this.movable[i][j] = false;\n this.colors[i][j] = null;\n\n }\n }\n }\n }\n this.piecePositionY--;\n repaint();\n }", "public void goUp()\r\n\t{\r\n\t\tthis.Y--;\r\n\t}", "public void moveUp()\n {\n if (!this.search_zone.isTopBorder(this.y_position))\n {\n this.y_position = (this.y_position - 1);\n }\n }", "public void moveDown()\n {\n if (yPos == yBound)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - positive Y because we are moving DOWN!\n movementY = 0.5;\n movementX = 0;\n }", "public void move(){\n super.move();\n if(getX() >= Main.WIDTH - getWidth() * 1.5) {\n setDirection(-1);\n } else if(getX() <= 50) {\n setDirection(1);\n }\n }", "private void goUpWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.turnLeft();\n\t\tthis.move(2);\n\t\tthis.turnRight();\n\t}", "public void move()\r\n\t{\r\n\t\ty-=8;\r\n\t}", "public void moveUp() {\n if (ycoor >= movingSpeed) {\n ycoor = ycoor - movingSpeed;\n }\n }", "public void moveDown()\n\t{\n\t\ty = y + STEP_SIZE;\n\t}", "public void bounceOffEdge()\n {\n int margin = 2;\n\n if (getX() <= margin || getX() >= getWorld().getWidth() - margin) //left or right side\n {\n turn(180);\n }\n if (getY() <= margin || getY() >= getWorld().getHeight() - margin) //top or bottom side\n {\n turn(180);\n }\n }", "public void Down(){\r\n \r\n if(By>0 && By<900){\r\n \r\n By+=2;\r\n }\r\n }", "public void moveUp()\n\t{\n\t\ty = y - STEP_SIZE;\n\t}", "void bottom() {\n startAnimation(bottomSubCubes(), Axis.Y, Direction.ANTICLOCKWISE);\n bottomCubeSwap();\n }", "public void moveDown() {\n\t\tsetPosY(getPosY() + steps);\n\t}", "public void walkDownWall() {\r\n\t\tthis.move();\r\n\t\tthis.turnRight();\r\n\t\tthis.move();\r\n\t\tthis.move();\r\n\t\tthis.move();\r\n\t\tthis.turnLeft();\r\n\t}", "public void moveUp() {\n if (getY() - 25 - getSpeed() >= 0 && !touchMaterial()) setY(getY() - getSpeed());\n }", "public void moveUp() {\n\t\tstate.updateFloor(state.getFloor()+1);\n\t}", "public void laserMoveUp()\r\n\t{\r\n\r\n\t\tif (y > 0)\r\n\t\t\ty -= 20;\r\n\r\n\t\telse\r\n\t\t\tdestroyed = true;\r\n\r\n\t}", "public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}", "private void goAcrossWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.move();\n\t\tthis.turnRight();\n\t}", "public void moveDown()\n\t{\n\t\tthis.grid.moveDown();\n\t}", "public void moveDown() {\n locY = locY - 1;\n }", "@Override\n protected void execute() {\n\n float roll = Robot.driveBase.getRoll();\n\n // if robot is balance, continue climb\n if (roll < 0.2 && roll > -0.2) {\n Robot.climber.frontDown();\n Robot.climber.rearDown();\n } else {\n if (roll > 0.2) {\n // front is too fast -- slow front down\n Robot.climber.frontStop();\n Robot.climber.rearDown();\n }\n if (roll < -0.2) {\n Robot.climber.rearStop();\n Robot.climber.frontDown();\n // rear is too fast -- slow rear down\n }\n\n }\n }", "public void moveUp() {\n\t\tsetPosY(getPosY() - steps);\n\t}", "private void think()\n\t{\n\t\tboolean bChange=false;\n\t\tif ((mMoveY+Height)<0)\n\t\t\tbChange=true;\n\t\tif ((mMoveX+Width)<0)\n\t\t\tbChange=true;\n\t\tif ((mMoveY+Height)>500)\n\t\t\tbChange=true;\n\t\tif ((mMoveX+Width)>500)\n\t\t\tbChange=true;\n\t\tif (bChange)\n\t\t{\n\t\t\t//Go in opposite direction\n\t\t\tDirection = Direction+4;\n\t\t\tif (Direction>7)\n\t\t\t\tDirection-=8;\n\t\t\tif (Direction<0)\n\t\t\t\tDirection=0;\n\t\t}\t\t\n\t}", "private void changeDirectionIfReachedPacingAreaMax()\n {\n int totalDistance = Math.abs(xTotalDistance);\n\n if (totalDistance > this.currentDistance)\n {\n this.nextDirection();\n //this.isFollowLimitedByTerrain = false;\n }\n }", "@Override\n public void move() {\n if (movementCooldown > 0) {\n movementCooldown --;\n } else {\n super.move();\n movementCooldown = MAX_MOVEMENT_COOLDOWN;\n }\n }", "public void down(){\n\t\tmoveX=0;\n\t\tmoveY=1;\n\t}", "public void moveUp() {\r\n\t\tmy_cursor_location.y--;\r\n\t}", "public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}", "private void knockDown( int count ) {\n for (int i=0; i<count; ++i) {\n int x = 1+r.nextInt(rows);\n int y = 1+r.nextInt(cols);\n if (!downWall( x, y, r.nextInt(4))) --i;\n }\n }", "public void up() {dy = -SPEED;}", "public void adjustDown() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].y = tiles[x][y].y + 4;\n backGroundTiles[x][y].y = backGroundTiles[x][y].y + 4;\n grassTiles[x][y].y = grassTiles[x][y].y + 4;\n }\n }", "private void turnAround() {\r\n this.setCurrentDirection(-getCurrentDirection());\r\n }", "private void bounceOffHorizontalWall() {\n vy = -vy;\n }", "public void Down2(){\r\n if(Hy>0 && Hy<900){\r\n \r\n Hy+=3;\r\n }\r\n }", "private void dropDown() {\n int newY = curY;\n\n while (newY > 0) {\n\n if (!tryMove(curPiece, curX, newY - 1)) {\n \n break;\n }\n \n --newY;\n }\n\n pieceDropped();\n }", "public void move() {\r\n if (y > HEIGHT)\r\n y = initialY;\r\n y = y + speed;\r\n }", "public void Down4()\r\n {\r\n if(By2>0 && By2<900){\r\n \r\n By2+=2.5;\r\n }\r\n }", "public void flap(){\n bird.setY(bird.getY() - 6);\n }", "public void step(){\n if (this.ht < maxHeight){\n this.ht = this.ht + STEP_SIZE;\n }\n else if (! this.isFinished()){\n this.radius = this.radius + GROW_SIZE;\n }\n }", "public void moveBackward(boolean endWithBrake){\r\n \r\n Motor.B.rotate(-1*DEGREES_PER_TILE, true);//Accesses Motor thread\r\n Motor.C.rotate(-1*DEGREES_PER_TILE, true);\r\n while(Motor.B.isMoving() || Motor.C.isMoving())\r\n ;//wait for motors to be done\r\n return;\r\n }", "public void up(){\n\t\tmoveX=0;\n\t\tmoveY=-1;\n\t}", "public void moveBoss() {\n\t\tdouble position = boss.getTranslateY();\n\t\tspeed = Math.random()*30;\n\t\tif(position > 600-70) {\n\t\t\tRandom r = new Random();\n\t\t\tboss.setTranslateY(-6);\n\t\t\tboss.setTranslateX(r.nextInt(900));\n\t\t}else {\n\t\tboss.setTranslateY(position + speed);\n\t\t}\n\t}", "public void moveUp() {\n this.accelerateYU();\n this.moveY(this.getySpeed());\n this.setPicX(0);\n this.setPicY(211);\n this.setLoopCells(true);\n }", "private void fly() {\n\t\tint xTarget = 12 *Board.TILE_D;\r\n\t\tint yTarget = 12 * Board.TILE_D;\r\n\t\tif(centerX - xTarget >0) {\r\n\t\t\tcenterX--;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcenterX++;\r\n\t\t}\r\n\t\tif(centerY - yTarget > 0) {\r\n\t\t\tcenterY --;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcenterY ++;\r\n\t\t}\r\n\t}", "private void playerMoveDown()\n {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentY(this.getCurrentY() + 1);\n if (this.getCurrentY() < 11) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentY(this.getCurrentY() - 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else {\n this.setCurrentY(this.getCurrentY() - 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n }", "void moveUp() {\n\t\tsetY(y-1);\r\n\t\tdx=0;\r\n\t\tdy=-1;\r\n\t}", "public void moveDown() {\n this.accelerateYD();\n this.moveY(this.getySpeed());\n this.setPicX(0);\n this.setPicY(0);\n this.setLoopCells(true);\n }", "public void adjustUp() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].y = tiles[x][y].y - 4;\n backGroundTiles[x][y].y = backGroundTiles[x][y].y - 4;\n grassTiles[x][y].y = grassTiles[x][y].y - 4;\n }\n }", "public void goDown()\r\n\t{\r\n\t\tthis.Y++;\r\n\t}", "public void move() {\n energy -= 0.03;\n if (energy < 0) {\n energy = 0;\n }\n }", "public void moveUp()\n\t{\n\t\tthis.grid.moveUp();\n\t}", "public void cycle(){\r\n \r\n \r\n if(collision()){\r\n endtime = 1;\r\n animator.stop();\r\n }else{\r\n if(max_h == false)\r\n ch.v--;\r\n if(ch.v == 150)\r\n max_h = true;\r\n\r\n if(max_h == true & ch.v <= 330){\r\n ch.v++;\r\n if(ch.v == 330){\r\n done = true;\r\n \r\n }\r\n }\r\n }\r\n }", "public void movePacmans() {\n\t\ttry {\n\t\t\tgz.redraw();\n\t\t}\n\t\tcatch(NullPointerException npe) {\n\t\t\tgz.pauseGame();\n\t\t}\n\t}", "public void moveDown()\n\t{\n\t\ty = Math.min(y + 1, main.HEIGHT-1);\n\t\tsprite.setPosition(x*sprite.getWidth(),y*sprite.getHeight());\n\t}", "@Override\n public void loop() {\n\n //double armRot = robot.Pivot.getPosition();\n\n double deadzone = 0.2;\n\n double trnSpdMod = 0.5;\n\n float xValueRight = gamepad1.right_stick_x;\n float yValueLeft = -gamepad1.left_stick_y;\n\n xValueRight = Range.clip(xValueRight, -1, 1);\n yValueLeft = Range.clip(yValueLeft, -1, 1);\n\n // Pressing \"A\" opens and closes the claw\n if (gamepad1.a) {\n\n if (robot.Claw.getPosition() < 0.7)\n while(gamepad1.a){\n robot.Claw.setPosition(1);}\n else if (robot.Claw.getPosition() > 0.7)\n while(gamepad1.a){\n robot.Claw.setPosition(0.4);}\n else\n while(gamepad1.a)\n robot.Claw.setPosition(1);\n }\n\n // Pressing \"B\" changes the wrist position\n if (gamepad1.b) {\n\n if (robot.Wrist.getPosition() == 1)\n while(gamepad1.b)\n robot.Wrist.setPosition(0.5);\n else if (robot.Wrist.getPosition() == 0.5)\n while(gamepad1.b)\n robot.Wrist.setPosition(1);\n else\n while(gamepad1.b)\n robot.Wrist.setPosition(1);\n }\n\n // Turn left/right, overrides forward/back\n if (Math.abs(xValueRight) > deadzone) {\n\n robot.FL.setPower(xValueRight * trnSpdMod);\n robot.FR.setPower(-xValueRight * trnSpdMod);\n robot.BL.setPower(xValueRight * trnSpdMod);\n robot.BR.setPower(-xValueRight * trnSpdMod);\n\n\n } else {//Forward/Back On Solely Left Stick\n if (Math.abs(yValueLeft) > deadzone) {\n robot.FL.setPower(yValueLeft);\n robot.FR.setPower(yValueLeft);\n robot.BL.setPower(yValueLeft);\n robot.BR.setPower(yValueLeft);\n }\n robot.FL.setPower(0);\n robot.FR.setPower(0);\n robot.BL.setPower(0);\n robot.BR.setPower(0);\n }\n\n\n telemetry.addData(\"Drive Encoder Ticks\", robot.FL.getCurrentPosition());\n telemetry.addData(\"Winch Encoder Ticks\", robot.Winch.getCurrentPosition());\n telemetry.addData(\"ColorArm Position\", robot.ColorArm.getPosition());\n telemetry.addData(\"Wrist Position\", robot.Wrist.getPosition());\n telemetry.addData(\"Claw Position\", robot.Claw.getPosition());\n telemetry.addData(\"Grip Position\", robot.Grip.getPosition());\n telemetry.addData(\"Color Sensor Data Red\", robot.Color.red());\n telemetry.addData(\"Color Sensor Data Blue\", robot.Color.blue());\n\n /*\n\n // This is used for an Omniwheel base\n\n // Group a is Front Left and Rear Right, Group b is Front Right and Rear Left\n float a;\n float b;\n float turnPower;\n if(!gamepad1.x) {\n if (Math.abs(xValueRight) <= deadzone && Math.abs(yValueRight) <= deadzone) {\n // And is used here because both the y and x values of the right stick should be less than the deadzone\n\n a = Range.clip(yValueLeft + xValueLeft, -1, 1);\n b = Range.clip(yValueLeft - xValueLeft, -1, 1);\n\n\n robot.FL.setPower(a);\n robot.FR.setPower(b);\n robot.BL.setPower(b);\n robot.BR.setPower(a);\n\n telemetry.addData(\"a\", \"%.2f\", a);\n telemetry.addData(\"b\", \"%.2f\", b);\n\n } else if (Math.abs(xValueRight) > deadzone || Math.abs(yValueRight) > deadzone) {\n\n // Or is used here because only one of the y and x values of the right stick needs to be greater than the deadzone\n turnPower = Range.clip(xValueRight, -1, 1);\n\n robot.FL.setPower(-turnPower);\n robot.FR.setPower(turnPower);\n robot.BL.setPower(-turnPower);\n robot.BR.setPower(turnPower);\n\n } else {\n\n robot.FL.setPower(0);\n robot.FR.setPower(0);\n robot.BL.setPower(0);\n robot.BR.setPower(0);\n }\n\n } else {\n\n if (Math.abs(xValueRight) <= deadzone && Math.abs(yValueRight) <= deadzone) {\n\n // And is used here because both the y and x values of the right stick should be less than the deadzone\n a = Range.clip(yValueLeft + xValueLeft, -0.6f, 0.6f);\n b = Range.clip(yValueLeft - xValueLeft, -0.6f, 0.6f);\n\n\n robot.FL.setPower(a);\n robot.FR.setPower(b);\n robot.BL.setPower(b);\n robot.BR.setPower(a);\n\n telemetry.addData(\"a\", \"%.2f\", a);\n telemetry.addData(\"b\", \"%.2f\", b);\n\n } else if (Math.abs(xValueRight) > deadzone || Math.abs(yValueRight) > deadzone) {\n\n // Or is used here because only one of the y and x values of the right stick needs to be greater than the deadzone\n turnPower = Range.clip(xValueRight, -1, 1);\n\n robot.FL.setPower(-turnPower);\n robot.FR.setPower(turnPower);\n robot.BL.setPower(-turnPower);\n robot.BR.setPower(turnPower);\n\n } else {\n\n robot.FL.setPower(0);\n robot.FR.setPower(0);\n robot.BL.setPower(0);\n robot.BR.setPower(0);\n }\n }\n\n\n if (gamepad1.dpad_up) {\n\n robot.Swing.setPower(.6);\n\n } else if (gamepad1.dpad_down) {\n\n robot.Swing.setPower(-.6);\n\n } else {\n\n robot.Swing.setPower(0);\n }\n\n if(gamepad1.a){\n\n robot.Claw.setPosition(.4);\n\n } else if(gamepad1.b){\n\n robot.Claw.setPosition(0);\n }\n\n if(gamepad1.left_bumper) {\n\n robot.Pivot.setPosition(armRot+0.0005);\n\n } else if(gamepad1.right_bumper) {\n\n robot.Pivot.setPosition(armRot-0.0005);\n\n } else{\n\n robot.Pivot.setPosition(armRot);\n }\n\n telemetry.addData(\"position\", position);\n\n */\n\n /*\n * Code to run ONCE after the driver hits STOP\n */\n }", "void moveWest() {\n xpos = xpos - xspeed;\n if (xpos <= 0){ // 20\n xpos = width; // 25\n }\n }", "public void updateBottomBorder(){\n if (player.getScore()%40 ==0){\n botBorders.add(new BotBorder(BitmapFactory.decodeResource(getResources(),R.drawable.brick),\n botBorders.get(botBorders.size()-1).getX()+20,\n (int)(rand.nextDouble()*maxBorderHeight)+HEIGHT-maxBorderHeight));\n }\n //update bottom border\n for (int i =0; i<botBorders.size(); i++){\n botBorders.get(i).update();\n if (botBorders.get(i).getX()<-20) {\n botBorders.remove(i);\n if (botBorders.get(botBorders.size() - 1).getY() <= HEIGHT- maxBorderHeight) {\n botDown = true ;\n }\n if (botBorders.get(botBorders.size() - 1).getY() >= HEIGHT- minBorderHeight) {\n botDown = false;\n }\n if (botDown) {\n botBorders.add(new BotBorder(BitmapFactory.decodeResource(getResources(), R.drawable.brick),\n botBorders.get(botBorders.size() - 1).getX() + 20,\n botBorders.get(botBorders.size() - 1).getY() + 1));\n } else {\n botBorders.add(new BotBorder(BitmapFactory.decodeResource(getResources(), R.drawable.brick),\n botBorders.get(botBorders.size() - 1).getX() + 20,\n botBorders.get(botBorders.size() - 1).getY() - 1));\n }\n }\n }\n }", "public void moveDown()\n\t{\n\t\trow--;\n\t}", "public void moveDown() {\n\t\t\n\t}", "public void moveDown() {\n\t\tposY -= speed;\n\t}", "public void moveUp() {\n locY = locY + 1;\n }", "public void liftArm(){armLifty.set(-drivePad.getThrottle());}", "protected void down() {\n move(positionX, positionY + 1);\n orientation = BattleGrid.RIGHT_ANGLE;\n }", "public void Down3(){\r\n if(Hy2>0 && Hy2<900){\r\n \r\n Hy2+=3;\r\n }\r\n }", "public void moveUp() {\n\t\tposY += speed;\n\t}", "public void action() {\n x = x + dx;\n y = y + dy;\n\n // deluppgift 6\n if( this.growing ) {\n this.setDiameter( this.diameter + 5 );\n this.growing = (this.diameter > 25) ? false : true;\n }\n else {\n this.setDiameter( this.diameter - 4 );\n this.growing = (this.diameter < 5 ) ? true : false;\n }\n constrain();\n }", "public void move()\n {\n xPosition = xPosition + xSpeed;\n yPosition = yPosition + ySpeed;\n draw();\n if (xPosition >= rightBound - diameter)\n {\n xSpeed = -(xSpeed);\n\n }\n else\n {\n }\n if (xPosition <= leftBound)\n {\n xSpeed = -(xSpeed);\n\n }\n else\n {\n }\n if (yPosition <= upBound)\n {\n ySpeed = -(ySpeed);\n\n }\n else\n {\n }\n if (yPosition >= lowBound - diameter)\n {\n ySpeed = -(ySpeed);\n\n }\n else \n {\n }\n\n }", "private void turnAround() {\n d = Math.random();\n if (d < 0.1) {\n changeAppearance();\n }\n }", "private void playerMoveUp()\n {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentY(this.getCurrentY() - 1);\n if (this.getCurrentY() > -1) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentY(this.getCurrentY() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else// hit edge redo setlocation\n {\n this.setCurrentY(this.getCurrentY() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } \n }", "@Override\n\tpublic void step() {\n\t\tthis.y-= speed;\t\n\t}", "@FXML\n\tprivate void moveUp(ActionEvent event) {\n\t\t\n\t\tRandom rand = new Random();\n\t\t\n\t\tint combatroll = rand.nextInt(101);\n\t\tint itemroll = rand.nextInt(101);\n\t\t\n\t\t\n\t\tif(l.upValid && combat == false) {\n\t\t\tunsetValidMoves();\n\t\t\tl.moveUp();\n\t\t\tsetCurrentPos();\n\n\t\t\tif(currentPos != finishCircle) {\n\t\t\t\tif(combatroll >= 80) { \n\t\t\t\t\n\t\t\t\t\tcombat();\t\n\t\t\t\t}else if(itemroll>=40) {\n\t\t\t\t\trollCommonDrop();\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\n\t\t\telse if(currentPos == finishCircle) {\n\t\t\t\t\n\t\t\t\tbossfight();\n\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public void up() {\n double speed = RobotContainer.m_BlackBox.getPotValueScaled(Constants.OIConstants.kControlBoxPotY, 0.0, 1.0);\n m_hook.set(speed);\n SmartDashboard.putNumber(\"forward speed\", speed);\n }", "private void moveBack(){\r\n\t\tturnAround();\r\n\t\tmove();\r\n\t}", "void moveEast() {\n xpos = xpos + xspeed;\n if (xpos > width){\n xpos = 0; // 30\n }\n }", "public void act() \n {\n move(-2);\n if(isAtEdge())\n {\n turn(180);\n getImage().mirrorVertically();\n }\n }", "public void move(){\n \n currentFloor = currentFloor + ( 1 * this.direction);\n //if we're at the bottom or top after move, flip the bit\n if(Elevator.MIN_FLOOR == currentFloor \n || currentFloor == Elevator.MAX_FLOOR)\n this.direction *= -1;\n \n if(destinedPassengers[ currentFloor ] > 0)\n elevatorStop( currentFloor, true );\n \n if(building.floor(currentFloor).passengersWaiting() > 0)\n elevatorStop(currentFloor, false);\n \n }", "@Override\n public void execute() {\n climber.moveShoulder(climb.getAsDouble()); // set speed of soulder motors based on climb speed\n }", "public void moveBomber(){\n\t\t\t\n\t\t\tif (startredtimer) redtimer++;\n\t\t\tif (redtimer > 5) {\n\t\t\t\tredtimer = 0;\n\t\t\t\tstartredtimer = false;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif (rand.nextInt(21) == 20){ //controls the switching of directions\n\t\t\t\tif (direction == 1) direction = 0;\n\t\t\t\telse if (direction == 0) direction = 1;\n\t\t\t}\n\t\t\tif (direction == 1){ //actually moves the plain\n\t\t\t\tx += 10;\n\t\t\t\tr = true;\n\t\t\t}\n\t\t\telse if (direction == 0){\n\t\t\t\tx -= 10;\n\t\t\t\tr = false;\n\t\t\t}\n\t\t\t\n\t\t\tif (x <= 0) x = 992; //handles the ofscrean plane\n\t\t\telse if ( x >= 992) x = 0;\n\t\t\t\n\t\t\tthis.setBounds(x,y,100,50); //updates the bounds\n\t\t\t\n\t\t}", "public void updateBotBorder()\n {\n //update bottom border\n for(int i = 0; i<botborder.size(); i++)\n {\n botborder.get(i).update();\n\n //if border is moving off screen, remove it and add a corresponding new one\n if(botborder.get(i).getX()<-25) {\n botborder.remove(i);\n\n\n //determine if border will be moving up or down\n if (botborder.get(botborder.size() - 1).getY() <= height-maxBorderHeight) {\n down = true;\n }\n if (botborder.get(botborder.size() - 1).getY() >= height - minBorderHeight) {\n down = false;\n }\n\n if (down) {\n botborder.add(new BotBorder(BitmapFactory.decodeResource(getResources(), R.drawable.newborder), botborder.get(botborder.size() - 1).getX() + 25, botborder.get(botborder.size() - 1\n ).getY() + 1));\n } else {\n botborder.add(new BotBorder(BitmapFactory.decodeResource(getResources(), R.drawable.newborder\n ), botborder.get(botborder.size() - 1).getX() + 25, botborder.get(botborder.size() - 1\n ).getY() - 1));\n }\n }\n }\n }", "private void limitScreenMovement() {\r\n\t\tif (x < counterLimit) {\r\n\t\t\tx = counterLimit;\r\n\t\t\tdx = 0;\r\n\t\t} else if (x >= 1) {\r\n\t\t\tMain.endGame();\r\n\t\t}\r\n\t}", "void moveDown();", "void moveDown();", "public void moveDown(float distance)\r\n {\r\n position.y += distance;\r\n }", "public void bottomTopCheck() {\n bLCollide = false;\n bRCollide = false;\n tLCollide = false;\n tRCollide = false;\n if(grounded) {\n bottomCollision(); \n }\n else if(!grounded) {\n if(ySpeed > 0 || Math.abs(xSpeed) > Math.abs(ySpeed)) {\n bottomCollision(); \n }\n else if(ySpeed < 0 || Math.abs(xSpeed) > Math.abs(ySpeed)) {\n topCollision();\n }\n }\n }", "protected void up() {\n move(positionX, positionY - 1);\n orientation = BattleGrid.RIGHT_ANGLE * 3;\n }", "public void moveDown() {\n btMoveDown().push();\n }", "public void moveDown() {\n btMoveDown().push();\n }", "void bottomInv() {\n startAnimation(bottomSubCubes(), Axis.Y, Direction.CLOCKWISE);\n bottomCubeSwap();\n bottomCubeSwap();\n bottomCubeSwap();\n }", "public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }", "public void moveForward(boolean endWithBrake){\r\n \r\n Motor.B.rotate(DEGREES_PER_TILE, true);//Accesses Motor thread\r\n Motor.C.rotate(DEGREES_PER_TILE, true);\r\n while(Motor.B.isMoving() || Motor.C.isMoving())\r\n ;//wait for motors to be done\r\n return;\r\n }" ]
[ "0.6921082", "0.6572769", "0.65190613", "0.648986", "0.6390527", "0.634318", "0.6326985", "0.6326331", "0.6279128", "0.6260914", "0.6248881", "0.62260145", "0.61811787", "0.6146626", "0.6133949", "0.61225444", "0.6121157", "0.6115693", "0.6108014", "0.60915744", "0.6075992", "0.6065951", "0.60433966", "0.60430086", "0.6036893", "0.60253894", "0.6022057", "0.6014802", "0.60013306", "0.59690905", "0.5960669", "0.59537655", "0.59326106", "0.59298164", "0.59145266", "0.5912158", "0.58976144", "0.5884023", "0.58828133", "0.5880658", "0.5874907", "0.5870056", "0.5856762", "0.5855178", "0.58330035", "0.5828391", "0.58256245", "0.5823036", "0.5821541", "0.5815333", "0.58144575", "0.5807026", "0.5804839", "0.58029187", "0.57851064", "0.57831824", "0.57786214", "0.577599", "0.57726145", "0.57668185", "0.5760531", "0.5760379", "0.5755587", "0.5755559", "0.57276165", "0.5726438", "0.5722914", "0.5720457", "0.57190937", "0.5718974", "0.5714759", "0.57121086", "0.5708719", "0.5703925", "0.5701078", "0.570105", "0.56956226", "0.5689858", "0.5682474", "0.56790197", "0.5671888", "0.5670866", "0.5669722", "0.5667808", "0.566412", "0.56640154", "0.5660455", "0.56586164", "0.56545705", "0.5653991", "0.5653289", "0.565208", "0.565208", "0.56473505", "0.5641385", "0.5626531", "0.56225634", "0.56225634", "0.5621339", "0.56194437", "0.56179994" ]
0.0
-1
Returns FirefoxWebDriverFactory by default
public static WebDriverFactory getFactory(){ return new FirefoxWebDriverFactory(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public WebDriver getWebDriver() {\n return new FirefoxDriver();\n }", "private static WebDriver getFirefoxriver() {\n\t\treturn null;\n\t}", "SeleniumFactory getSeleniumFactory();", "public static WebDriver firefox()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",System.getProperty(\"user.dir\")+\"\\\\Gecko\\\\geckodriver.exe\");\r\n\t\tgk = new FirefoxDriver();\r\n\t\treturn gk;\r\n\t}", "protected FirefoxDriver createFirefoxDriver() {\n FirefoxProfile firefoxProfile = new FirefoxProfile();\n firefoxProfile.setPreference(\"intl.accept_languages\",\n getSystemLanguage());\n FirefoxDriver firefoxDriver = new FirefoxDriver(firefoxProfile);\n firefoxDriver.manage().window().maximize();\n return firefoxDriver;\n }", "public WebDriver createWebDriver()\n {\n WebDriver result = null;\n \n LoggingHelper.LogInfo(getClass().getName(), \"Initializing the FirefoxDriver instance.\");\n try \n { \n result = new FirefoxDriver(); \n } \n catch(Exception e)\n {\n LoggingHelper.LogError(getClass().getName(), \"Cannot initialize the FirefoxDriver: %s\", e.toString());\n throw e;\n }\n \n LoggingHelper.LogVerbose(getClass().getName(), \"Succesfully initialized the FirefoxDriver instance.\"); \n return result;\n }", "@Override\n protected RemoteWebDriver createLocalDriver() {\n return new FirefoxDriver();\n }", "private WebDriver createFireFoxDriver() {\n\t\tsetDriverPropertyIfRequired(\"webdriver.gecko.driver\", \"geckodriver.exe\");\n\t\t_driver = new FirefoxDriver();\n\t\t//TODO check if Ben want?\n\t\t//final EventFiringWebDriver wrap = new EventFiringWebDriver(_driver);\n\t\t// register listener to webdriver\n\t\t//wrap.register(new CustomWebDriverEventListener()); // implements WebDriverEventListener\n\t\t//return wrap;\n\t\treturn _driver;\n\t}", "private static WebDriver launchFirefox()\n\t{\n\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.firefox();\n\t\t\ttry {\n\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\n\n\t\t\tcatch (MalformedURLException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\tFirefoxProfile profile = new FirefoxProfile();\n\t\t\tprofile.setAcceptUntrustedCertificates(true);\n\n\t\t\treturn new FirefoxDriver(profile);\n\n\t\t}\n\n\n\t}", "protected WebDriver newDriver() {\n SupportedWebDriver supportedDriverType = Configuration.getDriverType();\n return webDriverFactory.newInstanceOf(supportedDriverType);\n }", "private void setFirefoxDriver() throws Exception {\n\t\t// Disable cache\n\t\tffProfile.setPreference(\"browser.cache.disk.enable\", false);\n\t\tffProfile.setPreference(\"browser.cache.disk_cache_ssl\", false);\n\t\tffProfile.setPreference(\"browser.cache.memory.enable\", false);\n\t\tffProfile.setPreference(\"browser.cache.offline.enable\", false);\n\t\t// Set to download automatically\n\t\tffProfile.setPreference(\"browser.download.folderList\", 2);\n\t\tffProfile.setPreference(\"browser.download.manager.showWhenStarting\", false);\n\t\tffProfile.setPreference(\"browser.helperApps.neverAsk.saveToDisk\", \"application/zip\");\n\t\tffProfile.setPreference(\"browser.download.dir\", BasePage.myTempDownloadsFolder);// \"\\\\temp_downloads\");\n\t\t// TODO: Using \"C:\" will not work for Linux or OS X support\n\t\tFile dir = new File(BasePage.myTempDownloadsFolder);// \"\\\\temp_downloads\");\n\t\tif (!dir.exists()) {\n\t\t\tdir.mkdir();\n\t\t}\n\t\t// Disable hardware acceleration\n\t\tffProfile.setPreference(\"gfx.direct2d.disabled\", false);\n\t\tffProfile.setPreference(\"layers.acceleration.disabled\", false);\n\t\tFirefoxOptions ffOptions = new FirefoxOptions();\n\n\t\t/*\n\t\t * Set FF to run headless -- Need to make conditional from browser\n\t\t * parameter -- Does NOT work properly with all necessary tests.\n\t\t */\n\t\t// ffOptions.setHeadless(true);\n\n\t\tffOptions.setProfile(ffProfile);\n\t\tcapabilities = DesiredCapabilities.firefox();\n\t\tcapabilities.setCapability(FirefoxDriver.PROFILE, ffProfile);\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", firefoxDriverLocation);\n\t\t\tmyDriver = new FirefoxDriver(ffOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), ffOptions);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultFirefoxVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), ffOptions);\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultFirefoxVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" FF-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tmyDriver = new FirefoxDriver(ffOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}", "public WebDriver getWebDriver() {\n\t\tString driverName = getProperty(\"driver\");\n\t\tif (driverName.equals(\"firefox\")) {\n\t\t\tdriver = new FirefoxDriver();\n\t\t} else if (driverName.equals(\"chrome\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src\\\\main\\\\resources\\\\binaries\\\\chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver();\n\t\t} \n\t\treturn driver;\n\t}", "public static WebDriver startFirefox() {\n\t\tDesiredCapabilities cap = DesiredCapabilities.firefox();\n\t\tcap.setCapability(\"marionette\", true);\n\t\treturn new FirefoxDriver(cap);\n\t}", "public static final BaseRemoteWebDriver getDriver() {\r\n\t\tString browser = ConfigProperties.BROWSER;\r\n\t\tif (driver == null) {\r\n\r\n\t\t\tif (browser.equalsIgnoreCase(FIREFOX)) {\r\n\r\n\t\t\t\tlog.info(\"initializing 'firefox' driver...\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.firefox();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(CHROME)) {\r\n\r\n\t\t\t\tif (isPlatformWindows())\r\n\r\n\t\t\t\t\tlog.info(\"initializing 'chrome' driver...\");\r\n\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\tcapabilities.setCapability(\r\n\t\t\t\t\t\tCapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, \"ignore\");\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(INTERNET_EXPLORER)) {\r\n\r\n\t\t\t\tAssert.assertTrue(isPlatformWindows(),\r\n\t\t\t\t\t\t\"Internet Explorer is not supporting in this OS\");\r\n\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.internetExplorer();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlog.info(\"initializing 'internet explorer' driver...\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(SAFARI)) {\r\n\r\n\t\t\t\tAssert.assertTrue(isPlatformWindows() || isPlatformMac(),\r\n\t\t\t\t\t\t\"Safari is not supporting in this OS\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.safari();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(\"html\")) {\r\n\r\n\t\t\t\tlog.info(\"initializing 'html' driver...\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.htmlUnit();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn driver;\r\n\t}", "public WebDriver getDriver() throws MalformedURLException {\r\n\t\tif (gridMode) {\r\n\t\t\treturn new RemoteWebDriver(new URL(\"http://192.168.106.36:5555/wd/hub\"), getBrowserCapabilities(browser));\r\n\t\t} else {\r\n\t\t\tswitch (browser.toLowerCase()) {\r\n\t\t\tcase \"firefox\":\r\n\t\t\t\tstartGeckoDriver();\r\n\t\t\t\tFirefoxOptions options = new FirefoxOptions();\r\n\t\t\t\toptions.setProfile(firefoxProfile());\r\n\t\t\t\treturn new FirefoxDriver(options);\r\n\r\n\t\t\tcase \"chrome\":\r\n\t\t\t\tstartChromeDriver();\r\n\t\t\t\treturn new ChromeDriver(chromeoptions());\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"Selecting firefox as default browser.\");\r\n\t\t\t\tstartGeckoDriver();\r\n\t\t\t\toptions = new FirefoxOptions();\r\n\t\t\t\toptions.setProfile(firefoxProfile());\r\n\t\t\t\treturn new FirefoxDriver(options);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static WebDriver getDriver(){\n if(driver==null){\n //get the driver type from properties file\n\n String browser=ConfigurationReader.getPropery(\"browser\");\n switch(browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver=new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver=new FirefoxDriver();\n }\n }\n\n return driver;\n }", "public synchronized static WebDriver getDriver() {\n //if webdriver object doesn't exist\n //create it\n if (driverPool.get() == null) {\n //specify browser type in configuration.properties file\n String browser = ConfigurationReader.getProperty(\"browser\").toLowerCase();\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().version(\"79\").setup();\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.addArguments(\"--start-maximized\");\n driverPool.set(new ChromeDriver(chromeOptions));\n break;\n case \"chromeheadless\":\n //to run chrome without interface (headless mode)\n WebDriverManager.chromedriver().version(\"79\").setup();\n ChromeOptions options = new ChromeOptions();\n options.setHeadless(true);\n driverPool.set(new ChromeDriver(options));\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driverPool.set(new FirefoxDriver());\n break;\n default:\n throw new RuntimeException(\"Wrong browser name!\");\n }\n }\n return driverPool.get();\n }", "public static WebDriver getInstance() {\n\n\t\tif (instance == null) {\n\t\t\t// Thread Safe. Might be costly operation in some case\n\t\t\tsynchronized (TestBase.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = WebdriverFactory.createDriver();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public static WebDriver getDriver() {\n\t\t\n\t\tString driver = System.getProperty(\"selenium.driver\");\n\t\tif(driver.equals(\"ie\")) {\n\t\t\treturn getIEDriver();\n\t\t\t\n\t\t}\n\t\telse if(driver.equals(\"chrome\")) {\n\t\t\treturn getChromeDriver();\n\t\t}\n\t\t\telse if(driver.equals(\"firefox\")) {\n\t\t\t\treturn getFirefoxriver();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new RuntimeException(\"System property selenium driver is not set\");\n\t\t}\n\t}", "public FirefoxDriver openBrowser(String site){\n System.setProperty(\"webdriver.gecko.driver\", \"c:\\\\Utils\\\\geckodriver.exe\");\n FirefoxDriver browser = new FirefoxDriver();\n browser.get(site);\n return browser;\n }", "private static WebDriver driver() {\n\t\treturn null;\r\n\t}", "public static WebDriver getDriver(){\n if(driverPool.get()==null) {\n synchronized ((Driver.class)) {\n\n\n\n\n /*\n we read our browser type from configuration file using .getProperty method we\n creating in configuration Reader class.\n */\n String browserType = ConfigurationReader.getProperty(\"browser\");\n\n /*\n Depending on the browser type our switch statement will determine\n to open specific type of browser/driver\n */\n\n // we use this not testBase we use this test base just for practice\n switch (browserType) {\n\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driverPool.set(new ChromeDriver());\n driverPool.get().manage().window().maximize();\n driverPool.get().manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n break;\n\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driverPool.set(new FirefoxDriver());\n driverPool.get().manage().window().maximize();\n driverPool.get().manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n break;\n\n }\n }\n\n }\n /*\n Same driver instance will be return every time we call Driver.getDriver(); method\n */\n return driverPool.get();\n }", "public WebDriver createWebDriverInstance(String Browser) throws MalformedURLException\n\t{\n\t\tif(d==null && Browser.equals(\"Firefox\"))\n\t\t{\n\n\t\t\td = new FirefoxDriver();\n\t\t\tlogger.info(\"--FireFox Browser has opened \");\n\t\t}\n\n\t\telse if(d==null && Browser.equals(\"Chrome\"))\n\t\t{\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.addArguments(\"start-maximized\");\n\t\t\tDesiredCapabilities capabilities = new DesiredCapabilities(DesiredCapabilities.chrome());\n\t\t\tcapabilities.setCapability (CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tcapabilities.setCapability (ChromeOptions.CAPABILITY,options);\n\t\t\tChromeDriverManager.getInstance().setup();\n\t\t\t\n\t\t\t//Don't Remember Passwords by default\n\t\t\tMap<String, Object> prefs = new HashMap<String, Object>();\n\t\t\tprefs.put(\"credentials_enable_service\", false);\n\t\t\tprefs.put(\"profile.password_manager_enabled\", false);\n\t\t\toptions.setExperimentalOption(\"prefs\", prefs);\n\t\t\t/*\n\t\t\tString path =System.getProperty(\"user.dir\")+File.separator+\"chromedriver.exe\";\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", path);\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();*/\n\t\t\td = new ChromeDriver(capabilities);\n\t\t\tlogger.info(\"--Chrome Browser has opened \");\n\t\t}\n\n\t\telse if (d==null && Browser.equals(\"IE\"))\n\t\t{\n\t\t\tString path =\"binary/IEDriverServer.exe\";\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path);\n\t\t\tlogger.info(\"--IEDriver has setup\");\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n\t\t\tcaps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\n\t\t\tcaps.setCapability(\"requireWindowFocus\", true);\n\t\t\tcaps.setCapability(\"enablePersistentHover\", true);\n\t\t\tcaps.setCapability(\"native events\", true);\n\t\t\td = new InternetExplorerDriver(caps);\n\t\t\tlogger.info(\"--IE Browser has opened \");\n\t\t}\n\t\telse if (d==null && Browser.equals(\"IE32bit\"))\n\t\t{\n\t\t\tString path =\"binary/IEDriverServer_32bit.exe\";\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path);\n\t\t\tlogger.info(\"--IEDriver has setup\");\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n\t\t\tcaps.setCapability(\n\t\t\t\t\tInternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n\t\t\t\t\ttrue);\n\t\t\tcaps.setCapability(\"requireWindowFocus\", true);\n\t\t\tcaps.setCapability(\"enablePersistentHover\", false);\n\t\t\tcaps.setCapability(\"native events\", true);\n\t\t\td = new InternetExplorerDriver(caps);\n\t\t\tlogger.info(\"--IE Browser has opened \");\n\t\t}\n\t\treturn d;\n\n\n\t}", "private void createNewDriverInstance() {\n String browser = props.getProperty(\"browser\");\n if (browser.equals(\"firefox\")) {\n FirefoxProfile profile = new FirefoxProfile();\n profile.setPreference(\"intl.accept_languages\", language);\n driver = new FirefoxDriver();\n } else if (browser.equals(\"chrome\")) {\n ChromeOptions options = new ChromeOptions();\n options.setBinary(new File(chromeBinary));\n options.addArguments(\"--lang=\" + language);\n driver = new ChromeDriver(options);\n } else {\n System.out.println(\"can't read browser type\");\n }\n }", "public WebDriver WebDriverManager() throws IOException {\n\t\tFileInputStream fis = new FileInputStream(\n\t\t\t\tSystem.getProperty(\"user.dir\") + \"//src//test//resources//global.properties\");\n\t\tProperties prop = new Properties();\n\t\tprop.load(fis);\n\t\tString url = prop.getProperty(\"QAUrl\");\n\t\tString browser_properties = prop.getProperty(\"browser\");\n\t\tString browser_maven = System.getProperty(\"browser\");\n\t\t// result = testCondition ? value1 : value2\n\n\t\tString browser = browser_maven != null ? browser_maven : browser_properties;\n\n\t\tif (driver == null) {\n\n\t\t\tif (browser.equalsIgnoreCase(\"chrome\")) {\n\n\t\t\t\t// Setting system properties of ChromeDriver\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\t\tSystem.getProperty(\"user.dir\") + \"\\\\src\\\\test\\\\resources\\\\chromedriver.exe\");\n\n\t\t\t\t// add after 111 version throwing errors\n\t\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\t\toptions.addArguments(\"--remote-allow-origins=*\");\n\n\t\t\t\t// Creating an object of ChromeDriver\n\t\t\t\tdriver = new ChromeDriver(options);// driver gets the life\n\n\t\t\t}\n\n\t\t\tif (browser.equalsIgnoreCase(\"firefox\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.gecko.driver\",\n\t\t\t\t\t\t\"C:\\\\Users\\\\limon.hossain\\\\eclipse-workspace\\\\libs\\\\geckodriver 5\");\n\n\t\t\t\tdriver = new FirefoxDriver();\n\t\t\t}\n\t\t\t// Specifiying pageLoadTimeout and Implicit wait\n\t\t\tdriver.manage().timeouts().implicitlyWait(Duration.ofSeconds(5));\n\t\t\tdriver.manage().deleteAllCookies();\n\t\t\tdriver.manage().window().maximize();\n\n\t\t\t// launching the specified URL\n\t\t\tdriver.get(url);\n\t\t}\n\n\t\treturn driver;\n\n\t}", "public static WebDriver getDriver(String browser)\n {\n return createInstance(browser);\n }", "public WebDriver getDriver() {\n\t\tSystem.out.println(\"Inside DriverFactory.getDriver\");\n\t\tif (webDriver == null) {\n\t\t\twebDriver = launchDriver();\n\t\t}\n\t\treturn webDriver;\n\t}", "public WebDriver browserSetup() throws IOException\r\n\t{ \r\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\tSystem.out.println(\"1.Chrome\\n2.Firefox \\nEnter your choice:\");\r\n\t\tString choice=br.readLine();\r\n\t\t\r\n\t\tswitch(choice)\r\n\t\t{\r\n\t\t//To start Chrome Driver\r\n\t\tcase \"1\":\r\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Test Automation\\\\Software\\\\chrome\\\\New Version\\\\chromedriver.exe\");\r\n\t\t ChromeOptions options=new ChromeOptions();\r\n\t\t options.addArguments(\"--disable-notifications\");\r\n\t\t driver=new ChromeDriver(options);\r\n\t\t break;\r\n\t\t\r\n\t\t//To start Firefox Driver\r\n\t\tcase \"2\":\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\***\\\\drivers\\\\geckodriver.exe\");\r\n\t\t\tdriver=new FirefoxDriver();\r\n\t\t\tbreak;\r\n\t\t} \r\n\t\t\r\n\t\tdriver.get(url);\r\n\t\t\r\n\t\t//To maximize the window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(8, TimeUnit.SECONDS);\r\n\t\t\r\n\t\treturn driver;\r\n\t}", "public static FirefoxProfile firefoxProfile() {\r\n\r\n\t\tFirefoxProfile firefoxProfile = new FirefoxProfile();\r\n\t\tfirefoxProfile.setPreference(\"browser.download.folderList\", 2);\r\n\t\tfirefoxProfile.setPreference(\"browser.download.dir\", testAdminReportPath);\r\n\t\tfirefoxProfile.setPreference(\"browser.helperApps.neverAsk.saveToDisk\", \"text/csv;application/vnd.ms-excel\");\r\n\t\tfirefoxProfile.setPreference(\"browser.helperApps.alwaysAsk.force\", false);\r\n\t\tfirefoxProfile.setPreference(\"geo.enabled\", false);\r\n\t\treturn firefoxProfile;\r\n\t}", "public WebDriver getDriver() {\r\n\t\tif (driver == null)\r\n\t\t\tdriver = createDriver();\r\n\t\treturn driver;\r\n\t}", "@Override\n \tpublic boolean hasFirefox()\n \t{\n \t\tgetNavigateArgs();//sets firefoxExists if true\n \t\treturn firefoxExists;\n \t}", "private static WebDriver launchRemoteDriver()\n\t{\n\t\t\n\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.firefox();\n\t\ttry {\n\t\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn new InternetExplorerDriver();\n\t\t} catch (MalformedURLException e) {\n\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t\n\t}", "private static void initialiseBrowser() {\n\t\tif (System.getProperty(\"proxyname\") != null) {\n\t\t\tFirefoxProfile profile = new FirefoxProfile();\n\t\t\tprofile.setPreference(\"network.proxy.type\", 1);\n\t\t\tprofile.setPreference(\"network.proxy.http\", System.getProperty(\"proxyname\"));\n\t\t\tprofile.setPreference(\"network.proxy.http_port\", 3128);\n\n\t\t\tdriver = new FirefoxDriver(profile);\n\t\t\tsetDriver(driver);\n\t\t}\n\t\telse{\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tsetDriver(driver);\n\t\t}\n\t}", "public synchronized static WebDriver getDriver(String browser) {\n //if webdriver object doesn't exist\n //create it\n if (driverPool.get() == null) {\n //specify browser type in configuration.properties file\n\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().version(\"79\").setup();\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.addArguments(\"--start-maximized\");\n driverPool.set(new ChromeDriver(chromeOptions));\n break;\n case \"chromeheadless\":\n //to run chrome without interface (headless mode)\n WebDriverManager.chromedriver().version(\"79\").setup();\n ChromeOptions options = new ChromeOptions();\n options.setHeadless(true);\n driverPool.set(new ChromeDriver(options));\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driverPool.set(new FirefoxDriver());\n break;\n default:\n throw new RuntimeException(\"Wrong browser name!\");\n }\n }\n return driverPool.get();\n }", "public static BromiumFactory init()\n {\n try\n {\n BromiumFactory theBromiumFactory = (BromiumFactory)EPackage.Registry.INSTANCE.getEFactory(BromiumPackage.eNS_URI);\n if (theBromiumFactory != null)\n {\n return theBromiumFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new BromiumFactoryImpl();\n }", "@BeforeClass\n\tpublic void openFirefoxBrowser(){\n\t\tdriver = new FirefoxDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t//wait = new WebDriverWait(driver,5);\n\t}", "public static WebDriverSingleton getInstance() {\n return driver;\n }", "protected WebDriver getDriver() {\n return Web.getDriver(Browser.CHROME, server.getURL() + \"TEST\", By.className(\"AuO\"));\n }", "public static WebDriver setupDriver()\r\n\t{\r\n\t driver = getWebDriver();\r\n\t return driver;\r\n\t}", "public static WebDriver getWebDriver() {\n\t\t\treturn webdriver;\n\t\t}", "public static WebDriver getRemoteWebDriver(String userName) {\n String browser = PropertyLoader.getProperty(\"browser\");\n System.setProperty(\"webdriver.firefox.marionette\", \".\\\\geckodriver.exe\");\n WebDriver driver = null;\n if (browser.equals(\"chrome\")) {\n return new ChromeDriver();\n } else {\n driver = new FirefoxDriver();\n }\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.get(PropertyLoader.getSiteURL());\n login(driver, userName);\n return driver;\n }", "public static WebDriver initialise(String browser) {\r\n\t\tFirefoxProfile firefoxProfile = new FirefoxProfile();\r\n\t\tChromeOptions chromeOptions = new ChromeOptions();\r\n\r\n\t\tif (browser.equalsIgnoreCase(\"chrome\")) {\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\r\n\t\t\t\t\tSystem.getProperty(\"user.dir\") + \"\\\\executables\\\\chromedriver.exe\");\r\n\r\n\t\t\tchromeOptions.addArguments(\"--disable-infobars\");\r\n\t\t\tchromeOptions.addArguments(\"--window-size=1920,1080\");\r\n\t\t\tchromeOptions.addArguments(\"--ignore-certificate-errors\");\r\n\t\t\tchromeOptions.addArguments(\"--disable-default-apps\");\r\n\t\t\tchromeOptions.addArguments(\"--disable-popup-blocking\");\r\n\t\t\tchromeOptions.addArguments(\"--incognito\");\r\n\r\n\t\t\tdriver = new ChromeDriver(chromeOptions);\r\n\r\n\t\t} else if (browser.equalsIgnoreCase(\"firefox\")) {\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\",\r\n\t\t\t\t\tSystem.getProperty(\"user.dir\") + \"\\\\executables\\\\geckodriver.exe\");\r\n\t\t\tfirefoxProfile.setPreference(\"permissions.default.stylesheet\", 2);\r\n\t\t\tfirefoxProfile.setPreference(\"permissions.default.image\", 2);\r\n\t\t\tfirefoxProfile.setPreference(\"dom.ipc.plugins.enabled.libflashplayer.so\", false);\r\n\t\t\tfirefoxProfile.setPreference(\"geo.enabled\", false);\r\n\r\n\t\t\tdriver = new FirefoxDriver(firefoxProfile);\r\n\t\t}\r\n\t\t/* set amount of total time for search for element */\r\n\t\tdriver.manage().timeouts().implicitlyWait(TIMEOUT, TimeUnit.SECONDS);\r\n\t\t/* set amount of time to page load to complete before trow error */\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(PAGE_TIMEOUT, TimeUnit.SECONDS);\r\n\t\t/*\r\n\t\t * set amount of time to wait for a script to finish execution before throwing\r\n\t\t * error\r\n\t\t */\r\n\t\tdriver.manage().timeouts().setScriptTimeout(SCRIPT_TIMEOUT, TimeUnit.SECONDS);\r\n\r\n\t\tdriver.manage().window().maximize();\r\n\r\n\t\treturn driver;\r\n\r\n\t}", "public static WebDriverManager getInstance() {\n\n return ourInstance;\n }", "public void initDriver() {\n if (getBrowser().equals(\"firefox\")) {\n WebDriverManager.firefoxdriver().setup();\n if (System.getProperty(\"headless\") != null) {\n FirefoxOptions firefoxOptions = new FirefoxOptions();\n firefoxOptions.setHeadless(true);\n driver = new FirefoxDriver(firefoxOptions);\n } else {\n driver = new FirefoxDriver();\n }\n } else {\n WebDriverManager.chromedriver().setup();\n if (System.getProperty(\"headless\") != null) {\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.setHeadless(true);\n driver = new ChromeDriver(chromeOptions);\n } else {\n driver = new ChromeDriver();\n }\n }\n }", "private void initFirefoxDriver(String appUrl) {\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",\"Drivers\\\\geckodriver.exe\");\n\t\tdriver = new FirefoxDriver();\n\t\tdriver.get(appUrl);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\n\t}", "public static WebDriver getBrowser(BrowserType browserName) {\n\t\tWebDriver driver = null;\n\t\t// System.setProperty(\"webdriver.gecko.driver\",\"G:\\\\eclipse-workspace\\\\zeeui\\\\driver\\\\geckodriver.exe\");\n\t\t// String browserType=Config.getValue(\"BROWSER_TYPE\");\n\t\tif (browserName.equals(BrowserType.FIREFOX)) {\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", Constants.firefoxDriver);\n\t\t\tFirefoxProfile profile = new FirefoxProfile();\n\t\t\tprofile.setPreference(\"browser.download.folderList\", 2);\n\t\t\tprofile.setPreference(\"browser.download.manager.showWhenStarting\", false);\n\t\t\tprofile.setPreference(\"browser.download.dir\", Config.getValue(\"EXPORT_FILE_PATH\"));\n\t\t\tprofile.setPreference(\"browser.helperApps.neverAsk.saveToDisk\",\n\t\t\t\t\t\"image/jpg, text/csv,text/xml,application/xml,application/vnd.ms-excel,application/x-excel,application/x-msexcel,application/excel,application/pdf,application/octet-stream\");\n\t\t\tdriver = new FirefoxDriver(profile);\n\t\t\tdrivers.put(\"firefox\", driver);\n\t\t} else if (browserName.equals(\"chrome\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", Constants.chromeDriver);\n\t\t\tMap<String, String> prefs = new Hashtable<String, String>();\n\t\t\tprefs.put(\"download.prompt_for_download\", \"false\");\n\t\t\tprefs.put(\"download.default_directory\", Config.getValue(\"EXPORT_FILE_PATH\"));\n\t\t\tprefs.put(\"download.extensions_to_open\",\n\t\t\t\t\t\"image/jpg, text/csv,text/xml,application/xml,application/vnd.ms-excel,application/x-excel,application/x-msexcel,application/excel,application/pdf,application/octet-stream\");\n\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.setExperimentalOption(\"prefs\", prefs);\n\t\t\tdriver = new ChromeDriver(options);\n\t\t\tdrivers.put(\"chrome\", driver);\n\t\t} else if (browserName.equals(\"ie\")) {\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", Config.getValue(\"IE_DRIVER\"));\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t\tdrivers.put(\"ie\", driver);\n\t\t} else if (browserName.equals(\"edge\")) {\n\t\t\tSystem.setProperty(\"webdriver.edge.driver\", Config.getValue(\"EDGE_DRIVER\"));\n\t\t\tdriver = new EdgeDriver();\n\t\t\tdrivers.put(\"edge\", driver);\n\t\t} else if (browserName.equals(\"safari\")) {\n\t\t\tdriver = new SafariDriver();\n\t\t\tdrivers.put(\"safari\", driver);\n\t\t} else if (browserName.equals(\"htmlUnit\")) {\n\t\t\tdriver = new HtmlUnitDriver();\n\t\t}\n\n\t\treturn driver;\n\n\t}", "public WebDriver initDriver (Properties prop) {\r\n\t\tString browserName = prop.getProperty(\"browser\");\r\n\t\tif(browserName.equals(\"chrome\")) {\r\n\t\t\toptionsManager = new OptionsManager(prop);\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"./src/test/resources/chrome/chromedriver.exe\");\r\n\t\t\tdriver = new ChromeDriver(optionsManager.getChromeOptions());\r\n\t\t}else if(browserName.equals(\"firefox\")) {\r\n\t\t\toptionsManager = new OptionsManager(prop);\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\",\"./src/test/resources/firefox/geckodriver.exe\");\r\n\t\t\tdriver = new FirefoxDriver(optionsManager.getFirefoxOptions());\r\n\t\t}\r\n\t\t\r\n\t\teventDriver = new EventFiringWebDriver(driver);\r\n\t\teventListener = new WebEventListener();\r\n\t\teventDriver.register(eventListener);\r\n\t\tdriver = eventDriver;\r\n\t\t\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\tdriver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);\r\n\t\tdriver.get(prop.getProperty(\"url\"));\r\n\t\treturn driver;\r\n\t}", "public WebDriver getWebDriver() {\n return webDriver;\n }", "public static WebDriver getDriver() {\n return driver.get();\n }", "public WebDriverSingleton getDriver(String driverType){\n switch (driverType){\n case \"CHROME\":\n return new ChromeDriverSingleton();\n case \"FIREFOX\":\n return new FirefoxDriverSingleton();\n default:\n throw new IllegalArgumentException(\"Invalid driver type: \" + driverType);\n }\n }", "public WebDriver getWebdriver() {\n return driver.get();\n }", "private WebDriver createDriver() {\r\n\t\tlogger.info(\"Environment Type is \" + environmentType);\r\n\t\tswitch (environmentType) {\r\n\t\tcase LOCAL:\r\n\t\t\tdriver = createLocalDriver();\r\n\t\t\tbreak;\r\n\t\tcase REMOTE:\r\n\t\t\tdriver = createRemoteDriver();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn driver;\r\n\t}", "public static WebDriverManager getInstance() {\n if (instance == null || instance.webDriver == null) {\n instance = new WebDriverManager();\n }\n return instance;\n }", "public static HtmlBrowser.Factory getWWWBrowser () {\n return getBrowser( PROP_WWWBROWSER, false );\n }", "@Override\n public RemoteWebDriver getDriver() {\n\n File chromeFile = new File(Config.getProperty(Config.CHROME_PATH));\n System.setProperty(\"webdriver.chrome.driver\", chromeFile.getAbsolutePath());\n\n ChromeDriverService service = new ChromeDriverService.Builder()\n .usingDriverExecutable(chromeFile)\n .usingAnyFreePort().build();\n Driver.chromeService.set(service);\n try {\n service.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"--no-sandbox\");\n DesiredCapabilities capabilities = DesiredCapabilities.chrome();\n capabilities.setCapability(ChromeOptions.CAPABILITY, options);\n return new ChromeDriver(capabilities);\n }", "public static WebDriver getDriver() {\n return driver;\n }", "private static WebDriver getIEDriver() {\n\t\treturn null;\n\t}", "public JDOMFactory getFactory() {\n return this.factory;\n }", "Browser create(ConnectionFactory connectionFactory) {\n return new BrowserImpl(connectionFactory);\n }", "protected DesiredCapabilities getCapabilitiesForFirefox(String currentIOSSimulatorUDID, ExtentTest currentTest, ExtentReportGenerator extentReportGenerator, Integer wdaLocalPort, String scenarioName, String testRunName, String appVersionBeingTested){\n\t\tDesiredCapabilities desCap = new DesiredCapabilities();\n\t\t//desired caps go here\n\t\treturn desCap;\n\t}", "@BeforeClass\r\n\tpublic void browser() {\r\n\tdriver = new FirefoxDriver();\r\n\t}", "@Override\n public RemoteWebDriver getDriver() {\n\n File ieFile = new File(Config.getProperty(Config.IE_PATH));\n System.setProperty(\"webdriver.ie.driver\", ieFile.getAbsolutePath());\n\n DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n capabilities.setCapability(\n InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n true);\n capabilities.setJavascriptEnabled(true);\n return new InternetExplorerDriver(capabilities);\n }", "public BromiumFactoryImpl()\n {\n super();\n }", "RemoteWebDriver getDriver(String browserName) {\n\t\tlogger.info(System.getProperty(\"os.name\"));\n\t\ttry {\n\t\t\tif (DriverFactory.getDriverPool().get(browserName) == null) {\n\t\t\t\tif (System.getProperty(\"location\").equalsIgnoreCase(\"local\")) {\n\t\t\t\t\tif (\"firefox\".equals(System.getProperty(\"browser\"))) {\n\t\t\t\t\t\tFirefoxOptions firefoxOptions = new FirefoxOptions().setProfile(new FirefoxProfile());\n\t\t\t\t\t\tfirefoxOptions.setAcceptInsecureCerts(true);\n\t\t\t\t\t\tSystem.setProperty(\"webdriver.gecko.driver\",\n\t\t\t\t\t\t\t\tPaths.get(workspace, \"src\", \"main\", \"resources\", \"geckodriver\").toString());\n\t\t\t\t\t\tdriver = new FirefoxDriver(firefoxOptions);\n\t\t\t\t\t\tdriver.manage().deleteAllCookies();\n\t\t\t\t\t\tdriver.manage().window().maximize();\n\t\t\t\t\t} else if (\"chrome\".equals(System.getProperty(\"browser\"))) {\n\t\t\t\t\t\tSystem.setProperty(CHROME_DRIVER_STR,\n\t\t\t\t\t\t\t\tSystem.getProperty(\"user.dir\") +\"\\\\drivers\\\\chromedriver.exe\");\n\t\t\t\t\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\t\t\t\t\tif (\"headless\".equals(System.getProperty(\"state\")))\n\t\t\t\t\t\t\tchromeOptions.addArguments(\"headless\");\n\t\t\t\t\t\tchromeOptions.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR,\n\t\t\t\t\t\t\t\tUnexpectedAlertBehaviour.ACCEPT);\n\t\t\t\t\t\tchromeOptions.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\t\t\t\tchromeOptions.addArguments(\"ignore-certificate-errors\");\n\t\t\t\t\t\tchromeOptions.addArguments(\"disable-popup-blocking\");\n\t\t\t\t\t\tchromeOptions.addArguments(\"start-maximized\");\n\t\t\t\t\t\tdriver = new ChromeDriver(chromeOptions);\n\t\t\t\t\t\tdriver.manage().deleteAllCookies();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (\"firefox\".equals(System.getProperty(\"browser\"))) {\n\t\t\t\t\t\tFirefoxOptions firefoxOptions = new FirefoxOptions().setProfile(new FirefoxProfile());\n\t\t\t\t\t\tfirefoxOptions.setAcceptInsecureCerts(true);\n\t\t\t\t\t\tSystem.setProperty(\"webdriver.gecko.driver\",\n\t\t\t\t\t\t\t\tPaths.get(workspace, \"src\", \"main\", \"resources\", \"geckodriver.exe\").toString());\n\t\t\t\t\t\tdriver = new RemoteWebDriver(new URL(PropertyHelper.getProperties(\"REMOTE_HUB_URL\")),\n\t\t\t\t\t\t\t\tfirefoxOptions);\n\t\t\t\t\t\tdriver.manage().window().maximize();\n\t\t\t\t\t} else if (\"chrome\".equals(System.getProperty(\"browser\"))) {\n\t\t\t\t\t\tSystem.setProperty(CHROME_DRIVER_STR,\n\t\t\t\t\t\t\t\tPaths.get(workspace, \"src\", \"main\", \"resources\", \"chromedriver.exe\").toString());\n\t\t\t\t\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\t\t\t\t\tif (\"headless\".equals(System.getProperty(\"state\")))\n\t\t\t\t\t\t\tchromeOptions.addArguments(\"headless\");\n\t\t\t\t\t\tchromeOptions.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR,\n\t\t\t\t\t\t\t\tUnexpectedAlertBehaviour.ACCEPT);\n\t\t\t\t\t\tchromeOptions.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\t\t\t\tchromeOptions.addArguments(\"ignore-certificate-errors\");\n\t\t\t\t\t\tchromeOptions.addArguments(\"disable-popup-blocking\");\n\t\t\t\t\t\tchromeOptions.addArguments(\"start-maximized\");\n\n\t\t\t\t\t\tdriver = new RemoteWebDriver(new URL(MainUtil.HubUrl), chromeOptions);\n\n\t\t\t\t\t\tlogger.info(\"Execution Processed To Hub : \" + MainUtil.HubUrl);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tDriverFactory.getDriverPool().put(browserName, driver);\n\t\t\t\tdriver.manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS);\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(40, TimeUnit.SECONDS);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error creating the driver\", e);\n\t\t}\n\t\treturn driver;\n\t}", "private WebDriver getDriver() {\n return new ChromeDriver();\n }", "public static WebDriver initializatio(){\n\t\t \r\n\t\t\t String browse_name= prop.getProperty(\"browser\");\r\n\t\t\t \r\n\t\t\t \r\n\t\t if(driver==null && browse_name.equals(\"chrome\")){\r\n\t\t\t System.setProperty(\"webdriver.chrome.driver\", \"C://Users//RJ//Downloads//chromedriver.exe\");\r\n\t\t\t driver=new ChromeDriver();\r\n\t\t\t //E:\\Yadav Selenium\r\n\t\t }\r\n\t\t \r\n\t\t else if(driver==null && browse_name.equals(\"FF\")){\r\n\t\t\t System.setProperty(\"webdriver.gecko.driver\", \"E://Yadav Selenium//geckodriver.exe\");\r\n\t\t\t driver=new FirefoxDriver();\r\n\t\t }\r\n\t\t event_driver=new EventFiringWebDriver(driver);\r\n\t\t //now cearte Eventlistnerhandler to resgistor with eventFireingWebdriver\r\n\t\t event_lisner=new WebEventListner();\r\n\t\t event_driver.register(event_lisner);\r\n\t\t driver=event_driver;\r\n\t\t \r\n\t\t driver.manage().window().maximize();\r\n\t\t driver.manage().deleteAllCookies();\r\n\t\t driver.manage().timeouts().pageLoadTimeout(Testutil.PAGE_LOAD_TIMEOUT, TimeUnit.SECONDS);\r\n\t\t driver.manage().timeouts().implicitlyWait(Testutil.IMPLICIT_WAIT, TimeUnit.SECONDS);\r\n\t\t // driver.get(prop.getProperty(\"url\"));\r\n\t\t driver.navigate().to(prop.getProperty(\"url\"));\r\n\t\treturn driver;\r\n\t}", "public static WebDriver getDriver() {\n\t\treturn driver;\n\t}", "public static IGUIFactory getGUIFactory() {\n\n return m_GUIFactory;\n\n }", "public static WebpageFactory init() {\n\t\ttry {\n\t\t\tWebpageFactory theWebpageFactory = (WebpageFactory)EPackage.Registry.INSTANCE.getEFactory(WebpagePackage.eNS_URI);\n\t\t\tif (theWebpageFactory != null) {\n\t\t\t\treturn theWebpageFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new WebpageFactoryImpl();\n\t}", "public static void main(String[] args) {\nWebDriver driver = new FirefoxDriver();\nSystem.out.println(\"hai\");\ndriver.get(\"https://www.google.com\");\nSystem.out.println(driver.getTitle());\ndriver.close();\n\t}", "public static WebDriver getDriver() {\n\n if (driver == null) {\n\n if (isRemote()) {\n try {\n driverThreadLocal.set(new RemoteWebDriver(new URL(getHubUrl()),\n getBrowser().getBrowserCapabilities()));\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n } else {\n driverThreadLocal.set(getBrowser().getWebDriver());\n }\n }\n\n driverThreadLocal.get().manage().timeouts()\n .implicitlyWait(getImplicitWait(), TimeUnit.SECONDS);\n\n return driverThreadLocal.get();\n }", "public static GraphicsFactory init() {\n\t\ttry {\n\t\t\tGraphicsFactory theGraphicsFactory = (GraphicsFactory)EPackage.Registry.INSTANCE.getEFactory(GraphicsPackage.eNS_URI);\n\t\t\tif (theGraphicsFactory != null) {\n\t\t\t\treturn theGraphicsFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new GraphicsFactory();\n\t}", "public WebDriver getDriver(DesiredCapabilities capability) throws MalformedURLException {\r\n\t\tif (gridMode) {\r\n\t\t\treturn new RemoteWebDriver(new URL(\"http://192.168.106.36:5555/wd/hub\"), getBrowserCapabilities(browser,capability));\r\n\t\t} else {\r\n\t\t\tswitch (browser.toLowerCase()) {\r\n\t\t\tcase \"firefox\":\r\n\t\t\t\tstartGeckoDriver();\r\n\t\t\t\tFirefoxOptions firefoxOptions = new FirefoxOptions();\r\n\t\t\t\tfirefoxOptions.merge(capability);\r\n\t\t\t\treturn new FirefoxDriver(firefoxOptions);\r\n\r\n\t\t\tcase \"chrome\":\r\n\t\t\t\tstartChromeDriver();\r\n\t\t\t\tChromeOptions chromeOptions = new ChromeOptions();\r\n\t\t\t\tchromeOptions.merge(capability);\r\n\t\t\t\treturn new ChromeDriver(chromeOptions);\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"Selecting firefox as default browser.\");\r\n\t\t\t\tstartGeckoDriver();\r\n\t\t\t\tFirefoxOptions defaultOptions = new FirefoxOptions();\r\n\t\t\t\tdefaultOptions.merge(capability);\r\n\t\t\t\treturn new FirefoxDriver(defaultOptions);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static final DocumentBuilderFactory getFactory() {\r\n if (documentFactory == null) {\r\n documentFactory = DocumentBuilderFactory.newInstance();\r\n }\r\n\r\n return documentFactory;\r\n }", "public WebDriver getBrowserObject(BrowserType btype) throws Exception {\n\t\ttry {\n\t\t\tswitch(btype){\n\t\t\tcase Chrome:\n\t\t\t\tChromeBrowser chrome = ChromeBrowser.class.newInstance();\n\t\t\t\tChromeOptions chromeOptions = chrome.getChromeOptions();\n\t\t\t\treturn chrome.getChromeDriver(chromeOptions);\n\t\t\tcase FireFox:\n\t\t\t\tFirefoxBrowser ff = FirefoxBrowser.class.newInstance();\n\t\t\t\tFirefoxOptions ffOptions = ff.getFirefoxOptions();\n\t\t\t\treturn ff.getFirefoxDriver(ffOptions);\n\t\t\t\t\n\t\t\tcase Iexplorer:\n\t\t\t\tIExploreBrowser ie = IExploreBrowser.class.newInstance();\n\t\t\t\tInternetExplorerOptions ieoptions = ie.getIExplorerCapabilities();\n\t\t\t\treturn ie.getIExplorerDriver(ieoptions);\n\t\t\t\n\t\t\tdefault:\n\t\t\t\tthrow new Exception(\"Driver not found \"+btype.name());\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tlog.info(e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t}", "public WebDriver get() throws MalformedURLException {\n if(driverParams.getSource()==null || !driverParams.getSource().toUpperCase().equals(\"REMOTE\")){\n return getDriver();\n }\n return getRemoteDriver();\n }", "Driver getDriver();", "public static RemoteWebDriver getDriver() {\n logger.trace(\"Get the WebDriver\");\n\n // Gets the WebDriver stored in the ThreadLocal variable\n return driverThread.get().getDriver();\n }", "public static SingletonWebDriver getInstance(boolean NewDriverCreate){\n if(instance == null || NewDriverCreate){\n synchronized(sync){\n if(instance == null || NewDriverCreate)\n instance = new SingletonWebDriver();\n }\n }\n return instance;\n }", "public static void setup(String browser) throws Exception{\n if(browser.equalsIgnoreCase(\"firefox\")){\n \tFile pathToBinary = new File(\"C:\\\\Program Files (x86)\\\\Mozilla Firefox 41\\\\firefox.exe\");\n \tFirefoxBinary binary = new FirefoxBinary(pathToBinary);\n \tFirefoxDriver driver = new FirefoxDriver(binary, new FirefoxProfile());\n \t\n \t//System.setProperty(\"webdriver.firefox.driver\",\"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n \t/*DesiredCapabilities capabilies = DesiredCapabilities.firefox();\t\t\t\n capabilies.getBrowserName();\n capabilies.getVersion();*/\n \t\t\t\n \t//create Firefox instance\t \n //driver = new FirefoxDriver(); \n System.out.println(\"Browser Used: \"+browser);\n }\t \n //Check if parameter passed is 'Chrome'\n // https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/chrome/ChromeOptions.html\n // http://www.programcreek.com/java-api-examples/index.php?api=org.openqa.selenium.remote.DesiredCapabilities (Singleton)\n else if(browser.equalsIgnoreCase(\"chrome\")){\t \t \n System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n ChromeOptions opt = new ChromeOptions();\n opt.setBinary(\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n opt.setExperimentalOption(\"Browser\", \"Chrome\");\n opt.getExperimentalOption(\"version\");\n \n// DesiredCapabilities capabilies = DesiredCapabilities.chrome();\n// capabilies.setBrowserName(\"chrome\");\n// capabilies.setPlatform(Platform.WINDOWS);\n// capabilies.setVersion(\"38\");\n// DesiredCapabilities capabilities = new DesiredCapabilities();\n \n //Create Chrome instance\n driver = new ChromeDriver(opt);\t \n }\n \n //Check if parameter passed is 'Safari'\t\n else if(browser.equalsIgnoreCase(\"safari\")){\t \t \n \tSystem.setProperty(\"webdriver.safari.driver\",\"C:/safaridriver.exe\");\n \t\n \t//System.setProperty(\"webdriver.safari.noinstall\", \"true\");\n \tdriver = new SafariDriver();\n \t\n /*\tSafariOptions options = new SafariOptions();\n \tSafariDriver driver = new SafariDriver(options);\n \tDesiredCapabilities capabilities = DesiredCapabilities.safari();\n \tcapabilities.setCapability(SafariOptions.CAPABILITY, options);*/\n }\n \n //Check if parameter passed is 'IE'\t \n else if(browser.equalsIgnoreCase(\"ie\")){\n \t//String IE32 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_32.exe\"; //IE 32 bit\n\t\t\tString IE64 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_64.exe\"; //IE 64 bit\n \tSystem.setProperty(\"webdriver.ie.driver\",IE64);\n \t\n /* \tDesiredCapabilities capabilies = DesiredCapabilities.internetExplorer();\n \tcapabilies.setBrowserName(\"ie\");\n capabilies.getBrowserName();\n capabilies.getPlatform();\n capabilies.getVersion();*/\n \n \t//Create IE instance\n \tdriver = new InternetExplorerDriver();\n }\t \n else{\t \n //If no browser passed throw exception\t \n throw new Exception(\"Browser is not correct\");\t \n }\t \n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\n\t}", "private static DesiredCapabilities getBrowserCapabilities(String browserType) {\r\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\r\n\t\tswitch (browserType) {\r\n\t\tcase \"firefox\":\r\n\t\t\tSystem.out.println(\"Opening firefox driver\");\r\n\t\t\tcap = DesiredCapabilities.firefox();\r\n\t\t\tbreak;\r\n\t\tcase \"chrome\":\r\n\t\t\tSystem.out.println(\"Opening chrome driver\");\r\n\t\t\tcap = DesiredCapabilities.chrome();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"browser : \" + browserType + \" is invalid, Launching Firefox as browser of choice..\");\r\n\t\t\tcap = DesiredCapabilities.firefox();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn cap;\r\n\t}", "public static boolean isWebDriverBackedSelenium() {\n\t\tif (ZmailSeleniumProperties.getStringProperty(\"seleniumDriver\") != null && ZmailSeleniumProperties.getStringProperty(\"seleniumDriver\").contentEquals(\"WebDriverBackedSelenium\"))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "private static RemoteWebDriver getWebDriver(final Browsers type, Proxy proxy) {\n DesiredCapabilities capabilitiesProxy = new DesiredCapabilities();\n if (proxy != null) {\n capabilitiesProxy.setCapability(CapabilityType.PROXY, proxy);\n }\n switch (type) {\n case CHROME:\n return getChromeDriver(proxy);\n case FIREFOX:\n return getFirefoxDriver(capabilitiesProxy);\n case IEXPLORE:\n return getIEDriver(proxy);\n case OPERA:\n return getOperaDriver(capabilitiesProxy);\n case SAFARI:\n return getSafariDriver(capabilitiesProxy);\n case SELENDROID:\n return getSelendroidDriver();\n /**\n * Appium Android browser for testing with Android\n */\n case APPIUM_ANDROID:\n return getAppiumDriver();\n /**\n * Appium iOS Safari browser for testing with iOS Simulator\n */\n case IOS:\n return getIosDriver();\n default:\n return null;\n }\n }", "public XPathFactory getXPathFactory()\n {try{__CLR4_0_68g8gl1l0dv4j.R.inc(309);\n __CLR4_0_68g8gl1l0dv4j.R.inc(310);return this.xpathFactory;\n }finally{__CLR4_0_68g8gl1l0dv4j.R.flushNeeded();}}", "public void setUpDriver(final String browser) throws MalformedURLException{\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString gridUrl=System.getProperty(\"gridurl\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//check if parameter passed from TestNg is 'firefox'\r\n\t\t\r\n//\t\tif (BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n//\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t if(StringUtils.isNotEmpty(gridUrl)){\r\n//\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t }\r\n//\t\t else{\r\n//\t\t\t driver =new FirefoxDriver(capabilities);\r\n//\t\t }\r\n\t\t \r\n\t\t\r\n\t\tif(BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n\t\t\t\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t \r\n\t\t\t final String firebugpath1=\"src//main//resource//firepath-0.9.7.1-fx.xpi\";\r\n\t\t\t final String firebugpath =\"src//main//resource//firebug-1.12.8.xpi\";\r\n\t\t\t FirefoxProfile profile=new FirefoxProfile();\r\n//\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\r\n\t\t\t \r\n\t\t\t try{\r\n\t\t\t\t profile.addExtension(new File(firebugpath));\r\n\t\t\t\t profile.addExtension(new File(firebugpath1));\t \r\n\t\t\t }catch (IOException e){\r\n\t\t\t\t logger.error(\"Exception:\",e);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t profile.setPreference(\"extensions.firebug.allpagesActivation\", \"on\");\r\n//\t\t\t capabilities.setCapability(FirefoxDriver.PROFILE,profile);\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\t\t\t //if (StringUtils.isNotEmpty(gridUrl)){\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t}else if(BrowserLib.CHROME.equalsIgnoreCase(browser)){\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.chrome();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new ChromeDriver();\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t \r\n\t\t}else if(BrowserLib.INTERNET_EXP.equalsIgnoreCase(browser)){\r\n//\t\t\tset path to iedriver.exe you may need to download it from 32 bits\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.setProperty(\"webDriver.ie.driver\", System.getProperty(\"user.dir\")+\"/src/main/resource/\"+ \"IEDriverserver.exe\");\r\n//\t\t\t create ie instance\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.internetExplorer();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t\t if (StringUtils.isNotEmpty(gridUrl)){\r\n// \t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t\t }else{\r\n//\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n//\t\t\t }\r\n\t\t\t if(gridUrl.isEmpty()){\r\n\t\t\t\t driver =new InternetExplorerDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t}else{\r\n//\t\t\tif no browser passed throw exception\r\n\t\t\tthrow new UnsupportBrowserException();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tthis.driver.manage().deleteAllCookies();\r\n\t\tthis.browserMaximize();\r\n\t\tthis.driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t}", "protected WebDriver createPhantomJSDriver() {\n DesiredCapabilities desiredCapabilities = new DesiredCapabilities();\n String[] phantomArgs = new String[]{\n \"--webdriver-loglevel=\"\n + Resources.base().webDriverLogLevel()\n };\n desiredCapabilities\n .setCapability(PhantomJSDriverService.PHANTOMJS_CLI_ARGS,\n phantomArgs);\n desiredCapabilities.setCapability(\n \"phantomjs.page.customHeaders.Accept-Language\",\n getSystemLanguage());\n PhantomJSDriver phantomJSDriver = new PhantomJSDriver(\n desiredCapabilities);\n phantomJSDriver.manage().window().maximize();\n return phantomJSDriver;\n }", "private static WebDriver getDriver(browsers browser) {\n\t\t\t\tLOG.log(Level.CONFIG, \"Requested driver: \" + browser);\n\t\t// 1. WebDriver instance is not created yet\n\t\tif (driver == null) {\n\t\t\tLOG.log(Level.CONFIG, \"No previous driver found\");\n\t\t\tdriver = newWebDriver( browser);\n\t\t\treturn driver;\n\t\t}\n\t\ttry {\n\t\t\tdriver.getCurrentUrl();//touch with stick\n\t\t} catch (Throwable t) {\n\t\t\tt.printStackTrace();\n\t\t\tnewWebDriver( browser);\n\t\t\treturn driver;\n\t\t}\n\t\treturn driver;\n\t}", "@Test\n public void test(){\n\n\n FirefoxProfile profile = new FirefoxProfile();\n // profile.EnableNativeEvents = true;\n\n WebDriver driver = new FirefoxDriver(profile);\n driver.get(\"http://www.baidu.com\");\n }", "public static HomeFactory getDefault() {\n if (Utilities.isWindows()) {\n return getDefaultWindows();\n } else if (Utilities.isMac()) {\n return getDefaultMac();\n } else {\n return getDefaultUx();\n }\n }", "private static WebDriver newHtmlUnitDiver() {\n\t\tcapabilities = new DesiredCapabilities().htmlUnit();\n\t\tcapabilities.setBrowserName(\"HtmlUnit\");\n\t\tsetCommonCapabilities();\n\n//\t\treturn new HtmlUnitDriver(capabilities);\n\t\treturn new HtmlUnitDriver(true);\n\t}", "@Test\n\tpublic void TC_01_Run_On_Firefox() {\n\t\tdriver = new FirefoxDriver();\n\t\t\n\t\t//(>=48) lastest version \n\t\t//System.setProperty(\"webdriver.gecko.driver\",\"//geckodriver_path\");\n\t\t//driver = new FirefoxDriver();\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\tdriver.get(\"http://demo.guru99.com/v4/\");\n\t\tdriver.quit();\n\n\t}", "@Test\n public void testReturnsDefaultBrowser() {\n String defaultBrowser = BROWSER_INSTALLED_SUPPORTING_WEBAPKS;\n mockInstallBrowsers(sInstalledBrowsers, defaultBrowser);\n setHostBrowserInMetadata(null);\n // Simulates that there isn't any host browser stored in the SharedPreference.\n setHostBrowserInSharedPreferences(null);\n\n String hostBrowser = WebApkUtils.getHostBrowserPackageName(mContext);\n Assert.assertEquals(defaultBrowser, hostBrowser);\n }", "Object getDefaultNodeFactory();", "@Before\n public synchronized static WebDriver openBrowser() {\n String browser = System.getProperty(\"BROWSER\");\n\n\n if (driver == null) {\n try {\n //Kiem tra BROWSER = null -> gan = chrome\n if (browser == null) {\n browser = System.getenv(\"BROWSER\");\n if (browser == null) {\n browser = \"chrome\";\n }\n }\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n break;\n case \"chrome_headless\":\n WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"headless\");\n options.addArguments(\"window-size=1366x768\");\n driver = new ChromeDriver(options);\n break;\n default:\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n }\n } catch (UnreachableBrowserException e) {\n driver = new ChromeDriver();\n } catch (WebDriverException e) {\n driver = new ChromeDriver();\n } finally {\n Runtime.getRuntime().addShutdownHook(new Thread(new BrowserCleanup()));\n }\n driver.get(\"http://demo.guru99.com/v4/\");\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n log.info(\"----------- START BRWOSER -----------\");\n\n }\n return driver;\n }", "private void initDriver(){\r\n String browserToBeUsed = (String) jsonConfig.get(\"browserToBeUsed\");\r\n switch (browserToBeUsed) {\r\n case \"FF\":\r\n System.setProperty(\"webdriver.gecko.driver\", (String) jsonConfig.get(\"fireFoxDriverPath\"));\r\n FirefoxProfile ffProfile = new FirefoxProfile();\r\n // ffProfile.setPreference(\"javascript.enabled\", false);\r\n ffProfile.setPreference(\"intl.accept_languages\", \"en-GB\");\r\n\r\n FirefoxOptions ffOptions = new FirefoxOptions();\r\n ffOptions.setProfile(ffProfile);\r\n driver = new FirefoxDriver(ffOptions);\r\n break;\r\n case \"CH\":\r\n String driverPath = (String) jsonConfig.get(\"chromeDriverPath\");\r\n System.setProperty(\"webdriver.chrome.driver\", driverPath);\r\n\r\n Map<String, Object> prefs = new HashMap<String, Object>();\r\n prefs.put(\"profile.default_content_setting_values.notifications\", 2);\r\n\r\n ChromeOptions options = new ChromeOptions();\r\n options.setExperimentalOption(\"prefs\", prefs);\r\n options.addArguments(\"--lang=en-GB\");\r\n driver = new ChromeDriver(options);\r\n break;\r\n case \"IE\":\r\n System.setProperty(\"webdriver.ie.driver\", (String) jsonConfig.get(\"ieDriverPath\"));\r\n\r\n InternetExplorerOptions ieOptions = new InternetExplorerOptions();\r\n ieOptions.disableNativeEvents();\r\n ieOptions.requireWindowFocus();\r\n ieOptions.introduceFlakinessByIgnoringSecurityDomains();\r\n driver = new InternetExplorerDriver(ieOptions);\r\n }\r\n\r\n driver.manage().window().maximize();\r\n }", "public static WebDriver getDriver() {\n if(driver == null) {\n throw new NullPointerException(\"WebDriver instance is null\");\n }\n return driver;\n }", "public WebDriver getDriver() {\n return driver;\n }", "public WebDriver getDriver() {\n return driver;\n }", "protected WebDriverManager() {\n initialize();\n }", "public static void main(String[] args) {\n\r\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",\"./sotware/geckodriver.exe\");\r\n\t\tFirefoxDriver driver=new FirefoxDriver();\r\n\t}" ]
[ "0.8032703", "0.80317926", "0.77226764", "0.7544254", "0.7526562", "0.7510234", "0.73706627", "0.7251637", "0.6976836", "0.67561764", "0.6756054", "0.6641602", "0.6609919", "0.65906715", "0.64828223", "0.6439888", "0.63394636", "0.63102186", "0.63005704", "0.6266071", "0.6179541", "0.6142594", "0.6095027", "0.60527545", "0.60394", "0.6038364", "0.6014944", "0.5953896", "0.595359", "0.5924994", "0.59195864", "0.59194714", "0.5915237", "0.5912901", "0.58855885", "0.5848525", "0.5842607", "0.5827564", "0.5809149", "0.5781545", "0.574596", "0.5744171", "0.5737511", "0.5731889", "0.5672506", "0.5656112", "0.56407654", "0.56125295", "0.5600584", "0.5595154", "0.55882233", "0.5586775", "0.5579016", "0.55780584", "0.55692357", "0.5556607", "0.5553858", "0.55535495", "0.5550429", "0.5545925", "0.5544834", "0.55366904", "0.5535666", "0.5530559", "0.55209744", "0.55062985", "0.5495238", "0.54921216", "0.54725677", "0.5465623", "0.546307", "0.5451255", "0.5445384", "0.5445265", "0.54385966", "0.5433391", "0.54320264", "0.5429768", "0.5424538", "0.5416316", "0.5412374", "0.54056805", "0.5405219", "0.5385957", "0.53769845", "0.5371369", "0.5369941", "0.5367678", "0.53671414", "0.53574926", "0.5352563", "0.53423494", "0.5337378", "0.5333327", "0.53205687", "0.5297358", "0.52942985", "0.52942985", "0.52909905", "0.52889085" ]
0.9112095
0
Constants Attributes Static Constructors
public NullLoggerPlugin () { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Constants() {\n }", "private Constants() {\n }", "public Constants() {\n }", "private Constants() {\n\n }", "private Constants(){\n }", "private Const() {\n }", "private LabelUtilsConstants() {}", "private RBACConstants() {\r\n }", "protected NConstants() {\n }", "private LevelConstants() {\n\t\t\n\t}", "private VolumeDataConstants() {\r\n \r\n }", "private Constants() {\n throw new AssertionError();\n }", "private FTConfigConstants() {\n }", "private DVSTestConstants()\n {\n\n }", "private Constants() {\n\t\tthrow new AssertionError();\n\t}", "private USBConstant() {\r\n\r\n\t}", "private CommonUIConstants()\n {\n }", "private SecurityConsts()\r\n\t{\r\n\r\n\t}", "private ApplicationConstants(){\n\t\t//not do anything \n\t}", "private LoggerConstants() {\n\t\tsuper();\n\t}", "private Constantes() {\r\n\t\t// No way\r\n\t}", "private TOTPAuthenticatorConstants() {\n\t}", "private FlashCardConstants() {\n throw new AssertionError(\"Constructor should never be called for this class\");\n }", "private PuzzleConstants() {\n // not called\n }", "private MainConst() {\n super(\"\");\n }", "private GPSConst()\n\t{\n\t\t\n\t}", "private ZipConstants() {}", "private ParallelGatewayConstant() {\n }", "public ConstantProduct() {\n constProperty = \"constant\";\n constProperty2 = \"constant2\";\n }", "private RpcRawTransactionsMethodsConstants() {\n throw new AssertionError();\n }", "private CellManagerConstants() { \r\n throw new AssertionError();\r\n }", "private Util()\n {\n // Empty default ctor, defined to override access scope.\n }", "private WatchGattConstants(){\n\n }", "public Utils() {}", "private WidgetConstants() {\n throw new AssertionError();\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "private Utility() {\n\t}", "private StaticData() {\n\n }", "public Utils() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "private Util() { }", "public Constant (int value){\r\n this.value = value;\r\n\r\n }", "private CommonMethods() {\n }", "private ReportPluginConstant() {\n\t\t// NO_PMD DUMMY CONSTRUCTOR\n\t}", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "Constant(String name, IRubyObject irubyObject) {\n super(name, irubyObject);\n }", "private Util() {\n }", "private CLUtil()\n {\n }", "private void __sep__Constructors__() {}", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "private Util() {\n }", "private Util() {\n }", "private OMUtil() { }", "private ClimateAlertUtils() {\n }", "private UtilityKlasse() {\n\n }", "private CreateDateUtils()\r\n\t{\r\n\t}", "public interface DublinCoreConstants {\n \n /** Creates a new instance of Class */\n public static int DC_TITLE = 0;\n public static int DC_CREATOR = 1;\n public static int DC_SUBJECT = 2;\n public static int DC_DATE = 3;\n public static int DC_TYPE= 4;\n public static int DC_FORMAT= 5;\n public static int DC_IDENTIFIER = 6;\n public static int DC_COLLECTION = 7;\n public static int DC_COVERAGE = 8;\n \n public static int SUPPORTED_NUMBER = 9;\n \n public static final String[] DC_FIELDS = {\"title\",\"creator\",\"subject\",\"date\",\"type\",\"format\",\"identifier\",\"collection\",\"coverage\"};\n public static final String DC_NAMESPACE = \"dc:\";\n \n}", "private VlcUtils()\n {\n \n }", "private StaticProperty() {}", "private MetallicityUtils() {\n\t\t\n\t}", "private Instantiation(){}", "static void init() {}", "private ConstantTransformer(Object constant) {\n super();\n iConstant = constant;\n }", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "public TypeUtils() {\n\t}", "public Constructor(){\n\t\t\n\t}", "private FunctionUtils() {\n }", "private AttributeTypeHome( )\n {\n }", "private LangUtilities() {\n }", "private Utility() {\n throw new IllegalAccessError();\n }", "public Clade() {}", "protected MethodTypeConstant()\n {\n super(CONSTANT_METHODTYPE);\n }", "private ClassUtil() {}", "private Singleton()\n\t\t{\n\t\t}", "private DiagnosticMessageUtilities()\n {\n }", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "ConstValue createConstValue();", "private TLVUtility() {}", "public interface Constants {\n\t\n\t/** The Constant SPACE_CHAR of type Character of one empty space. */\n\tstatic final char SPACE_CHAR = ' ';\n\t\n\t/** The Constant LETTER_O of type Character which holds mark X. */\n\tstatic final char LETTER_O = 'O';\n\t\n\t/** The Constant LETTER_X of type Character which holds mark O. */\n\tstatic final char LETTER_X = 'X';\n}", "private XMLUtils()\r\n\t{\r\n\t}", "public ResourceUtils() {\r\n //stub\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "private GeoUtil()\n\t{\n\t}", "private Helper() {\r\n // empty\r\n }", "Constructor() {\r\n\t\t \r\n\t }", "private Constant(String name) {\n this.name = name.trim().intern();\n if (StringUtils.isNumeric(this.name())){\n if (StringUtils.isInteger(this.name())){\n this.intValue = Integer.parseInt(this.name());\n this.doubleValue = Double.parseDouble(this.name());\n this.constantType = INTEGER;\n } else if (StringUtils.isDouble(this.name())){\n this.doubleValue = Double.parseDouble(this.name());\n this.constantType = DOUBLE;\n }\n } else {\n this.constantType = GENERIC;\n }\n }", "@Unreachable\n private Enums()\n {\n // Empty default ctor, defined to override access scope.\n }", "private InstanceUtil() {\n }", "private OspfConfigUtil() {\n\n }", "LWordConstant createLWordConstant();", "private MApi() {}", "private Value() {\n\t}" ]
[ "0.81348723", "0.81348723", "0.809952", "0.80390376", "0.80181783", "0.77579564", "0.7642892", "0.7535713", "0.7525212", "0.75085336", "0.7472472", "0.7463645", "0.7445151", "0.7417962", "0.7408616", "0.73714465", "0.7371125", "0.7357548", "0.73446333", "0.73012537", "0.7266769", "0.72641987", "0.7244469", "0.7229284", "0.7217962", "0.714009", "0.70996624", "0.68909395", "0.68766725", "0.67170185", "0.6708217", "0.6700085", "0.6664957", "0.66640186", "0.6645408", "0.66330224", "0.66330224", "0.66330224", "0.66330224", "0.6621163", "0.6610955", "0.6576762", "0.65168643", "0.65037036", "0.65037036", "0.6490194", "0.64657784", "0.6464502", "0.6445577", "0.6426849", "0.6426849", "0.6426849", "0.6426849", "0.6426849", "0.6411039", "0.6386681", "0.6358306", "0.63582134", "0.63499033", "0.63481355", "0.63481355", "0.6341792", "0.63215363", "0.63146985", "0.62995404", "0.62967676", "0.6290706", "0.6288854", "0.6270816", "0.6269202", "0.6221392", "0.62148607", "0.620625", "0.61979425", "0.61911184", "0.61906147", "0.61867726", "0.61804074", "0.618033", "0.6178654", "0.6167473", "0.6159581", "0.6120534", "0.6116944", "0.61160797", "0.6111037", "0.6102526", "0.6094825", "0.6078906", "0.60741276", "0.6073404", "0.6072675", "0.6070171", "0.60547453", "0.6051581", "0.6045544", "0.6044134", "0.6028962", "0.6019301", "0.60158974", "0.60147846" ]
0.0
-1
Title: Shop Dao Description: Copyright: Copyright (c)2011 Company: com.yl.pay
public interface ShopService { //根据ID查询 public Shop findById(Long id); //根据网点编号查询 public Shop findByShopNo(String shopNo); //创建 public Shop create(Shop shop); //更新 public Shop update(Shop shop); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ImplementShoppingDao {\n\n\n public Shopping selectShoppingById(int id);\n\n /**\n * 通过板块plate查询Article\n *\n * @return Article对象集合\n */\npublic List<Shopping> selectShoppingAllshop();\n\n /**\n * 添加商品\n * @param shopping\n * @return\n */\n public boolean addShopping(Shopping shopping);\n}", "public interface IProductDao extends IBaseDao<Product>{\n\n /**\n * 根据系列id查找该系列对应的静态页面的Url\n *\n * @param sid 系列id\n * @return 对应系列id的静态页面的Url\n */\n Series findSeriesBySid(Long sid);\n\n List<Product> findProductListBySid(Long sid);\n\n List<Product> findProductList(PageBean pageBean);\n}", "public static void main(String[] args) {\n\t\tMenuDaoJdbc temp=new MenuDaoJdbc();\r\n//\t\tSystem.out.println(temp.selectByPrimaryKey(100015));\r\n//\t\tSystem.out.println(temp.getAll());\r\n//\t\tMenuVO temp1=new MenuVO();\t\t\r\n//\t\ttemp1.setName(\"香蕉\");\r\n//\t\ttemp.insert(temp1);\r\n\t\ttemp.delete(100019);\r\n\r\n\t\t\r\n\t}", "public interface WebRecommendationDao extends GenericDao<WebRecommendation, Long> {\n\t\n\t/**\n\t * Fetches a list of all web recommendations ordered by sequence number.\n\t * \n\t * @return A list of web recommendations.\n\t */\n\tpublic List<WebRecommendation> findAllOrderBySequence();\n\n}", "public interface ContentUpgradeDao extends EntityObjectDao{\r\n\t/**\r\n\t * 新建时检测是否名字重复\r\n\t * @param name\r\n\t * @return\r\n\t */\r\n\tboolean obtainNameExists(String name);\r\n\t\r\n\t/**\r\n\t * 更新时检测是否有重复\r\n\t * @param name\r\n\t * @param uuid\r\n\t * @return\r\n\t */\r\n\tboolean obtainNameExists(String name, String uuid);\r\n\r\n\t/**\r\n\t * 获取指定关键词和分页信息的内容升级列表\r\n\t * @param keyword 查找的关键词\r\n\t * @param startPosition 起始位置\r\n\t * @param size 获取大小\r\n\t * @return\r\n\t */\r\n\tList<ContentUpgrade> loadContentUpgrades(String keyword, int startPosition, int size);\r\n\t\r\n\t/**\r\n\t * 获取指定关键词的数量\r\n\t * @param keyword 指定关键词\r\n\t * @return\r\n\t */\r\n\tint loadAmount(String keyword);\r\n\t\r\n\t\r\n\tList<ContentUpgrade> loadAllContentUpgrades();\r\n}", "public interface IBuyDao extends Dao<Buy> {\n\n// /** Gets the appropriate List<Executor> by period */\n// public List<Buy> getExecutorsByPeriod(int first, int second) throws PersistException;\n//\n /** Gets all Items*/\n public List<Buy> getAll() throws PersistException;\n\n public String[] getBuysListNameArray() throws PersistException;\n\n /** Gets count Buys*/\n public int getCountBuys() throws PersistException;\n\n// /** Gets Executor by name*/\n// public Buy getExecutorByName(String name) throws PersistException;\n//\n// /** Gets Executors with status Active*/\n// public List<Buy> getActiveExecutors() throws PersistException;\n}", "@Override\n public String getDescription() {\n return \"Digital goods listing\";\n }", "public interface IndentDao extends BaseDao<Indent,Integer>{\n\n /**\n * 通过订单关联查询到买家信息\n */\n void queryBuyerByIndentNO();\n}", "public String getDatabaseName()\n {\n return \"product\";\n }", "@Override\n public String getDescription() {\n return \"Digital goods purchase\";\n }", "public interface EepHeadLoadDAO extends DAO<EepHeadLoad> {\r\n\t/**\r\n\t * Sletter alle linjer tilhørende gitt hode\r\n\t * \r\n\t * @param head\r\n\t */\r\n\tvoid deleteImportFile(EepHeadLoad head);\r\n\r\n\t/**\r\n\t * Finner alle for gitt sekvensnummer\r\n\t * \r\n\t * @param nr\r\n\t * @return alle for gitt sekvensnummer\r\n\t */\r\n\tEepHeadLoad findBySequenceNumber(Integer nr);\r\n}", "public interface XiaoShouContactDao extends EntityObjectDao {\n \n List<XiaoShouContact> findOverviewXiaoShouContact(String keyWords, String userUuid, String startTime, String endTime, String sortBy, String sortWay, String contactStatus, int startPosition, int pageSize);\n\n int findOverviewXiaoShouSize(String keyWords, String userUuid, String startTime, String endTime, String sortBy, String sortWay, String contactStatus);\n\n //查找重复的编号\n boolean findXiaoShouOrderDuplicate(String temp);\n\n //未付账单用户\n List<Object[]> obtainAllCompanyWithOnCreateBillOnLoginUser();\n\n //特定用户所有未付款history\n List<XiaoShouContactRentingFeeHistory> findSpecUserOnCreateBill(String selectCarrierUuid);\n\n /*******************************************扣款历史*******************************************/\n List<XiaoShouContactRentingFeeHistory> findXiaoShouHistory(List<String> historyUuids);\n\n List<XiaoShouContactRentingFeeHistory> obtainXiaoShouHistoryByVehicleNumber(String contactUuid, String vehicleNumber);\n}", "public DescritoresDAO() {\n\t\t\n\t}", "public interface ProductDAO {\n\n /**\n * 添加商品\n * @param product\n */\n public void addProduct(Product product);\n\n /**\n * 分页查询\n * @param pager\n * @param fileId\n * @param fType\n * @param days1\n * @return\n */\n public Pager4EasyUI<ProductInfo> pager(Pager4EasyUI<ProductInfo> pager, String fileId, String fType);\n\n /**\n * 计数\n * @param fileId\n * @return\n */\n public int count(String fileId);\n\n /**\n * 批量添加\n */\n public void addProducts(List<Product> products);\n\n}", "@SuppressWarnings(\"all\")\npublic interface I_LBR_PartnerDFe \n{\n\n /** TableName=LBR_PartnerDFe */\n public static final String Table_Name = \"LBR_PartnerDFe\";\n\n /** AD_Table_ID=1120461 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPName */\n public static final String COLUMNNAME_BPName = \"BPName\";\n\n\t/** Set BP Name\t */\n\tpublic void setBPName (String BPName);\n\n\t/** Get BP Name\t */\n\tpublic String getBPName();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateDoc */\n public static final String COLUMNNAME_DateDoc = \"DateDoc\";\n\n\t/** Set Document Date.\n\t * Date of the Document\n\t */\n\tpublic void setDateDoc (Timestamp DateDoc);\n\n\t/** Get Document Date.\n\t * Date of the Document\n\t */\n\tpublic Timestamp getDateDoc();\n\n /** Column name DateTrx */\n public static final String COLUMNNAME_DateTrx = \"DateTrx\";\n\n\t/** Set Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic void setDateTrx (Timestamp DateTrx);\n\n\t/** Get Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic Timestamp getDateTrx();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DocumentNote */\n public static final String COLUMNNAME_DocumentNote = \"DocumentNote\";\n\n\t/** Set Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic void setDocumentNote (String DocumentNote);\n\n\t/** Get Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic String getDocumentNote();\n\n /** Column name DocumentType */\n public static final String COLUMNNAME_DocumentType = \"DocumentType\";\n\n\t/** Set Document Type.\n\t * Document Type\n\t */\n\tpublic void setDocumentType (String DocumentType);\n\n\t/** Get Document Type.\n\t * Document Type\n\t */\n\tpublic String getDocumentType();\n\n /** Column name GrandTotal */\n public static final String COLUMNNAME_GrandTotal = \"GrandTotal\";\n\n\t/** Set Grand Total.\n\t * Total amount of document\n\t */\n\tpublic void setGrandTotal (BigDecimal GrandTotal);\n\n\t/** Get Grand Total.\n\t * Total amount of document\n\t */\n\tpublic BigDecimal getGrandTotal();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name IsSOTrx */\n public static final String COLUMNNAME_IsSOTrx = \"IsSOTrx\";\n\n\t/** Set Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic void setIsSOTrx (boolean IsSOTrx);\n\n\t/** Get Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic boolean isSOTrx();\n\n /** Column name LBR_EventType */\n public static final String COLUMNNAME_LBR_EventType = \"LBR_EventType\";\n\n\t/** Set Event Type\t */\n\tpublic void setLBR_EventType (String LBR_EventType);\n\n\t/** Get Event Type\t */\n\tpublic String getLBR_EventType();\n\n /** Column name LBR_IsManifested */\n public static final String COLUMNNAME_LBR_IsManifested = \"LBR_IsManifested\";\n\n\t/** Set Manifested\t */\n\tpublic void setLBR_IsManifested (boolean LBR_IsManifested);\n\n\t/** Get Manifested\t */\n\tpublic boolean isLBR_IsManifested();\n\n /** Column name LBR_IsXMLValid */\n public static final String COLUMNNAME_LBR_IsXMLValid = \"LBR_IsXMLValid\";\n\n\t/** Set XML Valid\t */\n\tpublic void setLBR_IsXMLValid (boolean LBR_IsXMLValid);\n\n\t/** Get XML Valid\t */\n\tpublic boolean isLBR_IsXMLValid();\n\n /** Column name LBR_PartnerDFe_ID */\n public static final String COLUMNNAME_LBR_PartnerDFe_ID = \"LBR_PartnerDFe_ID\";\n\n\t/** Set Partner Doc Fiscal\t */\n\tpublic void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);\n\n\t/** Get Partner Doc Fiscal\t */\n\tpublic int getLBR_PartnerDFe_ID();\n\n /** Column name LBR_PartnerDFe_UU */\n public static final String COLUMNNAME_LBR_PartnerDFe_UU = \"LBR_PartnerDFe_UU\";\n\n\t/** Set LBR_PartnerDFe_UU\t */\n\tpublic void setLBR_PartnerDFe_UU (String LBR_PartnerDFe_UU);\n\n\t/** Get LBR_PartnerDFe_UU\t */\n\tpublic String getLBR_PartnerDFe_UU();\n\n /** Column name LBR_SitNF */\n public static final String COLUMNNAME_LBR_SitNF = \"LBR_SitNF\";\n\n\t/** Set NF Status.\n\t * NF Status\n\t */\n\tpublic void setLBR_SitNF (String LBR_SitNF);\n\n\t/** Get NF Status.\n\t * NF Status\n\t */\n\tpublic String getLBR_SitNF();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name lbr_CNPJ */\n public static final String COLUMNNAME_lbr_CNPJ = \"lbr_CNPJ\";\n\n\t/** Set CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic void setlbr_CNPJ (String lbr_CNPJ);\n\n\t/** Get CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic String getlbr_CNPJ();\n\n /** Column name lbr_CPF */\n public static final String COLUMNNAME_lbr_CPF = \"lbr_CPF\";\n\n\t/** Set CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic void setlbr_CPF (String lbr_CPF);\n\n\t/** Get CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic String getlbr_CPF();\n\n /** Column name lbr_DigestValue */\n public static final String COLUMNNAME_lbr_DigestValue = \"lbr_DigestValue\";\n\n\t/** Set Digest Value\t */\n\tpublic void setlbr_DigestValue (String lbr_DigestValue);\n\n\t/** Get Digest Value\t */\n\tpublic String getlbr_DigestValue();\n\n /** Column name lbr_IE */\n public static final String COLUMNNAME_lbr_IE = \"lbr_IE\";\n\n\t/** Set IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic void setlbr_IE (String lbr_IE);\n\n\t/** Get IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic String getlbr_IE();\n\n /** Column name lbr_NFeID */\n public static final String COLUMNNAME_lbr_NFeID = \"lbr_NFeID\";\n\n\t/** Set NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic void setlbr_NFeID (String lbr_NFeID);\n\n\t/** Get NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic String getlbr_NFeID();\n\n /** Column name lbr_NFeProt */\n public static final String COLUMNNAME_lbr_NFeProt = \"lbr_NFeProt\";\n\n\t/** Set NFe Protocol\t */\n\tpublic void setlbr_NFeProt (String lbr_NFeProt);\n\n\t/** Get NFe Protocol\t */\n\tpublic String getlbr_NFeProt();\n\n /** Column name lbr_NFeStatus */\n public static final String COLUMNNAME_lbr_NFeStatus = \"lbr_NFeStatus\";\n\n\t/** Set NFe Status.\n\t * Status of NFe\n\t */\n\tpublic void setlbr_NFeStatus (String lbr_NFeStatus);\n\n\t/** Get NFe Status.\n\t * Status of NFe\n\t */\n\tpublic String getlbr_NFeStatus();\n}", "public String description()\n {\n return \"Generate Postgres C++ Code ODBC\";\n }", "public interface DatabaseContract extends BaseColumns{\n\n String DATABASE_NAME = \"ShopApp.db\";\n String TABLE_NAME_USERS = \"TABLE_NAME_USERS\";\n String TABLE_NAME_PRODUCTS = \"TABLE_NAME_USERS\";\n\n String COL_1_USERS = \"USERNAME\";\n String COL_2_USERS = \"PASSWORD\";\n String CREATE_DATABASE_USERS_QUERY = \"CREATE TABLE \" + TABLE_NAME_USERS\n + \" (\"\n + COL_1_USERS + \" TEXT PRIMARY KEY, \"\n + COL_2_USERS + \" TEXT\"\n + \")\";\n\n String COL_1_PRODUCTS = \"ID\";\n String COL_2_PRODUCTS = \"NAME\";\n String COL_3_PRODUCTS = \"PRICE\";\n String COL_4_PRODUCTS = \"IMAGE\";\n String CREATE_DATABASE_PRODUCTS_QUERY = \"CREATE TABLE \" + TABLE_NAME_USERS\n + \" (\"\n + COL_1_PRODUCTS + \" INTEGER PRIMARY KEY, \"\n + COL_2_PRODUCTS + \" TEXT, \"\n + COL_3_PRODUCTS + \" INTEGER, \"\n + COL_4_PRODUCTS + \" TEXT\"\n + \")\";\n\n\n\n}", "public interface AdDao extends GenericDao<Ad, Long> {\n\n\t/**\n\t * Retourne toutes les publicité éligible\n\t * @param date\n\t * @return\n\t * @throws Exception\n\t */\n\tList<Ad> getAll(Date date)throws Exception;\n\n \n}", "public interface BannerDao {\n public int insert(Banner banner) throws Exception;\n public int modifyBanner(Banner banner) throws Exception;\n public Integer selectTotalCnt(Banner banner) throws Exception;\n public List<Banner> selectBannerList(Banner banner, PagingParam pagingParam);\n public Banner selectBanner(Banner banner);\n public Banner select(Banner banner) throws Exception;\n List<Banner> selectAllList();\n\n}", "public String getDaogenVersion() {\r\n return \"DaoGen version 2.4.1\";\r\n }", "public String getDaogenVersion() {\r\n return \"DaoGen version 2.4.1\";\r\n }", "public interface IPackageActivateDao extends IBaseDao<PackageActivate>{\n\t/**\n\t * \n\t * <p>\n\t * Title: confirmationNumber\n\t * </p>\n\t * <p>\n\t * Description:广告主确认数录入\n\t * </p>\n\t * \n\t * @param id\n\t * @param number\n\t * @throws Exception\n\t * @author lichuang\n\t * @date 2013-5-23\n\t * @return void\n\t * @version 1.0\n\t */\n\tpublic void confirmationNumber(Long id, Integer number,Integer status) throws Exception;\n\n\n\t/**\n\t * <p>\n\t * Title: statusConfirm\n\t * </p>\n\t * <p>\n\t * Description:数据分完\n\t * </p>\n\t * \n\t * @param fraction_id\n\t * @throws Exception\n\t * @author lichuang\n\t * @date 2013-5-27\n\t * @return void\n\t * @version 1.0\n\t */\n\tpublic void updateStatus(Long id,Integer status) throws Exception;\n\n\t/**\n\t * <p>\n\t * Title: statusConfirm\n\t * </p>\n\t * <p>\n\t * Description:数据分完\n\t * </p>\n\t * \n\t * @param fraction_id\n\t * @throws Exception\n\t * @author lichuang\n\t * @date 2013-5-27\n\t * @return void\n\t * @version 1.0\n\t */\n\tpublic void updateStatu(String ids, Integer status) throws Exception;\n\n\t/**\n\t * <p>\n\t * Title: submitConfirmNumber\n\t * </p>\n\t * <p>\n\t * Description:TODO\n\t * </p>\n\t * \n\t * @param ids\n\t * @author cuidd\n\t * @date 2013-7-16\n\t * @return void\n\t * @version 1.0\n\t */\n\tpublic void submitConfirmNumber(String ids);\n\n\n\t/**\n\t* <p>Title: confirmationCpd</p>\n\t* <p>Description:cpd确认的钱</p>\n\t* @param id\n\t* @param amount\n\t* @throws Exception\n\t* @author lichuang\n\t* @date 2013-8-8\n\t* @return void\n\t* @version 1.0\n\t */\n\tpublic void confirmationCpd(Long id, Double amount)throws Exception;\n\n\t/**\n\t* <p>Title: getById</p>\n\t* <p>Description:读取提交android数据</p>\n\t* @param ids\n\t* @return\n\t* @author cuidd\n\t* @date 2014年11月14日\n\t* @return List<PackageActivateAndroid>\n\t* @version 1.0\n\t */\n\tpublic PackageActivateAndroid getById(Long id)throws Exception;\n\n}", "public BemPessoaDAOImpl() {\n\t\tsuper(\"PESQUISAR_BEM_PESSOA\");\n\t}", "public ModeOfPurchaseDAOImpl() {\r\n\r\n }", "public interface InvMainDao extends GenericDao<InvMain, String> {\n\tpublic JQueryPager getInvMainCriteria(final JQueryPager paginatedList,List<PropertyFilter> filters);\n\tpublic boolean checkAllInitInvMainConfirm(String orgCode,String copyCode,String kjYear,String storeId);\n\tpublic InvMain getInvMainByNo(String no, String orgCode, String copyCode);\n\tpublic boolean checkAllDocsInStore(String storeId,String orgCode,String copyCode,String kjYear);\n\tpublic void deleteInvDictAccount(String storeId, String orgCode,String copyCode,String kjYear);\n\n}", "public interface HdcChangeLogDao extends\n AbstractHibernateDao<HdcChangeLog> {\n public Page findHdcChangeLogByPage(Map<String, Object> filter,\n int pageNo, int pageSize,String operateTypeId);\n}", "public interface CatalogDescriptionDao {\r\n\r\n public void init();\r\n\r\n /**\r\n * Return a catalog description based on the database id\r\n * \r\n * @param id - the database id of the catalog description\r\n * @return - the CatalogDescription\r\n */\r\n public CatalogDescription getCatalogDescription(Long id);\r\n \r\n /**\r\n * Return the active catalog description based on the course id\r\n * \r\n * @param id - the course id of the catalog description\r\n * @return - the last version of the CatalogDescription\r\n */\r\n public CatalogDescription getCatalogDescription(String course_id);\r\n\r\n /**\r\n * Return the last version of a catalog description based on the course id\r\n * \r\n * @param id - the course id of the catalog description\r\n * @return - the last version of the CatalogDescription (null if nothing is found)\r\n */\r\n public CatalogDescription getLastVersionCatalogDescription(String courseId);\r\n\r\n \r\n /**\r\n * Return active catalog descriptions that correspond to the given department\r\n * (can be null for all)\r\n * \r\n * @return - the list of CatalogDescription\r\n */\r\n public List<CatalogDescription> getCatalogDescriptionsByDepartment(String department);\r\n \r\n /**\r\n * Return active catalog descriptions that correspond to the given department with flag to indicate if we return or not inactive catalog descriptions \r\n */\r\n public List<CatalogDescription> getCatalogDescriptionsByDepartment(String department, boolean showInactives);\r\n \r\n \r\n /**\r\n * Return active catalog descriptions that correspond to the given academic career\r\n * (can be null for all)\r\n * \r\n * @return - the list of CatalogDescription\r\n */\r\n public List<CatalogDescription> getCatalogDescriptionsByCareer(String career);\r\n \r\n /**\r\n * Return active catalog descriptions that correspond to the given academic career with flag to indicate if we return or not inactive catalog descriptions\r\n */\r\n public List<CatalogDescription> getCatalogDescriptionsByCareer(String career, boolean showInactives);\r\n \r\n \r\n /**\r\n * Return all active catalog descriptions for certificates programs\r\n * (can be null for all)\r\n * \r\n * @return - the list of CatalogDescription\r\n */\r\n \r\n public List<CatalogDescription> getAllCatalogDescriptionsForCertificate();\r\n \r\n /**\r\n * Return all active catalog descriptions for certificates programs with flag to indicate if we return or not inactive catalog descriptions\r\n */\r\n \r\n public List<CatalogDescription> getAllCatalogDescriptionsForCertificate(boolean showInactives);\r\n \r\n \r\n /**\r\n * Return active catalog descriptions that correspond to the given criteria map\r\n * (can be null for all)\r\n * \r\n * @return - the list of CatalogDescription\r\n */\r\n public List<CatalogDescription> getCatalogDescriptions(Map<String, String> eqCriteria, Map<String, String> searchCriteria);\r\n\r\n /**\r\n * save the catalog description to the database\r\n * \r\n * @param cd - the catalog description to save\r\n * @throws StaleDataException\r\n * @throws DatabaseException\r\n */\r\n public void saveCatalogDescription(CatalogDescription cd)\r\n\t throws StaleDataException, DatabaseException;\r\n\r\n /**\r\n * Return a list of Course id (used by quartz job to determine if the catalog description is already created)\r\n * \r\n * @return - the list of Course id\r\n */\r\n public List<String> getListCourseId();\r\n \r\n \r\n /** \r\n * @return all active catlog descriptions\r\n */\r\n public List<CatalogDescription> getAllCatalogDescriptions();\r\n \r\n \r\n /**\r\n * Set all catalog description to \"inactive\" status\r\n * \r\n */\r\n public void setCatalogDescriptionToInactive();\r\n \r\n /**\r\n * Get catalog description from department that have no description and which are not certificate courses\r\n * \r\n */\r\n public List<CatalogDescription> getCatalogDescriptionsByDepartmentWithNoDescription(String department);\r\n \r\n \r\n /**\r\n * Get catalog description for certificates courses that have no description\r\n * \r\n */\r\n public List<CatalogDescription> getAllCatalogDescriptionsForCertificatesWithNoDescription();\r\n \r\n /**\r\n * Get all departments that have at least one catalog description with an empty description\r\n * \r\n */\r\n public List<String> getDepartmentNameWithAtLeastOneCaWithNoDescription();\r\n \r\n \r\n /**\r\n * return whether or not the specified Catalog Description exists.\r\n * \r\n * @param course_id - the course_id of the catalog description\r\n * @return true if the catalog description exists, false otherwise\r\n */\r\n public boolean descriptionExists(String course_id);\r\n}", "@SuppressWarnings(\"all\")\npublic interface I_LBR_Collection_Default \n{\n\n /** TableName=LBR_Collection_Default */\n public static final String Table_Name = \"LBR_Collection_Default\";\n\n /** AD_Table_ID=1000052 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LBR_Accepted */\n public static final String COLUMNNAME_LBR_Accepted = \"LBR_Accepted\";\n\n\t/** Set Accepted\t */\n\tpublic void setLBR_Accepted (String LBR_Accepted);\n\n\t/** Get Accepted\t */\n\tpublic String getLBR_Accepted();\n\n /** Column name LBR_CNAB240DocType */\n public static final String COLUMNNAME_LBR_CNAB240DocType = \"LBR_CNAB240DocType\";\n\n\t/** Set Febraban Document Type\t */\n\tpublic void setLBR_CNAB240DocType (String LBR_CNAB240DocType);\n\n\t/** Get Febraban Document Type\t */\n\tpublic String getLBR_CNAB240DocType();\n\n /** Column name LBR_Collection_Default_ID */\n public static final String COLUMNNAME_LBR_Collection_Default_ID = \"LBR_Collection_Default_ID\";\n\n\t/** Set Bank Collection Defaults\t */\n\tpublic void setLBR_Collection_Default_ID (int LBR_Collection_Default_ID);\n\n\t/** Get Bank Collection Defaults\t */\n\tpublic int getLBR_Collection_Default_ID();\n\n /** Column name LBR_Collection_Default_UU */\n public static final String COLUMNNAME_LBR_Collection_Default_UU = \"LBR_Collection_Default_UU\";\n\n\t/** Set Bank Collection Defaults\t */\n\tpublic void setLBR_Collection_Default_UU (String LBR_Collection_Default_UU);\n\n\t/** Get Bank Collection Defaults\t */\n\tpublic String getLBR_Collection_Default_UU();\n\n /** Column name LBR_CollectionRegType */\n public static final String COLUMNNAME_LBR_CollectionRegType = \"LBR_CollectionRegType\";\n\n\t/** Set Registration Type.\n\t * Collection Registration Type\n\t */\n\tpublic void setLBR_CollectionRegType (String LBR_CollectionRegType);\n\n\t/** Get Registration Type.\n\t * Collection Registration Type\n\t */\n\tpublic String getLBR_CollectionRegType();\n\n /** Column name LBR_CollectionReturnCode */\n public static final String COLUMNNAME_LBR_CollectionReturnCode = \"LBR_CollectionReturnCode\";\n\n\t/** Set Collection Return Code\t */\n\tpublic void setLBR_CollectionReturnCode (String LBR_CollectionReturnCode);\n\n\t/** Get Collection Return Code\t */\n\tpublic String getLBR_CollectionReturnCode();\n\n /** Column name LBR_CollectionReturnDays */\n public static final String COLUMNNAME_LBR_CollectionReturnDays = \"LBR_CollectionReturnDays\";\n\n\t/** Set Collection Return Days\t */\n\tpublic void setLBR_CollectionReturnDays (int LBR_CollectionReturnDays);\n\n\t/** Get Collection Return Days\t */\n\tpublic int getLBR_CollectionReturnDays();\n\n /** Column name LBR_CollectionType */\n public static final String COLUMNNAME_LBR_CollectionType = \"LBR_CollectionType\";\n\n\t/** Set Collection Type\t */\n\tpublic void setLBR_CollectionType (String LBR_CollectionType);\n\n\t/** Get Collection Type\t */\n\tpublic String getLBR_CollectionType();\n\n /** Column name LBR_DirectDebitNotice */\n public static final String COLUMNNAME_LBR_DirectDebitNotice = \"LBR_DirectDebitNotice\";\n\n\t/** Set Direct Debit Notice\t */\n\tpublic void setLBR_DirectDebitNotice (String LBR_DirectDebitNotice);\n\n\t/** Get Direct Debit Notice\t */\n\tpublic String getLBR_DirectDebitNotice();\n\n /** Column name LBR_InterestAP */\n public static final String COLUMNNAME_LBR_InterestAP = \"LBR_InterestAP\";\n\n\t/** Set Interest Amount/Percentage\t */\n\tpublic void setLBR_InterestAP (BigDecimal LBR_InterestAP);\n\n\t/** Get Interest Amount/Percentage\t */\n\tpublic BigDecimal getLBR_InterestAP();\n\n /** Column name LBR_InterestCharge_ID */\n public static final String COLUMNNAME_LBR_InterestCharge_ID = \"LBR_InterestCharge_ID\";\n\n\t/** Set Interest Charge.\n\t * Charge to allocate interests\n\t */\n\tpublic void setLBR_InterestCharge_ID (int LBR_InterestCharge_ID);\n\n\t/** Get Interest Charge.\n\t * Charge to allocate interests\n\t */\n\tpublic int getLBR_InterestCharge_ID();\n\n\tpublic org.compiere.model.I_C_Charge getLBR_InterestCharge() throws RuntimeException;\n\n /** Column name LBR_InterestCode */\n public static final String COLUMNNAME_LBR_InterestCode = \"LBR_InterestCode\";\n\n\t/** Set Late Payment Interest Code\t */\n\tpublic void setLBR_InterestCode (String LBR_InterestCode);\n\n\t/** Get Late Payment Interest Code\t */\n\tpublic String getLBR_InterestCode();\n\n /** Column name LBR_InterestDays */\n public static final String COLUMNNAME_LBR_InterestDays = \"LBR_InterestDays\";\n\n\t/** Set Interest Days\t */\n\tpublic void setLBR_InterestDays (int LBR_InterestDays);\n\n\t/** Get Interest Days\t */\n\tpublic int getLBR_InterestDays();\n\n /** Column name LBR_LatePaymentPenaltyAP */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyAP = \"LBR_LatePaymentPenaltyAP\";\n\n\t/** Set Late Payment Penaulty Amount/Percentage\t */\n\tpublic void setLBR_LatePaymentPenaltyAP (BigDecimal LBR_LatePaymentPenaltyAP);\n\n\t/** Get Late Payment Penaulty Amount/Percentage\t */\n\tpublic BigDecimal getLBR_LatePaymentPenaltyAP();\n\n /** Column name LBR_LatePaymentPenaltyCode */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyCode = \"LBR_LatePaymentPenaltyCode\";\n\n\t/** Set Late Payment Penaulty Code\t */\n\tpublic void setLBR_LatePaymentPenaltyCode (String LBR_LatePaymentPenaltyCode);\n\n\t/** Get Late Payment Penaulty Code\t */\n\tpublic String getLBR_LatePaymentPenaltyCode();\n\n /** Column name LBR_LatePaymentPenaltyDays */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyDays = \"LBR_LatePaymentPenaltyDays\";\n\n\t/** Set Late Payment Penaulty Days\t */\n\tpublic void setLBR_LatePaymentPenaltyDays (int LBR_LatePaymentPenaltyDays);\n\n\t/** Get Late Payment Penaulty Days\t */\n\tpublic int getLBR_LatePaymentPenaltyDays();\n\n /** Column name LBR_Message1 */\n public static final String COLUMNNAME_LBR_Message1 = \"LBR_Message1\";\n\n\t/** Set Message 1\t */\n\tpublic void setLBR_Message1 (String LBR_Message1);\n\n\t/** Get Message 1\t */\n\tpublic String getLBR_Message1();\n\n /** Column name LBR_Message2 */\n public static final String COLUMNNAME_LBR_Message2 = \"LBR_Message2\";\n\n\t/** Set Message 2\t */\n\tpublic void setLBR_Message2 (String LBR_Message2);\n\n\t/** Get Message 2\t */\n\tpublic String getLBR_Message2();\n\n /** Column name LBR_PartialPayment */\n public static final String COLUMNNAME_LBR_PartialPayment = \"LBR_PartialPayment\";\n\n\t/** Set Authorize Partial Payment\t */\n\tpublic void setLBR_PartialPayment (String LBR_PartialPayment);\n\n\t/** Get Authorize Partial Payment\t */\n\tpublic String getLBR_PartialPayment();\n\n /** Column name LBR_PaymentAllocationPriority */\n public static final String COLUMNNAME_LBR_PaymentAllocationPriority = \"LBR_PaymentAllocationPriority\";\n\n\t/** Set Payment Allocation Priority\t */\n\tpublic void setLBR_PaymentAllocationPriority (String LBR_PaymentAllocationPriority);\n\n\t/** Get Payment Allocation Priority\t */\n\tpublic String getLBR_PaymentAllocationPriority();\n\n /** Column name LBR_PenaltyCharge_ID */\n public static final String COLUMNNAME_LBR_PenaltyCharge_ID = \"LBR_PenaltyCharge_ID\";\n\n\t/** Set Penalty Charge.\n\t * Charge to allocate penalty payments\n\t */\n\tpublic void setLBR_PenaltyCharge_ID (int LBR_PenaltyCharge_ID);\n\n\t/** Get Penalty Charge.\n\t * Charge to allocate penalty payments\n\t */\n\tpublic int getLBR_PenaltyCharge_ID();\n\n\tpublic org.compiere.model.I_C_Charge getLBR_PenaltyCharge() throws RuntimeException;\n\n /** Column name LBR_ProtestCode */\n public static final String COLUMNNAME_LBR_ProtestCode = \"LBR_ProtestCode\";\n\n\t/** Set Protest Code.\n\t * Protest Code\n\t */\n\tpublic void setLBR_ProtestCode (String LBR_ProtestCode);\n\n\t/** Get Protest Code.\n\t * Protest Code\n\t */\n\tpublic String getLBR_ProtestCode();\n\n /** Column name LBR_ProtestDays */\n public static final String COLUMNNAME_LBR_ProtestDays = \"LBR_ProtestDays\";\n\n\t/** Set Protest Days.\n\t * Protest Days\n\t */\n\tpublic void setLBR_ProtestDays (int LBR_ProtestDays);\n\n\t/** Get Protest Days.\n\t * Protest Days\n\t */\n\tpublic int getLBR_ProtestDays();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "public interface ProductMetaDao extends BaseDao<ProductMeta, String> {\n}", "@SuppressWarnings(\"all\")\npublic interface I_LBR_DocLine_ICMS \n{\n\n /** TableName=LBR_DocLine_ICMS */\n public static final String Table_Name = \"LBR_DocLine_ICMS\";\n\n /** AD_Table_ID=1000027 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsTaxIncluded */\n public static final String COLUMNNAME_IsTaxIncluded = \"IsTaxIncluded\";\n\n\t/** Set Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic void setIsTaxIncluded (boolean IsTaxIncluded);\n\n\t/** Get Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic boolean isTaxIncluded();\n\n /** Column name LBR_CEST_ID */\n public static final String COLUMNNAME_LBR_CEST_ID = \"LBR_CEST_ID\";\n\n\t/** Set CEST\t */\n\tpublic void setLBR_CEST_ID (int LBR_CEST_ID);\n\n\t/** Get CEST\t */\n\tpublic int getLBR_CEST_ID();\n\n\tpublic I_LBR_CEST getLBR_CEST() throws RuntimeException;\n\n /** Column name LBR_DIFAL_RateICMSInterPart */\n public static final String COLUMNNAME_LBR_DIFAL_RateICMSInterPart = \"LBR_DIFAL_RateICMSInterPart\";\n\n\t/** Set DIFAL Share Rate (%)\t */\n\tpublic void setLBR_DIFAL_RateICMSInterPart (BigDecimal LBR_DIFAL_RateICMSInterPart);\n\n\t/** Get DIFAL Share Rate (%)\t */\n\tpublic BigDecimal getLBR_DIFAL_RateICMSInterPart();\n\n /** Column name LBR_DIFAL_TaxAmtFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtFCPUFDest = \"LBR_DIFAL_TaxAmtFCPUFDest\";\n\n\t/** Set DIFAL Tax Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxAmtFCPUFDest (BigDecimal LBR_DIFAL_TaxAmtFCPUFDest);\n\n\t/** Get DIFAL Tax Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxAmtICMSUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtICMSUFDest = \"LBR_DIFAL_TaxAmtICMSUFDest\";\n\n\t/** Set DIFAL Tax Amt in Receiver UF\t */\n\tpublic void setLBR_DIFAL_TaxAmtICMSUFDest (BigDecimal LBR_DIFAL_TaxAmtICMSUFDest);\n\n\t/** Get DIFAL Tax Amt in Receiver UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtICMSUFDest();\n\n /** Column name LBR_DIFAL_TaxAmtICMSUFRemet */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtICMSUFRemet = \"LBR_DIFAL_TaxAmtICMSUFRemet\";\n\n\t/** Set DIFAL Tax Amt in Sender UF\t */\n\tpublic void setLBR_DIFAL_TaxAmtICMSUFRemet (BigDecimal LBR_DIFAL_TaxAmtICMSUFRemet);\n\n\t/** Get DIFAL Tax Amt in Sender UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtICMSUFRemet();\n\n /** Column name LBR_DIFAL_TaxBaseFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxBaseFCPUFDest = \"LBR_DIFAL_TaxBaseFCPUFDest\";\n\n\t/** Set DIFAL Tax Base Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxBaseFCPUFDest (BigDecimal LBR_DIFAL_TaxBaseFCPUFDest);\n\n\t/** Get DIFAL Tax Base Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxBaseFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxRateFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxRateFCPUFDest = \"LBR_DIFAL_TaxRateFCPUFDest\";\n\n\t/** Set DIFAL Tax Rate of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxRateFCPUFDest (BigDecimal LBR_DIFAL_TaxRateFCPUFDest);\n\n\t/** Get DIFAL Tax Rate of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxRateFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxRateICMSUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxRateICMSUFDest = \"LBR_DIFAL_TaxRateICMSUFDest\";\n\n\t/** Set DIFAL Internal Tax Rate in Receiver UF\t */\n\tpublic void setLBR_DIFAL_TaxRateICMSUFDest (BigDecimal LBR_DIFAL_TaxRateICMSUFDest);\n\n\t/** Get DIFAL Internal Tax Rate in Receiver UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxRateICMSUFDest();\n\n /** Column name LBR_DocLine_Details_ID */\n public static final String COLUMNNAME_LBR_DocLine_Details_ID = \"LBR_DocLine_Details_ID\";\n\n\t/** Set Doc Line Details.\n\t * Doc Line Details\n\t */\n\tpublic void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);\n\n\t/** Get Doc Line Details.\n\t * Doc Line Details\n\t */\n\tpublic int getLBR_DocLine_Details_ID();\n\n\tpublic I_LBR_DocLine_Details getLBR_DocLine_Details() throws RuntimeException;\n\n /** Column name LBR_DocLine_ICMS_ID */\n public static final String COLUMNNAME_LBR_DocLine_ICMS_ID = \"LBR_DocLine_ICMS_ID\";\n\n\t/** Set Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic void setLBR_DocLine_ICMS_ID (int LBR_DocLine_ICMS_ID);\n\n\t/** Get Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic int getLBR_DocLine_ICMS_ID();\n\n /** Column name LBR_DocLine_ICMS_UU */\n public static final String COLUMNNAME_LBR_DocLine_ICMS_UU = \"LBR_DocLine_ICMS_UU\";\n\n\t/** Set Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic void setLBR_DocLine_ICMS_UU (String LBR_DocLine_ICMS_UU);\n\n\t/** Get Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic String getLBR_DocLine_ICMS_UU();\n\n /** Column name LBR_ICMS_OwnTaxStatus */\n public static final String COLUMNNAME_LBR_ICMS_OwnTaxStatus = \"LBR_ICMS_OwnTaxStatus\";\n\n\t/** Set Declarant ICMS Tax Status.\n\t * ICMS tax status from the point of view of the declarant\n\t */\n\tpublic void setLBR_ICMS_OwnTaxStatus (String LBR_ICMS_OwnTaxStatus);\n\n\t/** Get Declarant ICMS Tax Status.\n\t * ICMS tax status from the point of view of the declarant\n\t */\n\tpublic String getLBR_ICMS_OwnTaxStatus();\n\n /** Column name LBR_ICMS_TaxAmtOp */\n public static final String COLUMNNAME_LBR_ICMS_TaxAmtOp = \"LBR_ICMS_TaxAmtOp\";\n\n\t/** Set ICMS Tax Operation Amount.\n\t * Identifies the ICMS Tax Operation Amount\n\t */\n\tpublic void setLBR_ICMS_TaxAmtOp (BigDecimal LBR_ICMS_TaxAmtOp);\n\n\t/** Get ICMS Tax Operation Amount.\n\t * Identifies the ICMS Tax Operation Amount\n\t */\n\tpublic BigDecimal getLBR_ICMS_TaxAmtOp();\n\n /** Column name LBR_ICMS_TaxBaseType */\n public static final String COLUMNNAME_LBR_ICMS_TaxBaseType = \"LBR_ICMS_TaxBaseType\";\n\n\t/** Set ICMS Tax Base Type.\n\t * Identifies a ICMS Tax Base Type\n\t */\n\tpublic void setLBR_ICMS_TaxBaseType (String LBR_ICMS_TaxBaseType);\n\n\t/** Get ICMS Tax Base Type.\n\t * Identifies a ICMS Tax Base Type\n\t */\n\tpublic String getLBR_ICMS_TaxBaseType();\n\n /** Column name LBR_ICMS_TaxReliefType */\n public static final String COLUMNNAME_LBR_ICMS_TaxReliefType = \"LBR_ICMS_TaxReliefType\";\n\n\t/** Set ICMS Tax Relief Type.\n\t * Identifies the ICMS Tax Relief Type\n\t */\n\tpublic void setLBR_ICMS_TaxReliefType (String LBR_ICMS_TaxReliefType);\n\n\t/** Get ICMS Tax Relief Type.\n\t * Identifies the ICMS Tax Relief Type\n\t */\n\tpublic String getLBR_ICMS_TaxReliefType();\n\n /** Column name LBR_ICMS_TaxStatusSN */\n public static final String COLUMNNAME_LBR_ICMS_TaxStatusSN = \"LBR_ICMS_TaxStatusSN\";\n\n\t/** Set ICMS Tax Status (Simple).\n\t * Identifies a ICMS Tax Status in a simple taxation\n\t */\n\tpublic void setLBR_ICMS_TaxStatusSN (String LBR_ICMS_TaxStatusSN);\n\n\t/** Get ICMS Tax Status (Simple).\n\t * Identifies a ICMS Tax Status in a simple taxation\n\t */\n\tpublic String getLBR_ICMS_TaxStatusSN();\n\n /** Column name LBR_ICMS_TaxStatusTN */\n public static final String COLUMNNAME_LBR_ICMS_TaxStatusTN = \"LBR_ICMS_TaxStatusTN\";\n\n\t/** Set ICMS Tax Status (Standard Taxation).\n\t * Identifies a ICMS Tax Status in a standard taxation\n\t */\n\tpublic void setLBR_ICMS_TaxStatusTN (String LBR_ICMS_TaxStatusTN);\n\n\t/** Get ICMS Tax Status (Standard Taxation).\n\t * Identifies a ICMS Tax Status in a standard taxation\n\t */\n\tpublic String getLBR_ICMS_TaxStatusTN();\n\n /** Column name LBR_ICMSRegime */\n public static final String COLUMNNAME_LBR_ICMSRegime = \"LBR_ICMSRegime\";\n\n\t/** Set ICMS Regime.\n\t * Identifies a ICMS Regime for taxes\n\t */\n\tpublic void setLBR_ICMSRegime (String LBR_ICMSRegime);\n\n\t/** Get ICMS Regime.\n\t * Identifies a ICMS Regime for taxes\n\t */\n\tpublic String getLBR_ICMSRegime();\n\n /** Column name LBR_ICMSST_IsTaxIncluded */\n public static final String COLUMNNAME_LBR_ICMSST_IsTaxIncluded = \"LBR_ICMSST_IsTaxIncluded\";\n\n\t/** Set Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic void setLBR_ICMSST_IsTaxIncluded (boolean LBR_ICMSST_IsTaxIncluded);\n\n\t/** Get Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic boolean isLBR_ICMSST_IsTaxIncluded();\n\n /** Column name LBR_ICMSST_TaxAdded */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAdded = \"LBR_ICMSST_TaxAdded\";\n\n\t/** Set ICMS-ST Added Amount Margin (%).\n\t * Identifies the ICMS-ST Added Amount Margin in percentage\n\t */\n\tpublic void setLBR_ICMSST_TaxAdded (BigDecimal LBR_ICMSST_TaxAdded);\n\n\t/** Get ICMS-ST Added Amount Margin (%).\n\t * Identifies the ICMS-ST Added Amount Margin in percentage\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAdded();\n\n /** Column name LBR_ICMSST_TaxAmt */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmt = \"LBR_ICMSST_TaxAmt\";\n\n\t/** Set ICMS-ST Tax Amount.\n\t * Defines the ICMS-ST Tax Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxAmt (BigDecimal LBR_ICMSST_TaxAmt);\n\n\t/** Get ICMS-ST Tax Amount.\n\t * Defines the ICMS-ST Tax Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmt();\n\n /** Column name LBR_ICMSST_TaxAmtUFDes */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtUFDes = \"LBR_ICMSST_TaxAmtUFDes\";\n\n\t/** Set ICMS-ST Amount in Receiver UF.\n\t * Identifies the ICMS-ST Amount in Receiver UF\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtUFDes (BigDecimal LBR_ICMSST_TaxAmtUFDes);\n\n\t/** Get ICMS-ST Amount in Receiver UF.\n\t * Identifies the ICMS-ST Amount in Receiver UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtUFDes();\n\n /** Column name LBR_ICMSST_TaxAmtUFSen */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtUFSen = \"LBR_ICMSST_TaxAmtUFSen\";\n\n\t/** Set ICMS-ST Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Amount withheld in Sender UF\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtUFSen (BigDecimal LBR_ICMSST_TaxAmtUFSen);\n\n\t/** Get ICMS-ST Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Amount withheld in Sender UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtUFSen();\n\n /** Column name LBR_ICMSST_TaxAmtWhd */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtWhd = \"LBR_ICMSST_TaxAmtWhd\";\n\n\t/** Set ICMS-ST Withheld Amount.\n\t * Identifies the ICMS-ST Withheld Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtWhd (BigDecimal LBR_ICMSST_TaxAmtWhd);\n\n\t/** Get ICMS-ST Withheld Amount.\n\t * Identifies the ICMS-ST Withheld Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtWhd();\n\n /** Column name LBR_ICMSST_TaxBAmtUFDes */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtUFDes = \"LBR_ICMSST_TaxBAmtUFDes\";\n\n\t/** Set ICMS-ST Base Amount in Receiver UF.\n\t * Identifies the ICMS-ST Base Amount in Receiver UF\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtUFDes (BigDecimal LBR_ICMSST_TaxBAmtUFDes);\n\n\t/** Get ICMS-ST Base Amount in Receiver UF.\n\t * Identifies the ICMS-ST Base Amount in Receiver UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtUFDes();\n\n /** Column name LBR_ICMSST_TaxBAmtUFSen */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtUFSen = \"LBR_ICMSST_TaxBAmtUFSen\";\n\n\t/** Set ICMS-ST Base Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Base Amount withheld in Sender UF\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtUFSen (BigDecimal LBR_ICMSST_TaxBAmtUFSen);\n\n\t/** Get ICMS-ST Base Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Base Amount withheld in Sender UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtUFSen();\n\n /** Column name LBR_ICMSST_TaxBAmtWhd */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtWhd = \"LBR_ICMSST_TaxBAmtWhd\";\n\n\t/** Set ICMS-ST Withheld Base Amount.\n\t * Identifies the ICMS-ST Withheld Base Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtWhd (BigDecimal LBR_ICMSST_TaxBAmtWhd);\n\n\t/** Get ICMS-ST Withheld Base Amount.\n\t * Identifies the ICMS-ST Withheld Base Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtWhd();\n\n /** Column name LBR_ICMSST_TaxBase */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBase = \"LBR_ICMSST_TaxBase\";\n\n\t/** Set ICMS-ST Tax Base.\n\t * Indicates the ICMS-ST Tax Base\n\t */\n\tpublic void setLBR_ICMSST_TaxBase (BigDecimal LBR_ICMSST_TaxBase);\n\n\t/** Get ICMS-ST Tax Base.\n\t * Indicates the ICMS-ST Tax Base\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBase();\n\n /** Column name LBR_ICMSST_TaxBaseAmt */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBaseAmt = \"LBR_ICMSST_TaxBaseAmt\";\n\n\t/** Set ICMS-ST Tax Base Amount.\n\t * Defines the ICMS-ST Tax Base Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxBaseAmt (BigDecimal LBR_ICMSST_TaxBaseAmt);\n\n\t/** Get ICMS-ST Tax Base Amount.\n\t * Defines the ICMS-ST Tax Base Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBaseAmt();\n\n /** Column name LBR_ICMSST_TaxBaseType */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBaseType = \"LBR_ICMSST_TaxBaseType\";\n\n\t/** Set ICMS-ST Tax Base Type.\n\t * Identifies a ICMS-ST Tax Base Type\n\t */\n\tpublic void setLBR_ICMSST_TaxBaseType (String LBR_ICMSST_TaxBaseType);\n\n\t/** Get ICMS-ST Tax Base Type.\n\t * Identifies a ICMS-ST Tax Base Type\n\t */\n\tpublic String getLBR_ICMSST_TaxBaseType();\n\n /** Column name LBR_ICMSST_TaxRate */\n public static final String COLUMNNAME_LBR_ICMSST_TaxRate = \"LBR_ICMSST_TaxRate\";\n\n\t/** Set ICMS-ST Tax Rate.\n\t * Indicates the ICMS-ST Tax Rate\n\t */\n\tpublic void setLBR_ICMSST_TaxRate (BigDecimal LBR_ICMSST_TaxRate);\n\n\t/** Get ICMS-ST Tax Rate.\n\t * Indicates the ICMS-ST Tax Rate\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxRate();\n\n /** Column name LBR_ICMSST_TaxUFDue_ID */\n public static final String COLUMNNAME_LBR_ICMSST_TaxUFDue_ID = \"LBR_ICMSST_TaxUFDue_ID\";\n\n\t/** Set ICMS-ST UF Due.\n\t * Identifies the ICMS-ST UF Due\n\t */\n\tpublic void setLBR_ICMSST_TaxUFDue_ID (int LBR_ICMSST_TaxUFDue_ID);\n\n\t/** Get ICMS-ST UF Due.\n\t * Identifies the ICMS-ST UF Due\n\t */\n\tpublic int getLBR_ICMSST_TaxUFDue_ID();\n\n\tpublic org.compiere.model.I_C_Region getLBR_ICMSST_TaxUFDue() throws RuntimeException;\n\n /** Column name LBR_ProductSource */\n public static final String COLUMNNAME_LBR_ProductSource = \"LBR_ProductSource\";\n\n\t/** Set Product Source.\n\t * Identifies a Product Source\n\t */\n\tpublic void setLBR_ProductSource (String LBR_ProductSource);\n\n\t/** Get Product Source.\n\t * Identifies a Product Source\n\t */\n\tpublic String getLBR_ProductSource();\n\n /** Column name LBR_TaxAmt */\n public static final String COLUMNNAME_LBR_TaxAmt = \"LBR_TaxAmt\";\n\n\t/** Set Tax Amount.\n\t * Defines the Tax Amount\n\t */\n\tpublic void setLBR_TaxAmt (BigDecimal LBR_TaxAmt);\n\n\t/** Get Tax Amount.\n\t * Defines the Tax Amount\n\t */\n\tpublic BigDecimal getLBR_TaxAmt();\n\n /** Column name LBR_TaxAmtCredit */\n public static final String COLUMNNAME_LBR_TaxAmtCredit = \"LBR_TaxAmtCredit\";\n\n\t/** Set Tax Amount Credit.\n\t * Identifies the Tax Amount Credit\n\t */\n\tpublic void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);\n\n\t/** Get Tax Amount Credit.\n\t * Identifies the Tax Amount Credit\n\t */\n\tpublic BigDecimal getLBR_TaxAmtCredit();\n\n /** Column name LBR_TaxBase */\n public static final String COLUMNNAME_LBR_TaxBase = \"LBR_TaxBase\";\n\n\t/** Set Tax Base.\n\t * Indicates the Tax Base\n\t */\n\tpublic void setLBR_TaxBase (BigDecimal LBR_TaxBase);\n\n\t/** Get Tax Base.\n\t * Indicates the Tax Base\n\t */\n\tpublic BigDecimal getLBR_TaxBase();\n\n /** Column name LBR_TaxBaseAmt */\n public static final String COLUMNNAME_LBR_TaxBaseAmt = \"LBR_TaxBaseAmt\";\n\n\t/** Set Tax Base Amount.\n\t * Defines the Tax Base Amount\n\t */\n\tpublic void setLBR_TaxBaseAmt (BigDecimal LBR_TaxBaseAmt);\n\n\t/** Get Tax Base Amount.\n\t * Defines the Tax Base Amount\n\t */\n\tpublic BigDecimal getLBR_TaxBaseAmt();\n\n /** Column name LBR_TaxBaseOwnOperation */\n public static final String COLUMNNAME_LBR_TaxBaseOwnOperation = \"LBR_TaxBaseOwnOperation\";\n\n\t/** Set Tax Base Own Operation (%).\n\t * Identifies the Tax Base Own Operation in percentage\n\t */\n\tpublic void setLBR_TaxBaseOwnOperation (BigDecimal LBR_TaxBaseOwnOperation);\n\n\t/** Get Tax Base Own Operation (%).\n\t * Identifies the Tax Base Own Operation in percentage\n\t */\n\tpublic BigDecimal getLBR_TaxBaseOwnOperation();\n\n /** Column name LBR_TaxDeferralAmt */\n public static final String COLUMNNAME_LBR_TaxDeferralAmt = \"LBR_TaxDeferralAmt\";\n\n\t/** Set Tax Deferral Amount.\n\t * Identifies the Tax Deferral Amount\n\t */\n\tpublic void setLBR_TaxDeferralAmt (BigDecimal LBR_TaxDeferralAmt);\n\n\t/** Get Tax Deferral Amount.\n\t * Identifies the Tax Deferral Amount\n\t */\n\tpublic BigDecimal getLBR_TaxDeferralAmt();\n\n /** Column name LBR_TaxDeferralRate */\n public static final String COLUMNNAME_LBR_TaxDeferralRate = \"LBR_TaxDeferralRate\";\n\n\t/** Set Tax Deferral Rate (%).\n\t * Identifies the Tax Deferral Rate (%)\n\t */\n\tpublic void setLBR_TaxDeferralRate (BigDecimal LBR_TaxDeferralRate);\n\n\t/** Get Tax Deferral Rate (%).\n\t * Identifies the Tax Deferral Rate (%)\n\t */\n\tpublic BigDecimal getLBR_TaxDeferralRate();\n\n /** Column name LBR_TaxRate */\n public static final String COLUMNNAME_LBR_TaxRate = \"LBR_TaxRate\";\n\n\t/** Set Tax Rate.\n\t * Indicates the Tax Rate\n\t */\n\tpublic void setLBR_TaxRate (BigDecimal LBR_TaxRate);\n\n\t/** Get Tax Rate.\n\t * Indicates the Tax Rate\n\t */\n\tpublic BigDecimal getLBR_TaxRate();\n\n /** Column name LBR_TaxRateCredit */\n public static final String COLUMNNAME_LBR_TaxRateCredit = \"LBR_TaxRateCredit\";\n\n\t/** Set Tax Rate Credit (%).\n\t * Identifies the Tax Rate Credit in percentage\n\t */\n\tpublic void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);\n\n\t/** Get Tax Rate Credit (%).\n\t * Identifies the Tax Rate Credit in percentage\n\t */\n\tpublic BigDecimal getLBR_TaxRateCredit();\n\n /** Column name LBR_TaxReliefAmt */\n public static final String COLUMNNAME_LBR_TaxReliefAmt = \"LBR_TaxReliefAmt\";\n\n\t/** Set Tax Relief Amount.\n\t * Identifies the Tax Relief Amount\n\t */\n\tpublic void setLBR_TaxReliefAmt (BigDecimal LBR_TaxReliefAmt);\n\n\t/** Get Tax Relief Amount.\n\t * Identifies the Tax Relief Amount\n\t */\n\tpublic BigDecimal getLBR_TaxReliefAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public StockCardReportDAO () {}", "public interface OrderPayModeDao extends BaseDao<OrderPayMode,Long>{\n\t\n}", "public interface ShopDetailView {\n String getPid();\n String getUid();\n String getSellerid();\n void getDateCart(AddCartBean bean);\n void getData(ShopDetailBean bean);\n\n}", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "public interface AirlineInfoDao extends ABEDao {\n\n\t/**\n\t * Method to retrieve the airline information\n\t * \n\t * @return AirlineInfoResponse\n\t * \n\t * @see\n\t * @since\n\t */\n\tpublic AirlineInfoResponse retrieveAirlineInfo(String airlineCode);\n\n\t\n\t\n}", "public VAuthorDao() {\n\t\tsuper(org.jooq.test.h2.generatedclasses.tables.VAuthor.V_AUTHOR, org.jooq.test.h2.generatedclasses.tables.pojos.VAuthor.class);\n\t}", "@Override\n public String getDescription() {\n return \"Digital goods delisting\";\n }", "public interface BookDao {\n //////////////////////小试牛刀///////////////////\n //加载所有图书信息\n public List<Book> bookList()throws Exception;\n //按ID查询图书信息\n public Book byIdSelect(int id) throws IOException;\n //添加图书\n public int Add(Book book) throws IOException;\n //删除图书\n public int Del(int id)throws IOException;\n //修改图书\n public int Up(Book book)throws Exception;\n //模糊查询 显示图书信息 (单条件)\n public List<Book> LikeBookInfo(@Param(\"bookname\") String name)throws Exception;\n //多条件查询 显示图书信息\n public List<Book> ByNeedSelect( Book book)throws Exception;\n //多条件查询2\n public List<Book> LikeBookName(Map<String,Object> map)throws Exception;\n //查询图书的分类和作者 在Book实体类中加上分类名称属性- private String catename;\n public List<Book> SelectBookTypeAndAuthor()throws Exception;\n //按图书ID查询图书的分类和作者 重复练习加强记忆\n public Book ByIdSelectBookTypeAndAuthor(@Param(\"bookid\") int id)throws Exception;\n //按图书类型ID获取该类型图书信息\n public List<Book> ByTypeIdGetBookInfo(@Param(\"bookcategory\")int id)throws Exception;\n //按图书类型ID获取该类型图书信息2\n public List<Book> ByTypeIdGetBookInfo2(@Param(\"bookcategory\")int id)throws Exception;\n //智能标签if\n public List<Book> BookListByIf(Book book)throws Exception;\n //智能标签choose\n public List<Book> BookListChoose(int[] ints)throws Exception;\n //智能标签List\n public List<Book> BookListList(List<Book> list)throws Exception;\n\n\n\n\n\n\n}", "public interface RightInfoDAO extends BaseDAO {\n /** The name of the DAO */\n public static final String NAME = \"RightInfoDAO\";\n\n\t/**\n\t * Insert one <tt>RightInfoDTO</tt> object to DB table <tt>azdai_right_info</tt>, return primary key\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>insert into azdai_right_info(code,title,memo,gmt_create,gmt_modify) values (?, ?, ?, ?, ?)</tt>\n\t *\n\t *\t@param rightInfo\n\t *\t@return String\n\t *\t@throws DataAccessException\n\t */\t \n public String insert(RightInfoDTO rightInfo) throws DataAccessException;\n\n\t/**\n\t * Update DB table <tt>azdai_right_info</tt>.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>update azdai_right_info set title=?, memo=?, gmt_modify='NOW' where (code = ?)</tt>\n\t *\n\t *\t@param rightInfo\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int update(RightInfoDTO rightInfo) throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info where (code = ?)</tt>\n\t *\n\t *\t@param code\n\t *\t@return RightInfoDTO\n\t *\t@throws DataAccessException\n\t */\t \n public RightInfoDTO find(String code) throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info order by code ASC</tt>\n\t *\n\t *\t@return List<RightInfoDTO>\n\t *\t@throws DataAccessException\n\t */\t \n public List<RightInfoDTO> findAll() throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info order by code ASC</tt>\n\t *\n\t *\t@param userNo\n\t *\t@return List<RightInfoDTO>\n\t *\t@throws DataAccessException\n\t */\t \n public List<RightInfoDTO> findUserRights(String userNo) throws DataAccessException;\n\n\t/**\n\t * Delete records from DB table <tt>azdai_right_info</tt>.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>delete from azdai_right_info where (code = ?)</tt>\n\t *\n\t *\t@param code\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int delete(String code) throws DataAccessException;\n\n}", "private void LogShoppingListTable(){\n SQLiteDatabase db = DBHelper.getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + DBHelper.TABLE_SHOPPINGLIST, null);\n Log.d(DatabaseHelper.class.getName(), \"Contents of ShoppingList Table:\");\n\n c.moveToFirst();\n while (!c.isAfterLast()) {\n Log.d(DatabaseHelper.class.getName(), \"\\t _id:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.SHOPPINGLIST_ID))) +\n \", pid:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.SHOPPINGLIST_PID))) +\n \", checkmark:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.SHOPPINGLIST_CHECKMARK))) +\n \", quantity:\" + String.valueOf(c.getDouble(c.getColumnIndex(DBHelper.SHOPPINGLIST_QUANTITY))) +\n \", unit:\" + String.valueOf(c.getString(c.getColumnIndex(DBHelper.SHOPPINGLIST_UNIT))) +\n \", quality:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.SHOPPINGLIST_QUALITY))) );\n c.moveToNext();\n }\n\n db.close();\n\n }", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public interface CompanyDao {\n /**\n * 根据主键ID获取企业信息\n *\n * @param id\n * @return\n */\n Company getById(Long id);\n\n /**\n * 根据会员ID获取企业信息\n *\n * @param memberId\n * @return\n */\n Company getByMemberId(Long memberId);\n \n /**\n * 根据企业名字查询\n *\n * @param company\n * @return\n */\n public Company getByName(String name);\n /**\n * 查询数量\n * @param name\n * @return\n */\n public int getCountByName(@Param(\"name\")String name,@Param(\"statuss\")int statuss[]);\n /**\n * 保存\n * @param company\n */\n public void save(Company company);\n /**\n * 更新\n * @param company\n */\n public void update(Company company);\n}", "public OrdersByOrderDate() {\n this.title = \"*** View Orders by order date ***\";\n }", "StockDao getStockDao();", "public interface Useful_LinksDAO {\n public void addUseful_Links(Useful_Links useful_links) throws SQLException;\n public void updateUseful_Links(Useful_Links useful_links) throws SQLException;\n public void deleteUseful_Links(Useful_Links useful_links) throws SQLException;\n}", "public interface TEndProjectCommentDAO extends BaseDao<TEndProjectComment> {\n //获取一个教师可以评审的结题\n List<TEndProjectComment> findMyReviewEndPros(String teaCode, PageBean pageBean);\n\n int findMyReviewEndProsCount(String teaCode);\n\n List findByEndprojectcommentAdvise(Object endprojectcommentAdvise);\n\n List findByEndprojectcommentContent(Object endprojectcommentContent);\n\n List findByIsdeleted(Object isdeleted);\n}", "public String getDatabaseProduct();", "@Dao\npublic interface sekolahDAO {\n\n @Query(\"SELECT * FROM Sekolah\")\n List<Sekolah>getAll();\n\n// @Query(\"SELECT * FROM Sekolah WHERE NPSN LIKE :NPSN AND nama_sekolah LIKE :nama_dusun AND bentuk_pendidikan LIKE :bentuk_pendidikan AND status_lembaga LIKE :status_lembaga AND sk_izin_operasional LIKE :sk_izin_operasional AND tanggal_sk_izin_operasional LIKE :tanggal_sk_izin_operasional\")\n// Sekolah findByName(Integer NPSN, String nama_sekolah, String bentuk_pendidikan, String status_lembaga, String sk_izin_operasional, Date tanggal_sk_izin_operasional);\n\n @Query(\"SELECT COUNT (NPSN) FROM Sekolah\")\n int getAllCount();\n\n @Query(\"UPDATE Sekolah SET alamat = :alamat, nama_dusun = :nama_dusun, provinsi = :provinsi, kecamatan = :kecamatan, kabupaten = :kabupaten, nomor_telpon = :nomor_telpon, email = :email\")\n void update(String alamat,String nama_dusun, String provinsi, String kecamatan, String kabupaten, Integer nomor_telpon, String email);\n\n @Insert\n void insertAll(Sekolah sekolah);\n\n @Delete\n public void deleteSekolah(Sekolah NPSN);\n\n @Update\n public void update(Sekolah sekolah);\n\n @Delete\n public void deleteAll(Sekolah user1, Sekolah user2);\n\n\n}", "public interface ProductDao {\n\n}", "public interface ShopcartDao {\n //添加商品到购物车\n int addProductToCartBackId(Shopcart shopcart);\n //判断某个商品是否已经在购物车\n Shopcart findShopcartByCustomerIdAndProductId(Integer customerId,Integer productId);\n //通过购物车id更新信息(在原来基础上增加)\n boolean updateShopcartById(Integer productCartCount,Integer id);\n //通过购物车id更新信息(在原来基础上增加或者是减少)\n boolean updateShopcartAddAndDecrease(Integer count,Integer id);\n //清空购物车\n boolean deleteShopcartByCustomerId(Integer customerId);\n //删除购物车某一条记录\n boolean deleteShopcartByShopcartId(Integer shopcartId);\n}", "@Override\n public String getDescription() {\n return \"Digital goods delivery\";\n }", "public ArAgingDetailReportDAO () {}", "@SuppressWarnings(\"all\")\npublic interface I_C_Decoris_PreOrderLine \n{\n\n /** TableName=C_Decoris_PreOrderLine */\n public static final String Table_Name = \"C_Decoris_PreOrderLine\";\n\n /** AD_Table_ID=1000199 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name C_Decoris_PreOrder_ID */\n public static final String COLUMNNAME_C_Decoris_PreOrder_ID = \"C_Decoris_PreOrder_ID\";\n\n\t/** Set C_Decoris_PreOrder\t */\n\tpublic void setC_Decoris_PreOrder_ID (int C_Decoris_PreOrder_ID);\n\n\t/** Get C_Decoris_PreOrder\t */\n\tpublic int getC_Decoris_PreOrder_ID();\n\n\tpublic I_C_Decoris_PreOrder getC_Decoris_PreOrder() throws RuntimeException;\n\n /** Column name C_Decoris_PreOrderLine_ID */\n public static final String COLUMNNAME_C_Decoris_PreOrderLine_ID = \"C_Decoris_PreOrderLine_ID\";\n\n\t/** Set C_Decoris_PreOrderLine\t */\n\tpublic void setC_Decoris_PreOrderLine_ID (int C_Decoris_PreOrderLine_ID);\n\n\t/** Get C_Decoris_PreOrderLine\t */\n\tpublic int getC_Decoris_PreOrderLine_ID();\n\n /** Column name C_Decoris_PreOrderLine_UU */\n public static final String COLUMNNAME_C_Decoris_PreOrderLine_UU = \"C_Decoris_PreOrderLine_UU\";\n\n\t/** Set C_Decoris_PreOrderLine_UU\t */\n\tpublic void setC_Decoris_PreOrderLine_UU (String C_Decoris_PreOrderLine_UU);\n\n\t/** Get C_Decoris_PreOrderLine_UU\t */\n\tpublic String getC_Decoris_PreOrderLine_UU();\n\n /** Column name C_Decoris_PreSalesLine_ID */\n public static final String COLUMNNAME_C_Decoris_PreSalesLine_ID = \"C_Decoris_PreSalesLine_ID\";\n\n\t/** Set Decoris Presales Line\t */\n\tpublic void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);\n\n\t/** Get Decoris Presales Line\t */\n\tpublic int getC_Decoris_PreSalesLine_ID();\n\n\tpublic I_C_Decoris_PreSalesLine getC_Decoris_PreSalesLine() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LineNetAmt */\n public static final String COLUMNNAME_LineNetAmt = \"LineNetAmt\";\n\n\t/** Set Line Amount.\n\t * Line Extended Amount (Quantity * Actual Price) without Freight and Charges\n\t */\n\tpublic void setLineNetAmt (BigDecimal LineNetAmt);\n\n\t/** Get Line Amount.\n\t * Line Extended Amount (Quantity * Actual Price) without Freight and Charges\n\t */\n\tpublic BigDecimal getLineNetAmt();\n\n /** Column name LineNo */\n public static final String COLUMNNAME_LineNo = \"LineNo\";\n\n\t/** Set Line No.\n\t * Unique line for this document\n\t */\n\tpublic void setLineNo (int LineNo);\n\n\t/** Get Line No.\n\t * Unique line for this document\n\t */\n\tpublic int getLineNo();\n\n /** Column name M_AttributeSetInstance_ID */\n public static final String COLUMNNAME_M_AttributeSetInstance_ID = \"M_AttributeSetInstance_ID\";\n\n\t/** Set Attribute Set Instance.\n\t * Product Attribute Set Instance\n\t */\n\tpublic void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID);\n\n\t/** Get Attribute Set Instance.\n\t * Product Attribute Set Instance\n\t */\n\tpublic int getM_AttributeSetInstance_ID();\n\n\tpublic I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException;\n\n /** Column name M_Fifapps_Objcodes_ID */\n public static final String COLUMNNAME_M_Fifapps_Objcodes_ID = \"M_Fifapps_Objcodes_ID\";\n\n\t/** Set M_Fifapps_Objcodes\t */\n\tpublic void setM_Fifapps_Objcodes_ID (int M_Fifapps_Objcodes_ID);\n\n\t/** Get M_Fifapps_Objcodes\t */\n\tpublic int getM_Fifapps_Objcodes_ID();\n\n\tpublic I_M_Fifapps_Objcodes getM_Fifapps_Objcodes() throws RuntimeException;\n\n /** Column name M_Fifapps_Supplier_ID */\n public static final String COLUMNNAME_M_Fifapps_Supplier_ID = \"M_Fifapps_Supplier_ID\";\n\n\t/** Set M_Fifapps_Supplier\t */\n\tpublic void setM_Fifapps_Supplier_ID (int M_Fifapps_Supplier_ID);\n\n\t/** Get M_Fifapps_Supplier\t */\n\tpublic int getM_Fifapps_Supplier_ID();\n\n\tpublic I_M_Fifapps_Supplier getM_Fifapps_Supplier() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name PriceEntered */\n public static final String COLUMNNAME_PriceEntered = \"PriceEntered\";\n\n\t/** Set Price.\n\t * Price Entered - the price based on the selected/base UoM\n\t */\n\tpublic void setPriceEntered (BigDecimal PriceEntered);\n\n\t/** Get Price.\n\t * Price Entered - the price based on the selected/base UoM\n\t */\n\tpublic BigDecimal getPriceEntered();\n\n /** Column name QtyEntered */\n public static final String COLUMNNAME_QtyEntered = \"QtyEntered\";\n\n\t/** Set Quantity.\n\t * The Quantity Entered is based on the selected UoM\n\t */\n\tpublic void setQtyEntered (BigDecimal QtyEntered);\n\n\t/** Get Quantity.\n\t * The Quantity Entered is based on the selected UoM\n\t */\n\tpublic BigDecimal getQtyEntered();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "Tablero consultarTablero();", "public interface DatabaseOperations {\n\n public static final String DATABASE_NAME = \"ghost_database\";\n\n public static final String TABLE_SIGHTINGS = \"SIGHTINGS\";\n\n public static final String ROW_ID = \"_id\";\n\n public static final String TITLE = \"title\";\n public static final String DESCRIPTION = \"DESCRIPTION\";\n public static final String LATITUDE = \"lat\";\n public static final String LONGITUDE = \"lon\";\n public static final String RATING = \"rating\";\n}", "public static void main(String[] args) throws SQLException {\n\t\n\t\tDocumentDAO y = new DocumentDAO();\n\tObservableList<Document> listeDoc= (new DocumentDAO()).findall();\n\tSystem.out.println(listeDoc.get(0));\n\t\t\n\t\t//VisiteurDAO v = new VisiteurDAO();\n\t//<Visiteur> idVisiteur = v.findById(\"a131\");\n\t\t\n\t\n\t\n\t}", "@Override\r\n public void onCreate(SQLiteDatabase db) {\r\n String SQL_CREATE_PRODUCTS_TABLE = \"CREATE TABLE \" + StoreEntry.TABLE_NAME + \" (\"\r\n + StoreEntry._ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \"\r\n + StoreEntry.COLUMN_PRODUCT_NAME + \" TEXT NOT NULL, \"\r\n + StoreEntry.COLUMN_PRODUCT_QUANTITY + \" INTEGER NOT NULL, \"\r\n + StoreEntry.COLUMN_PRODUCT_PRICE + \" INTEGER NOT NULL, \"\r\n + StoreEntry.COLUMN_PRODUCT_SUPPLIER_NAME + \" TEXT NOT NULL, \"\r\n + StoreEntry.COLUMN_PRODUCT_SUPPLIER_PHONE + \" TEXT NOT NULL);\";\r\n\r\n db.execSQL(SQL_CREATE_PRODUCTS_TABLE);\r\n }", "@Override\r\n\t\tpublic void onCreate(SQLiteDatabase db) {\n\r\n\t\t}", "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n }", "public interface BookDao {\n //查询所有\n List findAll();\n // 分类查询\n List findOne(String cid);\n\n // 查询书的详细信息\n Book findOnlyOne(String cid);\n\n // 加载图书\n Book load(String bid);\n\n // 添加图书\n void add(Book book);\n\n // 删除图书\n void del(String bid);\n // 编辑图书\n void edit(Book book);\n\n\n}", "public interface ProductMeterialInfoDao {\r\n public List<Product_material_info> getProductPageList(Page<Product_material_info> pageInfo);\r\n public int getProductPageCount(Map<String, Object> params);\r\n\r\n List<Supplier_product_rel> getSupplierProductPageList(Page<Supplier_product_rel> pageInfo);\r\n int getSupplierProductPageCount(Page<Supplier_product_rel> pageInfo);\r\n\r\n public void addProductInfo(Map<String, Object> params);\r\n public void delProduct(Map<String, Object> params);\r\n public Product_material_info getProductInfo(Map<String, Object> params);\r\n public void updProductInfo(Map<String,Object> params);\r\n public List<Product_material_info> getProductList(Map<String, Object> params);\r\n public String getProductImage(Map<String, Object> params);\r\n\r\n\r\n List<product_use> getProductMaterialList(Map<String,Object> params);\r\n int getProductMaterialCount(Map<String,Object> params);\r\n List<product_use> use_material(Map<String,Object> params);\r\n void add_Usematerial(Map<String,Object> params);\r\n List<product_use> MaterialHistoryList(Map<String,Object> params);\r\n int MaterialHistoryCount(Map<String,Object> params);\r\n void updProductMaterial(Map<String,Object> params);\r\n List<consumable_use> getProductSuppliesList(Map<String,Object> params);\r\n int getProductSuppliesCount(Map<String,Object> params);\r\n List<consumable_use> use_supplies(Map<String,Object> params);\r\n void add_Usesupplies(Map<String,Object> params);\r\n void updProductSupplies(Map<String,Object> params);\r\n List<consumable_use> SuppliesHistoryList(Map<String,Object> params);\r\n int SuppliesHistoryCount(Map<String,Object> params);\r\n List<product_research> getProductResearchList(Map<String,Object> params);\r\n int getProductResearchCount(Map<String,Object> params);\r\n List<product_research> use_res(Map<String,Object> params);\r\n void add_Useres(Map<String,Object> params);\r\n void updProductRes(Map<String,Object> params);\r\n List<product_research> ResearchHistoryList(Map<String,Object> params);\r\n int ResearchHistoryCount(Map<String,Object> params);\r\n public List<Staff_info> moblieSelect(Map<String,Object> params);\r\n List<Product_material_enter_detail> stockSelectCas(Map<String,Object> params);\r\n void apply_purchasing(Map<String,Object> params);\r\n List<Product_material_enter_detail> use_purchasing(Map<String,Object> params);\r\n void add_purchasing(Map<String,Object> params);\r\n List<consumable_material_info> suppliesSelectName(Map<String,Object> params);\r\n void add_supplies(Map<String,Object> params);\r\n void add_consumable_use(Map<String,Object> params);\r\n List<consumable_repair> suppliesRepairList(Map<String,Object> params);\r\n int suppliesRepairCount(Map<String,Object> params);\r\n void addRepairList(Map<String,Object> params);\r\n void updRepair(Map<String,Object> params);\r\n List<consumable_repair> selectRepairName(Map<String,Object> params);\r\n List<consumable_repair> selectRepairFanxiu(Map<String,Object> params);\r\n void addRepairFanxiu(Map<String,Object> params);\r\n void no_addRepairFanxiu(Map<String,Object> params);\r\n List<consumable_material_info> fanxiu_add_select(Map<String,Object> params);\r\n void addFanxiuRepair(Map<String,Object> params);\r\n void fanxiu_info_add(Map<String,Object> params);\r\n\r\n List<product_use> MaterialRequisitionAuditList(Map<String,Object> params);\r\n int MaterialRequisitionAuditCount(Map<String,Object> params);\r\n void ConfirmationAudit(Map<String,Object> params);\r\n product_use Receive_Preview(int use_id);\r\n List<Staff_info> staff_mobilephone(Map<String,Object> params);\r\n List<consumable_use> getConsumableList(Map<String,Object> params);\r\n int getConsumableCount(Map<String,Object> params);\r\n void useUpdate(Map<String,Object> params);\r\n List<consumable_use> consumable_mobilephone(Map<String, Object> params);\r\n List<product_research> getResearchList(Map<String, Object> params);\r\n int getResearchCount(Map<String, Object> params);\r\n void researchStatusUp(Map<String,Object> params);\r\n void researchDel(product_research product_research);\r\n\r\n\r\n\r\n List<PurchaseInventoryInfo> warehouseMaterialList(Map<String, Object> params);\r\n int warehouseMaterialCount(Map<String, Object> params);\r\n\r\n List<PurchaseInventoryInfo> warehouseMaterialList_history(Map<String, Object> params);\r\n int warehouseMaterialCount_history(Map<String, Object> params);\r\n\r\n}", "public interface ClerkShiftRecordDAO {\n\n int insert(ClerkShiftDO clerkShiftDO);\n\n Page<ClerkShiftVO> query(ClerkShiftBO clerkShiftBO,RowBounds build);\n}", "public String getTitle()\n {\n return \"Booking Line Items\";\n }", "public interface SysOrderDao {\n //根据id删除订单\n void deleteById(Integer id);\n //添加订单项\n void insert(SysOrder record);\n //添加一部分订单项\n void addSelective(SysOrder record);\n //通过id查询信息\n SysOrder selectById(Integer id);\n //修改一部分信息通过id\n void updateByIdSelective(SysOrder record);\n //修改全部信息通过id\n void updateById(SysOrder record);\n //\n List<VOrder> selectAll(Integer uid);\n}", "@Override\n public String getDatabaseProductVersion() {\n return \"1.0\";\n }", "public OnibusDAO() {}", "private PurchaseDAO(){\n }", "public static void main(String[] args) {\n\t\tAluno cesar = new Aluno(\"Cesar\",80,26);\n\t\tGenericDao dao = new GenericDao();\n\t\tdao.generateSQL(cesar);\t\t\n\t}", "public interface AccommodationDao extends Dao\n{\n\n\t/**\n\t * Returns a list of AccommodationModel for the given accommodationOfferingCode\n\t *\n\t * @param accommodationOfferingCode\n\t * \t\tthe code of the AccommodationOffering to use to get the Accommodation\n\t * @return the list of AccommodationModel\n\t */\n\tList<AccommodationModel> findAccommodationForAccommodationOffering(String accommodationOfferingCode);\n\n\t/**\n\t * Returns a list of AccommodationModel for the given accommodationOfferingCode and catalogVersion\n\t *\n\t * @param accommodationOfferingCode\n\t * \t\tthe code of the AccommodationOffering to use to get the Accommodation\n\t * @param catalogVersion\n\t * \t\tthe catalog version to use to get the Accommodation\n\t * @return the list of AccommodationModel\n\t */\n\tList<AccommodationModel> findAccommodationForAccommodationOfferingAndCatalog(String accommodationOfferingCode,\n\t\t\tString catalogVersion);\n\n\t/**\n\t * Returns an object of AccommodationModel for the given accommodationOfferingCode and accommodationCode\n\t *\n\t * @param accommodationOfferingCode\n\t * \t\tthe code of the AccommodationOffering to use to get the Accommodation\n\t * @param accommodationCode\n\t * \t\tthe code of the Accommodation\n\t * @return object of AccommodationModel\n\t */\n\tAccommodationModel findAccommodationForAccommodationOffering(String accommodationOfferingCode, String accommodationCode);\n\n}", "@Override\r\n public void onCreate(SQLiteDatabase db) {\r\n\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_BSCA_PriceChange \n{\n\n /** TableName=BSCA_PriceChange */\n public static final String Table_Name = \"BSCA_PriceChange\";\n\n /** AD_Table_ID=1000276 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name BSCA_CompletedBy_ID */\n public static final String COLUMNNAME_BSCA_CompletedBy_ID = \"BSCA_CompletedBy_ID\";\n\n\t/** Set BSCA_CompletedBy_ID\t */\n\tpublic void setBSCA_CompletedBy_ID (int BSCA_CompletedBy_ID);\n\n\t/** Get BSCA_CompletedBy_ID\t */\n\tpublic int getBSCA_CompletedBy_ID();\n\n\tpublic org.compiere.model.I_AD_User getBSCA_CompletedBy() throws RuntimeException;\n\n /** Column name BSCA_PreparedBy_ID */\n public static final String COLUMNNAME_BSCA_PreparedBy_ID = \"BSCA_PreparedBy_ID\";\n\n\t/** Set BSCA_PreparedBy_ID\t */\n\tpublic void setBSCA_PreparedBy_ID (int BSCA_PreparedBy_ID);\n\n\t/** Get BSCA_PreparedBy_ID\t */\n\tpublic int getBSCA_PreparedBy_ID();\n\n\tpublic org.compiere.model.I_AD_User getBSCA_PreparedBy() throws RuntimeException;\n\n /** Column name BSCA_PriceChange_ID */\n public static final String COLUMNNAME_BSCA_PriceChange_ID = \"BSCA_PriceChange_ID\";\n\n\t/** Set Price Change\t */\n\tpublic void setBSCA_PriceChange_ID (int BSCA_PriceChange_ID);\n\n\t/** Get Price Change\t */\n\tpublic int getBSCA_PriceChange_ID();\n\n /** Column name BSCA_PriceChangePrev_ID */\n public static final String COLUMNNAME_BSCA_PriceChangePrev_ID = \"BSCA_PriceChangePrev_ID\";\n\n\t/** Set Price Change Previus\t */\n\tpublic void setBSCA_PriceChangePrev_ID (int BSCA_PriceChangePrev_ID);\n\n\t/** Get Price Change Previus\t */\n\tpublic int getBSCA_PriceChangePrev_ID();\n\n\tpublic com.bucaresystems.model.I_BSCA_PriceChange getBSCA_PriceChangePrev() throws RuntimeException;\n\n /** Column name BSCA_PriceChange_UU */\n public static final String COLUMNNAME_BSCA_PriceChange_UU = \"BSCA_PriceChange_UU\";\n\n\t/** Set BSCA_PriceChange_UU\t */\n\tpublic void setBSCA_PriceChange_UU (String BSCA_PriceChange_UU);\n\n\t/** Get BSCA_PriceChange_UU\t */\n\tpublic String getBSCA_PriceChange_UU();\n\n /** Column name BSCA_PrintPrice */\n public static final String COLUMNNAME_BSCA_PrintPrice = \"BSCA_PrintPrice\";\n\n\t/** Set Print Price\t */\n\tpublic void setBSCA_PrintPrice (String BSCA_PrintPrice);\n\n\t/** Get Print Price\t */\n\tpublic String getBSCA_PrintPrice();\n\n /** Column name BSCA_PrintPrice2 */\n public static final String COLUMNNAME_BSCA_PrintPrice2 = \"BSCA_PrintPrice2\";\n\n\t/** Set Print Price 2\t */\n\tpublic void setBSCA_PrintPrice2 (String BSCA_PrintPrice2);\n\n\t/** Get Print Price 2\t */\n\tpublic String getBSCA_PrintPrice2();\n\n /** Column name BSCA_ProductValue_ID */\n public static final String COLUMNNAME_BSCA_ProductValue_ID = \"BSCA_ProductValue_ID\";\n\n\t/** Set BSCA_ProductValue\t */\n\tpublic void setBSCA_ProductValue_ID (int BSCA_ProductValue_ID);\n\n\t/** Get BSCA_ProductValue\t */\n\tpublic int getBSCA_ProductValue_ID();\n\n\tpublic com.bucaresystems.model.I_BSCA_ProductValue getBSCA_ProductValue() throws RuntimeException;\n\n /** Column name BSCA_ProfitPriceLimit */\n public static final String COLUMNNAME_BSCA_ProfitPriceLimit = \"BSCA_ProfitPriceLimit\";\n\n\t/** Set Profit Price Limit\t */\n\tpublic void setBSCA_ProfitPriceLimit (BigDecimal BSCA_ProfitPriceLimit);\n\n\t/** Get Profit Price Limit\t */\n\tpublic BigDecimal getBSCA_ProfitPriceLimit();\n\n /** Column name BSCA_ProfitPriceLimitEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceLimitEntered = \"BSCA_ProfitPriceLimitEntered\";\n\n\t/** Set Profit Price Limit Entered\t */\n\tpublic void setBSCA_ProfitPriceLimitEntered (BigDecimal BSCA_ProfitPriceLimitEntered);\n\n\t/** Get Profit Price Limit Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceLimitEntered();\n\n /** Column name BSCA_ProfitPriceList */\n public static final String COLUMNNAME_BSCA_ProfitPriceList = \"BSCA_ProfitPriceList\";\n\n\t/** Set Profit Price List\t */\n\tpublic void setBSCA_ProfitPriceList (BigDecimal BSCA_ProfitPriceList);\n\n\t/** Get Profit Price List\t */\n\tpublic BigDecimal getBSCA_ProfitPriceList();\n\n /** Column name BSCA_ProfitPriceListEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceListEntered = \"BSCA_ProfitPriceListEntered\";\n\n\t/** Set Profit Price List Entered\t */\n\tpublic void setBSCA_ProfitPriceListEntered (BigDecimal BSCA_ProfitPriceListEntered);\n\n\t/** Get Profit Price List Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceListEntered();\n\n /** Column name BSCA_ProfitPriceStd */\n public static final String COLUMNNAME_BSCA_ProfitPriceStd = \"BSCA_ProfitPriceStd\";\n\n\t/** Set Profit Price Std\t */\n\tpublic void setBSCA_ProfitPriceStd (BigDecimal BSCA_ProfitPriceStd);\n\n\t/** Get Profit Price Std\t */\n\tpublic BigDecimal getBSCA_ProfitPriceStd();\n\n /** Column name BSCA_ProfitPriceStdEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceStdEntered = \"BSCA_ProfitPriceStdEntered\";\n\n\t/** Set Profit Price Std Entered\t */\n\tpublic void setBSCA_ProfitPriceStdEntered (BigDecimal BSCA_ProfitPriceStdEntered);\n\n\t/** Get Profit Price Std Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceStdEntered();\n\n /** Column name BSCA_QtyCurrent */\n public static final String COLUMNNAME_BSCA_QtyCurrent = \"BSCA_QtyCurrent\";\n\n\t/** Set Qty Current\t */\n\tpublic void setBSCA_QtyCurrent (BigDecimal BSCA_QtyCurrent);\n\n\t/** Get Qty Current\t */\n\tpublic BigDecimal getBSCA_QtyCurrent();\n\n /** Column name BSCA_SendTxtScale */\n public static final String COLUMNNAME_BSCA_SendTxtScale = \"BSCA_SendTxtScale\";\n\n\t/** Set Send Txt Scale\t */\n\tpublic void setBSCA_SendTxtScale (String BSCA_SendTxtScale);\n\n\t/** Get Send Txt Scale\t */\n\tpublic String getBSCA_SendTxtScale();\n\n /** Column name C_DocType_ID */\n public static final String COLUMNNAME_C_DocType_ID = \"C_DocType_ID\";\n\n\t/** Set Document Type.\n\t * Document type or rules\n\t */\n\tpublic void setC_DocType_ID (int C_DocType_ID);\n\n\t/** Get Document Type.\n\t * Document type or rules\n\t */\n\tpublic int getC_DocType_ID();\n\n\tpublic org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException;\n\n /** Column name C_DocTypeTarget_ID */\n public static final String COLUMNNAME_C_DocTypeTarget_ID = \"C_DocTypeTarget_ID\";\n\n\t/** Set Target Document Type.\n\t * Target document type for conversing documents\n\t */\n\tpublic void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID);\n\n\t/** Get Target Document Type.\n\t * Target document type for conversing documents\n\t */\n\tpublic int getC_DocTypeTarget_ID();\n\n\tpublic org.compiere.model.I_C_DocType getC_DocTypeTarget() throws RuntimeException;\n\n /** Column name C_Invoice_ID */\n public static final String COLUMNNAME_C_Invoice_ID = \"C_Invoice_ID\";\n\n\t/** Set Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic void setC_Invoice_ID (int C_Invoice_ID);\n\n\t/** Get Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic int getC_Invoice_ID();\n\n\tpublic org.compiere.model.I_C_Invoice getC_Invoice() throws RuntimeException;\n\n /** Column name C_Order_ID */\n public static final String COLUMNNAME_C_Order_ID = \"C_Order_ID\";\n\n\t/** Set Order.\n\t * Order\n\t */\n\tpublic void setC_Order_ID (int C_Order_ID);\n\n\t/** Get Order.\n\t * Order\n\t */\n\tpublic int getC_Order_ID();\n\n\tpublic org.compiere.model.I_C_Order getC_Order() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name DateCompleted */\n public static final String COLUMNNAME_DateCompleted = \"DateCompleted\";\n\n\t/** Set Date Completed\t */\n\tpublic void setDateCompleted (Timestamp DateCompleted);\n\n\t/** Get Date Completed\t */\n\tpublic Timestamp getDateCompleted();\n\n /** Column name DateInvoiced */\n public static final String COLUMNNAME_DateInvoiced = \"DateInvoiced\";\n\n\t/** Set Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic void setDateInvoiced (Timestamp DateInvoiced);\n\n\t/** Get Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic Timestamp getDateInvoiced();\n\n /** Column name DateOrdered */\n public static final String COLUMNNAME_DateOrdered = \"DateOrdered\";\n\n\t/** Set Date Ordered.\n\t * Date of Order\n\t */\n\tpublic void setDateOrdered (Timestamp DateOrdered);\n\n\t/** Get Date Ordered.\n\t * Date of Order\n\t */\n\tpublic Timestamp getDateOrdered();\n\n /** Column name DatePrepared */\n public static final String COLUMNNAME_DatePrepared = \"DatePrepared\";\n\n\t/** Set Date Prepared\t */\n\tpublic void setDatePrepared (Timestamp DatePrepared);\n\n\t/** Get Date Prepared\t */\n\tpublic Timestamp getDatePrepared();\n\n /** Column name DocAction */\n public static final String COLUMNNAME_DocAction = \"DocAction\";\n\n\t/** Set Document Action.\n\t * The targeted status of the document\n\t */\n\tpublic void setDocAction (String DocAction);\n\n\t/** Get Document Action.\n\t * The targeted status of the document\n\t */\n\tpublic String getDocAction();\n\n /** Column name DocStatus */\n public static final String COLUMNNAME_DocStatus = \"DocStatus\";\n\n\t/** Set Document Status.\n\t * The current status of the document\n\t */\n\tpublic void setDocStatus (String DocStatus);\n\n\t/** Get Document Status.\n\t * The current status of the document\n\t */\n\tpublic String getDocStatus();\n\n /** Column name DocumentNo */\n public static final String COLUMNNAME_DocumentNo = \"DocumentNo\";\n\n\t/** Set Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic void setDocumentNo (String DocumentNo);\n\n\t/** Get Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic String getDocumentNo();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsApproved */\n public static final String COLUMNNAME_IsApproved = \"IsApproved\";\n\n\t/** Set Approved.\n\t * Indicates if this document requires approval\n\t */\n\tpublic void setIsApproved (boolean IsApproved);\n\n\t/** Get Approved.\n\t * Indicates if this document requires approval\n\t */\n\tpublic boolean isApproved();\n\n /** Column name IsFixPrice */\n public static final String COLUMNNAME_IsFixPrice = \"IsFixPrice\";\n\n\t/** Set Is Fix Price\t */\n\tpublic void setIsFixPrice (String IsFixPrice);\n\n\t/** Get Is Fix Price\t */\n\tpublic String getIsFixPrice();\n\n /** Column name IsFromMassUpdate */\n public static final String COLUMNNAME_IsFromMassUpdate = \"IsFromMassUpdate\";\n\n\t/** Set Is From Mass Update\t */\n\tpublic void setIsFromMassUpdate (boolean IsFromMassUpdate);\n\n\t/** Get Is From Mass Update\t */\n\tpublic boolean isFromMassUpdate();\n\n /** Column name IsSetPriceLimit */\n public static final String COLUMNNAME_IsSetPriceLimit = \"IsSetPriceLimit\";\n\n\t/** Set Is Set Price Limit\t */\n\tpublic void setIsSetPriceLimit (boolean IsSetPriceLimit);\n\n\t/** Get Is Set Price Limit\t */\n\tpublic boolean isSetPriceLimit();\n\n /** Column name IsSetPriceList */\n public static final String COLUMNNAME_IsSetPriceList = \"IsSetPriceList\";\n\n\t/** Set Is Set Price List\t */\n\tpublic void setIsSetPriceList (boolean IsSetPriceList);\n\n\t/** Get Is Set Price List\t */\n\tpublic boolean isSetPriceList();\n\n /** Column name IsSetPriceStd */\n public static final String COLUMNNAME_IsSetPriceStd = \"IsSetPriceStd\";\n\n\t/** Set Is Set Price Std\t */\n\tpublic void setIsSetPriceStd (boolean IsSetPriceStd);\n\n\t/** Get Is Set Price Std\t */\n\tpublic boolean isSetPriceStd();\n\n /** Column name IsVoidPrevDocs */\n public static final String COLUMNNAME_IsVoidPrevDocs = \"IsVoidPrevDocs\";\n\n\t/** Set Is Void Previous Documents\t */\n\tpublic void setIsVoidPrevDocs (boolean IsVoidPrevDocs);\n\n\t/** Get Is Void Previous Documents\t */\n\tpublic boolean isVoidPrevDocs();\n\n /** Column name Limit_Base */\n public static final String COLUMNNAME_Limit_Base = \"Limit_Base\";\n\n\t/** Set Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic void setLimit_Base (String Limit_Base);\n\n\t/** Get Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic String getLimit_Base();\n\n /** Column name List_Base */\n public static final String COLUMNNAME_List_Base = \"List_Base\";\n\n\t/** Set List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic void setList_Base (String List_Base);\n\n\t/** Get List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic String getList_Base();\n\n /** Column name M_InOut_ID */\n public static final String COLUMNNAME_M_InOut_ID = \"M_InOut_ID\";\n\n\t/** Set Shipment/Receipt.\n\t * Material Shipment Document\n\t */\n\tpublic void setM_InOut_ID (int M_InOut_ID);\n\n\t/** Get Shipment/Receipt.\n\t * Material Shipment Document\n\t */\n\tpublic int getM_InOut_ID();\n\n\tpublic org.compiere.model.I_M_InOut getM_InOut() throws RuntimeException;\n\n /** Column name M_MovementConfirm_ID */\n public static final String COLUMNNAME_M_MovementConfirm_ID = \"M_MovementConfirm_ID\";\n\n\t/** Set Move Confirm.\n\t * Inventory Move Confirmation\n\t */\n\tpublic void setM_MovementConfirm_ID (int M_MovementConfirm_ID);\n\n\t/** Get Move Confirm.\n\t * Inventory Move Confirmation\n\t */\n\tpublic int getM_MovementConfirm_ID();\n\n\tpublic org.compiere.model.I_M_MovementConfirm getM_MovementConfirm() throws RuntimeException;\n\n /** Column name MovementDate */\n public static final String COLUMNNAME_MovementDate = \"MovementDate\";\n\n\t/** Set Movement Date.\n\t * Date a product was moved in or out of inventory\n\t */\n\tpublic void setMovementDate (Timestamp MovementDate);\n\n\t/** Get Movement Date.\n\t * Date a product was moved in or out of inventory\n\t */\n\tpublic Timestamp getMovementDate();\n\n /** Column name M_PriceList_Version_ID */\n public static final String COLUMNNAME_M_PriceList_Version_ID = \"M_PriceList_Version_ID\";\n\n\t/** Set Price List Version.\n\t * Identifies a unique instance of a Price List\n\t */\n\tpublic void setM_PriceList_Version_ID (int M_PriceList_Version_ID);\n\n\t/** Get Price List Version.\n\t * Identifies a unique instance of a Price List\n\t */\n\tpublic int getM_PriceList_Version_ID();\n\n\tpublic org.compiere.model.I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name M_Production_ID */\n public static final String COLUMNNAME_M_Production_ID = \"M_Production_ID\";\n\n\t/** Set Production.\n\t * Plan for producing a product\n\t */\n\tpublic void setM_Production_ID (int M_Production_ID);\n\n\t/** Get Production.\n\t * Plan for producing a product\n\t */\n\tpublic int getM_Production_ID();\n\n\tpublic org.compiere.model.I_M_Production getM_Production() throws RuntimeException;\n\n /** Column name PercentageProfitPLimit */\n public static final String COLUMNNAME_PercentageProfitPLimit = \"PercentageProfitPLimit\";\n\n\t/** Set Percentage Profit Price Limit\t */\n\tpublic void setPercentageProfitPLimit (BigDecimal PercentageProfitPLimit);\n\n\t/** Get Percentage Profit Price Limit\t */\n\tpublic BigDecimal getPercentageProfitPLimit();\n\n /** Column name PercentageProfitPList */\n public static final String COLUMNNAME_PercentageProfitPList = \"PercentageProfitPList\";\n\n\t/** Set Percentage Profit Price List\t */\n\tpublic void setPercentageProfitPList (BigDecimal PercentageProfitPList);\n\n\t/** Get Percentage Profit Price List\t */\n\tpublic BigDecimal getPercentageProfitPList();\n\n /** Column name PercentageProfitPStd */\n public static final String COLUMNNAME_PercentageProfitPStd = \"PercentageProfitPStd\";\n\n\t/** Set Percentage Profit Price Standart\t */\n\tpublic void setPercentageProfitPStd (BigDecimal PercentageProfitPStd);\n\n\t/** Get Percentage Profit Price Standart\t */\n\tpublic BigDecimal getPercentageProfitPStd();\n\n /** Column name PriceActual */\n public static final String COLUMNNAME_PriceActual = \"PriceActual\";\n\n\t/** Set Unit Price.\n\t * Actual Price \n\t */\n\tpublic void setPriceActual (BigDecimal PriceActual);\n\n\t/** Get Unit Price.\n\t * Actual Price \n\t */\n\tpublic BigDecimal getPriceActual();\n\n /** Column name PriceLastInv */\n public static final String COLUMNNAME_PriceLastInv = \"PriceLastInv\";\n\n\t/** Set Last Invoice Price.\n\t * Price of the last invoice for the product\n\t */\n\tpublic void setPriceLastInv (BigDecimal PriceLastInv);\n\n\t/** Get Last Invoice Price.\n\t * Price of the last invoice for the product\n\t */\n\tpublic BigDecimal getPriceLastInv();\n\n /** Column name PriceLastOrd */\n public static final String COLUMNNAME_PriceLastOrd = \"PriceLastOrd\";\n\n\t/** Set Price Last Order\t */\n\tpublic void setPriceLastOrd (BigDecimal PriceLastOrd);\n\n\t/** Get Price Last Order\t */\n\tpublic BigDecimal getPriceLastOrd();\n\n /** Column name PriceLastProduction */\n public static final String COLUMNNAME_PriceLastProduction = \"PriceLastProduction\";\n\n\t/** Set PriceLastProduction\t */\n\tpublic void setPriceLastProduction (BigDecimal PriceLastProduction);\n\n\t/** Get PriceLastProduction\t */\n\tpublic BigDecimal getPriceLastProduction();\n\n /** Column name PriceLimit */\n public static final String COLUMNNAME_PriceLimit = \"PriceLimit\";\n\n\t/** Set Limit Price.\n\t * Lowest price for a product\n\t */\n\tpublic void setPriceLimit (BigDecimal PriceLimit);\n\n\t/** Get Limit Price.\n\t * Lowest price for a product\n\t */\n\tpublic BigDecimal getPriceLimit();\n\n /** Column name PriceLimitEntered */\n public static final String COLUMNNAME_PriceLimitEntered = \"PriceLimitEntered\";\n\n\t/** Set Limit Price.\n\t * Entered Limit Price\n\t */\n\tpublic void setPriceLimitEntered (BigDecimal PriceLimitEntered);\n\n\t/** Get Limit Price.\n\t * Entered Limit Price\n\t */\n\tpublic BigDecimal getPriceLimitEntered();\n\n /** Column name PriceLimitOld */\n public static final String COLUMNNAME_PriceLimitOld = \"PriceLimitOld\";\n\n\t/** Set Limit Price Old.\n\t * Old Limit Price\n\t */\n\tpublic void setPriceLimitOld (BigDecimal PriceLimitOld);\n\n\t/** Get Limit Price Old.\n\t * Old Limit Price\n\t */\n\tpublic BigDecimal getPriceLimitOld();\n\n /** Column name PriceLimitWTax */\n public static final String COLUMNNAME_PriceLimitWTax = \"PriceLimitWTax\";\n\n\t/** Set Price Limit With Tax\t */\n\tpublic void setPriceLimitWTax (BigDecimal PriceLimitWTax);\n\n\t/** Get Price Limit With Tax\t */\n\tpublic BigDecimal getPriceLimitWTax();\n\n /** Column name PriceList */\n public static final String COLUMNNAME_PriceList = \"PriceList\";\n\n\t/** Set List Price.\n\t * List Price\n\t */\n\tpublic void setPriceList (BigDecimal PriceList);\n\n\t/** Get List Price.\n\t * List Price\n\t */\n\tpublic BigDecimal getPriceList();\n\n /** Column name PriceListEntered */\n public static final String COLUMNNAME_PriceListEntered = \"PriceListEntered\";\n\n\t/** Set List Price Entered.\n\t * Entered List Price\n\t */\n\tpublic void setPriceListEntered (BigDecimal PriceListEntered);\n\n\t/** Get List Price Entered.\n\t * Entered List Price\n\t */\n\tpublic BigDecimal getPriceListEntered();\n\n /** Column name PriceListOld */\n public static final String COLUMNNAME_PriceListOld = \"PriceListOld\";\n\n\t/** Set List Price Old.\n\t * Old List Price\n\t */\n\tpublic void setPriceListOld (BigDecimal PriceListOld);\n\n\t/** Get List Price Old.\n\t * Old List Price\n\t */\n\tpublic BigDecimal getPriceListOld();\n\n /** Column name PriceListWTax */\n public static final String COLUMNNAME_PriceListWTax = \"PriceListWTax\";\n\n\t/** Set PriceList With Tax\t */\n\tpublic void setPriceListWTax (BigDecimal PriceListWTax);\n\n\t/** Get PriceList With Tax\t */\n\tpublic BigDecimal getPriceListWTax();\n\n /** Column name PriceStd */\n public static final String COLUMNNAME_PriceStd = \"PriceStd\";\n\n\t/** Set Standard Price.\n\t * Standard Price\n\t */\n\tpublic void setPriceStd (BigDecimal PriceStd);\n\n\t/** Get Standard Price.\n\t * Standard Price\n\t */\n\tpublic BigDecimal getPriceStd();\n\n /** Column name PriceStdEntered */\n public static final String COLUMNNAME_PriceStdEntered = \"PriceStdEntered\";\n\n\t/** Set Standart Price.\n\t * Entered Standart Price\n\t */\n\tpublic void setPriceStdEntered (BigDecimal PriceStdEntered);\n\n\t/** Get Standart Price.\n\t * Entered Standart Price\n\t */\n\tpublic BigDecimal getPriceStdEntered();\n\n /** Column name PriceStdOld */\n public static final String COLUMNNAME_PriceStdOld = \"PriceStdOld\";\n\n\t/** Set Standart Price Old.\n\t * Old Standart Price\n\t */\n\tpublic void setPriceStdOld (BigDecimal PriceStdOld);\n\n\t/** Get Standart Price Old.\n\t * Old Standart Price\n\t */\n\tpublic BigDecimal getPriceStdOld();\n\n /** Column name PriceStdWTax */\n public static final String COLUMNNAME_PriceStdWTax = \"PriceStdWTax\";\n\n\t/** Set Price Standard With Tax\t */\n\tpublic void setPriceStdWTax (BigDecimal PriceStdWTax);\n\n\t/** Get Price Standard With Tax\t */\n\tpublic BigDecimal getPriceStdWTax();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name ProcessedOn */\n public static final String COLUMNNAME_ProcessedOn = \"ProcessedOn\";\n\n\t/** Set Processed On.\n\t * The date+time (expressed in decimal format) when the document has been processed\n\t */\n\tpublic void setProcessedOn (BigDecimal ProcessedOn);\n\n\t/** Get Processed On.\n\t * The date+time (expressed in decimal format) when the document has been processed\n\t */\n\tpublic BigDecimal getProcessedOn();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name Product */\n public static final String COLUMNNAME_Product = \"Product\";\n\n\t/** Set Product\t */\n\tpublic void setProduct (String Product);\n\n\t/** Get Product\t */\n\tpublic String getProduct();\n\n /** Column name Std_Base */\n public static final String COLUMNNAME_Std_Base = \"Std_Base\";\n\n\t/** Set Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic void setStd_Base (String Std_Base);\n\n\t/** Get Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic String getStd_Base();\n\n /** Column name TaxAmtPriceLimit */\n public static final String COLUMNNAME_TaxAmtPriceLimit = \"TaxAmtPriceLimit\";\n\n\t/** Set Tax Amt Price Limit\t */\n\tpublic void setTaxAmtPriceLimit (BigDecimal TaxAmtPriceLimit);\n\n\t/** Get Tax Amt Price Limit\t */\n\tpublic BigDecimal getTaxAmtPriceLimit();\n\n /** Column name TaxAmtPriceList */\n public static final String COLUMNNAME_TaxAmtPriceList = \"TaxAmtPriceList\";\n\n\t/** Set Tax Amt Price List\t */\n\tpublic void setTaxAmtPriceList (BigDecimal TaxAmtPriceList);\n\n\t/** Get Tax Amt Price List\t */\n\tpublic BigDecimal getTaxAmtPriceList();\n\n /** Column name TaxAmtPriceStd */\n public static final String COLUMNNAME_TaxAmtPriceStd = \"TaxAmtPriceStd\";\n\n\t/** Set Tax Amt Price Standard\t */\n\tpublic void setTaxAmtPriceStd (BigDecimal TaxAmtPriceStd);\n\n\t/** Get Tax Amt Price Standard\t */\n\tpublic BigDecimal getTaxAmtPriceStd();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name User1_ID */\n public static final String COLUMNNAME_User1_ID = \"User1_ID\";\n\n\t/** Set User Element List 1.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1_ID (int User1_ID);\n\n\t/** Get User Element List 1.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1() throws RuntimeException;\n\n /** Column name User1W_ID */\n public static final String COLUMNNAME_User1W_ID = \"User1W_ID\";\n\n\t/** Set User Element List 1 W.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1W_ID (int User1W_ID);\n\n\t/** Get User Element List 1 W.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1W_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1W() throws RuntimeException;\n\n /** Column name User1X_ID */\n public static final String COLUMNNAME_User1X_ID = \"User1X_ID\";\n\n\t/** Set User Element List 1 X.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1X_ID (int User1X_ID);\n\n\t/** Get User Element List 1 X.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1X_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1X() throws RuntimeException;\n\n /** Column name User1Y_ID */\n public static final String COLUMNNAME_User1Y_ID = \"User1Y_ID\";\n\n\t/** Set User Element List 1 Y.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1Y_ID (int User1Y_ID);\n\n\t/** Get User Element List 1 Y.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1Y_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1Y() throws RuntimeException;\n\n /** Column name User1Z_ID */\n public static final String COLUMNNAME_User1Z_ID = \"User1Z_ID\";\n\n\t/** Set User Element List 1 Z.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1Z_ID (int User1Z_ID);\n\n\t/** Get User Element List 1 Z.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1Z_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1Z() throws RuntimeException;\n}", "public VBookDao() {\n\t\tsuper(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK, org.jooq.test.h2.generatedclasses.tables.pojos.VBook.class);\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase arg0) {\n\t\t\n\t}", "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n\n }", "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n\n }", "public interface KualitasAirDao extends GenericDao<KualitasAir, Long> {\n}", "public interface IDBPOI {\n\t/** Name of the database */\n static final String DB_NAME = \"discoveryRallye\";\n \n /** Name of the table */\n static final String DB_TABLE_POIS = \"pois\";\n \n /** version number of the database */\n static final int DB_VERSION \t\t= 1;\n \n /** name of the id column */\n static final String ATTR_ID = \"_id\";\n \n /** name of the name column */\n static final String ATTR_NAME = \"name\";\n \n /** name of the longitude column */\n static final String ATTR_LON = \"longitude\";\n \n /** name of the latitude column */\n static final String ATTR_LAT = \"latitude\";\n}", "private void LogProductsTable() {\n SQLiteDatabase db = DBHelper.getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + DBHelper.TABLE_PRODUCTS, null);\n Log.d(DatabaseHelper.class.getName(), \"Contents of Products Table:\");\n\n c.moveToFirst();\n while (!c.isAfterLast()) {\n Log.d(DatabaseHelper.class.getName(), \"\\t _id:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.PRODUCTS_ID))) + \", pname:\" + String.valueOf(c.getString(c.getColumnIndex(DBHelper.PRODUCTS_PNAME))));\n c.moveToNext();\n }\n db.close();\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\n\t}", "public interface ActionItemDAO\r\n extends GenericDAO<ActionItem, Long>\r\n{\r\n\r\n /**\r\n * Nom du service\r\n * \r\n */\r\n public final static String SERVICE_NAME = \"ActionItemDAO\";\r\n\r\n}", "public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public interface BookDao {\n// 录入书籍\n boolean add(Book book);\n\n// 通过 isbn 号,查询\n boolean findByIsbn(String isbn);\n\n// 更新库存量\n boolean modifyQuantity(String isbn, int quantity);\n\n List<Book> findByBook();\n\n int findByIsbnQuantity(String isbn);\n\n double getByIsbnSalePrice(String isbn);\n\n List<Book> getByName(String text);\n}", "public interface ProductDao extends GenericDao<ProductEntity, Integer>{\r\n\r\n\tpublic List<ProductEntity> findAll();\r\n\t\r\n\tpublic List<ProductEntity> filterByCategoryId(Integer categoryId);\r\n}", "private SCSongDatabaseTable(Context context) {\n\t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n\t\t\n\t\t\n\t\t\n\t}", "private PurchaseDB() {}", "@Override\n public void onCreate(SQLiteDatabase arg0) {\n }", "public interface TProjectChangeContentDAO extends BaseDao<TProjectChangeContent> {\n List findByProjectchangecontentField(Object projectchangecontentField);\n\n List findByProjectchangecontentFieldname(\n Object projectchangecontentFieldname);\n\n List findByProjectchangecontentOvalue(\n Object projectchangecontentOvalue);\n\n List findByProjectchangecontentNvalue(\n Object projectchangecontentNvalue);\n\n List findByIsdeleted(Object isdeleted);\n}", "public interface IdeaCommentDao extends GenericDao<IdeaComment, Long>{\n\n\tList<IdeaComment> findIdeaCommentList(String ideaId);\n\n}", "public ProductosPuntoVentaDaoImpl() {\r\n }", "public VRpDyHlrforbeDAOImpl() {\r\n super();\r\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t}", "public interface SectionDao extends Dao{\n}", "@SuppressWarnings(\"all\")\npublic interface I_LBR_MDFeUnloadDoc \n{\n\n /** TableName=LBR_MDFeUnloadDoc */\n public static final String Table_Name = \"LBR_MDFeUnloadDoc\";\n\n /** AD_Table_ID=1120355 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name C_Region_ID */\n public static final String COLUMNNAME_C_Region_ID = \"C_Region_ID\";\n\n\t/** Set Region.\n\t * Identifies a geographical Region\n\t */\n\tpublic void setC_Region_ID (int C_Region_ID);\n\n\t/** Get Region.\n\t * Identifies a geographical Region\n\t */\n\tpublic int getC_Region_ID();\n\n\tpublic org.compiere.model.I_C_Region getC_Region() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateDoc */\n public static final String COLUMNNAME_DateDoc = \"DateDoc\";\n\n\t/** Set Document Date.\n\t * Date of the Document\n\t */\n\tpublic void setDateDoc (Timestamp DateDoc);\n\n\t/** Get Document Date.\n\t * Date of the Document\n\t */\n\tpublic Timestamp getDateDoc();\n\n /** Column name DateTrx */\n public static final String COLUMNNAME_DateTrx = \"DateTrx\";\n\n\t/** Set Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic void setDateTrx (Timestamp DateTrx);\n\n\t/** Get Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic Timestamp getDateTrx();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name GrandTotal */\n public static final String COLUMNNAME_GrandTotal = \"GrandTotal\";\n\n\t/** Set Grand Total.\n\t * Total amount of document\n\t */\n\tpublic void setGrandTotal (BigDecimal GrandTotal);\n\n\t/** Get Grand Total.\n\t * Total amount of document\n\t */\n\tpublic BigDecimal getGrandTotal();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LBR_MDFeDocType */\n public static final String COLUMNNAME_LBR_MDFeDocType = \"LBR_MDFeDocType\";\n\n\t/** Set MDFe Document Type.\n\t * MDFe Document Type\n\t */\n\tpublic void setLBR_MDFeDocType (String LBR_MDFeDocType);\n\n\t/** Get MDFe Document Type.\n\t * MDFe Document Type\n\t */\n\tpublic String getLBR_MDFeDocType();\n\n /** Column name LBR_MDFeUnloadDoc_ID */\n public static final String COLUMNNAME_LBR_MDFeUnloadDoc_ID = \"LBR_MDFeUnloadDoc_ID\";\n\n\t/** Set Documento de Descarregamento do MDFe\t */\n\tpublic void setLBR_MDFeUnloadDoc_ID (int LBR_MDFeUnloadDoc_ID);\n\n\t/** Get Documento de Descarregamento do MDFe\t */\n\tpublic int getLBR_MDFeUnloadDoc_ID();\n\n /** Column name LBR_MDFeUnload_ID */\n public static final String COLUMNNAME_LBR_MDFeUnload_ID = \"LBR_MDFeUnload_ID\";\n\n\t/** Set Descarregamento do Manifesto\t */\n\tpublic void setLBR_MDFeUnload_ID (int LBR_MDFeUnload_ID);\n\n\t/** Get Descarregamento do Manifesto\t */\n\tpublic int getLBR_MDFeUnload_ID();\n\n\tpublic org.adempierelbr.model.I_LBR_MDFeUnload getLBR_MDFeUnload() throws RuntimeException;\n\n /** Column name LBR_NotaFiscal_ID */\n public static final String COLUMNNAME_LBR_NotaFiscal_ID = \"LBR_NotaFiscal_ID\";\n\n\t/** Set Nota Fiscal.\n\t * Primary key table LBR_NotaFiscal\n\t */\n\tpublic void setLBR_NotaFiscal_ID (int LBR_NotaFiscal_ID);\n\n\t/** Get Nota Fiscal.\n\t * Primary key table LBR_NotaFiscal\n\t */\n\tpublic int getLBR_NotaFiscal_ID();\n\n\tpublic org.adempierelbr.model.I_LBR_NotaFiscal getLBR_NotaFiscal() throws RuntimeException;\n\n /** Column name LBR_SubSerie */\n public static final String COLUMNNAME_LBR_SubSerie = \"LBR_SubSerie\";\n\n\t/** Set Sub Serie.\n\t * Sub Serie\n\t */\n\tpublic void setLBR_SubSerie (String LBR_SubSerie);\n\n\t/** Get Sub Serie.\n\t * Sub Serie\n\t */\n\tpublic String getLBR_SubSerie();\n\n /** Column name PIN */\n public static final String COLUMNNAME_PIN = \"PIN\";\n\n\t/** Set PIN.\n\t * Personal Identification Number\n\t */\n\tpublic void setPIN (String PIN);\n\n\t/** Get PIN.\n\t * Personal Identification Number\n\t */\n\tpublic String getPIN();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name lbr_Barcode2 */\n public static final String COLUMNNAME_lbr_Barcode2 = \"lbr_Barcode2\";\n\n\t/** Set Barcode 2.\n\t * Second Barcode of the Nota Fiscal\n\t */\n\tpublic void setlbr_Barcode2 (String lbr_Barcode2);\n\n\t/** Get Barcode 2.\n\t * Second Barcode of the Nota Fiscal\n\t */\n\tpublic String getlbr_Barcode2();\n\n /** Column name lbr_CNPJ */\n public static final String COLUMNNAME_lbr_CNPJ = \"lbr_CNPJ\";\n\n\t/** Set CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic void setlbr_CNPJ (String lbr_CNPJ);\n\n\t/** Get CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic String getlbr_CNPJ();\n\n /** Column name lbr_NFSerie */\n public static final String COLUMNNAME_lbr_NFSerie = \"lbr_NFSerie\";\n\n\t/** Set NF Serie\t */\n\tpublic void setlbr_NFSerie (String lbr_NFSerie);\n\n\t/** Get NF Serie\t */\n\tpublic String getlbr_NFSerie();\n\n /** Column name lbr_NFeID */\n public static final String COLUMNNAME_lbr_NFeID = \"lbr_NFeID\";\n\n\t/** Set NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic void setlbr_NFeID (String lbr_NFeID);\n\n\t/** Get NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic String getlbr_NFeID();\n\n /** Column name lbr_NFeProt */\n public static final String COLUMNNAME_lbr_NFeProt = \"lbr_NFeProt\";\n\n\t/** Set NFe Protocol\t */\n\tpublic void setlbr_NFeProt (String lbr_NFeProt);\n\n\t/** Get NFe Protocol\t */\n\tpublic String getlbr_NFeProt();\n}", "public interface ShopService {\n void insertShop(Shop record, String leverLength);\n void insertNewShop(Shop record);\n List<AdminShopVo> adminListShop(String id);\n List<AdminShopVo> adminListNewShop(String id);\n PageResult<AppShopVo> appListShop(ShopParam shopParam,String uid);\n PageResult<Shop> appListNewShop(ShopParam shopParam);\n PageResult<Shop> appListNewShop1(ShopParam shopParam);\n List<User> listUser();\n AppMerchantsVo selectMerchant(String id);\n AppMerchantsVo selectNewMerchant(String id);\n List<Shop> listMerchant(String userid);\n //\n void modifyShopAttribute(String id,Integer type,Integer sign);\n List<MerchantVo> listmerchantvo();\n void updateShopPrice(String shopid,Integer nodelever,String price);\n void updateByPrimaryKeySelective(Shop shop);\n Shop selectShop(String uid,String shopid);\n Shop selectShop(String shopid);\n //void updateNewShop(Shop record);\n Shop selectShopDetail(String id);\n Shop selectShopDetail(String id,String uid);\n\n}", "@Override\r\n\tpublic void onCreate(SQLiteDatabase arg0) {\n\t\t\r\n\t}", "@Override\n public void onCreate(SQLiteDatabase database) {\n String table = \"CREATE TABLE \" + PRODUCT_TABLE + \"(\"\n + KEY_ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + KEY_NAME + \" TEXT, \"\n + KEY_URL + \" TEXT, \"\n + KEY_CURRENT + \" REAL, \"\n + KEY_CHANGE + \" REAL, \"\n + KEY_DATE + \" TEXT, \"\n + KEY_INITIAL + \" REAL\" + \")\";\n database.execSQL(table);\n }" ]
[ "0.5930139", "0.59078234", "0.5894404", "0.5788471", "0.5753051", "0.57235646", "0.57003576", "0.5653907", "0.5645448", "0.5624108", "0.5594809", "0.55904686", "0.5577918", "0.5549347", "0.55397886", "0.5524881", "0.55133224", "0.5512706", "0.55012894", "0.5481588", "0.5481588", "0.54750013", "0.5474829", "0.5473128", "0.5465167", "0.5445137", "0.5441866", "0.54408646", "0.54402477", "0.5439718", "0.5428707", "0.5424187", "0.54069537", "0.54051757", "0.5404578", "0.53762054", "0.53656274", "0.5359685", "0.5350529", "0.5346992", "0.53353333", "0.5328991", "0.5326893", "0.53202415", "0.5310837", "0.53106046", "0.5310299", "0.5309967", "0.5302918", "0.5301784", "0.52980286", "0.5297997", "0.52972245", "0.52945083", "0.5293745", "0.52936417", "0.52912015", "0.5286672", "0.52834463", "0.5280823", "0.5273039", "0.5265012", "0.52577275", "0.5256691", "0.525546", "0.52550393", "0.5242458", "0.52416825", "0.5238635", "0.52345455", "0.522992", "0.5226435", "0.5224828", "0.52245814", "0.5224389", "0.5223842", "0.5223842", "0.5218896", "0.52103895", "0.5208789", "0.52083755", "0.52083755", "0.5204532", "0.5203512", "0.51947457", "0.51938796", "0.519316", "0.5188794", "0.51850027", "0.5183308", "0.5179393", "0.5178359", "0.5173608", "0.51715004", "0.51715004", "0.51715004", "0.51713794", "0.5169484", "0.5169205", "0.51653135", "0.51625663" ]
0.0
-1
Checks if the app has permission to write to device storage If the app does not has permission then the user will be prompted to grant permissions
public static void verifyStoragePermissions(Activity activity) { // Check if we have write permission int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE); if (permission != PackageManager.PERMISSION_GRANTED) { // We don't have permission so prompt the user ActivityCompat.requestPermissions( activity, PERMISSIONS_STORAGE, REQUEST_EXTERNAL_STORAGE ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isWriteStorageAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "private boolean checkPermissionStorage() {\n\n boolean isPermissionGranted = true;\n\n int permissionStorage = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permissionStorage != PackageManager.PERMISSION_GRANTED)\n {\n isPermissionGranted = false;\n }\n\n return isPermissionGranted;\n }", "private boolean mayRequestStoragePermission() {\r\n\r\n if(Build.VERSION.SDK_INT < Build.VERSION_CODES.M)\r\n return true;\r\n\r\n if((checkSelfPermission(WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) &&\r\n (checkSelfPermission(CAMERA) == PackageManager.PERMISSION_GRANTED))\r\n return true;\r\n\r\n if((shouldShowRequestPermissionRationale(WRITE_EXTERNAL_STORAGE)) || (shouldShowRequestPermissionRationale(CAMERA))){\r\n Snackbar.make(mRlView, \"Los permisos son necesarios para poder usar la aplicación\",\r\n Snackbar.LENGTH_INDEFINITE).setAction(android.R.string.ok, new View.OnClickListener() {\r\n @TargetApi(Build.VERSION_CODES.M)\r\n @Override\r\n public void onClick(View v) {\r\n requestPermissions(new String[]{WRITE_EXTERNAL_STORAGE, CAMERA}, MY_PERMISSIONS);\r\n }\r\n });\r\n }else{\r\n requestPermissions(new String[]{WRITE_EXTERNAL_STORAGE, CAMERA}, MY_PERMISSIONS);\r\n }\r\n\r\n return false;\r\n }", "private void requestWriteStoragePermission() {\n if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)) {\n //show explanation to user\n Toast.makeText(this, \"Write storage permission is needed to save photos/videos\", Toast.LENGTH_LONG).show();\n //request the permission\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n WRITE_EXTERNAL_STORAGE_CODE);\n } else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n WRITE_EXTERNAL_STORAGE_CODE);\n\n // WRITE_EXTERNAL_STORAGE_CODE is an\n // app-defined int constant. The onRequestPermissionsResult method gets the code\n }\n }", "private boolean checkPermissions() {\n\n if (!isExternalStorageReadable() || !isExternalStorageReadable()) {\n Toast.makeText(this, \"This app only works on devices with usable external storage.\",\n Toast.LENGTH_SHORT).show();\n return false;\n }\n\n int permissionCheck = ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE);\n if (permissionCheck != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_PERMISSION_WRITE);\n return false;\n } else {\n return true;\n }\n }", "private boolean isReadStorageAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "private boolean checkPermissions() {\n if (!read_external_storage_granted ||\n !write_external_storage_granted ||\n !write_external_storage_granted) {\n Toast.makeText(getApplicationContext(), \"Die App braucht Zugang zur Kamera und zum Speicher.\", Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "boolean needsStoragePermission();", "private boolean checkPermission() {\r\n int result = ContextCompat.checkSelfPermission(UniformDrawer.this, android.Manifest.permission.WRITE_EXTERNAL_STORAGE);\r\n if (result == PackageManager.PERMISSION_GRANTED) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "boolean isWritePermissionGranted();", "private void acquireExternalStorageWritePermissionIfNeeded() {\n if (!appHasExternalStorageWritePermission()) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(CameraIntent.this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)) {\n\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(CameraIntent.this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n MY_PERMISSIONS_WRITE_EXTERNAL_STORAGE);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n }", "private boolean checkReadWritePermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) {\n return true;\n } else {\n ActivityCompat.requestPermissions(PanAadharResultActivity.this, new String[]{Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE}, 111);\n return false;\n }\n }\n\n return false;\n }", "public static boolean isWriteStorageAllowed(FragmentActivity act) {\n int result = ContextCompat.checkSelfPermission(act, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "private void requestPermission() {\r\n\r\n if (ActivityCompat.shouldShowRequestPermissionRationale(UniformDrawer.this, android.Manifest.permission.WRITE_EXTERNAL_STORAGE)) {\r\n Toast.makeText(UniformDrawer.this, \"Write External Storage permission allows us to do store images. Please allow this permission in App Settings.\", Toast.LENGTH_LONG).show();\r\n } else {\r\n ActivityCompat.requestPermissions(UniformDrawer.this, new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE}, PERMISSION_REQUEST_CODE);\r\n }\r\n }", "public boolean CheckPermissions() {\n int result = ContextCompat.checkSelfPermission(getApplicationContext(), WRITE_EXTERNAL_STORAGE);\r\n int result1 = ContextCompat.checkSelfPermission(getApplicationContext(), RECORD_AUDIO);\r\n return result == PackageManager.PERMISSION_GRANTED && result1 == PackageManager.PERMISSION_GRANTED;\r\n }", "private void requirePermission(){\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){\n String permission = Manifest.permission.WRITE_EXTERNAL_STORAGE;\n if (ActivityCompat.checkSelfPermission(MainActivity2.this, permission)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(MainActivity2.this, new String[]{permission},123);\n }\n }\n }", "private boolean hasExternalStorageReadWritePermission() {\n return ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED\n && ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED;\n }", "private boolean isReadStorageAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);\n int write = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED && write == PackageManager.PERMISSION_DENIED) {\n return true;\n } else {\n\n //If permission is not granted returning false\n return false;\n }\n }", "private boolean verifyStoragePermissions(Activity activity)\n {\n boolean permissionCheck = false;\n // Check if we have write permission\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED)\n {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n permissionCheck = false;\n }\n else\n {\n permissionCheck = true;\n }\n return permissionCheck;\n }", "private boolean checkSelfPermission() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE}, MainActivity.PERMISSION_REQ_ID_WRITE_EXTERNAL_STORAGE);\n return false;\n }\n return true;\n }", "private void requestStoragePermission() {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n PERMISSION_REQUEST_STORAGE);\n }", "public static boolean verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n\n return false;\n\n }\n else{\n return true;\n }\n\n }", "public void verifyStoragePermissions() {\n int permission = ActivityCompat.checkSelfPermission(ChatActivity.this, android.Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n ChatActivity.this,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n } else {\n // we already have permission, lets go ahead and call camera intent\n dispatchTakePictureIntent();\n }\n }", "private void requestStoragePermission(){\n requestPermissions(storagePermissions, STORAGE_REQUESTED_CODE);\n }", "private void permissionChecks() {\n if(Build.VERSION.SDK_INT < 23)\n return;\n\n if (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED || checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE}, 0);\n }\n }", "private void checkPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED){\n\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE,\n Manifest.permission.READ_EXTERNAL_STORAGE,\n Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.CAMERA}, 56);\n }\n }", "public void getStoragePermission(){\n if(ContextCompat.checkSelfPermission(this,Ubicacion.EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED){\n mStoragePermissionsGranted = true;\n Log.i(\"STORAGEPERMISSION\",\"permisos aceptados\");\n }else{\n Log.i(\"STORAGEPERMISSION\",\"permisos aun no se aceptan\");\n ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},Ubicacion.EXTERNAL_STORAGE_CODE);\n\n }\n }", "private void requestStoragePermission() {\r\n Dexter.withActivity(this)\r\n .withPermissions(\r\n Manifest.permission.READ_EXTERNAL_STORAGE,\r\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\r\n .withListener(new MultiplePermissionsListener() {\r\n @Override\r\n public void onPermissionsChecked(MultiplePermissionsReport report) {\r\n // check if all permissions are granted\r\n if (report.areAllPermissionsGranted()) {\r\n //Toast.makeText(getApplicationContext(), \"All permissions are granted!\", Toast.LENGTH_SHORT).show();\r\n\r\n Intent upload_intent=new Intent(MainActivity.this,UploadActivity.class);\r\n startActivity(upload_intent);\r\n }\r\n\r\n // check for permanent denial of any permission\r\n if (report.isAnyPermissionPermanentlyDenied()) {\r\n // show alert dialog navigating to Settings\r\n showSettingsDialog();\r\n }\r\n }\r\n\r\n @Override\r\n public void onPermissionRationaleShouldBeShown(List<PermissionRequest> permissions, PermissionToken token) {\r\n token.continuePermissionRequest();\r\n }\r\n }).\r\n withErrorListener(new PermissionRequestErrorListener() {\r\n @Override\r\n public void onError(DexterError error) {\r\n Toast.makeText(getApplicationContext(), \"Error occurred! \", Toast.LENGTH_SHORT).show();\r\n }\r\n })\r\n .onSameThread()\r\n .check();\r\n }", "public static boolean isWriteExternalStorageAllowed(FragmentActivity act) {\n //Getting the permission status\n int result = ContextCompat.checkSelfPermission(act, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "public void requestPermissionsIfNeeded() {\n ArrayList<String> requiredPermissions = new ArrayList<String>();\n checkIfPermissionGranted(requiredPermissions, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n checkIfPermissionGranted(requiredPermissions, Manifest.permission.CAMERA);\n\n if(requiredPermissions.size() > 0) {\n // Request Permissions Now\n ActivityCompat.requestPermissions(activity,\n requiredPermissions.toArray(new String[requiredPermissions.size()]),\n Constants.REQUEST_PERMISSIONS);\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_PERMISSION_SETTING) {\n checkPermission();\n }\n }", "void requestStoragePermission();", "public static void verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity,\n Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(activity, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n 123);\n }\n }", "public void verifyStoragePermissions(Activity activity) {\n String[] PERMISSIONS_STORAGE = {\n //Manifest.permission.READ_EXTERNAL_STORAGE, // requires api 16+\n Manifest.permission.WRITE_EXTERNAL_STORAGE\n };\n\n // check if we have write permission\n int permission = ActivityCompat\n .checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have automatic permission, so prompt the user.\n // onRequestPermissionsResult handles the answer from user.\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n } else {\n permissionGranted = true;\n }\n }", "public static boolean verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n return false;\n }\n return true;\n\n }", "public void verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity,\n Manifest.permission.WRITE_EXTERNAL_STORAGE);\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(activity, PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE);\n }\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n private void requestStoragePermission() {\n requestPermissions(storagePermissions, STORAGE_REQUEST_CODE);\n }", "public static void verifyStoragePermissions(Activity activity) {\n StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();\n StrictMode.setVmPolicy(builder.build());\n // Check if we have write permission\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n }", "private boolean checkPermissions() {\n if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED && ContextCompat.checkSelfPermission(this,\n android.Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n return false;\n\n } else {\n return true;\n }\n }", "private void checkForPermission() {\n if (ContextCompat.checkSelfPermission(QuizConfirmationActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n\n if (ActivityCompat.shouldShowRequestPermissionRationale(QuizConfirmationActivity.this\n , Manifest.permission.READ_EXTERNAL_STORAGE)) {\n Toast.makeText(QuizConfirmationActivity.this,\n \"Please provide the required storage permission in the app setting\", Toast.LENGTH_SHORT).show();\n\n } else {\n\n ActivityCompat.requestPermissions(QuizConfirmationActivity.this,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n\n PreqCode);\n }\n } else {\n imageSelect(QuizConfirmationActivity.this);\n }\n\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String permissions[], @NonNull int[] grantResults) {\n switch (requestCode) {\n case REQUEST_PERMISSION_WRITE:\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n permissionGranted = true;\n Toast.makeText(this, \"External storage permission granted.\",\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"You must grant permission!\", Toast.LENGTH_SHORT).show();\n }\n break;\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (requestCode == PERMISSION_REQUEST_CODE) {\n if (grantResults.length > 0) {\n\n // after requesting permissions we are showing\n // users a toast message of permission granted.\n boolean writeStorage = grantResults[0] == PackageManager.PERMISSION_GRANTED;\n boolean readStorage = grantResults[1] == PackageManager.PERMISSION_GRANTED;\n\n if (writeStorage && readStorage) {\n Toast.makeText(this, \"Permission Granted..\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Permission Denied.\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n }", "public void verifyPermission() {\n Permissions.check(this/*context*/, Manifest.permission.WRITE_EXTERNAL_STORAGE, null, new PermissionHandler() {\n @Override\n public void onGranted() {\n addVideoInFolder();\n setupExoPlayer();\n settingListener();\n }\n\n @Override\n public void onDenied(Context context, ArrayList<String> deniedPermissions) {\n super.onDenied(context, deniedPermissions);\n verifyPermission();\n }\n });\n\n }", "private void checkAndRequestForPermission() {\n if(ContextCompat.checkSelfPermission(RegisterActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED){\n if(ActivityCompat.shouldShowRequestPermissionRationale(RegisterActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE)){\n Toast.makeText(RegisterActivity.this, \"Please accept for required permission\",\n Toast.LENGTH_SHORT).show();\n }\n else{\n ActivityCompat.requestPermissions(RegisterActivity.this,\n new String []{Manifest.permission.READ_EXTERNAL_STORAGE},PReqCode);\n }\n }\n else{\n openGallery();\n }\n }", "public void allowManageStorage() {\n Intent intent = new Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION);\n intent.setData(Uri.parse(\"package:com.live.gitandroidmalware\"));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "private boolean requrstpermission(){\r\n if(ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED){\r\n return true;\r\n }\r\n else {\r\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, IMAGEREQUESTCODE);\r\n return false;\r\n }\r\n }", "private boolean isReadStorageAllowed() {\n //Getting the permission status\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "public static void verifyStoragePermissions(Activity activity) {\r\n // Check if we have write permission\r\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\r\n\r\n if (permission != PackageManager.PERMISSION_GRANTED) {\r\n // We don't have permission so prompt the user\r\n ActivityCompat.requestPermissions(\r\n activity,\r\n PERMISSIONS_STORAGE,\r\n REQUEST_EXTERNAL_STORAGE\r\n );\r\n }\r\n }", "public static void verifyStoragePermissions(Activity activity) {\r\n // Check if we have write permission\r\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\r\n\r\n if (permission != PackageManager.PERMISSION_GRANTED) {\r\n // We don't have permission so prompt the user\r\n ActivityCompat.requestPermissions(\r\n activity,\r\n PERMISSIONS_STORAGE,\r\n REQUEST_EXTERNAL_STORAGE\r\n );\r\n }\r\n }", "public void checkPermission() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO) +\n ContextCompat.checkSelfPermission(this, Manifest.permission.MODIFY_AUDIO_SETTINGS)\n != PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(this, perms, permsRequestCode);\n permissionGranted = false;\n } else {\n permissionGranted = true;\n }\n }", "protected void requestPermission() {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)) {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n PERMISSION_REQUEST_WRITE_EXTERNAL_STORATE);\n\n } else {\n // Request the permission. The result will be received in onRequestPermissionResult().\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n PERMISSION_REQUEST_WRITE_EXTERNAL_STORATE);\n }\n }", "private boolean checkPermission() {\n\n if ((ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) &&\n (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) &&\n (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) &&\n (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED)\n\n ) {\n\n // Permission is not granted\n return false;\n\n }\n return true;\n }", "private void chkPermission() {\n permissionStatus = getSharedPreferences(\"permissionStatus\", MODE_PRIVATE);\n\n if (ActivityCompat.checkSelfPermission(LoginActivity.this, permissionsRequired[0]) != PackageManager.PERMISSION_GRANTED\n || ActivityCompat.checkSelfPermission(LoginActivity.this, permissionsRequired[1]) != PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(LoginActivity.this, permissionsRequired[0])\n || ActivityCompat.shouldShowRequestPermissionRationale(LoginActivity.this, permissionsRequired[1])) {\n //Show Information about why you need the permission\n ActivityCompat.requestPermissions(LoginActivity.this, permissionsRequired, PERMISSION_CALLBACK_CONSTANT);\n\n } else if (permissionStatus.getBoolean(permissionsRequired[0], false)) {\n //Previously Permission Request was cancelled with 'Dont Ask Again',\n // Redirect to Settings after showing Information about why you need the permission\n sentToSettings = true;\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, REQUEST_PERMISSION_SETTING);\n Toast.makeText(getBaseContext(), \"Go to Permissions to Grant Camera, Phone and Storage\", Toast.LENGTH_LONG).show();\n\n } else {\n //just request the permission\n ActivityCompat.requestPermissions(LoginActivity.this, permissionsRequired, PERMISSION_CALLBACK_CONSTANT);\n }\n\n //txtPermissions.setText(\"Permissions Required\");\n\n SharedPreferences.Editor editor = permissionStatus.edit();\n editor.putBoolean(permissionsRequired[0], true);\n editor.commit();\n } else {\n //You already have the permission, just go ahead.\n //proceedAfterPermission();\n }\n\n }", "private boolean checkDeviceResourcePermissions() {\n // Check if the user agrees to access the microphone\n boolean hasMicrophonePermission = checkPermissions(\n Manifest.permission.RECORD_AUDIO,\n REQUEST_MICROPHONE);\n boolean hasWriteExternalStorage = checkPermissions(\n Manifest.permission.WRITE_EXTERNAL_STORAGE,\n REQUEST_EXTERNAL_PERMISSION);\n\n if (hasMicrophonePermission && hasWriteExternalStorage) {\n return true;\n } else {\n return false;\n }\n }", "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "private boolean checkPermissionFromDevice(int permissions) {\n\n switch (permissions) {\n case RECORD_AUDIO_PERMISSION_CODE: {\n // int variables will be 0 if permissions are not granted already\n int write_external_storage_result =\n ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n int record_audio_result =\n ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO);\n\n // returns true if both permissions are already granted\n return write_external_storage_result == PackageManager.PERMISSION_GRANTED &&\n record_audio_result == PackageManager.PERMISSION_GRANTED;\n }\n default:\n return false;\n }\n }", "public static void verifyStoragePermissions(Activity activity) {\n // Check if we have write permission\n int permission = ActivityCompat.checkSelfPermission(activity, android.Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n }", "public static void verifyStoragePermissions(Activity activity) {\n // Check if we have write permission\n int permission = ActivityCompat.checkSelfPermission(activity,\n Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(activity, PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE);\n }\n }", "private Boolean checkRuntimePermission() {\n List<String> permissionsNeeded = new ArrayList<String>();\n\n final List<String> permissionsList = new ArrayList<String>();\n if (!addPermission(permissionsList, Manifest.permission.READ_EXTERNAL_STORAGE))\n permissionsNeeded.add(\"Storage\");\n if (!addPermission(permissionsList, Manifest.permission.CAMERA))\n permissionsNeeded.add(\"Camera\");\n /* if (!addPermission(permissionsList, Manifest.permission.WRITE_CONTACTS))\n permissionsNeeded.add(\"Write Contacts\");*/\n\n if (permissionsList.size() > 0) {\n if (permissionsNeeded.size() > 0) {\n // Need Rationale\n String message = \"You need to grant access to \" + permissionsNeeded.get(0);\n for (int i = 1; i < permissionsNeeded.size(); i++)\n message = message + \", \" + permissionsNeeded.get(i);\n showMessageOKCancel(message,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n }\n });\n return false;\n }\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n return false;\n }\n return true;\n }", "public static void verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n }", "private boolean checkPermissions() {\n int res = ContextCompat.checkSelfPermission(getApplicationContext(),android.Manifest.permission.READ_EXTERNAL_STORAGE);\n if (res == PackageManager.PERMISSION_GRANTED)\n return true;\n else\n return false;\n }", "private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "private boolean checkDeviceSettings()\n {\n List<String> listPermissionNeeded= new ArrayList<>();\n boolean ret = true;\n for(String perm : permission)\n {\n if(ContextCompat.checkSelfPermission(this,perm)!= PackageManager.PERMISSION_GRANTED)\n listPermissionNeeded.add(perm);\n }\n if(!listPermissionNeeded.isEmpty())\n {\n ActivityCompat.requestPermissions(this,listPermissionNeeded.toArray(new String[listPermissionNeeded.size()]),REQUEST_PERMISSION);\n ret = false;\n }\n\n return ret;\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED && grantResults[1] == PackageManager.PERMISSION_GRANTED) {\n }else if (grantResults[0] == PackageManager.PERMISSION_DENIED || grantResults[1] == PackageManager.PERMISSION_DENIED){\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (shouldShowRequestPermissionRationale(Manifest.permission.READ_EXTERNAL_STORAGE)||shouldShowRequestPermissionRationale(Manifest.permission.WRITE_EXTERNAL_STORAGE)) {\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);\n dialogBuilder.setMessage(\"We need this permission for the app to function as designed.\")\n .setTitle(\"Important: We need your permission\");\n dialogBuilder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE}, 0);\n }\n }\n });\n requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.CAMERA}, 0);\n }else{\n }\n }\n }\n }", "public static void verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n }", "public static void verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n }", "public static void verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n }", "public static void verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n }", "public static void verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n }", "public static void verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n }", "public static void verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n int permission1 = ActivityCompat.checkSelfPermission(activity, Manifest.permission.READ_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n }", "private void checkPermission() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO)\n != PackageManager.PERMISSION_GRANTED) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this)\n .setMessage(getString(R.string.can_not_handle_calls))\n .setCancelable(false)\n .setPositiveButton(R.string.text_ok, (dialog, id) -> {\n requestPermission();\n });\n\n builder.create().show();\n } else {\n presenter.gotPermissions = true;\n }\n }", "@Override\n public void onClick(View view) {\n String platform = checkPlatform();\n if (platform.equals(\"Marshmallow\")) {\n Log.d(TAG, \"Runtime permission required\");\n //Step 2. check the permission\n boolean permissionStatus = checkPermission();\n if (permissionStatus) {\n //Permission already granted\n Log.d(TAG, \"Permission already granted\");\n } else {\n //Permission not granted\n //Step 3. Explain permission i.e show an explanation\n Log.d(TAG, \"Explain permission\");\n explainPermission();\n //Step 4. Request Permissions\n Log.d(TAG, \"Request Permission\");\n requestPermission();\n }\n\n } else {\n Log.d(TAG, \"onClick: Runtime permission not required\");\n }\n\n\n }", "public void checkPermissions(){\n //Check if some of the core permissions are not already granted\n if ((ContextCompat.checkSelfPermission(LoginActivity.this, Manifest.permission.ACCESS_FINE_LOCATION)!= PackageManager.PERMISSION_GRANTED)\n || (ContextCompat.checkSelfPermission(LoginActivity.this,Manifest.permission.CAMERA)!= PackageManager.PERMISSION_GRANTED)\n || (ContextCompat.checkSelfPermission(LoginActivity.this,Manifest.permission.WRITE_EXTERNAL_STORAGE)!= PackageManager.PERMISSION_GRANTED)) {\n Toast.makeText(this, \"Some permissions are not granted. Please enable them.\", Toast.LENGTH_SHORT).show();\n\n //If so, request the activation of this permissions\n ActivityCompat.requestPermissions(LoginActivity.this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CODE_ASK_PERMISSIONS);\n }\n else{\n //Permissions already granted\n }\n }", "private static boolean checkFsWritable() {\n String directoryName = Environment.getExternalStorageDirectory().toString() + \"/DCIM\";\n File directory = new File(directoryName);\n if (!directory.isDirectory()) {\n if (!directory.mkdirs()) {\n return false;\n }\n }\n return directory.canWrite();\n }", "void askForPermissions();", "public void requestPermissions() {\n readPermission = ContextCompat.checkSelfPermission(this,\n android.Manifest.permission.READ_EXTERNAL_STORAGE);\n writePermission = ContextCompat.checkSelfPermission(this,\n android.Manifest.permission.WRITE_EXTERNAL_STORAGE);\n if (!(readPermission == PERMISSION_REQUEST_READ_STORAGE)) {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.READ_EXTERNAL_STORAGE},\n PERMISSION_REQUEST_READ_STORAGE);\n } else {\n makeImageMandatory = true;\n }\n if (!(writePermission == PERMISSION_REQUEST_WRITE_STORAGE)) {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE},\n PERMISSION_REQUEST_WRITE_STORAGE);\n }\n }", "private void checkPermissions() {\n // if permissions are not granted for camera, and external storage, request for them\n if ((ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) ||\n (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED)) {\n ActivityCompat.\n requestPermissions(this,\n new String[]{Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CODE_CAMERA_PERMISSION);\n\n }\n }", "public static void verifyStoragePermissions(Activity activity) {\n int writePermission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n int readPermission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.READ_EXTERNAL_STORAGE);\n\n if (writePermission != PackageManager.PERMISSION_GRANTED || readPermission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n }", "public static void verifyStoragePermissions(Activity activity) {\n int writePermission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n int readPermission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.READ_EXTERNAL_STORAGE);\n\n if (writePermission != PackageManager.PERMISSION_GRANTED || readPermission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n }", "public static void verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(\n activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n }", "private void requestPermissions() {\n String[] PERMISSIONS = {android.Manifest.permission.WRITE_EXTERNAL_STORAGE};\r\n ActivityCompat.requestPermissions(this, PERMISSIONS, 112);\r\n\r\n ActivityCompat.requestPermissions(this,\r\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION,}, 1000);\r\n\r\n // Check for GPS usage permission\r\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED\r\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED) {\r\n\r\n ActivityCompat.requestPermissions(this,\r\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION,}, 1000);\r\n\r\n }\r\n }", "public boolean isAllGranted(){\n //PackageManager.PERMISSION_GRANTED\n return false;\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n public void requestPermissionLlamada() {\n //shouldShowRequestPermissionRationale es verdadero solamente si ya se había mostrado\n //anteriormente el dialogo de permisos y el usuario lo negó\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.CALL_PHONE)) {\n } else {\n //si es la primera vez se solicita el permiso directamente\n requestPermissions(new String[]{Manifest.permission.CALL_PHONE},\n MY_WRITE_EXTERNAL_STORAGE);\n }\n }", "private void checkPermission() {\n if (ContextCompat.checkSelfPermission(MainActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE);\n }\n }", "private void checkRuntimePermisson(boolean flag) {\n try {\n int hasRecordAudioPermission = 0;\n int hasWriteExternalStoragePermission = 0;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {\n hasWriteExternalStoragePermission = getActivity().checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n hasRecordAudioPermission = getActivity().checkSelfPermission(Manifest.permission.RECORD_AUDIO);\n if (hasWriteExternalStoragePermission != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CODE_ASK_PERMISSIONS_STORAGE);\n return;\n } else if (hasRecordAudioPermission != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.RECORD_AUDIO},\n REQUEST_CODE_ASK_PERMISSIONS_RECORD_AUDIO);\n return;\n }\n }\n if (flag) {\n intializeRecorder();\n }\n } catch (Exception e) {\n logException(e, \"MicManualFragment_checkRuntimePermisson()\");\n }\n\n }", "public void verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE},\n 1\n );\n }else{\n imageView.setVisibility(View.VISIBLE);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n //Passing request code to request for the permissions\n switch (requestCode) {\n case WRITE_REQUEST_CODE:\n if(grantResults[0] == PackageManager.PERMISSION_GRANTED){\n Toast.makeText(getApplicationContext(), \"Permission Granted \", //Toast Message\n Toast.LENGTH_SHORT).show();\n }\n else{\n Toast.makeText(getApplicationContext(), \"Permission Denied \", //Toast Message\n Toast.LENGTH_SHORT).show();\n\n }\n break;\n }\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n public void requestPermission() {\n //shouldShowRequestPermissionRationale es verdadero solamente si ya se había mostrado\n //anteriormente el dialogo de permisos y el usuario lo negó\n\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.SEND_SMS)) {\n } else {\n //si es la primera vez se solicita el permiso directamente\n requestPermissions(new String[]{Manifest.permission.SEND_SMS},\n MY_WRITE_EXTERNAL_STORAGE);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)\n {\n super .onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (requestCode == 101) {\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"Storage Permission Granted\", Toast.LENGTH_SHORT).show();\n }\n else {\n Toast.makeText(this, \"Storage Permission Denied\", Toast.LENGTH_SHORT).show();\n }\n }\n else if (requestCode == 100) {\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"Storage Permission Granted\", Toast.LENGTH_SHORT).show();\n }\n else {\n Toast.makeText(this, \"Storage Permission Denied\", Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if (requestCode == STORAGE_PERMISSION_CODE) {\n\n //If permission is granted\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n\n //Displaying a toast\n //Toast.makeText(this, \"Permission granted now you can read the storage\", Toast.LENGTH_LONG).show();\n } else {\n //Displaying another toast if permission is not granted\n Toast.makeText(this, \"Oops you just denied the permission\", Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if (requestCode == STORAGE_PERMISSION_CODE) {\n\n //If permission is granted\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n //Displaying a toast\n Toast.makeText(this, \"Permission granted now you can read the storage\", Toast.LENGTH_LONG).show();\n } else {\n //Displaying another toast if permission is not granted\n Toast.makeText(this, \"Oops you just denied the permission\", Toast.LENGTH_LONG).show();\n }\n }\n }", "private void askForPermission(){\n if (ContextCompat.checkSelfPermission(MainActivity.this,\n Manifest.permission.ACCESS_NOTIFICATION_POLICY)\n != PackageManager.PERMISSION_GRANTED) {\n Log.i(TAG,\"don't have permission\");\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this,\n Manifest.permission.ACCESS_NOTIFICATION_POLICY)) {\n Log.i(TAG,\"Asking for permission with explanation\");\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_NOTIFICATION_POLICY},\n MY_PERMISSIONS_MODIFY_AUDIO_SETTINGS);\n\n } else {\n Log.i(TAG,\"Asking for permission without explanation\");\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_NOTIFICATION_POLICY},\n MY_PERMISSIONS_MODIFY_AUDIO_SETTINGS);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n Log.i(TAG,\"Already had permission\");\n }\n\n }" ]
[ "0.80978596", "0.7868145", "0.7785685", "0.77488697", "0.7585788", "0.75046337", "0.7502121", "0.74765444", "0.7466121", "0.74404854", "0.74297476", "0.7409631", "0.7323182", "0.7323018", "0.73108876", "0.7241619", "0.72250366", "0.7206764", "0.71786505", "0.7166873", "0.71634144", "0.7151397", "0.7133669", "0.7098297", "0.70723855", "0.7066411", "0.70589274", "0.7033877", "0.70329434", "0.70230424", "0.70086545", "0.70077467", "0.7001553", "0.6995656", "0.69849694", "0.6979235", "0.6972027", "0.695112", "0.6946609", "0.69453883", "0.6931962", "0.692298", "0.6902539", "0.68799424", "0.68668854", "0.6859784", "0.6848759", "0.68411803", "0.68411803", "0.6831357", "0.6826882", "0.68208885", "0.68160194", "0.6814863", "0.6804411", "0.6796125", "0.6787151", "0.67848694", "0.6783976", "0.6783936", "0.67673045", "0.6760081", "0.6758551", "0.6757094", "0.6726353", "0.6726353", "0.6726353", "0.6726353", "0.6726353", "0.6726353", "0.672558", "0.67235297", "0.67178077", "0.6714966", "0.6711101", "0.66906375", "0.66881865", "0.6688143", "0.66777426", "0.66777426", "0.6674275", "0.6669539", "0.66363406", "0.6630584", "0.66155756", "0.66097856", "0.6602937", "0.66022366", "0.65960604", "0.6556408", "0.6552657", "0.65495443", "0.65376794" ]
0.6787792
61
Parse an NdefMessage include all record (textRecord, UriRecord)
public static List<ParsedNdefRecord> parse(NdefMessage message) { return getRecords(message.getRecords()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testParsing() throws Exception {\n Message message = new Message(\"8=FIX.4.2\\0019=40\\00135=A\\001\"\n + \"98=0\\001384=2\\001372=D\\001385=R\\001372=8\\001385=S\\00110=96\\001\",\n DataDictionaryTest.getDictionary());\n \n assertHeaderField(message, \"FIX.4.2\", BeginString.FIELD);\n assertHeaderField(message, \"40\", BodyLength.FIELD);\n assertEquals(\"wrong field value\", 40, message.getHeader().getInt(BodyLength.FIELD));\n assertHeaderField(message, \"A\", MsgType.FIELD);\n assertBodyField(message, \"0\", EncryptMethod.FIELD);\n assertTrailerField(message, \"96\", CheckSum.FIELD);\n NoMsgTypes valueMessageType = new Logon.NoMsgTypes();\n message.getGroup(1, valueMessageType);\n assertEquals(\"wrong value\", \"D\", valueMessageType.getString(RefMsgType.FIELD));\n assertEquals(\"wrong value\", \"R\", valueMessageType.getString(MsgDirection.FIELD));\n message.getGroup(2, valueMessageType);\n assertEquals(\"wrong value\", \"8\", valueMessageType.getString(RefMsgType.FIELD));\n assertEquals(\"wrong value\", \"S\", valueMessageType.getString(MsgDirection.FIELD));\n }", "public void testParsing2() throws Exception {\n String data = \"8=FIX.4.2\\0019=76\\001\";\n data += \"35=6\\001\";\n data += \"23=IDENTIFIER\\001\";\n data += \"28=N\\001\";\n data += \"55=MSFT\\001\";\n data += \"54=1\\001\";\n data += \"711=2\\001\";\n data += \"311=DELL\\001\";\n data += \"318=USD\\001\";\n data += \"311=IBM\\001\";\n data += \"318=CAD\\001\";\n data += \"10=037\\001\";\n Message message = new Message(data, DataDictionaryTest.getDictionary());\n \n assertHeaderField(message, \"FIX.4.2\", BeginString.FIELD);\n assertHeaderField(message, \"76\", BodyLength.FIELD);\n assertHeaderField(message, MsgType.INDICATION_OF_INTEREST, MsgType.FIELD);\n assertBodyField(message, \"IDENTIFIER\", IOIid.FIELD);\n assertTrailerField(message, \"037\", CheckSum.FIELD);\n IndicationOfInterest.NoUnderlyings valueMessageType = new IndicationOfInterest.NoUnderlyings();\n message.getGroup(1, valueMessageType);\n assertEquals(\"wrong value\", \"DELL\", valueMessageType.getString(UnderlyingSymbol.FIELD));\n assertEquals(\"wrong value\", \"USD\", valueMessageType.getString(UnderlyingCurrency.FIELD));\n message.getGroup(2, valueMessageType);\n assertEquals(\"wrong value\", \"IBM\", valueMessageType.getString(UnderlyingSymbol.FIELD));\n assertEquals(\"wrong value\", \"CAD\", valueMessageType.getString(UnderlyingCurrency.FIELD));\n }", "private void parseMessages() {\n\n // Find the first delimiter in the buffer\n int inx = rx_buffer.indexOf(DELIMITER);\n\n // If there is none, exit\n if (inx == -1)\n return;\n\n // Get the complete message\n String s = rx_buffer.substring(0, inx);\n\n // Remove the message from the buffer\n rx_buffer = rx_buffer.substring(inx + 1);\n\n // Send to read handler\n sendToReadHandler(s);\n\n // Look for more complete messages\n parseMessages();\n }", "private NdefMessage createNdefMessage(String content) {\n NdefRecord ndefRecord = createTextRecord(content);\n NdefMessage ndefMessage = new NdefMessage(new NdefRecord[]{ndefRecord});\n return ndefMessage;\n }", "public abstract Object parseRecord(String input);", "void handleParsedRecord(SampleRecord record);", "public Model parseRdf(Node xmlNotify) throws NoRdfEventException {\n \n \t\t// The ModelSet to hold the RDF data:\n \t\tModelSet rdf = EventHelpers.createEmptyModelSet();\n \t\t// The RDF syntax (serialization format):\n \t\tString syntax;\n \t\t\n \t\t//Evaluate XPath against Document itself\n \t\tXPath xPath = XPathFactory.newInstance().newXPath();\n \t\txPath.setNamespaceContext(nc);\n \t\tNode playMsgElement = null;\n \t\t\n \t\ttry {\n \t\t\t// Select the first [1] WSN_MSG_ELEMENT in document order:\n \t\t\tplayMsgElement = (Node)xPath.evaluate(\"(//\" + WSN_MSG_ELEMENT.getPrefix() + \":\" + WSN_MSG_ELEMENT.getLocalPart() + \")[1]\",\n \t\t\t\t\txmlNotify, XPathConstants.NODE);\n \t\t} catch (XPathExpressionException e) {\n \t\t\tthrow new NoRdfEventException(\"An event was receieved with no or wrong content element: \" + WSN_MSG_ELEMENT + \". \" + e.getMessage());\n \t\t}\n \n \t\tString playMsgContent = (playMsgElement != null && playMsgElement.getTextContent() != null) ? playMsgElement.getTextContent() : \"\";\n \t\tif (playMsgContent.isEmpty()) {\n \t\t\tthrow new NoRdfEventException(\"An event was receieved with no or empty content element: \" + WSN_MSG_ELEMENT);\n \t\t}\n \t\tReader r = new StringReader(playMsgContent);\n \n \t\t\n \t\t/*\n \t\t * Find the RDF syntax\n \t\t */\n \t\tNode syntaxAttribute = playMsgElement.getAttributes().getNamedItemNS(WSN_MSG_NS, WSN_MSG_SYNTAX_ATTRIBUTE);\n \t\tif (syntaxAttribute != null && !syntaxAttribute.getTextContent().isEmpty()) {\n \t\t\tsyntax = syntaxAttribute.getTextContent();\n \t\t}\n \t\telse {\n \t\t\tsyntax = WSN_MSG_DEFAULT_SYNTAX;\n \t\t}\n \t\tlogger.debug(\"Parsing an incoming event with syntax '\" + syntax + \"'\");\n \t\t\n \t\ttry {\n \t\t\trdf.readFrom(r, Syntax.forMimeType(syntax));\n \t\t} catch (ModelRuntimeException e) {\n \t\t\tthrow new NoRdfEventException(\"An exception occured while parsing RDF of an incoming event.\", e);\n \t\t} catch (IOException e) {\n \t\t\tthrow new NoRdfEventException(\"An exception occured while parsing RDF of an incoming event.\", e);\n \t\t}\n \t\t\n \t\t/*\n \t\t * A hack to select the event graph in the rare case when more than one\n \t\t * graph were returned:\n \t\t */\n \t\tModel model = rdf.getDefaultModel();\n \t\tlong max = model.size();\n \t\tIterator<Model> it = rdf.getModels();\n \t\t// For now, select the largest model\n \t\twhile (it.hasNext()) {\n \t\t\tModel temp = it.next();\n \t\t\tlong tempSize = temp.size();\n \t\t\tif (tempSize > max) {\n \t\t\t\tmax = tempSize;\n \t\t\t\tmodel = temp;\n \t\t\t}\n \t\t}\n \t\t\n \t\tif (max == 0) {\n \t\t\tthrow new NoRdfEventException(\"The RDF event had no attributes, or other features (zero quads).\");\n \t\t}\n \n \t\t// If there is no RDF context try to get it from the XML message\n \t\tif (model.getContextURI() == null) {\n \t\t\tNode graphAttribute = playMsgElement.getAttributes().getNamedItem(WSN_MSG_GRAPH_ATTRIBUTE);\n \t\t\tif (graphAttribute != null && !graphAttribute.getTextContent().isEmpty()) {\n \t\t\t\tModel temp = EventHelpers.createEmptyModel(graphAttribute.getTextContent());\n \t\t\t\ttemp.addModel(model);\n \t\t\t\tmodel = temp;\n \t\t\t}\n \n \t\t}\n \t\treturn EventHelpers.addNamespaces(model);\n \t}", "public RawMidiMessageParser(){\n parsers = new LinkedList<Parser>();\n addKnownParsers();\n }", "public Message(String unparsedData){\n\t\theaderLines = new ArrayList<ArrayList<String>>();\n\t\tString[] headFromEntity = unparsedData.split(\"\\n\\n\", 2);\n\t\tString[] msgInfo = headFromEntity[0].split(\"\\n\");\n\t\tString[] status = msgInfo[0].split(\" \");\n\t\t\n\t\tthis.messageInfo[0]= status[0];\t\t\t\t\t// Version\n\t\tthis.messageInfo[1] = status[1];\t\t\t\t// status code\n\t\tthis.messageInfo[2] = msgInfo[0].substring(2);\t// phrase\n\t\t\n\t\tfor (int i = 1; i < msgInfo.length; i++){\n\t\t\tstatus = msgInfo[i].split(\" \");\n\t\t\theaderLines.add(new ArrayList<String>());\n\t\t\theaderLines.get(headerLines.size()-1).add(status[0]);\n\t\t\theaderLines.get(headerLines.size()-1).add(msgInfo[i].substring(status[0].length()));\n\t\t}\n\t\t\n\t\tentity = headFromEntity[1].getBytes();\n\t}", "protected synchronized void parse() throws MessagingException {\n/* 481 */ if (this.parsed) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 487 */ this.ignoreMissingEndBoundary = PropUtil.getBooleanSystemProperty(\"mail.mime.multipart.ignoremissingendboundary\", true);\n/* */ \n/* */ \n/* 490 */ this.ignoreMissingBoundaryParameter = PropUtil.getBooleanSystemProperty(\"mail.mime.multipart.ignoremissingboundaryparameter\", true);\n/* */ \n/* */ \n/* 493 */ this.ignoreExistingBoundaryParameter = PropUtil.getBooleanSystemProperty(\"mail.mime.multipart.ignoreexistingboundaryparameter\", false);\n/* */ \n/* */ \n/* 496 */ this.allowEmpty = PropUtil.getBooleanSystemProperty(\"mail.mime.multipart.allowempty\", false);\n/* */ \n/* */ \n/* 499 */ this.bmparse = PropUtil.getBooleanSystemProperty(\"mail.mime.multipart.bmparse\", true);\n/* */ \n/* */ \n/* 502 */ if (this.bmparse) {\n/* 503 */ parsebm();\n/* */ \n/* */ return;\n/* */ } \n/* 507 */ InputStream in = null;\n/* 508 */ SharedInputStream sin = null;\n/* 509 */ long start = 0L, end = 0L;\n/* */ \n/* */ try {\n/* 512 */ in = this.ds.getInputStream();\n/* 513 */ if (!(in instanceof java.io.ByteArrayInputStream) && !(in instanceof BufferedInputStream) && !(in instanceof SharedInputStream))\n/* */ {\n/* */ \n/* 516 */ in = new BufferedInputStream(in); } \n/* 517 */ } catch (Exception ex) {\n/* 518 */ throw new MessagingException(\"No inputstream from datasource\", ex);\n/* */ } \n/* 520 */ if (in instanceof SharedInputStream) {\n/* 521 */ sin = (SharedInputStream)in;\n/* */ }\n/* 523 */ ContentType cType = new ContentType(this.contentType);\n/* 524 */ String boundary = null;\n/* 525 */ if (!this.ignoreExistingBoundaryParameter) {\n/* 526 */ String bp = cType.getParameter(\"boundary\");\n/* 527 */ if (bp != null)\n/* 528 */ boundary = \"--\" + bp; \n/* */ } \n/* 530 */ if (boundary == null && !this.ignoreMissingBoundaryParameter && !this.ignoreExistingBoundaryParameter)\n/* */ {\n/* 532 */ throw new MessagingException(\"Missing boundary parameter\");\n/* */ }\n/* */ \n/* */ try {\n/* 536 */ LineInputStream lin = new LineInputStream(in);\n/* 537 */ StringBuffer preamblesb = null;\n/* */ \n/* 539 */ String lineSeparator = null; String line;\n/* 540 */ while ((line = lin.readLine()) != null) {\n/* */ int i;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 548 */ for (i = line.length() - 1; i >= 0; i--) {\n/* 549 */ char c = line.charAt(i);\n/* 550 */ if (c != ' ' && c != '\\t')\n/* */ break; \n/* */ } \n/* 553 */ line = line.substring(0, i + 1);\n/* 554 */ if (boundary != null) {\n/* 555 */ if (line.equals(boundary))\n/* */ break; \n/* 557 */ if (line.length() == boundary.length() + 2 && line.startsWith(boundary) && line.endsWith(\"--\")) {\n/* */ \n/* 559 */ line = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ break;\n/* */ } \n/* 568 */ } else if (line.length() > 2 && line.startsWith(\"--\") && (\n/* 569 */ line.length() <= 4 || !allDashes(line))) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 577 */ boundary = line;\n/* */ \n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* */ \n/* 584 */ if (line.length() > 0) {\n/* */ \n/* */ \n/* 587 */ if (lineSeparator == null) {\n/* */ try {\n/* 589 */ lineSeparator = System.getProperty(\"line.separator\", \"\\n\");\n/* */ }\n/* 591 */ catch (SecurityException ex) {\n/* 592 */ lineSeparator = \"\\n\";\n/* */ } \n/* */ }\n/* */ \n/* 596 */ if (preamblesb == null)\n/* 597 */ preamblesb = new StringBuffer(line.length() + 2); \n/* 598 */ preamblesb.append(line).append(lineSeparator);\n/* */ } \n/* */ } \n/* */ \n/* 602 */ if (preamblesb != null) {\n/* 603 */ this.preamble = preamblesb.toString();\n/* */ }\n/* 605 */ if (line == null) {\n/* 606 */ if (this.allowEmpty) {\n/* */ return;\n/* */ }\n/* 609 */ throw new MessagingException(\"Missing start boundary\");\n/* */ } \n/* */ \n/* */ \n/* 613 */ byte[] bndbytes = ASCIIUtility.getBytes(boundary);\n/* 614 */ int bl = bndbytes.length;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 620 */ boolean done = false;\n/* */ \n/* 622 */ while (!done) {\n/* 623 */ MimeBodyPart part; InternetHeaders headers = null;\n/* 624 */ if (sin != null) {\n/* 625 */ start = sin.getPosition();\n/* */ \n/* 627 */ while ((line = lin.readLine()) != null && line.length() > 0);\n/* */ \n/* 629 */ if (line == null) {\n/* 630 */ if (!this.ignoreMissingEndBoundary) {\n/* 631 */ throw new MessagingException(\"missing multipart end boundary\");\n/* */ }\n/* */ \n/* 634 */ this.complete = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } else {\n/* 639 */ headers = createInternetHeaders(in);\n/* */ } \n/* */ \n/* 642 */ if (!in.markSupported()) {\n/* 643 */ throw new MessagingException(\"Stream doesn't support mark\");\n/* */ }\n/* 645 */ ByteArrayOutputStream buf = null;\n/* */ \n/* 647 */ if (sin == null) {\n/* 648 */ buf = new ByteArrayOutputStream();\n/* */ } else {\n/* 650 */ end = sin.getPosition();\n/* */ } \n/* 652 */ boolean bol = true;\n/* */ \n/* 654 */ int eol1 = -1, eol2 = -1;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ while (true) {\n/* 660 */ if (bol) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 666 */ in.mark(bl + 4 + 1000);\n/* */ int i;\n/* 668 */ for (i = 0; i < bl && \n/* 669 */ in.read() == (bndbytes[i] & 0xFF); i++);\n/* */ \n/* 671 */ if (i == bl) {\n/* */ \n/* 673 */ int b2 = in.read();\n/* 674 */ if (b2 == 45 && \n/* 675 */ in.read() == 45) {\n/* 676 */ this.complete = true;\n/* 677 */ done = true;\n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* 682 */ while (b2 == 32 || b2 == 9) {\n/* 683 */ b2 = in.read();\n/* */ }\n/* 685 */ if (b2 == 10)\n/* */ break; \n/* 687 */ if (b2 == 13) {\n/* 688 */ in.mark(1);\n/* 689 */ if (in.read() != 10) {\n/* 690 */ in.reset();\n/* */ }\n/* */ break;\n/* */ } \n/* */ } \n/* 695 */ in.reset();\n/* */ \n/* */ \n/* */ \n/* 699 */ if (buf != null && eol1 != -1) {\n/* 700 */ buf.write(eol1);\n/* 701 */ if (eol2 != -1)\n/* 702 */ buf.write(eol2); \n/* 703 */ eol1 = eol2 = -1;\n/* */ } \n/* */ } \n/* */ \n/* */ int b;\n/* 708 */ if ((b = in.read()) < 0) {\n/* 709 */ if (!this.ignoreMissingEndBoundary) {\n/* 710 */ throw new MessagingException(\"missing multipart end boundary\");\n/* */ }\n/* 712 */ this.complete = false;\n/* 713 */ done = true;\n/* */ \n/* */ \n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* */ \n/* 721 */ if (b == 13 || b == 10) {\n/* 722 */ bol = true;\n/* 723 */ if (sin != null)\n/* 724 */ end = sin.getPosition() - 1L; \n/* 725 */ eol1 = b;\n/* 726 */ if (b == 13) {\n/* 727 */ in.mark(1);\n/* 728 */ if ((b = in.read()) == 10) {\n/* 729 */ eol2 = b; continue;\n/* */ } \n/* 731 */ in.reset();\n/* */ } continue;\n/* */ } \n/* 734 */ bol = false;\n/* 735 */ if (buf != null) {\n/* 736 */ buf.write(b);\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 744 */ if (sin != null) {\n/* 745 */ part = createMimeBodyPartIs(sin.newStream(start, end));\n/* */ } else {\n/* 747 */ part = createMimeBodyPart(headers, buf.toByteArray());\n/* 748 */ } super.addBodyPart(part);\n/* */ } \n/* 750 */ } catch (IOException ioex) {\n/* 751 */ throw new MessagingException(\"IO Error\", ioex);\n/* */ } finally {\n/* */ try {\n/* 754 */ in.close();\n/* 755 */ } catch (IOException cex) {}\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 760 */ this.parsed = true;\n/* */ }", "void parse();", "@Override\n\tpublic NdefMessage createNdefMessage(NfcEvent event) {\n\t\t// Get Networkdata\n\t\t//HostageDBOpenHelper dbh = new HostageDBOpenHelper(this);\n\t\tDaoSession dbSession = HostageApplication.getInstances().getDaoSession();\n\t\tDAOHelper daoHelper = new DAOHelper(dbSession,this);\n\t\tArrayList<NetworkRecord> localNetworkInformation = daoHelper.getNetworkRecordDAO().getNetworkInformation();\n\t\tHashMap<String, Long> devices_local = daoHelper.getSyncDeviceDAO().getSyncDeviceHashMap();\n\t\tArrayList<SyncInfoRecord> syncInfo = daoHelper.getSyncInfoRecordDAO().getSyncInfo();\n\t\t\n\t\tNdefMessage msg = null;\n\t\ttry {\n\t\t\tNdefRecord netData = NdefRecord.createMime(\"application/dk.aau.netsec.hostage.\", serialize(localNetworkInformation));\n\t\t\tNdefRecord deviceData = NdefRecord.createMime(\"application/dk.aau.netsec.hostage.\", serialize(devices_local));\n\t\t\tNdefRecord syncData = NdefRecord.createMime(\"application/dk.aau.netsec.hostage.\", serialize(syncInfo));\n\t\t\tmsg = new NdefMessage(netData, deviceData, syncData);\n\t\t\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn msg;\n\t}", "public void parse() {\n }", "protected void logParsedMessage()\n {\n if (log.isInfoEnabled())\n {\n StringBuffer buf = new StringBuffer(\"Parsed EASMessage:\");\n buf.append(\"\\n OOB alert = \").append(isOutOfBandAlert());\n buf.append(\"\\n sequence_number = \").append(this.sequence_number);\n buf.append(\"\\n protocol_version = \").append(this.protocol_version);\n buf.append(\"\\n EAS_event_ID = \").append(this.EAS_event_ID);\n buf.append(\"\\n EAS_originator_code = \").append(this.EAS_originator_code).append(\": \").append(\n getOriginatorText());\n buf.append(\"\\n EAS_event_code = \").append(this.EAS_event_code);\n buf.append(\"\\n nature_of_activation_text = \").append(getNatureOfActivationText(new String[] { \"eng\" }));\n buf.append(\"\\n alert_message_time_remaining = \").append(getAlertMessageTimeRemaining()).append(\" seconds\");\n buf.append(\"\\n event_start_time = \").append(this.event_start_time);\n buf.append(\"\\n event_duration = \").append(this.event_duration).append(\" minutes\");\n buf.append(\"\\n alert_priority = \").append(getAlertPriority());\n buf.append(\"\\n details_OOB_source_ID = \").append(this.details_OOB_source_ID);\n buf.append(\"\\n details_major_channel_number = \").append(this.details_major_channel_number);\n buf.append(\"\\n details_minor_channel_number = \").append(this.details_minor_channel_number);\n buf.append(\"\\n audio_OOB_source_ID = \").append(this.audio_OOB_source_ID);\n buf.append(\"\\n alert_text = \").append(getAlertText(new String[] { \"eng\" }));\n buf.append(\"\\n location_code_count = \").append(this.m_locationCodes.size());\n for (int i = 0; i < this.m_locationCodes.size(); ++i)\n {\n buf.append(\"\\n location[\").append(i).append(\"]: \").append(this.m_locationCodes.get(i).toString());\n }\n buf.append(\"\\n exception_count = \").append(this.m_exceptions.size());\n for (int i = 0; i < this.m_exceptions.size(); ++i)\n {\n buf.append(\"\\n exception[\").append(i).append(\"]: \").append(this.m_exceptions.get(i).toString());\n }\n buf.append(\"\\n descriptor count = \").append(this.m_descriptors.size());\n for (int i = 0; i < this.m_descriptors.size(); ++i)\n {\n buf.append(\"\\n descriptor[\").append(i).append(\"]: \").append(this.m_descriptors.get(i).toString());\n }\n buf.append(\"\\n isAudioChannelAvailable = \").append(isAudioChannelAvailable());\n buf.append(\"\\n number of audio sources = \").append(this.m_audioFileSources.size());\n for (int i = 0; i < this.m_audioFileSources.size(); ++i)\n {\n buf.append(\"\\n audio file source[\").append(i).append(\"]: \").append(\n this.m_audioFileSources.get(i).toString());\n }\n buf.append(\"\\n m_detailsChannelLocator = \").append(this.m_detailsChannelLocator);\n buf.append(\"\\n m_eventReceivedTime = \").append(new Date(this.m_eventReceivedTime));\n buf.append(\"\\n m_eventStartTime = \").append(new Date(this.m_eventStartTime));\n buf.append(\"\\n m_eventExpirationTime = \").append(new Date(this.m_eventExpirationTime));\n if (log.isInfoEnabled())\n {\n log.info(buf.toString());\n }\n }\n }", "@Override\n\tpublic void parseBody() throws MessageParseException {\n\n\t}", "public void parse(byte[] buffer) {\n if (buffer == null) {\n MMLog.log(TAG, \"parse failed buffer = \" + null);\n return;\n }\n\n if (buffer.length >= 9) {\n this.msgHead = getIntVale(0, 2, buffer);\n if(this.msgHead != DEFAULT_HEAD) return;\n\n this.msgEnd = getIntVale(buffer.length - 1, 1, buffer);\n if(this.msgEnd != DEFAULT_END) return;\n\n this.msgID = getIntVale(2, 2, buffer);\n this.msgIndex = getIntVale(4, 1, buffer);\n this.msgLength = getIntVale(5, 2, buffer);\n this.msgCRC = getIntVale(buffer.length - 2, 1, buffer);\n\n } else {\n MMLog.log(TAG, \"parse failed length = \" + buffer.length);\n }\n if (msgLength <= 0) return;\n datas = new byte[msgLength];\n System.arraycopy(buffer, 7, datas, 0, this.msgLength);\n }", "public Model parseRdf(String stringNotify) throws NoRdfEventException {\n \t\ttry {\n \t\t\treturn parseRdf(XMLHelper.createDocumentFromString(stringNotify));\n \t\t} catch (Exception e) {\n \t\t\tthrow new NoRdfEventException(\"Exception while reading RDF event from XML message.\", e);\n \t\t}\n \t}", "private DAPMessage constructFrom(DatabaseTableRecord record) {\n return DAPMessage.fromXML(record.getStringValue(CommunicationNetworkServiceDatabaseConstants.DAP_MESSAGE_DATA_COLUMN_NAME));\n }", "public static MessageRequestOfUserModelNuLtuh91 parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n MessageRequestOfUserModelNuLtuh91 object = new MessageRequestOfUserModelNuLtuh91();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n if (reader.getAttributeValue(\n \"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\") != null) {\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n\n if (fullTypeName != null) {\n java.lang.String nsPrefix = null;\n\n if (fullTypeName.indexOf(\":\") > -1) {\n nsPrefix = fullTypeName.substring(0,\n fullTypeName.indexOf(\":\"));\n }\n\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\n \":\") + 1);\n\n if (!\"MessageRequestOfUserModelNuLtuh91\".equals(\n type)) {\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext()\n .getNamespaceURI(nsPrefix);\n\n return (MessageRequestOfUserModelNuLtuh91) ExtensionMapper.getTypeObject(nsUri,\n type, reader);\n }\n }\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n reader.next();\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"Body\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n object.setBody(null);\n reader.next();\n\n reader.next();\n } else {\n object.setBody(UserModel.Factory.parse(reader));\n\n reader.next();\n }\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"UserToken\").equals(reader.getName())) {\n object.setUserToken(Guid.Factory.parse(reader));\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement()) {\n // 2 - A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" + reader.getName());\n }\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static MessageRequestOfAnimalModelNuLtuh91 parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n MessageRequestOfAnimalModelNuLtuh91 object = new MessageRequestOfAnimalModelNuLtuh91();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n if (reader.getAttributeValue(\n \"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\") != null) {\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n\n if (fullTypeName != null) {\n java.lang.String nsPrefix = null;\n\n if (fullTypeName.indexOf(\":\") > -1) {\n nsPrefix = fullTypeName.substring(0,\n fullTypeName.indexOf(\":\"));\n }\n\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\n \":\") + 1);\n\n if (!\"MessageRequestOfAnimalModelNuLtuh91\".equals(\n type)) {\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext()\n .getNamespaceURI(nsPrefix);\n\n return (MessageRequestOfAnimalModelNuLtuh91) ExtensionMapper.getTypeObject(nsUri,\n type, reader);\n }\n }\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n reader.next();\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"Body\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n object.setBody(null);\n reader.next();\n\n reader.next();\n } else {\n object.setBody(AnimalModel.Factory.parse(reader));\n\n reader.next();\n }\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"UserToken\").equals(reader.getName())) {\n object.setUserToken(Guid.Factory.parse(reader));\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement()) {\n // 2 - A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" + reader.getName());\n }\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n String payload = new String(msg.getRecords()[0].getPayload());\n Toast.makeText(this, payload, Toast.LENGTH_LONG).show();\n Log.i(TAG, payload);\n }", "private synchronized void parsebm() throws MessagingException {\n/* 777 */ if (this.parsed) {\n/* */ return;\n/* */ }\n/* 780 */ InputStream in = null;\n/* 781 */ SharedInputStream sin = null;\n/* 782 */ long start = 0L, end = 0L;\n/* */ \n/* */ try {\n/* 785 */ in = this.ds.getInputStream();\n/* 786 */ if (!(in instanceof java.io.ByteArrayInputStream) && !(in instanceof BufferedInputStream) && !(in instanceof SharedInputStream))\n/* */ {\n/* */ \n/* 789 */ in = new BufferedInputStream(in); } \n/* 790 */ } catch (Exception ex) {\n/* 791 */ throw new MessagingException(\"No inputstream from datasource\", ex);\n/* */ } \n/* 793 */ if (in instanceof SharedInputStream) {\n/* 794 */ sin = (SharedInputStream)in;\n/* */ }\n/* 796 */ ContentType cType = new ContentType(this.contentType);\n/* 797 */ String boundary = null;\n/* 798 */ if (!this.ignoreExistingBoundaryParameter) {\n/* 799 */ String bp = cType.getParameter(\"boundary\");\n/* 800 */ if (bp != null)\n/* 801 */ boundary = \"--\" + bp; \n/* */ } \n/* 803 */ if (boundary == null && !this.ignoreMissingBoundaryParameter && !this.ignoreExistingBoundaryParameter)\n/* */ {\n/* 805 */ throw new MessagingException(\"Missing boundary parameter\");\n/* */ }\n/* */ \n/* */ try {\n/* 809 */ LineInputStream lin = new LineInputStream(in);\n/* 810 */ StringBuffer preamblesb = null;\n/* */ \n/* 812 */ String lineSeparator = null; String line;\n/* 813 */ while ((line = lin.readLine()) != null) {\n/* */ int k;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 821 */ for (k = line.length() - 1; k >= 0; k--) {\n/* 822 */ char c = line.charAt(k);\n/* 823 */ if (c != ' ' && c != '\\t')\n/* */ break; \n/* */ } \n/* 826 */ line = line.substring(0, k + 1);\n/* 827 */ if (boundary != null) {\n/* 828 */ if (line.equals(boundary))\n/* */ break; \n/* 830 */ if (line.length() == boundary.length() + 2 && line.startsWith(boundary) && line.endsWith(\"--\")) {\n/* */ \n/* 832 */ line = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ break;\n/* */ } \n/* 841 */ } else if (line.length() > 2 && line.startsWith(\"--\") && (\n/* 842 */ line.length() <= 4 || !allDashes(line))) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 850 */ boundary = line;\n/* */ \n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* */ \n/* 857 */ if (line.length() > 0) {\n/* */ \n/* */ \n/* 860 */ if (lineSeparator == null) {\n/* */ try {\n/* 862 */ lineSeparator = System.getProperty(\"line.separator\", \"\\n\");\n/* */ }\n/* 864 */ catch (SecurityException ex) {\n/* 865 */ lineSeparator = \"\\n\";\n/* */ } \n/* */ }\n/* */ \n/* 869 */ if (preamblesb == null)\n/* 870 */ preamblesb = new StringBuffer(line.length() + 2); \n/* 871 */ preamblesb.append(line).append(lineSeparator);\n/* */ } \n/* */ } \n/* */ \n/* 875 */ if (preamblesb != null) {\n/* 876 */ this.preamble = preamblesb.toString();\n/* */ }\n/* 878 */ if (line == null) {\n/* 879 */ if (this.allowEmpty) {\n/* */ return;\n/* */ }\n/* 882 */ throw new MessagingException(\"Missing start boundary\");\n/* */ } \n/* */ \n/* */ \n/* 886 */ byte[] bndbytes = ASCIIUtility.getBytes(boundary);\n/* 887 */ int bl = bndbytes.length;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 894 */ int[] bcs = new int[256];\n/* 895 */ for (int i = 0; i < bl; i++) {\n/* 896 */ bcs[bndbytes[i] & 0xFF] = i + 1;\n/* */ }\n/* */ \n/* 899 */ int[] gss = new int[bl];\n/* */ \n/* 901 */ for (int j = bl; j > 0; j--) {\n/* */ \n/* 903 */ int k = bl - 1; while (true) { if (k >= j) {\n/* */ \n/* 905 */ if (bndbytes[k] == bndbytes[k - j]) {\n/* */ \n/* 907 */ gss[k - 1] = j;\n/* */ \n/* */ k--;\n/* */ } \n/* */ \n/* */ break;\n/* */ } \n/* 914 */ while (k > 0)\n/* 915 */ gss[--k] = j; break; }\n/* */ \n/* 917 */ } gss[bl - 1] = 1;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 923 */ boolean done = false;\n/* */ \n/* 925 */ while (!done) {\n/* 926 */ int eolLen; MimeBodyPart part; InternetHeaders headers = null;\n/* 927 */ if (sin != null) {\n/* 928 */ start = sin.getPosition();\n/* */ \n/* 930 */ while ((line = lin.readLine()) != null && line.length() > 0);\n/* */ \n/* 932 */ if (line == null) {\n/* 933 */ if (!this.ignoreMissingEndBoundary) {\n/* 934 */ throw new MessagingException(\"missing multipart end boundary\");\n/* */ }\n/* */ \n/* 937 */ this.complete = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } else {\n/* 942 */ headers = createInternetHeaders(in);\n/* */ } \n/* */ \n/* 945 */ if (!in.markSupported()) {\n/* 946 */ throw new MessagingException(\"Stream doesn't support mark\");\n/* */ }\n/* 948 */ ByteArrayOutputStream buf = null;\n/* */ \n/* 950 */ if (sin == null) {\n/* 951 */ buf = new ByteArrayOutputStream();\n/* */ } else {\n/* 953 */ end = sin.getPosition();\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 965 */ byte[] inbuf = new byte[bl];\n/* 966 */ byte[] previnbuf = new byte[bl];\n/* 967 */ int inSize = 0;\n/* 968 */ int prevSize = 0;\n/* */ \n/* 970 */ boolean first = true;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ while (true) {\n/* 976 */ in.mark(bl + 4 + 1000);\n/* 977 */ eolLen = 0;\n/* 978 */ inSize = readFully(in, inbuf, 0, bl);\n/* 979 */ if (inSize < bl) {\n/* */ \n/* 981 */ if (!this.ignoreMissingEndBoundary) {\n/* 982 */ throw new MessagingException(\"missing multipart end boundary\");\n/* */ }\n/* 984 */ if (sin != null)\n/* 985 */ end = sin.getPosition(); \n/* 986 */ this.complete = false;\n/* 987 */ done = true;\n/* */ \n/* */ break;\n/* */ } \n/* */ int k;\n/* 992 */ for (k = bl - 1; k >= 0 && \n/* 993 */ inbuf[k] == bndbytes[k]; k--);\n/* */ \n/* */ \n/* 996 */ if (k < 0) {\n/* 997 */ eolLen = 0;\n/* 998 */ if (!first) {\n/* */ \n/* */ \n/* 1001 */ int b = previnbuf[prevSize - 1];\n/* 1002 */ if (b == 13 || b == 10) {\n/* 1003 */ eolLen = 1;\n/* 1004 */ if (b == 10 && prevSize >= 2) {\n/* 1005 */ b = previnbuf[prevSize - 2];\n/* 1006 */ if (b == 13)\n/* 1007 */ eolLen = 2; \n/* */ } \n/* */ } \n/* */ } \n/* 1011 */ if (first || eolLen > 0) {\n/* 1012 */ if (sin != null)\n/* */ {\n/* */ \n/* 1015 */ end = sin.getPosition() - bl - eolLen;\n/* */ }\n/* */ \n/* 1018 */ int b2 = in.read();\n/* 1019 */ if (b2 == 45 && \n/* 1020 */ in.read() == 45) {\n/* 1021 */ this.complete = true;\n/* 1022 */ done = true;\n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* 1027 */ while (b2 == 32 || b2 == 9) {\n/* 1028 */ b2 = in.read();\n/* */ }\n/* 1030 */ if (b2 == 10)\n/* */ break; \n/* 1032 */ if (b2 == 13) {\n/* 1033 */ in.mark(1);\n/* 1034 */ if (in.read() != 10)\n/* 1035 */ in.reset(); \n/* */ break;\n/* */ } \n/* */ } \n/* 1039 */ k = 0;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1049 */ int skip = Math.max(k + 1 - bcs[inbuf[k] & Byte.MAX_VALUE], gss[k]);\n/* */ \n/* 1051 */ if (skip < 2) {\n/* */ \n/* */ \n/* */ \n/* 1055 */ if (sin == null && prevSize > 1)\n/* 1056 */ buf.write(previnbuf, 0, prevSize - 1); \n/* 1057 */ in.reset();\n/* 1058 */ skipFully(in, 1L);\n/* 1059 */ if (prevSize >= 1) {\n/* */ \n/* 1061 */ previnbuf[0] = previnbuf[prevSize - 1];\n/* 1062 */ previnbuf[1] = inbuf[0];\n/* 1063 */ prevSize = 2;\n/* */ } else {\n/* */ \n/* 1066 */ previnbuf[0] = inbuf[0];\n/* 1067 */ prevSize = 1;\n/* */ }\n/* */ \n/* */ } else {\n/* */ \n/* 1072 */ if (prevSize > 0 && sin == null) {\n/* 1073 */ buf.write(previnbuf, 0, prevSize);\n/* */ }\n/* 1075 */ prevSize = skip;\n/* 1076 */ in.reset();\n/* 1077 */ skipFully(in, prevSize);\n/* */ \n/* 1079 */ byte[] tmp = inbuf;\n/* 1080 */ inbuf = previnbuf;\n/* 1081 */ previnbuf = tmp;\n/* */ } \n/* 1083 */ first = false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1090 */ if (sin != null) {\n/* 1091 */ part = createMimeBodyPartIs(sin.newStream(start, end));\n/* */ } else {\n/* */ \n/* 1094 */ if (prevSize - eolLen > 0) {\n/* 1095 */ buf.write(previnbuf, 0, prevSize - eolLen);\n/* */ }\n/* */ \n/* 1098 */ if (!this.complete && inSize > 0)\n/* 1099 */ buf.write(inbuf, 0, inSize); \n/* 1100 */ part = createMimeBodyPart(headers, buf.toByteArray());\n/* */ } \n/* 1102 */ super.addBodyPart(part);\n/* */ } \n/* 1104 */ } catch (IOException ioex) {\n/* 1105 */ throw new MessagingException(\"IO Error\", ioex);\n/* */ } finally {\n/* */ try {\n/* 1108 */ in.close();\n/* 1109 */ } catch (IOException cex) {}\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1114 */ this.parsed = true;\n/* */ }", "public NFA parse() throws ParseException;", "public static MessageResponseOfUserModelNuLtuh91 parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n MessageResponseOfUserModelNuLtuh91 object = new MessageResponseOfUserModelNuLtuh91();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n if (reader.getAttributeValue(\n \"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\") != null) {\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n\n if (fullTypeName != null) {\n java.lang.String nsPrefix = null;\n\n if (fullTypeName.indexOf(\":\") > -1) {\n nsPrefix = fullTypeName.substring(0,\n fullTypeName.indexOf(\":\"));\n }\n\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\n \":\") + 1);\n\n if (!\"MessageResponseOfUserModelNuLtuh91\".equals(\n type)) {\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext()\n .getNamespaceURI(nsPrefix);\n\n return (MessageResponseOfUserModelNuLtuh91) ExtensionMapper.getTypeObject(nsUri,\n type, reader);\n }\n }\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n reader.next();\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"Body\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n object.setBody(null);\n reader.next();\n\n reader.next();\n } else {\n object.setBody(UserModel.Factory.parse(reader));\n\n reader.next();\n }\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"Error\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.setError(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\n content));\n } else {\n reader.getElementText(); // throw away text nodes if any.\n }\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement()) {\n // 2 - A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" + reader.getName());\n }\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public String parseStringMsg(String msg){\n String parsedMsg = msg;\n //Make second mthd w/o second param\n //replacements is like Variable:Replacement i.e. PLAYERTRADESENTTO:playerReceiver.getName()\n return parsedMsg;\n }", "public void parse(String aMessage) {\r\n \r\n assert aMessage!=null;\r\n assert fBuffer!=null;\r\n \r\n iMessage=aMessage;//set parse string\r\n iIndex=0;//start parsing at first character\r\n iRootElement=parseRoot();//parse message\r\n \r\n }", "org.graylog.plugins.dnstap.protos.DnstapOuterClass.MessageOrBuilder getMessageOrBuilder();", "public abstract void parse() throws IOException;", "private static List<Message> parse(File f, String sourceUrlString) {\n \t\treturn null;\n \t}", "@Override\n\tpublic void parse() throws IOException {\n\t}", "private void parseForRecords() {\r\n\t\tApacheAgentExecutionContext c = (ApacheAgentExecutionContext)this.fContext;\r\n\t\tString text = c.getStatusPageContent();\r\n\t\tif(text == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tswitch(c.getApacheVersion()) {\r\n\t\t\tcase VERSION_IBM_6_0_X:\r\n\t\t\t\trecords = ApacheUtils.parseExtendedStatus_ibm_6_0(text);\r\n\t\t\tbreak;\r\n\t\t\tcase VERSION_ORACLE_1_3_X:\r\n\t\t\tcase VERSION_IBM_1_3_X:\r\n\t\t\t\trecords = ApacheUtils.parseExtendedStatus_1_3_x(text);\r\n\t\t\tbreak;\r\n\t\t\tcase VERSION_ORACLE_2_0_X:\r\n\t\t\tcase VERSION_IBM_2_0_X:\r\n\t\t\t\trecords = ApacheUtils.parseExtendedStatus_1_3_x(text);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tif(records == null) {\r\n\t\t\tfContext.error(new InvalidDataPattern());\r\n\t\t}\r\n\t}", "public MessageRecord() {\n super(Message.MESSAGE);\n }", "public static MsgInterface parse(\r\n javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n MsgInterface object = new MsgInterface();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n\r\n if (reader.getAttributeValue(\r\n \"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0,\r\n fullTypeName.indexOf(\":\"));\r\n }\r\n\r\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\r\n \":\") + 1);\r\n\r\n if (!\"MsgInterface\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext()\r\n .getNamespaceURI(nsPrefix);\r\n\r\n return (MsgInterface) ExtensionMapper.getTypeObject(nsUri,\r\n type, reader);\r\n }\r\n }\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n reader.next();\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"InputXml\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"InputXml\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"InputXml\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setInputXml(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement()) {\r\n // 2 - A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "public void parse() {\n MessageBlockLexer lexer = new MessageBlockBailLexer(name, postNumber, CharStreams.fromString(raw));\n\n // remove ConsoleErrorListener\n lexer.removeErrorListeners();\n\n // create a buffer of tokens pulled from the lexer\n CommonTokenStream tokens = new CommonTokenStream(lexer);\n\n // create a parser that feeds off the tokens buffer\n MessageBlockParser parser = new MessageBlockParser(tokens);\n\n // remove ConsoleErrorListener\n parser.removeErrorListeners();\n\n // Create/add custom error listener\n MessageBlockErrorListener errorListener = new MessageBlockErrorListener(name, topic, postNumber);\n parser.addErrorListener(errorListener);\n\n // Begin parsing at the block rule\n ParseTree tree = parser.block();\n\n // Check for parsing errors\n errorListener.throwIfErrorsPresent();\n\n LOGGER.trace(tree.toStringTree(parser));\n\n // Walk the tree\n ParseTreeWalker walker = new ParseTreeWalker();\n walker.walk(new Listener(this), tree);\n }", "public static final RFCMessageStructure parseInputStream (InputStream in) throws IOException\n {\n return parseInputStream(in, (-1L));\n }", "@Override\n public RecordType parseMetadata() {\n \n this.stationIndex = StationLookup.lookup(getStationId(this.filename));\n \n try {\n reader.mark(READ_AHEAD_LIMIT);\n String line = null;\n boolean headerRead = false;\n List<Variable> vars = null;\n while (null != (line = reader.readLine())) {\n Matcher matcher = headerLinePattern.matcher(line);\n if (matcher.matches()) {\n vars = headerVariables(matcher.group(1));\n reader.mark(READ_AHEAD_LIMIT);\n headerRead = true;\n }\n else if (headerRead) {\n matcher = dataLinePattern.matcher(line);\n if (matcher.matches()) {\n String date = matcher.group(1);\n Instant timestep = Instant.parse(date, getInputDateFormatter());\n this.baseDate = timestep;\n \n RecordType recordType = new RecordType(\"days since \" + baseDate.toString());\n for (Variable var : vars) {\n recordType.addType(var);\n }\n \n reader.reset();\n return recordType;\n }\n }\n }\n \n }\n catch (IOException ex) {\n LOG.debug(\"Error reading metadata\", ex);\n }\n return null;\n }", "public MidiCommand parse(javax.sound.midi.MidiMessage mm);", "public static MessageResponseOfAnimalModelNuLtuh91 parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n MessageResponseOfAnimalModelNuLtuh91 object = new MessageResponseOfAnimalModelNuLtuh91();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n if (reader.getAttributeValue(\n \"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\") != null) {\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n\n if (fullTypeName != null) {\n java.lang.String nsPrefix = null;\n\n if (fullTypeName.indexOf(\":\") > -1) {\n nsPrefix = fullTypeName.substring(0,\n fullTypeName.indexOf(\":\"));\n }\n\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\n \":\") + 1);\n\n if (!\"MessageResponseOfAnimalModelNuLtuh91\".equals(\n type)) {\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext()\n .getNamespaceURI(nsPrefix);\n\n return (MessageResponseOfAnimalModelNuLtuh91) ExtensionMapper.getTypeObject(nsUri,\n type, reader);\n }\n }\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n reader.next();\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"Body\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n object.setBody(null);\n reader.next();\n\n reader.next();\n } else {\n object.setBody(AnimalModel.Factory.parse(reader));\n\n reader.next();\n }\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"Error\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.setError(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\n content));\n } else {\n reader.getElementText(); // throw away text nodes if any.\n }\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement()) {\n // 2 - A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" + reader.getName());\n }\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "List<ParseData> parse(ParseDataSettings parseData);", "public Model parseRdf(Notify notify) throws NoRdfEventException {\n \t\tfor (NotificationMessageHolderType holder : notify.getNotificationMessage()) {\n \t\t\t// we support only one event message per notify envelope, return immediately:\n \t\t\treturn parseRdf(holder.getMessage().getAny());\n \t\t}\n \t\t// If we reach this point past the loop, fail:\n \t\tthrow new NoRdfEventException(\"An event was receieved without a <wsnt:Message> element.\");\n \t}", "protected abstract boolean startParsing(String message);", "public OesMessageRecord() {\n super(OesMessage.OES_MESSAGE);\n }", "private Element parseRoot() {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n \r\n while (peek()<=' ') next();//skip whitespace\r\n switch (peek()) {//switch on next character\r\n case 'n': return new ScalarElement(parseNull());//parse null \r\n case 'f': return new ScalarElement(parseBoolean());//parse false\r\n case 't': return new ScalarElement(parseBoolean());//parse true\r\n case '[': return new ArrayElement(parseArray());//parse array \r\n case '{': return new ObjectElement(parseObject());//parse object\r\n default : throw new RuntimeException(\"Invalid syntax : \"+context());//ruh roh\r\n }//switch on next character\r\n \r\n }", "public void parse(){\r\n\t\t//StringTokenizer st = new StringTokenizer(nmeaSentence,\",\");\r\n\t\tst = new StringTokenizer(nmeaSentence,\",\");\r\n\t\tString sv = \"\";\r\n\r\n\t\ttry{\r\n\t\t\tnmeaHeader = st.nextToken();//Global Positioning System Fix Data\r\n\t\t\tmode = st.nextToken();\r\n\t\t\tmodeValue = Integer.parseInt(st.nextToken());\r\n\r\n\t\t\tfor(int i=0;i<=11;i++){\r\n\t\t\t\tsv = st.nextToken();\r\n\t\t\t\tif(sv.length() > 0){\r\n\t\t\t\t\tSV[i] = Integer.parseInt(sv);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSV[i] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tPDOP = Float.parseFloat(st.nextToken());\r\n\t\t\tHDOP = Float.parseFloat(st.nextToken());\r\n\t\t\tVDOP = Float.parseFloat(st.nextToken());\r\n\r\n\t\t}catch(NoSuchElementException e){\r\n\t\t\t//Empty\r\n\t\t}catch(NumberFormatException e2){\r\n\t\t\t//Empty\r\n\t\t}\r\n\r\n\t}", "private Record parseRecord(final String[] record) {\n final Record object = this.recordFactory.createRecord(this.recordDefinition);\n for (int i = 0; i < this.recordDefinition.getFieldCount(); i++) {\n String value = null;\n if (i < record.length) {\n value = record[i];\n if (value != null) {\n final DataType dataType = this.recordDefinition.getFieldType(i);\n final Object convertedValue = StringConverterRegistry.toObject(\n dataType, value);\n object.setValue(i, convertedValue);\n }\n }\n }\n if (this.hasPointFields) {\n final Double x = Maps.getDouble(object, this.pointXFieldName);\n final Double y = Maps.getDouble(object, this.pointYFieldName);\n if (x != null && y != null) {\n final Geometry geometry = this.geometryFactory.point(x, y);\n object.setGeometryValue(geometry);\n }\n }\n return object;\n }", "public void parsePerformanceMeasurements(RawMessage msg)\n\t\tthrows HeaderParseException\n\t{\n\t\tbeginTimeHasTz = false;\n\t\tbyte data[] = msg.getData();\n\t\tint len = data.length;\n\n\t\tboolean inNotes = false;\n\t\tString beginDate = null;\n\t\tString beginTime = null;\n\t\tString endTime = null;\n\t\tString station = null;\n\t\tString device = null;\n\t\tStringBuffer notes = new StringBuffer();\n\t\tint e=0;\n\t\tfor(int p=0; p<len-3; p = e)\n\t\t{\n\t\t\t// Find the beginning of the next line.\n\t\t\tfor(e = p; e < len && data[e] != (byte)'\\n'; e++);\n\t\t\te++;\n\n\t\t\t// Check for start of new tag.\n\t\t\tif (data[p] == (byte)'/' && data[p+1] == (byte)'/')\n\t\t\t{\n\t\t\t\tp += 2;\n\t\t\t\tString s = new String(data, p, e-p);\n\t\t\t\ts = s.toUpperCase().trim();\n\t\t\t\tif (s.length() == 0)\n\t\t\t\t\tcontinue;\t// Skip comment line with just '//'\n\t\t\t\tif (s.startsWith(\"STATION\"))\n\t\t\t\t{\n\t\t\t\t\tString val = s.substring(7).trim();\n\t\t\t\t\tmsg.setPM(STATION, new Variable(val));\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"DEVICE END TIME\")) // do before DEVICE !!\n\t\t\t\t{\n\t\t\t\t\tif (endTime == null)\n\t\t\t\t\t\tendTime = s.substring(15).trim();\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"DEVICE\"))\n\t\t\t\t{\n\t\t\t\t\tString val = s.substring(6).trim();\n\t\t\t\t\tint hyphen = val.indexOf('-');\n\t\t\t\t\tint space = val.indexOf(' ');\n\t\t\t\t\tif (hyphen >= 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (space > 0 && hyphen < space)\n\t\t\t\t\t\t\tval = val.substring(0, space);\n\t\t\t\t\t\telse if (space > 0 && space < hyphen)\n\t\t\t\t\t\t\tval = val.substring(0, space) + \"-\"\n\t\t\t\t\t\t\t\t+ val.substring(space+1);\n\t\t\t\t\t}\n\t\t\t\t\telse // no hyphen\n\t\t\t\t\t{\n\t\t\t\t\t\tif (space >= 0)\n\t\t\t\t\t\t\tval = val.substring(0,space) + \"-\"\n\t\t\t\t\t\t\t\t+ val.substring(space+1);\n\t\t\t\t\t}\n\t\t\t\t\tspace = val.indexOf(' ');\n\t\t\t\t\tif (space > 0)\n\t\t\t\t\t\tval = val.substring(0,space);\n\t\t\t\t\tmsg.setPM(DEVICE, new Variable(val));\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"SOURCE\"))\n\t\t\t\t{\n\t\t\t\t\tString val = s.substring(6).trim();\n\t\t\t\t\tmsg.setPM(SOURCE, new Variable(val));\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"BEGIN DATE\"))\n\t\t\t\t{\n\t\t\t\t\tbeginDate = s.substring(10).trim();\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"BEGIN TIME\"))\n\t\t\t\t{\n\t\t\t\t\tbeginTime = s.substring(10).trim();\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"ACTUAL END TIME\"))\n\t\t\t\t{\n\t\t\t\t\tendTime = s.substring(15).trim();\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"EDL NOTES\")\n\t\t\t\t || s.startsWith(\"PFC NOTES\")\n\t\t\t\t || s.startsWith(\"DEVICE NOTES\"))\n\t\t\t\t{\n\t\t\t\t\tinNotes = true;\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"DATA\"))\n\t\t\t\t{\n\t\t\t\t\tinNotes = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (inNotes)\n\t\t\t\tnotes.append(new String(data, p, e-p));\n\t\t\telse // this is the end of the header!\n\t\t\t{\n\t\t\t\tmsg.setHeaderLength(p);\n\t\t\t\tmsg.setPM(MESSAGE_LENGTH, new Variable((long)(len - p)));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (beginDate != null)\n\t\t{\n\t\t\tif (beginTime != null)\n\t\t\t{\n\t\t\t\t// begin time can optionally contain time zone.\n\t\t\t\tint idx = beginTime.lastIndexOf('S');\n\t\t\t\tif (idx != -1)\n\t\t\t\t{\n\t\t\t\t\tbeginTimeHasTz = true;\n\t\t\t\t\tbeginTime = beginTime.substring(0, idx) + \"00\";\n\t\t\t\t}\n\t\t\t\telse // Add dummy offset to UTC\n\t\t\t\t{\n\t\t\t\t\tbeginTimeHasTz = false;\n\t\t\t\t\tbeginTime += \" +0000\";\n\t\t\t\t}\n\t\t\t\tbeginDate += beginTime;\n\t\t\t}\n\t\t\telse\n\t\t\t\tbeginDate += \"0000 +0000\"; // HHMM & TZ\n\t\t\ttry\n\t\t\t{\n\t\t\t\tLogger.instance().debug1(\"Parsing begin date/time '\"\n\t\t\t\t\t+ beginDate + \"'\");\n\t\t\t\tDate d = beginDateTimeSdf.parse(beginDate);\n\t\t\t\tmsg.setPM(BEGIN_TIME_STAMP, new Variable(d));\n\t\t\t}\n\t\t\tcatch(ParseException ex)\n\t\t\t{\n\t\t\t\tLogger.instance().log(Logger.E_FAILURE, \n\t\t\t\t\t\"Unparsable begin time '\" + beginTime + \"': Ignored.\");\n\t\t\t}\n\t\t}\n\n\t\tif (endTime != null)\n\t\t{\n\t\t\t// Check for start of timezone.\n\t\t\tint idx = endTime.indexOf('-');\n\t\t\tif (idx == -1)\n\t\t\t\tidx = endTime.indexOf('+');\n\n\t\t\tif (idx == -1) // No time zone at all, add one.\n\t\t\t\tendTime += \" +0000\";\n\t\t\telse\n\t\t\t{\n\t\t\t\tint i = ++idx; // idx points to first digit after sign.\n\n\t\t\t\tfor(; i < endTime.length() \n\t\t\t\t\t&& i-idx <= 4\n\t\t\t\t\t&& Character.isDigit(endTime.charAt(i)); i++);\n\t\t\t\t// i now points to first non-digit after TZ\n\n\t\t\t\tswitch(i-idx) // i-idx is # of digits after sign.\n\t\t\t\t{\n\t\t\t\tcase 0: \n\t\t\t\t\tendTime = endTime.substring(0,idx) + \"0000\"; \n\t\t\t\t\tbreak;\n\t\t\t\tcase 1: // 1 digit hour? move to position 2 in HHMM:\n\t\t\t\t\tendTime = endTime.substring(0,idx) + \"0\" \n\t\t\t\t\t\t+ endTime.charAt(idx) + \"00\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: // HH only, add MM\n\t\t\t\t\tendTime = endTime.substring(0,i) + \"00\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3: // HHM, ad lcd\n\t\t\t\t\tendTime = endTime.substring(0,i) + \"0\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: // complete. Just truncate at 4 digits.\n\t\t\t\t\tendTime = endTime.substring(0, idx+4);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tmsg.setPM(END_TIME_STAMP, new Variable(\n\t\t\t\t\tendTimeSdf.parse(endTime)));\n\t\t\t}\n\t\t\tcatch(ParseException ex)\n\t\t\t{\n\t\t\t\tLogger.instance().log(Logger.E_FAILURE, \"Unparsable end time '\"\n\t\t\t\t\t+ endTime + \"': Ignored.\");\n\t\t\t}\n\t\t}\n\n\t\tif (notes.length() > 0)\n\t\t{\n\t\t\tmsg.setPM(EDL_NOTES, new Variable(notes.toString()));\n\t\t}\n\n\t\t// Construct medium ID by concatenating station to device.\n\t\tif (msg.getMediumId() == null)\n\t\t{\n\t\t\tString mid = System.getProperty(\"MEDIUMID\");\n\t\t\tif (mid == null)\n\t\t\t{\n\t\t\t\tVariable v = msg.getPM(STATION);\n\t\t\t\tif (v == null)\n\t\t\t\t\tthrow new HeaderParseException(\"No STATION in EDL file.\");\n\t\t\t\tmid = v.getStringValue();\n\t\t\t\tv = msg.getPM(DEVICE);\n\t\t\t\tif (v != null)\n\t\t\t\t\tmid = mid + \"-\" + v.getStringValue();\n\t\t\t}\n\t\t\tLogger.instance().log(Logger.E_DEBUG3,\n\t\t\t\t\"Setting EDL File Medium ID to '\" + mid + \"'\");\n\t\t\tmsg.setMediumId(mid);\n\t\t}\n\t}", "public static MessageRequestOfUserModelNuLtuh91E parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n MessageRequestOfUserModelNuLtuh91E object = new MessageRequestOfUserModelNuLtuh91E();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n\n return object;\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement()) {\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"MessageRequestOfUserModelNuLtuh91\").equals(\n reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n object.setMessageRequestOfUserModelNuLtuh91(null);\n reader.next();\n } else {\n object.setMessageRequestOfUserModelNuLtuh91(MessageRequestOfUserModelNuLtuh91.Factory.parse(\n reader));\n }\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static MessageRequestOfAnimalModelNuLtuh91E parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n MessageRequestOfAnimalModelNuLtuh91E object = new MessageRequestOfAnimalModelNuLtuh91E();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n\n return object;\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement()) {\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"MessageRequestOfAnimalModelNuLtuh91\").equals(\n reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n object.setMessageRequestOfAnimalModelNuLtuh91(null);\n reader.next();\n } else {\n object.setMessageRequestOfAnimalModelNuLtuh91(MessageRequestOfAnimalModelNuLtuh91.Factory.parse(\n reader));\n }\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "private void parseCompleteReqMessage() {\r\n byte result = _partialMessage.get(0);\r\n byte opCode = _partialMessage.get(1);\r\n byte numberOfParams = _partialMessage.get(2);\r\n\r\n /* cursor of bytes within 'message'. Parameters start at position 2 */\r\n int messageIndex = 3;\r\n int availableChars = (int) _partialMessage.size();\r\n\r\n List<String> paramList = new ArrayList<>();\r\n String param;\r\n\r\n for (byte i = 0; (i < numberOfParams) && (messageIndex < availableChars); i++) {\r\n param = \"\";\r\n\r\n /* collect data up to terminator */\r\n while ((messageIndex < availableChars) &&\r\n (_partialMessage.get(messageIndex) != '\\0')) {\r\n param += (char)((byte)(_partialMessage.get(messageIndex)));\r\n ++ messageIndex;\r\n }\r\n\r\n /* skip after terminator */\r\n if (messageIndex < availableChars) {\r\n ++ messageIndex;\r\n }\r\n\r\n paramList.add( param);\r\n }\r\n\r\n _replyDispatcher.onReplyReceivedForRequest(opCode, result, paramList);\r\n }", "private PeerProtocolMessage readNormalMessage() throws IOException{\r\n\t\tbyte[]length=new byte[4];\r\n\t\tthis.inputStream.read(length);\r\n\t\tint lengthInt=ToolKit.bigEndianBytesToInt(length, 0);\r\n\t\tbyte[]message= new byte[lengthInt];\r\n\t\tthis.inputStream.read(message);\r\n\t\tbyte[]result=new byte[length.length+message.length];\r\n\t\tSystem.arraycopy(length, 0, result, 0, length.length);\r\n\t\tSystem.arraycopy(message, 0, result, length.length, message.length);\r\n\t\treturn PeerProtocolMessage.parseMessage(result);\r\n\t}", "public abstract void parseReport();", "SAPL parse(InputStream saplInputStream);", "public static Message parse(String messageData)\n {\n // Split by new line\n String[] messageParts = messageData.split(\"\\n\");\n\n // Assume first line is the action\n int action = Integer.parseInt(messageParts[0]);\n\n // And second line is the client\n int clientID = Integer.parseInt(messageParts[1]);\n\n // Set default for recipient\n int recipient = -1;\n\n // If the 3rd line is not a new line\n if(messageParts[2] != \"\\n\") {\n // We assume it's the recipient ID\n recipient = Integer.parseInt(messageParts[2]);\n }\n\n // The last part is always the message body\n String body = messageParts[messageParts.length - 1];\n return new Message(action, clientID, recipient, body);\n }", "public static final RFCMessageStructure parseInputStream (InputStream in, StructureParserOutputStream out) throws IOException\n {\n return parseInputStream(in, out, (-1L));\n }", "SAPL parse(String saplDefinition);", "Collection<MeterRead> parseSimpleNem12(File simpleNem12File) throws SimpleNemParserException;", "public NdefMessage createNdefMessage(NfcEvent arg0) {\n\t\treturn null;\n\t}", "org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message getMessage();", "public SIPMessage() {\n this.unrecognizedHeaders = new LinkedList();\n this.headers = new LinkedList();\n nameTable = new Hashtable();\n \ttry {\n \tthis.attachHeader(new ContentLength(0),false);\n \t} catch (Exception ex) {}\n }", "public POP3 parse(String s) {\n\n\n POP3 msg = new POP3();\n msg.setData(s);\n if (s.getBytes().length > 255) {\n if (s.contains(\"\\r\\n.\\r\\n\")) {\n msg.setDone();\n }\n } else if (!s.equals(\"+OK\\r\\n\")) {\n msg.setDone();\n }\n\n\n return msg;\n }", "public org.jivesoftware.smackx.xdata.packet.DataForm parse(org.xmlpull.v1.XmlPullParser r6, int r7) {\n /*\n r5 = this;\n r0 = \"\";\n r1 = \"type\";\n r0 = r6.getAttributeValue(r0, r1);\n r0 = org.jivesoftware.smackx.xdata.packet.DataForm.Type.fromString(r0);\n r1 = new org.jivesoftware.smackx.xdata.packet.DataForm;\n r1.<init>(r0);\n L_0x0011:\n r0 = r6.next();\n switch(r0) {\n case 2: goto L_0x0021;\n case 3: goto L_0x0019;\n default: goto L_0x0018;\n };\n L_0x0018:\n goto L_0x0011;\n L_0x0019:\n r0 = r6.getDepth();\n if (r0 == r7) goto L_0x0020;\n L_0x001f:\n goto L_0x0011;\n L_0x0020:\n return r1;\n L_0x0021:\n r0 = r6.getName();\n r2 = r6.getNamespace();\n r3 = -1;\n r4 = r0.hashCode();\n switch(r4) {\n case -427039533: goto L_0x006e;\n case 3242771: goto L_0x0064;\n case 3433103: goto L_0x005a;\n case 97427706: goto L_0x0050;\n case 107944136: goto L_0x0046;\n case 110371416: goto L_0x003c;\n case 757376421: goto L_0x0032;\n default: goto L_0x0031;\n };\n L_0x0031:\n goto L_0x0077;\n L_0x0032:\n r4 = \"instructions\";\n r0 = r0.equals(r4);\n if (r0 == 0) goto L_0x0077;\n L_0x003a:\n r3 = 0;\n goto L_0x0077;\n L_0x003c:\n r4 = \"title\";\n r0 = r0.equals(r4);\n if (r0 == 0) goto L_0x0077;\n L_0x0044:\n r3 = 1;\n goto L_0x0077;\n L_0x0046:\n r4 = \"query\";\n r0 = r0.equals(r4);\n if (r0 == 0) goto L_0x0077;\n L_0x004e:\n r3 = 5;\n goto L_0x0077;\n L_0x0050:\n r4 = \"field\";\n r0 = r0.equals(r4);\n if (r0 == 0) goto L_0x0077;\n L_0x0058:\n r3 = 2;\n goto L_0x0077;\n L_0x005a:\n r4 = \"page\";\n r0 = r0.equals(r4);\n if (r0 == 0) goto L_0x0077;\n L_0x0062:\n r3 = 6;\n goto L_0x0077;\n L_0x0064:\n r4 = \"item\";\n r0 = r0.equals(r4);\n if (r0 == 0) goto L_0x0077;\n L_0x006c:\n r3 = 3;\n goto L_0x0077;\n L_0x006e:\n r4 = \"reported\";\n r0 = r0.equals(r4);\n if (r0 == 0) goto L_0x0077;\n L_0x0076:\n r3 = 4;\n L_0x0077:\n switch(r3) {\n case 0: goto L_0x00bf;\n case 1: goto L_0x00b6;\n case 2: goto L_0x00ad;\n case 3: goto L_0x00a4;\n case 4: goto L_0x009b;\n case 5: goto L_0x0088;\n case 6: goto L_0x007b;\n default: goto L_0x007a;\n };\n L_0x007a:\n goto L_0x0011;\n L_0x007b:\n r0 = \"http://jabber.org/protocol/xdata-layout\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x0011;\n L_0x0083:\n r0 = org.jivesoftware.smackx.xdatalayout.provider.DataLayoutProvider.parse(r6);\n goto L_0x0096;\n L_0x0088:\n r0 = \"jabber:iq:roster\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x0011;\n L_0x0090:\n r0 = org.jivesoftware.smack.roster.provider.RosterPacketProvider.INSTANCE;\n r0 = r0.parse(r6);\n L_0x0096:\n r1.addExtensionElement(r0);\n goto L_0x0011;\n L_0x009b:\n r0 = parseReported(r6);\n r1.setReportedData(r0);\n goto L_0x0011;\n L_0x00a4:\n r0 = parseItem(r6);\n r1.addItem(r0);\n goto L_0x0011;\n L_0x00ad:\n r0 = parseField(r6);\n r1.addField(r0);\n goto L_0x0011;\n L_0x00b6:\n r0 = r6.nextText();\n r1.setTitle(r0);\n goto L_0x0011;\n L_0x00bf:\n r0 = r6.nextText();\n r1.addInstruction(r0);\n goto L_0x0011;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jivesoftware.smackx.xdata.provider.DataFormProvider.parse(org.xmlpull.v1.XmlPullParser, int):org.jivesoftware.smackx.xdata.packet.DataForm\");\n }", "public abstract List<EXIFContent> parse();", "public static MessageResponseOfUserModelNuLtuh91E parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n MessageResponseOfUserModelNuLtuh91E object = new MessageResponseOfUserModelNuLtuh91E();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n\n return object;\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement()) {\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"MessageResponseOfUserModelNuLtuh91\").equals(\n reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n object.setMessageResponseOfUserModelNuLtuh91(null);\n reader.next();\n } else {\n object.setMessageResponseOfUserModelNuLtuh91(MessageResponseOfUserModelNuLtuh91.Factory.parse(\n reader));\n }\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "private Message formatMessage(LogRecord record)\n\t{\n\t\treturn new Message(record);\n\t}", "protected ParseObject createMessage() {\n //format single variables appropriatly. most cases the field is an array\n ArrayList<ParseUser> nextDrinker = new ArrayList<ParseUser>();\n nextDrinker.add(mNextDrinker);\n ArrayList<String> groupName = new ArrayList<String>();\n groupName.add(mGroupName);\n\n ParseObject message = new ParseObject(ParseConstants.CLASS_MESSAGES);\n message.put(ParseConstants.KEY_SENDER_ID, ParseUser.getCurrentUser().getObjectId());\n message.put(ParseConstants.KEY_SENDER, ParseUser.getCurrentUser());\n message.put(ParseConstants.KEY_GROUP_ID, mGroupId);\n message.put(ParseConstants.KEY_GROUP_NAME, groupName);\n message.put(ParseConstants.KEY_SENDER_NAME, ParseUser.getCurrentUser().getUsername());\n message.put(ParseConstants.KEY_RECIPIENT_IDS, nextDrinker);\n message.put(ParseConstants.KEY_MESSAGE_TYPE, ParseConstants.TYPE_DRINK_REQUEST);\n\n return message;\n }", "@Override\n public NdefMessage createNdefMessage(NfcEvent nfcEvent) {\n NdefRecord ndefRecord = NdefRecord.createMime(\"text/plain\", String.valueOf(Constants.user.getId()).getBytes());\n NdefMessage ndefMessage = new NdefMessage(ndefRecord);\n return ndefMessage;\n }", "@Override\n public NdefMessage createNdefMessage(NfcEvent nfcEvent) {\n\n String packageName = getApplicationInfo().packageName;\n\n // get the edit text string\n str = mInput.getText().toString();\n //Log.d(TAG, getString(R.string.debug_key) + \" \" + str);\n\n String mimeType = \"application/\" + packageName;\n Log.d(TAG, getString(R.string.debug_key) + \"mimetype\" + mimeType);\n byte[] mimeByte = mimeType.getBytes(Charset.forName(\"US-ASCII\"));\n\n // encapsulate data in array of ndefrecord\n NdefRecord[] ndefRecord = new NdefRecord[]{\n NdefRecord.createMime(mimeType, str.getBytes(Charset.forName(\"US-ASCII\"))),\n NdefRecord.createApplicationRecord(packageName)\n };\n\n return new NdefMessage(ndefRecord);\n }", "public interface MsgManageInf {\n void parseOrder(String order);\n}", "public void parse() throws XMLStreamException {\n\t\tInputStream dictStream = ClassLoader.getSystemResourceAsStream(fixFileName);\n\t\tXMLStreamReader reader = factory.createXMLStreamReader(dictStream);\n\t\tString curFieldName = \"\";\n\t\twhile (reader.hasNext()) {\n\t\t\tint event = reader.next();\n\t\t\tswitch (event) {\n\t\t\tcase XMLStreamConstants.START_ELEMENT:\n\t\t\t\tString elementName = reader.getLocalName();\n\t\t\t\telementNames.add(elementName);\n\t\t\t\tif (\"fields\".equals(elementName)) {\n\t\t\t\t\tisFieldsElement = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (\"field\".equals(elementName) && isFieldsElement) {\n\t\t\t\t\tString num = reader.getAttributeValue(null, \"number\");\n\t\t\t\t\tcurFieldName = reader.getAttributeValue(null, \"name\");\n\t\t\t\t\tFieldParser.logger.info(num + \", \" + curFieldName);\n\t\t\t\t\t// Integer tagNumber = Integer.parseInt(num);\n\t\t\t\t\ttagNameToNumber.put(curFieldName, num);\n\t\t\t\t\ttagNumberToName.put(num, curFieldName);\n\t\t\t\t\tMap<String, String> tagValueToTagValueDesc = tagNameToTagValueDesc.get(curFieldName);\n\t\t\t\t\tif (tagValueToTagValueDesc == null) {\n\t\t\t\t\t\ttagValueToTagValueDesc = new ConcurrentHashMap<>();\n\t\t\t\t\t\ttagNameToTagValueDesc.put(curFieldName, tagValueToTagValueDesc);\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (\"value\".equals(elementName) && !\"\".equals(curFieldName)) {\n\t\t\t\t\tMap<String, String> tagValueToTagValueDesc = tagNameToTagValueDesc.get(curFieldName);\n\t\t\t\t\tString enumNum = reader.getAttributeValue(null, \"enum\");\n\t\t\t\t\tString enumDesc = reader.getAttributeValue(null, \"description\");\n\t\t\t\t\ttagValueToTagValueDesc.put(enumNum, enumDesc);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase XMLStreamConstants.END_ELEMENT:\n\t\t\t\telementName = reader.getLocalName();\n\t\t\t\tif (\"fields\".equals(elementName)) {\n\t\t\t\t\tisFieldsElement = false;\n\t\t\t\t\tcurFieldName = \"\";\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t}", "public static interface MsgUnpacker {\n\t public Parser.Dict unpack(String msg) throws Exception;\n }", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "private String readText(NdefRecord record) throws UnsupportedEncodingException {\n\n byte[] payload = record.getPayload();\n\n // Get the Text Encoding\n String textEncoding = ((payload[0] & 128) == 0) ? \"UTF-8\" : \"UTF-16\";\n\n // Get the Language Code\n int languageCodeLength = payload[0] & 0063;\n\n // String languageCode = new String(payload, 1, languageCodeLength, \"US-ASCII\");\n // e.g. \"en\"\n\n // Get the Text\n return new String(payload, languageCodeLength + 1, payload.length - languageCodeLength - 1, textEncoding);\n }", "private void parseData() {\n\t\t\r\n\t}", "private void parseRawText() {\n\t\t//1-new lines\n\t\t//2-pageObjects\n\t\t//3-sections\n\t\t//Clear any residual data.\n\t\tlinePositions.clear();\n\t\tsections.clear();\n\t\tpageObjects.clear();\n\t\tcategories.clear();\n\t\tinterwikis.clear();\n\t\t\n\t\t//Generate data.\n\t\tparsePageForNewLines();\n\t\tparsePageForPageObjects();\n\t\tparsePageForSections();\n\t}", "private void parse(Reader reader) throws IOException {\n/* 260 */ BufferedReader buf_reader = new BufferedReader(reader);\n/* 261 */ String line = null;\n/* 262 */ String continued = null;\n/* */ \n/* 264 */ while ((line = buf_reader.readLine()) != null) {\n/* */ \n/* */ \n/* 267 */ line = line.trim();\n/* */ \n/* */ try {\n/* 270 */ if (line.charAt(0) == '#')\n/* */ continue; \n/* 272 */ if (line.charAt(line.length() - 1) == '\\\\') {\n/* 273 */ if (continued != null) {\n/* 274 */ continued = continued + line.substring(0, line.length() - 1); continue;\n/* */ } \n/* 276 */ continued = line.substring(0, line.length() - 1); continue;\n/* 277 */ } if (continued != null) {\n/* */ \n/* 279 */ continued = continued + line;\n/* */ \n/* */ try {\n/* 282 */ parseLine(continued);\n/* 283 */ } catch (MailcapParseException e) {}\n/* */ \n/* */ \n/* 286 */ continued = null;\n/* */ \n/* */ continue;\n/* */ } \n/* */ try {\n/* 291 */ parseLine(line);\n/* */ }\n/* 293 */ catch (MailcapParseException e) {}\n/* */ \n/* */ \n/* */ }\n/* 297 */ catch (StringIndexOutOfBoundsException e) {}\n/* */ } \n/* */ }", "public void readRecord() {\n\t\ttry {\n\t\t\tScanner scan = new Scanner(recordFile);\n\t\t\tString temp = \"\";\n\t\t\tboolean foundAddress = false;\n\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\tString member = scan.nextLine();\n\t\t\t\tScanner sc = new Scanner(member);\n\t\t\t\tString keyword, param;\n\t\t\t\tif(sc.hasNext()) {\n\t\t\t\t\tkeyword = sc.next();\n\t\t\t\t\t\n\t\t\t\t\tif(keyword.equalsIgnoreCase(\"address\")) {\n\t\t\t\t\t\tfoundAddress = true;\n\t\t\t\t\t\tif(sc.hasNextLine()) {\n\t\t\t\t\t\t\tparam = sc.nextLine();\n\t\t\t\t\t\t\ttemp = temp + \"; \" + keyword.toLowerCase() + \" \" + param;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if(keyword.equalsIgnoreCase(\"name\")\n\t\t\t\t\t\t\t|| keyword.equalsIgnoreCase(\"birthday\")\n\t\t\t\t\t\t\t|| keyword.equalsIgnoreCase(\"postcode\")\n\t\t\t\t\t\t\t|| keyword.equalsIgnoreCase(\"phone\")\n\t\t\t\t\t\t\t|| keyword.equalsIgnoreCase(\"recipient\")\n\t\t\t\t\t\t\t|| keyword.equalsIgnoreCase(\"donation\")) {\n\t\t\t\t\t\tfoundAddress = false;\n\t\t\t\t\t\tif(sc.hasNextLine()) {\n\t\t\t\t\t\t\tparam = sc.nextLine();\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttemp = temp + \"; \" + keyword.toLowerCase() + \" \" + param;\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// if found extended address in a new line\n\t\t\t\t\tif(!keyword.equalsIgnoreCase(\"address\") \n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"name\")\n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"birthday\")\n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"postcode\")\n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"phone\")\n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"recipient\")\n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"donation\")\n\t\t\t\t\t\t\t&& foundAddress) {\n\t\t\t\t\t\ttemp = temp + \" \" + keyword;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(member.equals(\"\") || !scan.hasNextLine()) {\n\t\t\t\t\trecord.addDonator(temp);\n\t\t\t\t\ttemp = \"\";\n\t\t\t\t}\n\t\t\t\tsc.close();\n\t\t\t} \n\t\t\tscan.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void parsePacket() {\n\n // Request a new data buffer if no data is currently available.\n if (receiveBuffer == null) {\n socketHandle.read(DEFAULT_REQUEST_SIZE).addDeferrable(this, true);\n return;\n }\n\n // Attempt to parse the next packet. This can result in malformed message\n // exceptions which are passed back to the caller or buffer underflow exceptions\n // which result in a request for more data.\n final int startPosition = receiveBuffer.position();\n try {\n\n // Extract the main header byte and message length. If this fails the connection\n // is unrecoverable and must be closed.\n final int headerByte = 0xFF & receiveBuffer.get();\n final ControlPacketType controlPacketType = ControlPacketType.getControlPacketType(headerByte);\n if (controlPacketType == null) {\n throw new MalformedPacketException(\"Invalid control packet type\");\n }\n final int messageLength = VarLenQuantity.create(receiveBuffer).getValue();\n\n // Determine whether there is sufficient data in the buffer to parse the full\n // message. If not, request further data in an expanded buffer.\n if (messageLength > receiveBuffer.remaining()) {\n receiveBuffer.position(startPosition);\n fillReceiveBuffer(5 + messageLength);\n return;\n }\n\n // Parse the packet body, based on the known control packet type.\n ControlPacket parsedPacket;\n switch (controlPacketType) {\n case CONNECT:\n parsedPacket = ConnectPacket.parsePacket(messageLength, receiveBuffer);\n break;\n case CONNACK:\n parsedPacket = ConnackPacket.parsePacket(messageLength, receiveBuffer);\n break;\n case PUBLISH:\n parsedPacket = PublishPacket.parsePacket(headerByte, messageLength, receiveBuffer);\n break;\n case SUBSCRIBE:\n case UNSUBSCRIBE:\n parsedPacket = SubscribePacket.parsePacket(controlPacketType, messageLength, receiveBuffer);\n break;\n case SUBACK:\n parsedPacket = SubackPacket.parsePacket(messageLength, receiveBuffer);\n break;\n default:\n parsedPacket = ControlPacket.parsePacket(controlPacketType, messageLength, receiveBuffer);\n break;\n }\n\n // Include packet tracing if required.\n if (logger.getLogLevel() == Level.FINER) {\n logger.log(Level.FINER, \"RX \" + parsedPacket.tracePacket(false, false));\n } else if (logger.getLogLevel() == Level.FINEST) {\n logger.log(Level.FINEST, \"RX \" + parsedPacket.tracePacket(false, true));\n }\n\n // Hand off the received packet.\n deferredReceive.callback(parsedPacket);\n deferredReceive = null;\n\n // After parsing the packet, release any fully consumed buffers.\n if (!receiveBuffer.hasRemaining()) {\n socketService.releaseByteBuffer(receiveBuffer);\n receiveBuffer = null;\n }\n }\n\n // Request more data on a buffer underflow. This doubles the size of the request\n // buffer and then attempts to fill it.\n catch (final BufferUnderflowException error) {\n receiveBuffer.position(startPosition);\n fillReceiveBuffer(2 * receiveBuffer.remaining());\n }\n\n // Handle fatal errors.\n catch (final Exception error) {\n deferredReceive.errback(error);\n deferredReceive = null;\n }\n }", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch (msg.what) {\n case 0x001:\n Bundle bundle1 = msg.getData();\n String result1 = bundle1.getString(\"result\");\n parseData(result1);\n break;\n default:\n break;\n }\n }", "public static final RFCMessageStructure parseInputStream (InputStream in, byte[] workBuf) throws IOException\n {\n return parseInputStream(in, workBuf, (-1L));\n }", "public String toFIPAString() {\n String str = \"(\" + type.toUpperCase() + \"\\n\";\n if ( sender != null )\n str += \" :sender ( \" + getSender_As_FIPA_String() + \" )\\n\";\n if ( receivers != null && !receivers.isEmpty() ) {\n str += \" :receiver (set \";\n Enumeration allRec = getFIPAReceivers();\n while (allRec.hasMoreElements()) {\n FIPA_AID_Address addr = (FIPA_AID_Address) allRec.nextElement();\n String current =\"(\" + addr.toFIPAString() +\")\";\n str += current; }\n str += \" )\\n\";\n }\n if ( replyWith != null )\n str += \" :reply-with \" + replyWith + \"\\n\";\n if ( inReplyTo != null )\n str += \" :in-reply-to \" + inReplyTo + \"\\n\";\n if ( replyBy != null )\n str += \" :reply-by \" + replyBy + \"\\n\";\n if ( ontology != null )\n str += \" :ontology \" + ontology + \"\\n\";\n if ( language != null )\n str += \" :language \" + language + \"\\n\";\n if ( content != null )\n // try no \"'s // brackets may be SL specific\n str += \" :content \\\"\" + content + \"\\\"\\n\";//\" :content \\\"( \" +Misc.escape(content) + \")\\\"\\n\";\n if ( protocol != null )\n str += \" :protocol \" + protocol + \"\\n\";\n if ( conversationId != null )\n str += \" :conversation-id \" + conversationId + \"\\n\";\n if ( replyTo != null )\n str += \" :reply-to \" + replyTo + \"\\n\";\n /*\n if ( envelope != null && !envelope.isEmpty() ) {\n str += \" :envelope (\";\n Enumeration enum = envelope.keys();\n String key;\n Object value;\n while( enum.hasMoreElements() ) {\n key = (String)enum.nextElement();\n value = envelope.get(key);\n str += \"(\" + key + \" \\\"\" + Misc.escape(value.toString()) + \"\\\")\";\n }*/\n // str += \")\";\n //}\n \n str += \")\\n\";\n return str;\n }", "private LogDataHolder parseLog()\n throws XMLStreamException \n {\n /*\n // These values don't seem to be used for anything, so don't try to set them\n String ascensionLogXMLVersion = \"\";\n String fileCreatorName = \"\";\n String fileCreatorVersion = \"\";\n */\n \n while (parser.hasNext()) {\n switch (parser.getEventType()) {\n case XMLStreamConstants.START_ELEMENT:\n final String nodeName = parser.getLocalName();\n /*\n if (nodeName.equals(\"ascensionlogxml\")) {\n for (int i = 0; i < parser.getAttributeCount(); i++)\n if (parser.getAttributeLocalName(i).equals(\"version\"))\n ascensionLogXMLVersion = parser.getAttributeValue(i);\n } else if (nodeName.equals(\"filecreator\")) {\n for (int i = 0; i < parser.getAttributeCount(); i++)\n if (parser.getAttributeLocalName(i).equals(\"programname\"))\n fileCreatorName = parser.getAttributeValue(i);\n else if (parser.getAttributeLocalName(i).equals(\"programversion\"))\n fileCreatorVersion = parser.getAttributeValue(i);\n } else */ \n if (nodeName.equals(\"ascension\"))\n parseAscension();\n\n break;\n default:\n break;\n }\n parser.next();\n }\n\n return logData;\n }", "MessageDef getMessageDef();", "public static MessageResponseOfAnimalModelNuLtuh91E parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n MessageResponseOfAnimalModelNuLtuh91E object = new MessageResponseOfAnimalModelNuLtuh91E();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n\n return object;\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement()) {\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"MessageResponseOfAnimalModelNuLtuh91\").equals(\n reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n object.setMessageResponseOfAnimalModelNuLtuh91(null);\n reader.next();\n } else {\n object.setMessageResponseOfAnimalModelNuLtuh91(MessageResponseOfAnimalModelNuLtuh91.Factory.parse(\n reader));\n }\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public void parse() throws Exception {\r\n\t\tToken token;\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\ttry {\r\n\t\t\t// Loop over each token until the end of file.\r\n\t\t\twhile (!((token = nextToken()) instanceof EofToken)) {\r\n\t\t\t\tTokenType tokenType = token.getType();\r\n\t\t\t\tif (tokenType != ERROR) {\r\n\t\t\t\t\t// Format each token.\r\n\t\t\t\t\tsendMessage(new Message(TOKEN, new Object[] {\r\n\t\t\t\t\t\t\ttoken.getLineNumber(), token.getPosition(),\r\n\t\t\t\t\t\t\ttokenType, token.getText(), token.getValue() }));\r\n\t\t\t\t} else {\r\n\t\t\t\t\terrorHandler.flag(token,\r\n\t\t\t\t\t\t\t(OracleErrorCode) token.getValue(), this);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Send the parser summary message.\r\n\t\t\tfloat elapsedTime = (System.currentTimeMillis() - startTime) / 1000f;\r\n\t\t\tsendMessage(new Message(PARSER_SUMMARY, new Number[] {\r\n\t\t\t\t\ttoken.getLineNumber(), getErrorCount(), elapsedTime }));\r\n\t\t} catch (java.io.IOException ex) {\r\n\t\t\terrorHandler.abortTranslation(IO_ERROR, this);\r\n\t\t}\r\n\t}", "public static final RFCMessageStructure parseInputStream (InputStream in, long copySize) throws IOException\n {\n return parseInputStream(in, IOCopier.DEFAULT_COPY_SIZE, copySize);\n }", "@Override\n\tpublic void parse(Packet packet) {\n\t}", "@Override\n\tpublic void readMessage(Message message) {\n\t\t\n\t}", "void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n menuInfo = new String(msg.getRecords()[0].getPayload());\n \n Toast.makeText(getApplicationContext(), menuInfo, Toast.LENGTH_LONG).show();\n }", "public interface RecordReader {\r\n\r\n /**\r\n * Reads a single record from this input stream. The type of object\r\n * returned depends on the format of the stream.\r\n * @return the record value, or null if the end of the stream was reached.\r\n * @throws IOException if an I/O error occurs reading from the stream\r\n * @throws RecordIOException if the record is malformed and cannot\r\n * \t be parsed, but subsequent reads may still be possible\r\n */\r\n public Object read() throws IOException, RecordIOException;\r\n\r\n /**\r\n * Closes this input stream.\r\n * @throws IOException if an I/O error occurs closing the stream\r\n */\r\n public void close() throws IOException;\r\n\r\n /**\r\n * Returns the line number of the last record from this input stream. If a\r\n * record spans multiple lines, the line number at the beginning of the\r\n * record is returned. May return -1 if the end of the stream was reached,\r\n * or 0 if new lines are not used to terminate records.\r\n * @return the beginning line number of the last record read\r\n */\r\n public int getRecordLineNumber();\r\n\r\n /**\r\n * Returns the unparsed record text of the last record read.\r\n * @return the unparsed text of the last record read\r\n */\r\n public String getRecordText();\r\n\r\n}", "public NotificationBo parseNotificationRequestMessage(InputStream stream) throws IOException, XmlException;", "public DialogueNode parseString(String dialogueString) {\n\t\tString[] allStrings = dialogueString.split(\"::\");\n\t\t\n\t\t\n\t\tString message = (String) allStrings[0];\n\t\tString[] responses = java.util.Arrays.copyOfRange(allStrings, 1, allStrings.length);\n\t\t\n\t\t\n\t\tDialogueNode newNode = createNode(message, responses);\n\t\t\n\t\treturn newNode;\n\t\t\n\t}", "public Object parseChannel(int rssType, Document doc) throws Exception;", "private String mbrec(String message) {\r\n\t\treturn \"Reading \" + filename + \": \" + message;\r\n\t}", "public void testParser() {\n\n String[] accessNetworkInfo = {\n\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE; [123:4::abcd]; rand=l\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE; a-b.c1; rand=l\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE; 127.0.0.1; rand=l\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE;\\\"\\\"\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE;\\\";\\\"\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE;\\\"ip=123.123.123.123\\\"\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE; [123:4::abcd];rand=l\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE; [123:4::abcd]\\n\",\n \"P-Access-Network-Info: IEEE-802.11\\n\",\n \"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE\\n\"\n\n };\n\n super.testParser(PAccessNetworkInfoParser.class,accessNetworkInfo);\n \n //test one more\n String[] accessNetworkInfo_2 = {\n \"P-Access-Network-Info: IEEE-802.11\\n\",\n \"P-Access-Network-Info: IEEE-802.11, 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE\\n\",\n \"P-Access-Network-Info: IEEE-802.11, 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE, 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDF\\n\",\n \"P-Access-Network-Info: 3GPP-E-UTRAN; utran-cell-id-3gpp=262010063F423802;network-provided,3GPP-E-UTRAN-FDD; utran-cell-id-3gpp=262010063F423802\\n\",\n \"P-Access-Network-Info: IEEE-802.11;i-wlan-node-id=74da38582ba4\\n\",\n \"P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=262010063f423802\\n\",\n \"P-Access-Network-Info: 3GPP-E-UTRAN;utran-cell-id-3gpp=\\\"262010063F423802\\\";network-provided,3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=262010063f423802\\n\"\n };\n super.testParser(PAccessNetworkInfoParser.class,accessNetworkInfo_2);\n String token = \"A1-.%*_+`'~\";\n String[] accessNetworkInfo_3 = {\n \"P-Access-Network-Info: IEEE-802.11; network-provided\\n\",\n \"P-Access-Network-Info: IEEE-802.11; ipv4=[2345:3456::]\\n\",\n //token\n \"P-Access-Network-Info: \"+token+\"\\n\",\n //hostname\n \"P-Access-Network-Info: IEEE-802.11;AaB123=www.example-test.example.com\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=www.example-test.example.com.\\n\",\n //IPv4address \n \"P-Access-Network-Info: IEEE-802.11;AaB123=1.1.1.1\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=0.0.0.0\\n\",\n //IPv6reference\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[::]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A::]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A::99B]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A:99B::]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A:99B::11C]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A:99B::11C:22D]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[::11C]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[11C::22D]\\n\",\n //hexpart [ \":\" IPv4address ]\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[11C::12.04.02.99]\\n\",\n //IPv6reference quoted\n \"P-Access-Network-Info: IEEE-802.11;AaB123=\\\"[11C::12.04.02.99]\\\"\\n\",\n //Multiple IP6\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A:99B::11C:22D];cc231=[11C::12.04.02.99]\\n\",\n };\n super.testParser(PAccessNetworkInfoParser.class,accessNetworkInfo_3);\n\n }", "@Test\n public void parse_allFieldsPresent_success() throws ParseException {\n Person expectedPerson = new PersonBuilder(BOB).withNote(Note.EMPTY_NOTE).withTags(VALID_TAG_FRIEND).build();\n\n // multiple phones - last phone accepted\n String multiplePhones = String.format(\"person %s /create%s%s%s%s\", VALID_NAME_BOB,\n PHONE_DESC_AMY, PHONE_DESC_BOB, EMAIL_DESC_BOB, TAG_DESC_FRIEND);\n assertParseSuccess(notorParser.parseCommand(multiplePhones), new PersonCreateCommand(null, expectedPerson));\n\n // multiple emails - last email accepted\n String multipleEmails = String.format(\"person %s /create%s%s%s%s\", VALID_NAME_BOB,\n PHONE_DESC_BOB, EMAIL_DESC_AMY, EMAIL_DESC_BOB, TAG_DESC_FRIEND);\n assertParseSuccess(notorParser.parseCommand(multipleEmails), new PersonCreateCommand(null, expectedPerson));\n\n // multiple tags - all accepted\n Person expectedPersonMultipleTags = new PersonBuilder(BOB).withNote(Note.EMPTY_NOTE).withTags(VALID_TAG_FRIEND,\n VALID_TAG_HUSBAND)\n .build();\n String multipleTags = String.format(\"person %s /create%s%s%s\", VALID_NAME_BOB,\n PHONE_DESC_BOB, EMAIL_DESC_BOB, TAG_MULTIPLE_TAGS);\n assertParseSuccess(notorParser.parseCommand(multipleTags),\n new PersonCreateCommand(null, expectedPersonMultipleTags));\n }", "public interface nndmMessage_Out\n{\n\n /**\n * Status flag to indicate that a message is ready for retreival from message\n * out queue and to be transformed into a disease-specific message\n * format - value is <code> A </code> .\n */\n public static final String READY_FOR_TRANSFORM_STATUS = \"RDY_FOR_TRNSFRM\";\n\n /**\n * Status flag to indicate that a message is in the process of being transformed\n * into a disease-specific message format - value is <code> TRNSFRM_IN_PROG </code> .\n */\n public static final String TRANSFORM_IN_PROGRESS_STATUS = \"TRNSFRM_IN_PROG\";\n\n\n /**\n * Status flag to indicate that a message has been successfully transformed\n * into a disease-specific message format - value is <code> TRNSFRM_COMP </code> .\n */\n public static final String TRANSFORM_COMPLETE_STATUS = \"TRNSFRM_COMP\";\n\n\n /**\n * Status flag to indicate that an error has occurred while transforming a\n * message into a disease-specific message format, (transformation unsuccessful)\n * - value is <code> TRNSFRM_ERR </code> .\n */\n public static final String TRANSFORM_ERROR_STATUS = \"TRNSFRM_ERR\";\n\n\n /**\n * Status flag to indicate that an error has occurred while <i> transporting </i> a\n * a disease-specific message to the transport out queue, (write to queue failed),\n * or, the ebXML application errored while processing the message.\n * - value is <code> TRNSPRT_ERR </code> .\n */\n public static final String TRANSPORT_ERROR_STATUS = \"TRNSPRT_ERR\";\n\n\n /**\n * Status flag to indicate that a disease-specific message is ready to be processed\n * by <i> PHINMS </i> data interchange application\n * - value is <code> RDY_FOR_PHINMS </code> .\n */\n public static final String READY_FOR_PHINMS_STATUS = \"RDY_FOR_PHINMS\";\n\n\n /**\n * Status flag to indicate that a message has been successfully transformed\n * into a disease-specific message format - value is <code> PHINMS_COMP </code> .\n */\n public static final String PHINMS_COMPLETE_STATUS = \"PHINMS_COMP\";\n\n /**\n * Status flag to indicate that a message has been failed while processing in\n * PHINMS stage - value is <code> PHINMS_ERR </code>\n */\n public static final String PHINMS_ERROR_STATUS = \"PHINMS_ERR\";\n\n\n /**\n * Represents the Disease Message, <i> before </i> disease_specific transformation.\n */\n public static final String MESSAGE_OUT_ATTACHEMNT = \"attachment_txt\";\n\n\n /** This method returns a collection of message id keys with the given status.\n * @param status String that indicates the status of the message record; use one\n * of the acceptable values of nndmMessage_Out.ACTIVE_STATUS, or\n * nndmMessage_Out.TRANSFORM_IN_PROGRESS_STATUS, etc.\n * @return list containing the collection of keys\n * @see #ACTIVE_STATUS\n * @see #TRANSFORM_IN_PROGRESS_STATUS\n * @see #TRANSFORM_COMPLETE_STATUS\n * @see #TRANSFORM_ERROR_STATUS\n * @see #READY_FOR_PHINMS_STATUS\n * @see #TRANSPORT_ERROR_STATUS\n * @see #PHINMS_COMPLETE_STATUS\n */\n public List<MessageKey> listMessages(String status);\n\n\n /** This method retrieves the message record from the message_out database.\n * The SELECT sql is formatted to support specific database implementations\n * (currently MSSQL 2000 and Oracle 8i).\n * Only records with a status_cd of <code> nndmMessage_Out.ACTIVE_STATUS </code> can be retrieved.\n * @param key String that contains the record identifier for the message that failed.\n * @param status String that indicates the status of the message record; use one\n * of the acceptable values of nndmMessage_Out.ACTIVE_STATUS, or\n * nndmMessage_Out.TRANSFORM_IN_PROGRESS_STATUS, etc.\n * @return Map containing the mapping of column name to its value fetched from the database.\n * @see #ACTIVE_STATUS\n */\n\tpublic Map<String,String> getMessage(Long messageUid, String status);\n\n\n /** This method updates the message record indicated by the key argument as\n * indicated by the second argument.\n * @param key String that contains the record identifier to set status for\n * @param status String that indicates the status of the message record; use one\n * of the acceptable values of nndmMessage_Out.ACTIVE_STATUS, or\n * nndmMessage_Out.TRANSFORM_IN_PROGRESS_STATUS, etc.\n * @see #ACTIVE_STATUS\n * @see #TRANSFORM_IN_PROGRESS_STATUS\n * @see #TRANSFORM_COMPLETE_STATUS\n * @see #TRANSFORM_ERROR_STATUS\n * @see #READY_FOR_PHINMS_STATUS\n * @see #TRANSPORT_ERROR_STATUS\n * @see #PHINMS_COMPLETE_STATUS\n */\n public void setStatus(Long messageUid, String status);\n\n\n /** This method adds an error log record to the Message_Out database and\n * sets the status appropriately.\n * @param key String that contains the record identifier for the message that failed.\n * @param errorMessage String the contains the short description of the error.\n * @param status String that indicates the status of the message record; use one\n * of the acceptable values of nndmMessage_Out.TRANSFORM_ERROR_STATUS, or\n * nndmMessage_Out.TRANSPORT_ERROR_STATUS.\n */\n public void setError(Long messageUid, String notificationLocalId, String errorMessage, String status);\n\n}", "void processIntent(Intent intent) {\n\t\tParcelable[] rawMsgs = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);\n\t\t// only one message sent during the beam\n\t\tNdefMessage msg = (NdefMessage) rawMsgs[0];\n\t\ttry {\n\t\t\tDaoSession dbSession = HostageApplication.getInstances().getDaoSession();\n\t\t\tDAOHelper daoHelper = new DAOHelper(dbSession,this);\n\t\t\t//HostageDBOpenHelper dbh = new HostageDBOpenHelper(this);\n\n\t\t\tArrayList<NetworkRecord> remoteNetworkInformation = (ArrayList<NetworkRecord>) deserialize(msg.getRecords()[0].getPayload());\n\t\t\tHashMap<String, Long> devices_remote = (HashMap<String, Long>) deserialize(msg.getRecords()[1].getPayload());\n\t\t\tHashMap<String, Long> devices_local = daoHelper.getSyncDeviceDAO().getSyncDeviceHashMap();\n\t\t\tArrayList<SyncInfoRecord> syncInfo = (ArrayList<SyncInfoRecord>) deserialize(msg.getRecords()[2].getPayload());\n\t\t\t\n\t\t\tlong tracing_timestamp = 0;\n\t\t\tif(devices_local.containsKey(TracingSyncService.REMOTE_DEVICE))\n\t\t\t\ttracing_timestamp = devices_local.get(TracingSyncService.REMOTE_DEVICE);\n\t\t\t\t\n\t\t\tfor(Iterator<String> i = devices_remote.keySet().iterator(); i.hasNext(); ){\n\t\t\t\tString key = i.next();\n\t\t\t\tif((devices_local.containsKey(key) && devices_local.get(key) >= devices_remote.get(key)) \n\t\t\t\t || (tracing_timestamp > devices_remote.get(key))){\n\t\t\t\t\ti.remove();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor ( Iterator<SyncInfoRecord> i = syncInfo.iterator(); i.hasNext(); ){\n\t\t\t\tSyncInfoRecord info = i.next();\n\t\t\t\tif(!devices_remote.containsKey(info.getDeviceID())){\n\t\t\t\t\ti.remove();\n\t\t\t\t}\t\t\t\t \n\t\t\t}\t\n\t\t\t\n\t\t\tdaoHelper.getSyncDeviceDAO().updateSyncDevices(devices_remote);\n\t\t\tdaoHelper.getSyncInfoRecordDAO().updateSyncInfo(syncInfo);\n\t\t\tdaoHelper.getNetworkRecordDAO().updateNetworkInformation(remoteNetworkInformation);\n\t\t\tmHandler.obtainMessage(MESSAGE_RECEIVED).sendToTarget();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "List<LoggingEvent> parse(InputStream is) throws ParseException;", "public static LogModel parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n LogModel object = new LogModel();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n if (reader.getAttributeValue(\n \"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\") != null) {\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n\n if (fullTypeName != null) {\n java.lang.String nsPrefix = null;\n\n if (fullTypeName.indexOf(\":\") > -1) {\n nsPrefix = fullTypeName.substring(0,\n fullTypeName.indexOf(\":\"));\n }\n\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\n \":\") + 1);\n\n if (!\"LogModel\".equals(type)) {\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext()\n .getNamespaceURI(nsPrefix);\n\n return (LogModel) ExtensionMapper.getTypeObject(nsUri,\n type, reader);\n }\n }\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n reader.next();\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Models\",\n \"DateCreated\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n throw new org.apache.axis2.databinding.ADBException(\n \"The element: \" + \"DateCreated\" +\n \" cannot be null\");\n }\n\n java.lang.String content = reader.getElementText();\n\n object.setDateCreated(org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(\n content));\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Models\",\n \"Id\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.setId(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\n content));\n } else {\n reader.getElementText(); // throw away text nodes if any.\n }\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Models\",\n \"LastModified\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n throw new org.apache.axis2.databinding.ADBException(\n \"The element: \" + \"LastModified\" +\n \" cannot be null\");\n }\n\n java.lang.String content = reader.getElementText();\n\n object.setLastModified(org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(\n content));\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Models\",\n \"AnimalId\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.setAnimalId(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\n content));\n } else {\n reader.getElementText(); // throw away text nodes if any.\n }\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Models\",\n \"AnimalName\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.setAnimalName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\n content));\n } else {\n reader.getElementText(); // throw away text nodes if any.\n }\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Models\",\n \"Message\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.setMessage(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\n content));\n } else {\n reader.getElementText(); // throw away text nodes if any.\n }\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Models\",\n \"PetId\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.setPetId(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\n content));\n } else {\n reader.getElementText(); // throw away text nodes if any.\n }\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Models\",\n \"PetName\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.setPetName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\n content));\n } else {\n reader.getElementText(); // throw away text nodes if any.\n }\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Models\",\n \"UserId\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.setUserId(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\n content));\n } else {\n reader.getElementText(); // throw away text nodes if any.\n }\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Models\",\n \"Username\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.setUsername(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\n content));\n } else {\n reader.getElementText(); // throw away text nodes if any.\n }\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement()) {\n // 2 - A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" + reader.getName());\n }\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public void parse() throws ParseException, HttpHeaderParseException, HttpParseException {\n\t\tboolean multi = isMultipart();\n\t\tmessage.boundary = contentTypeHeader.getParam(\"boundary\");\n\t\tlogger.fine(\"MultipartParser(\" + this.toString() + \") - boundary = \" + message.boundary);\n\t\tif (er != null) {\n\t\t\ter.detail(contentTypeHeader.asString());\n\t\t\ter.detail(\"boundary = \" + message.boundary);\n\t\t}\n\t\tif (message.boundary == null || message.boundary.equals(\"\")) {\n\t\t\tmessage = null;\n\t\t\treturn;\n\t\t}\n\t\t\t//throw new ParseException(\"No boundary\");\n\n\t\tString pboundary = \"--\" + message.boundary;\n\t\tbyte[] body = hp.message.getBodyBytes();\n\t\tint from=0;\n\t\tint to=0;\n\t\twhile(true) {\n\t\t\tfrom = indexOf(body, pboundary, to);\n\t\t\tif (from == -1) {\n\t\t\t\tif (message.parts.size() == 0 && er != null)\n\t\t\t\t\ter.err(XdsErrorCode.Code.NoCode, \"Multipart boundary [\" + pboundary + \"] not found in message body\", this, \"http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//System.out.println(\"***************\\nfrom is:\\n\" + body.substring(from));\n\t\t\tfrom = afterBoundary(body, from);\n\t\t\tif (from == -1)\n\t\t\t\tbreak;\n\t\t\t//System.out.println(\"***************\\nfrom2 is:\\n\" + body.substring(from));\n\t\t\tto = indexOf(body, pboundary, from);\n\t\t\tif (to == -1)\n\t\t\t\tbreak;\n\t\t\t//System.out.println(\"***************\\nto is:\\n\" + body.substring(to));\n\n\t\t\tPartParser pp = new PartParser(substring(body, from, to), er, appendixV);\n\t\t\tmessage.parts.add(pp.part);\n\t\t}\n\n\t\tif (message.parts.size() == 0) {\n\t\t\tif (er != null)\n\t\t\t\ter.err(XdsErrorCode.Code.NoCode, \"No Parts found in Multipart\", this, \"\");\n\t\t\treturn;\n\t\t}\n\n\t\tString contentTypeString = hp.message.getHeader(\"content-type\");\n\t\tHttpHeader contentTypeHeader = new HttpHeader(contentTypeString);\n\t\tmessage.startPartId = contentTypeHeader.getParam(\"start\");\n\t\tif (message.startPartId == null || message.startPartId.equals(\"\")) {\n\t\t\tif (er != null)\n\t\t\t\ter.detail(\"No start parameter found on Content-Type header - using first Part\");\n\t\t\tPart startPart = message.parts.get(0);\n\t\t\tmessage.startPartId = startPart.getContentId();\n\t\t} else {\n\t\t\tif (!PartParser.isWrappedIn(message.startPartId, \"<\", \">\")) {\n\t\t\t\tif (er != null)\n\t\t\t\t\ter.err(XdsErrorCode.Code.NoCode, \"Content-Type header has start parameter but it is not wrapped in < >\", this, \"http://www.w3.org/TR/2005/REC-xop10-20050125/ Example 2\");\n\t\t\t} else {\n\t\t\t\tmessage.startPartId = PartParser.unWrap(message.startPartId);\n\t\t\t}\n\t\t}\n\t\tif (er != null)\n\t\t\ter.detail(\"Start Part identified as [\" + message.startPartId + \"]\");\n\n\t\tif (appendixV) {\n\t\t\tString contentTypeValue = contentTypeHeader.getValue();\n\t\t\tif (contentTypeValue == null) contentTypeValue = \"\";\n\t\t\tif (!\"multipart/related\".equals(contentTypeValue.toLowerCase()))\n\t\t\t\tif (er != null) {\n\t\t\t\t\ter.err(XdsErrorCode.Code.NoCode, \"Content-Type header must have value \" + \"multipart/related\" + \" - found instead \" + contentTypeValue, this, \"http://www.w3.org/TR/soap12-mtom - Section 3.2\");\n\t\t\t\t} else {\n\t\t\t\t\tthrow new HttpParseException(\"Content-Type header must have value \" + \"multipart/related\" + \" - found instead \" + contentTypeValue);\n\t\t\t\t}\n\t\t\tString type = contentTypeHeader.getParam(\"type\");\n\t\t\tif (type == null) type = \"\";\n\t\t\tif (!\"application/xop+xml\".equals(type.toLowerCase()))\n\t\t\t\tif (er != null) {\n\t\t\t\t\ter.err(XdsErrorCode.Code.NoCode, \"Content-Type header must have type parameter equal to application/xop+xml - found instead \" + type + \". Full content-type header was \" + contentTypeString, this, \"http://www.w3.org/TR/soap12-mtom - Section 3.2\");\n\t\t\t\t} else {\n\t\t\t\t\tthrow new HttpParseException(\"Content-Type header must have type parameter equal to application/xop+xml - found instead \" + type + \". Full content-type header was \" + contentTypeString);\n\t\t\t\t}\n\t\t}\n\n\t}" ]
[ "0.6296985", "0.5828975", "0.58258253", "0.581327", "0.5572361", "0.55409455", "0.54454833", "0.53741354", "0.53180325", "0.52916396", "0.5277943", "0.523872", "0.5226581", "0.52078754", "0.5187093", "0.5139745", "0.51371354", "0.51360804", "0.51315206", "0.51311255", "0.51163787", "0.51104325", "0.5076794", "0.50193745", "0.5016284", "0.50154155", "0.4999359", "0.49927828", "0.4977125", "0.49765208", "0.49729782", "0.49700445", "0.49526203", "0.49488539", "0.49236593", "0.4916049", "0.49143168", "0.49039036", "0.48956335", "0.4894082", "0.4890298", "0.48852044", "0.48566726", "0.48512632", "0.48474842", "0.48430347", "0.48197487", "0.48162088", "0.48000175", "0.47982484", "0.47849315", "0.4770909", "0.47709084", "0.47460175", "0.4734651", "0.47341898", "0.47317168", "0.4721391", "0.47185552", "0.47177035", "0.4692966", "0.4690972", "0.46891603", "0.46830925", "0.46817732", "0.46787015", "0.46763125", "0.46762937", "0.46752745", "0.4674459", "0.46715516", "0.4670824", "0.46662056", "0.46429387", "0.4635594", "0.4626261", "0.46214634", "0.46074367", "0.45994002", "0.4599134", "0.4593547", "0.45919108", "0.45838255", "0.45681053", "0.45602924", "0.45466712", "0.45443976", "0.4537764", "0.45259205", "0.4521779", "0.4517531", "0.4509585", "0.45066568", "0.44987652", "0.44982418", "0.4497536", "0.44955996", "0.44899148", "0.44892427", "0.44849247" ]
0.7416919
0
Produce events that can be sent into the eventBus.
public interface EventBusProducer { void post(final Answer answer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void transmitEvents(){\n Log.info(\"Transmitting Events\", EventShare.class);\n for(Entry<Class, List<EventTrigger>> eventGroup: HandlerRegistry.getHandlers().entrySet()){\n String annotation = eventGroup.getKey().getName();\n for(EventTrigger trigger : eventGroup.getValue()){\n if(trigger.getServer()!=this) { // do not send own events...\n if(trigger.getMethod()!=null){ // its a local event\n if(trigger.getMethod().isAnnotationPresent(ES.class)){\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }else {\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }\n }\n }", "private void createEvents() {\n\t}", "private static void send() {\n Map<String, ArrayList<Event>> eventsByStream = new HashMap<>();\n for (Event event : QUEUE) {\n String stream = event.getStream();\n if (!eventsByStream.containsKey(stream) || eventsByStream.get(stream) == null) {\n eventsByStream.put(stream, new ArrayList<>());\n }\n eventsByStream.get(stream).add(event);\n }\n for (String stream : eventsByStream.keySet()) {\n if (Prefs.INSTANCE.isEventLoggingEnabled()) {\n sendEventsForStream(STREAM_CONFIGS.get(stream), eventsByStream.get(stream));\n }\n }\n }", "void registerEventBusForEvent( EventBus eventBus, Consumer<List<? extends EventMessage<?>>> messageProcessor );", "public Observable getEvents(){\n QBRequestGetBuilder requestBuilder = new QBRequestGetBuilder();\n requestBuilder.sortDesc(\"startDate\");\n return makeObservable(requestBuilder);\n }", "@Test\n public void dispatchToMultipleObjects() {\n BaseEventBus eventBus = new SynchronousEventBus(LOG);\n\n final List<String> object1Received = new ArrayList<>();\n Object object1 = new Object() {\n @Subscriber\n public void onStringEvent(String event) {\n object1Received.add(event);\n }\n };\n\n final List<String> object2Received = new ArrayList<>();\n Object object2 = new Object() {\n @Subscriber\n public void onStringEvent(String event) {\n object2Received.add(event);\n }\n };\n\n eventBus.register(object1);\n eventBus.register(object2);\n\n eventBus.post(\"event 1\");\n eventBus.post(\"event 2\");\n\n // both subscribers should receive all items\n assertThat(object1Received, is(asList(\"event 1\", \"event 2\")));\n assertThat(object2Received, is(asList(\"event 1\", \"event 2\")));\n }", "void registerEventbusHandlers();", "public EventBus build() {\n return new EventBus(this);\n }", "public List<ServiceEvent> genEventQueue(){\n for(int i=0; i<serviceNum; i++){\n genEvent(i);\n }\n Collections.sort(eventQueue, new EventComparator());\n return eventQueue;\n }", "public interface EventSink {\n\n /**\n * Generate event, that a new peer has been discovered for some torrent.\n *\n * @since 1.5\n */\n void firePeerDiscovered(TorrentId torrentId, Peer peer);\n\n /**\n * Generate event, that a new connection with some peer has been established.\n *\n * @since 1.9\n */\n void firePeerConnected(ConnectionKey connectionKey);\n\n /**\n * Generate event, that a connection with some peer has been terminated.\n *\n * @since 1.9\n */\n void firePeerDisconnected(ConnectionKey connectionKey);\n\n /**\n * Generate event, that local information about some peer's data has been updated.\n *\n * @since 1.9\n */\n void firePeerBitfieldUpdated(TorrentId torrentId, ConnectionKey connectionKey, Bitfield bitfield);\n\n /**\n * Generate event, that processing of some torrent has begun.\n *\n * @since 1.5\n */\n void fireTorrentStarted(TorrentId torrentId);\n\n /**\n * Generate event, that torrent's metadata has been fetched.\n *\n * @since 1.9\n */\n void fireMetadataAvailable(TorrentId torrentId, Torrent torrent);\n\n /**\n * Generate event, that processing of some torrent has finished.\n *\n * @since 1.5\n */\n void fireTorrentStopped(TorrentId torrentId);\n\n /**\n * Generate event, that the downloading and verification\n * of one of torrent's pieces has been finished.\n *\n * @since 1.8\n */\n void firePieceVerified(TorrentId torrentId, int pieceIndex);\n}", "@Override\n public void handleEvents(List<Event> processorEvents) {\n\n }", "public interface EventBus {\n\n public String name();\n\n /**\n * Posts an event to all registered subscribers. This method will return successfully after the\n * event has been posted to all subscribers, and regardless of any exceptions thrown by\n * subscribers.\n *\n * @param event event to post.\n */\n public void post(Object event);\n\n}", "@GetMapping(value = \"/events\")\n public SseEmitter events() {\n final PermissionValue permission = new EventPermissionValue().read();\n if (securityService.isPermitted(permission)) {\n return sseService.createNewEmitter();\n } else {\n throw new ForbiddenException(ApiError.MISSING_PERMISSION, permission.toString());\n }\n }", "@Test\n void sendEvents() {\n // Arrange\n final String messageId = UUID.randomUUID().toString();\n final SendOptions options = new SendOptions().setPartitionId(PARTITION_ID);\n final EventHubProducerAsyncClient producer = toClose(builder.buildAsyncProducerClient());\n final List<EventData> events = TestUtils.getEvents(NUMBER_OF_EVENTS, messageId);\n final PartitionProperties information = producer.getPartitionProperties(PARTITION_ID).block();\n\n assertNotNull(information, \"Should receive partition information.\");\n\n final EventPosition position = EventPosition.fromSequenceNumber(information.getLastEnqueuedSequenceNumber());\n final EventHubConsumerAsyncClient consumer = toClose(builder\n .consumerGroup(EventHubClientBuilder.DEFAULT_CONSUMER_GROUP_NAME)\n .buildAsyncConsumerClient());\n\n // Act\n StepVerifier.create(producer.send(events, options))\n .expectComplete()\n .verify(TIMEOUT);\n\n // Assert\n logger.info(\"Waiting to receive events.\");\n StepVerifier.create(consumer.receiveFromPartition(PARTITION_ID, position)\n .filter(x -> TestUtils.isMatchingEvent(x, messageId)).take(NUMBER_OF_EVENTS))\n .expectNextCount(NUMBER_OF_EVENTS)\n .expectComplete()\n .verify(TIMEOUT);\n }", "@Test\n public void dispatchToSingleObjectAndSubscriberMethods() {\n BaseEventBus eventBus = new SynchronousEventBus(LOG);\n\n final List<String> object1Received = new ArrayList<>();\n Object object1 = new Object() {\n @Subscriber\n public void onStringEvent(String event) {\n object1Received.add(event);\n }\n };\n\n final List<Integer> object2Received = new ArrayList<>();\n Object object2 = new Object() {\n @Subscriber\n public void onIntEvent(Integer event) {\n object2Received.add(event);\n }\n };\n\n eventBus.register(object1);\n eventBus.register(object2);\n\n eventBus.post(\"event 1\");\n eventBus.post(\"event 2\");\n\n // only object1 should receive all items\n assertThat(object1Received, is(asList(\"event 1\", \"event 2\")));\n assertThat(object2Received, is(emptyList()));\n\n eventBus.post(1);\n\n assertThat(object1Received, is(asList(\"event 1\", \"event 2\")));\n assertThat(object2Received, is(asList(1)));\n\n }", "@Override\n public void publish(Event<? extends Enum, ?> event) {\n byte[] body = null;\n if (null == event) {\n log.error(\"Captured event is null...\");\n return;\n }\n if (event instanceof DeviceEvent) {\n body = bytesOf(MQUtil.json((DeviceEvent) event));\n } else if (event instanceof TopologyEvent) {\n body = bytesOf(MQUtil.json((TopologyEvent) event));\n } else if (event instanceof LinkEvent) {\n body = bytesOf(MQUtil.json((LinkEvent) event));\n } else {\n log.error(\"Invalid event: '{}'\", event);\n return;\n }\n processAndPublishMessage(body);\n }", "private void send() {\n vertx.eventBus().publish(GeneratorConfigVerticle.ADDRESS, toJson());\n }", "ConferenceScheduleBuilderService createEventsFromNetworkToEnd();", "@Test\n public void dispatchToMultipleSubscriberMethodsOnSameObject() {\n BaseEventBus eventBus = new SynchronousEventBus(LOG);\n\n final List<String> handler1Received = new ArrayList<>();\n final List<String> handler2Received = new ArrayList<>();\n Object object1 = new Object() {\n @Subscriber\n public void eventHandler1(String event) {\n handler1Received.add(event);\n }\n\n @Subscriber\n public void eventHandler2(String event) {\n handler2Received.add(event);\n }\n };\n\n eventBus.register(object1);\n\n eventBus.post(\"event 1\");\n eventBus.post(\"event 2\");\n\n // both subscribers should receive all items\n assertThat(handler1Received, is(asList(\"event 1\", \"event 2\")));\n assertThat(handler2Received, is(asList(\"event 1\", \"event 2\")));\n }", "EventHubs eventHubs();", "public abstract void emit(EventsHandler handler);", "IEvent[] getEvents();", "public void handle(QueueItem<T>[] events, SyncProducer producer, Encoder<T> encoder) throws Exception;", "void onBusEvent(Event event);", "public void listReceivedEvents() {\r\n for (Event event : receivedEvents) {\r\n System.out.print(event);\r\n }\r\n }", "@Test\n public void dispatchToBaseTypes() {\n BaseEventBus eventBus = new SynchronousEventBus(LOG);\n\n final List<Object> objectHandlerReceived = new ArrayList<>();\n Object objectHandler = new Object() {\n @Subscriber\n public void onEvent(Object event) {\n objectHandlerReceived.add(event);\n }\n };\n\n final List<Comparable<?>> comparableHandlerReceived = new ArrayList<>();\n Object comparableHandler = new Object() {\n @Subscriber\n public void onEvent(Comparable<?> event) {\n comparableHandlerReceived.add(event);\n }\n };\n\n final List<CharSequence> charSequenceHandlerReceived = new ArrayList<>();\n Object charSequenceHandler = new Object() {\n @Subscriber\n public void onEvent(CharSequence event) {\n charSequenceHandlerReceived.add(event);\n }\n };\n\n final List<CharSequence> stringHandlerReceived = new ArrayList<>();\n Object stringHandler = new Object() {\n @Subscriber\n public void onEvent(String event) {\n stringHandlerReceived.add(event);\n }\n };\n eventBus.register(objectHandler);\n eventBus.register(charSequenceHandler);\n eventBus.register(stringHandler);\n eventBus.register(comparableHandler);\n\n eventBus.post(\"event 1\");\n assertThat(objectHandlerReceived, is(asList(\"event 1\")));\n assertThat(comparableHandlerReceived, is(asList(\"event 1\")));\n assertThat(charSequenceHandlerReceived, is(asList(\"event 1\")));\n assertThat(stringHandlerReceived, is(asList(\"event 1\")));\n\n eventBus.post(Integer.MAX_VALUE);\n assertThat(objectHandlerReceived, is(asList(\"event 1\", Integer.MAX_VALUE)));\n assertThat(comparableHandlerReceived, is(asList(\"event 1\", Integer.MAX_VALUE)));\n assertThat(charSequenceHandlerReceived, is(asList(\"event 1\")));\n assertThat(stringHandlerReceived, is(asList(\"event 1\")));\n }", "public void processOffers(List<OfferPublishedEvent> events) {\n }", "private void createEvents()\r\n\t{\r\n\t\teventsCount.add(new Event(RequestMethod.PUT, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.GET, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.POST, 0));\r\n\t}", "@Override\n public void publish(Object event) {\n System.out.println(\"Sending Event\");\n\n List<Hub> hubList = hubFacade.findAll();\n Iterator<Hub> it = hubList.iterator();\n while (it.hasNext()) {\n Hub hub = it.next();\n restEventPublisher.publish(hub, event);\n\n\n //Thread.currentThread().sleep(1000);\n }\n System.out.println(\"Sending Event After\");\n }", "EventChannel create();", "@Override\n\tpublic void publishMessage(QPEvent event) {\n\t\tfor(final String endpoint : webhookRegistry.all()) {\n\t\t\tlog.debug(\"POSTing event to {}\", endpoint);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tCloseableHttpAsyncClient httpClient = HttpAsyncClients.createDefault();\n\t\t\t\thttpClient.start();\n\t\t\t\t\n\t\t\t\tHttpPost post = new HttpPost(endpoint);\n\t\t\t\tpost.setHeader(\"Content-Type\", \"application/json\");\n\t\t\t\tpost.setEntity(new StringEntity(objectMapper.writeValueAsString(event), \"UTF-8\"));\n\t\t\t\t\n\t\t\t\thttpClient.execute(post, new FutureCallback<HttpResponse>() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void failed(Exception ex) {\n\t\t\t\t\t\tlog.warn(\"Request for endpoint {} failed, removing endpoint\", endpoint);\n\t\t\t\t\t\twebhookRegistry.remove(endpoint);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void completed(HttpResponse result) {\n\t\t\t\t\t\tlog.debug(\"Request for endpoint {} completed\", endpoint);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void cancelled() {\n\t\t\t\t\t\tlog.debug(\"Request for endpoint {} cancelled\", endpoint);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} catch(Exception x) {\n\t\t\t\tlog.error(\"Error handling event.\", x);\n\t\t\t}\n\t\t}\n\t}", "public void send(SseEventBuilder builder)\n/* */ throws IOException\n/* */ {\n/* 123 */ Set<ResponseBodyEmitter.DataWithMediaType> dataToSend = builder.build();\n/* 124 */ synchronized (this) {\n/* 125 */ for (ResponseBodyEmitter.DataWithMediaType entry : dataToSend) {\n/* 126 */ super.send(entry.getData(), entry.getMediaType());\n/* */ }\n/* */ }\n/* */ }", "public void eventsPublishedByPub() {\r\n int index = 1;\r\n System.out.println(\"Events published by this publisher: \");\r\n for (Event event : pubEvents) {\r\n System.out.println(index + \"->\" + event + \"\\n\");\r\n index++;\r\n }\r\n }", "public void onEvent(EventIterator events) {\n\n }", "private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}", "BasicEvents createBasicEvents();", "public interface EventPipeLine {\n /**\n * Adds new event to the pipeline (queue)\n * @param e GameEvent instance\n */\n public void add(GameEvent e);\n\n /**\n * Calls all event processors and removes them from the queue\n */\n public void exec();\n\n /**\n * Removes all events. (ignore the events)\n */\n public void clear();\n\n /**\n * First event from the queue\n * @return GameEvent instance or null if empty\n */\n public GameEvent getFirst();\n\n /**\n * This method can be usefull if you want to know which events are there in the queue.\n * @return all events as GameEvent[] array\n */\n public GameEvent[] getEvents();\n\n /**\n * Number of events in the queue\n */\n public int size();\n \n}", "public EventBusConsumerFactory(Vertx vertx) {\n\t\tsuper();\n\t\tfinal MessageConsumer<String> consumer = vertx.eventBus().consumer(address);\n\t\tconsumer.handler(message -> {\n\t\t\tSystem.out.println(\"incoming message: \" + message.body());\n\t\t\tJsonObject reply = new JsonObject().put(\"message\", \"Replied Message\");\n\t\t\tmessage.reply(reply);\n\t\t});\n\t}", "public String arrangeEvents() throws Exception {\n JSONArray scheduledEventList = calObj.retrieveEvents(\"primary\").getJSONArray(\"items\");\n JSONArray unScheduledEventList = calObj.retrieveEvents(this.user.getCalId()).getJSONArray(\"items\");\n\n //Filter events for this week\n\n\n //Make a list of all events\n\n //Prioritise all unscheduled events\n\n\n //Send the list to client to display\n String events = \"\";\n for (int i = 0; i < scheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = scheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n // Unscheduled events set in bot created aPAS calendar\n for (int i = 0; i < unScheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = unScheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n return events;\n }", "public List<Event> getEvents() {\n List<Event> events = new ArrayList<>();\n\n Query query = new Query(\"Event\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID eventId = UUID.fromString(idString);\n String speaker = (String) entity.getProperty(\"speaker\");\n String organization = (String) entity.getProperty(\"organization\");\n String eventDate = (String) entity.getProperty(\"eventDate\");\n Location location = (Location) entity.getProperty(\"location\");\n List<String> amenities = getAmenities(eventId);\n String externalLink = (String) entity.getProperty(\"externalLink\");\n PublicType publicType = (PublicType) entity.getProperty(\"publicType\");\n long ownerId = (long) entity.getProperty(\"ownerId\");\n List<ThreadComment> thread = getThread(eventId);\n // long timeStamp = (long) entity.getProperty(\"timestamp\");\n\n Event event = new Event(eventId, speaker, organization, eventDate, location, amenities, externalLink,\n publicType, ownerId);\n event.copyThread(thread);\n events.add(event);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading event.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return events;\n }", "public void processEvents(Events events) {\n\n log.info(\"events processed: [{}]\", events.toString());\n }", "@Override\n public void publish(final EventData data) {\n LOGGER.debug(\"async event {} published via vert.x EventBus\", data.getData().ret$PQON());\n if (bus != null) {\n final EventParameters attribs = data.getData();\n if (attribs instanceof GenericEvent genericEvent) {\n bus.publish(toBusAddress(genericEvent.getEventID()), data, ASYNC_EVENTBUS_DELIVERY_OPTIONS);\n } else {\n bus.publish(toBusAddress(attribs.ret$PQON()), data, ASYNC_EVENTBUS_DELIVERY_OPTIONS);\n }\n } else {\n LOGGER.error(\"event bus is null - discarding event {}\", data.getData().ret$PQON());\n }\n }", "private void routeQueuedEvent() {\n \t\t\n \t\tfinal SleeTransactionManager txMgr = this.container.getTransactionManager();\n \t\t\t\t\n \t\tboolean rollbackTx = true;\n \t\t\n \t\ttry {\n \n \t\t\tEventContextImpl eventContextImpl = de.getEventRouterActivity().getCurrentEventContext();\n \t\t\tif (eventContextImpl == null) {\t\t\t\t\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t\tlogger.debug(\"\\n\\n\\nDelivering event : [[[ eventId \"\n \t\t\t\t\t\t\t+ de.getEventTypeId() + \" on ac \"+de.getActivityContextId()+\"\\n\");\n \t\t\t\t\n \t\t\t\t// event context not set, create it \n \t\t\t\teventContextImpl = new EventContextImpl(de,container);\n \t\t\t\tde.getEventRouterActivity().setCurrentEventContext(eventContextImpl);\n \t\t\t\t// do initial event processing\n \t\t\t\tEventTypeComponent eventTypeComponent = container.getComponentRepositoryImpl().getComponentByID(de.getEventTypeId());\n \t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\tlogger.debug(\"Active services for event \"+de.getEventTypeId()+\": \"+eventTypeComponent.getActiveServicesWhichDefineEventAsInitial());\n \t\t\t\t}\n \t\t\t\tfor (ServiceComponent serviceComponent : eventTypeComponent.getActiveServicesWhichDefineEventAsInitial()) {\n \t\t\t\t\tif (de.getService() == null || de.getService().equals(serviceComponent.getServiceID())) {\n \t\t\t\t\t\tinitialEventProcessor.processInitialEvents(serviceComponent, de, txMgr, this.container.getActivityContextFactory());\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\tif (eventContextImpl.isSuspendedNotTransacted()) {\n \t\t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t\t\tlogger.debug(\"\\n\\n\\nFreezing (due to suspended context) event delivery : [[[ eventId \"\n \t\t\t\t\t\t\t\t+ de.getEventTypeId() + \" on ac \"+de.getActivityContextId()+\"\\n\");\n \t\t\t\t\teventContextImpl.barrierEvent(de);\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t\t\tlogger.debug(\"\\n\\n\\nResuming event delivery : [[[ eventId \"\n \t\t\t\t\t\t\t+ de.getEventTypeId() + \" on ac \"+de.getActivityContextId()+\"\\n\");\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t// For each SBB that is attached to this activity context.\n \t\t\tboolean gotSbb = false;\n \t\t\tdo {\n \t\t\t\t\n \t\t\t\tString rootSbbEntityId = null;\n \t\t\t\tClassLoader invokerClassLoader = null;\n \t\t\t\tSbbEntity sbbEntity = null;\n \t\t\t\tSbbObject sbbObject = null;\n \n \t\t\t\ttry {\n \n \t\t\t\t\t/*\n \t\t\t\t\t * Start of SLEE Originated Invocation Sequence\n \t\t\t\t\t * ============================================== This\n \t\t\t\t\t * sequence consists of either: 1) One \"Op Only\" SLEE\n \t\t\t\t\t * Originated Invocation - in the case that it's a\n \t\t\t\t\t * straightforward event routing for the sbb entity. 2) One\n \t\t\t\t\t * \"Op and Remove\" SLEE Originated Invocation - in the case\n \t\t\t\t\t * it's an event routing to a root sbb entity that ends up\n \t\t\t\t\t * in a remove to the same entity since the attachment count\n \t\t\t\t\t * goes to zero after the event invocation 3) One \"Op Only\"\n \t\t\t\t\t * followed by one \"Remove Only\" SLEE Originated Invocation -\n \t\t\t\t\t * in the case it's an event routing to a non-root sbb\n \t\t\t\t\t * entity that ends up in a remove to the corresponding root\n \t\t\t\t\t * entity since the root attachment count goes to zero after\n \t\t\t\t\t * the event invocation Each Invocation Sequence is handled\n \t\t\t\t\t * in it's own transaction. All exception handling for each\n \t\t\t\t\t * invocation sequence is handled here. Any exceptions that\n \t\t\t\t\t * propagate up aren't necessary to be caught. -Tim\n \t\t\t\t\t */\n \n \t\t\t\t\t// If this fails then we propagate up since there's nothing to roll-back anyway\n \t\t\t\t\t\n \t\t\t\t\ttxMgr.begin();\n \t\t\t\t\t\n \t\t\t\t\tActivityContext ac = null;\n \t\t\t\t\tException caught = null;\n \t\t\t\t\tSbbEntity highestPrioritySbbEntity = null;\n \t\t\t\t\tClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();\n \t\t\t\t\t\n \t\t\t\t\tSet<String> sbbEntitiesThatHandledCurrentEvent = eventContextImpl.getSbbEntitiesThatHandledEvent();\n \t\t\t\t\t\n \t\t\t\t\ttry {\n \t\t\t\t\t\n \t\t\t\t\t\tac = container.getActivityContextFactory().getActivityContext(de.getActivityContextId(),true);\n \n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\thighestPrioritySbbEntity = nextSbbEntityFinder.next(ac, de.getEventTypeId(), de.getService(), sbbEntitiesThatHandledCurrentEvent);\n \t\t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\t\tlogger.warn(\"Failed to find next sbb entity to deliver the event \"+de+\" in \"+ac.getActivityContextId(), e);\n \t\t\t\t\t\t\thighestPrioritySbbEntity = null;\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\tif (highestPrioritySbbEntity == null) {\n \t\t\t\t\t\t\tgotSbb = false;\n \t\t\t\t\t\t\tsbbEntitiesThatHandledCurrentEvent.clear();\t\t\t\t\t\t\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tgotSbb = true;\n \t\t\t\t\t\t\tsbbEntitiesThatHandledCurrentEvent.add(highestPrioritySbbEntity.getSbbEntityId());\t\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\tif (gotSbb) {\n \n \t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t.debug(\"Highest priority SBB entity, which is attached to the ac \"+de.getActivityContextId()+\" , to deliver the event: \"\n \t\t\t\t\t\t\t\t\t\t\t\t+ highestPrioritySbbEntity.getSbbEntityId());\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t// CHANGE CLASS LOADER\n \t\t\t\t\t\t\tinvokerClassLoader = highestPrioritySbbEntity.getSbbComponent().getClassLoader();\n \t\t\t\t\t\t\tThread.currentThread().setContextClassLoader(invokerClassLoader);\n \n \t\t\t\t\t\t\tsbbEntity = highestPrioritySbbEntity;\n \t\t\t\t\t\t\trootSbbEntityId = sbbEntity.getRootSbbId();\n \n \t\t\t\t\t\t\tEventRouterThreadLocals.setInvokingService(sbbEntity.getServiceId());\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t// Assign an sbb from the pool\n \t\t\t\t\t\t\tsbbEntity.assignAndActivateSbbObject();\n \t\t\t\t\t\t\tsbbObject = sbbEntity.getSbbObject();\n \t\t\t\t\t\t\tsbbObject.sbbLoad();\n \n \t\t\t\t\t\t\t// GET AND CHECK EVENT MASK FOR THIS SBB ENTITY\n \t\t\t\t\t\t\tSet eventMask = sbbEntity.getMaskedEventTypes(de.getActivityContextId());\n \t\t\t\t\t\t\tif (!eventMask.contains(de.getEventTypeId())) {\n \n \t\t\t\t\t\t\t\t// TIME TO INVOKE THE EVENT HANDLER METHOD\n \t\t\t\t\t\t\t\tsbbObject.setSbbInvocationState(SbbInvocationState.INVOKING_EVENT_HANDLER);\n \t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t.debug(\"---> Invoking event handler: ac=\"+de.getActivityContextId()+\" , sbbEntity=\"+sbbEntity.getSbbEntityId()+\" , sbbObject=\"+sbbObject);\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\tsbbEntity.invokeEventHandler(de,ac,eventContextImpl);\n \n \t\t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t.debug(\"<--- Invoked event handler: ac=\"+de.getActivityContextId()+\" , sbbEntity=\"+sbbEntity.getSbbEntityId()+\" , sbbObject=\"+sbbObject);\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\t// check to see if the transaction is marked for\n \t\t\t\t\t\t\t\t// rollback if it is then we need to get out of\n \t\t\t\t\t\t\t\t// here soon as we can.\n \t\t\t\t\t\t\t\tif (txMgr.getRollbackOnly()) {\n \t\t\t\t\t\t\t\t\tthrow new Exception(\"The transaction is marked for rollback\");\n \t\t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t\tsbbObject.setSbbInvocationState(SbbInvocationState.NOT_INVOKING);\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 (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t.debug(\"Not invoking event handler since event is masked\");\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\t// IF IT'S AN ACTIVITY END EVENT DETACH SBB ENTITY HERE\n \t\t\t\t\t\t\tif (de.getEventTypeId().equals(ActivityEndEventImpl.EVENT_TYPE_ID)) {\n \t\t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t.debug(\"The event is an activity end event, detaching ac=\"+de.getActivityContextId()+\" , sbbEntity=\"+sbbEntity.getSbbEntityId());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\thighestPrioritySbbEntity.afterACDetach(de.getActivityContextId());\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t// CHECK IF WE CAN CLAIM THE ROOT SBB ENTITY\n \t\t\t\t\t\t\tif (rootSbbEntityId != null) {\n \t\t\t\t\t\t\t\tif (SbbEntityFactory.getSbbEntity(rootSbbEntityId).getAttachmentCount() != 0) {\n \t\t\t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t\t.debug(\"Not removing sbb entity \"+sbbEntity.getSbbEntityId()+\" , the attachment count is not 0\");\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t// the root sbb entity is not be claimed\n \t\t\t\t\t\t\t\t\trootSbbEntityId = null;\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\t// it's a root sbb\n \t\t\t\t\t\t\t\tif (!sbbEntity.isRemoved()\t&& sbbEntity.getAttachmentCount() == 0) {\n \t\t\t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t\t.debug(\"Removing sbb entity \"+sbbEntity.getSbbEntityId()+\" , the attachment count is not 0\");\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t// If it's the same entity then this is an\n \t\t\t\t\t\t\t\t\t// \"Op and\n \t\t\t\t\t\t\t\t\t// Remove Invocation Sequence\"\n \t\t\t\t\t\t\t\t\t// so we do the remove in the same\n \t\t\t\t\t\t\t\t\t// invocation\n \t\t\t\t\t\t\t\t\t// sequence as the Op\n \t\t\t\t\t\t\t\t\tSbbEntityFactory.removeSbbEntityWithCurrentClassLoader(sbbEntity,true);\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\tlogger.error(\"Failure while routing event; second phase. DeferredEvent [\"+ de.getEventTypeId() + \"]\", e);\n \t\t\t\t\t\tif (highestPrioritySbbEntity != null) {\n \t\t\t\t\t\t\tsbbObject = highestPrioritySbbEntity.getSbbObject();\n \t\t\t\t\t\t}\n \t\t\t\t\t\tcaught = e;\n \t\t\t\t\t} \n \t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t// do a final check to see if there is another SBB to\n \t\t\t\t\t// deliver.\n \t\t\t\t\t// We don't want to waste another loop. Note that\n \t\t\t\t\t// rollback\n \t\t\t\t\t// will not has any impact on this because the\n \t\t\t\t\t// ac.DeliveredSet\n \t\t\t\t\t// is not in the cache.\n \t\t\t\t\tif (gotSbb) {\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tif (nextSbbEntityFinder.next(ac, de.getEventTypeId(),de.getService(),sbbEntitiesThatHandledCurrentEvent) == null) {\n \t\t\t\t\t\t\t\tgotSbb = false;\n \t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Throwable e) {\n \t\t\t\t\t\t\tgotSbb = false;\n \t\t\t\t\t\t} \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (!gotSbb) {\n\t\t\t\t\t\tde.eventProcessingSucceed();\n\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\t\t\t\tlogger.debug(\"Delaying commit for 100ms, needed by wrongly designed tck transaction isolation tests. This only happens with DEBUG log level\");\n\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t}\t\t\t\t\t\t\n \t\t\t\t\t}\n\t\t\t\t\t\n \t\t\t\t\tThread.currentThread().setContextClassLoader(\n \t\t\t\t\t\t\toldClassLoader);\n \n \t\t\t\t\tboolean invokeSbbRolledBack = handleRollback.handleRollback(sbbObject, caught, invokerClassLoader,txMgr);\n \n \t\t\t\t\tboolean invokeSbbRolledBackRemove = false;\n \t\t\t\t\tClassLoader rootInvokerClassLoader = null;\n \t\t\t\t\tSbbEntity rootSbbEntity = null;\n \n \t\t\t\t\tif (!invokeSbbRolledBack && rootSbbEntityId != null) {\n \t\t\t\t\t\t/*\n \t\t\t\t\t\t * If we get here this means that we need to do a\n \t\t\t\t\t\t * cascading remove of the root sbb entity - since the\n \t\t\t\t\t\t * original invocation was done on a non-root sbb entity\n \t\t\t\t\t\t * then this is done in a different SLEE originated\n \t\t\t\t\t\t * invocation, but inside the same SLEE originated\n \t\t\t\t\t\t * invocation sequence. Confused yet? This is case 3) in\n \t\t\t\t\t\t * my previous comment - the SLEE originated invocation\n \t\t\t\t\t\t * sequence contains two SLEE originated invocations:\n \t\t\t\t\t\t * One \"Op Only\" and One \"Remove Only\" This is the\n \t\t\t\t\t\t * \"Remove Only\" part. We don't bother doing this if we\n \t\t\t\t\t\t * already need to rollback\n \t\t\t\t\t\t */\n \n \t\t\t\t\t\tcaught = null;\n \n \t\t\t\t\t\toldClassLoader = Thread.currentThread().getContextClassLoader();\n \n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\trootSbbEntity = SbbEntityFactory.getSbbEntity(rootSbbEntityId);\n \n \t\t\t\t\t\t\trootInvokerClassLoader = rootSbbEntity.getSbbComponent().getClassLoader();\n \t\t\t\t\t\t\tThread.currentThread().setContextClassLoader(rootInvokerClassLoader);\n \n \t\t\t\t\t\t\tSbbEntityFactory.removeSbbEntity(rootSbbEntity,true);\n \n \t\t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\t\tlogger.error(\"Failure while routing event; third phase. Event Posting [\"+ de + \"]\", e);\n \t\t\t\t\t\t\tcaught = e;\n \t\t\t\t\t\t} finally {\n \n \t\t\t\t\t\t\tThread.currentThread().setContextClassLoader(oldClassLoader);\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\t// We have no target sbb object in a Remove Only SLEE\n \t\t\t\t\t\t// originated invocation\n \t\t\t\t\t\t// FIXME emmartins review\n \t\t\t\t\t\tinvokeSbbRolledBackRemove = handleRollback.handleRollback(null, caught, rootInvokerClassLoader,txMgr);\n \t\t\t\t\t}\n \n \t\t\t\t\t/*\n \t\t\t\t\t * We are now coming to the end of the SLEE originated\n \t\t\t\t\t * invocation sequence We may need to run sbbRolledBack This\n \t\t\t\t\t * is done in the same tx if there is no target sbb entity\n \t\t\t\t\t * in any of the SLEE originated invocations making up this\n \t\t\t\t\t * SLEE originated invocation sequence Otherwise we do it in\n \t\t\t\t\t * a separate tx for each SLEE originated invocation that\n \t\t\t\t\t * has a target sbb entity. In other words we might have a\n \t\t\t\t\t * maximum of 2 sbbrolledback callbacks invoked in separate\n \t\t\t\t\t * tx in the case this SLEE Originated Invocation Sequence\n \t\t\t\t\t * contained an Op Only and a Remove Only (since these have\n \t\t\t\t\t * different target sbb entities) Pretty obvious really! ;)\n \t\t\t\t\t */\n \t\t\t\t\tif (invokeSbbRolledBack && sbbEntity == null) {\n \t\t\t\t\t\t// We do it in this tx\n \t\t\t\t\t\thandleSbbRollback.handleSbbRolledBack(null, sbbObject, null, null, invokerClassLoader, false, txMgr);\n \t\t\t\t\t} else if (sbbEntity != null && !txMgr.getRollbackOnly()\n \t\t\t\t\t\t\t&& sbbEntity.getSbbObject() != null) {\n \n \t\t\t\t\t\tsbbObject.sbbStore();\n \t\t\t\t\t\tsbbEntity.passivateAndReleaseSbbObject();\n \n \t\t\t\t\t}\n \n \t\t\t\t\tif (txMgr.getRollbackOnly()) {\n \t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t.debug(\"Rolling back SLEE Originated Invocation Sequence\");\n \t\t\t\t\t\t}\n \t\t\t\t\t\ttxMgr.rollback();\n \t\t\t\t\t} else {\n \t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t.debug(\"Committing SLEE Originated Invocation Sequence\");\n \t\t\t\t\t\t}\n \t\t\t\t\t\ttxMgr.commit();\n \t\t\t\t\t}\n \n \t\t\t\t\t/*\n \t\t\t\t\t * Now we invoke sbbRolledBack for each SLEE originated\n \t\t\t\t\t * invocation that had a target sbb entity in a new tx - the\n \t\t\t\t\t * new tx creating is handled inside the handleSbbRolledBack\n \t\t\t\t\t * method\n \t\t\t\t\t */\n \t\t\t\t\tif (invokeSbbRolledBack && sbbEntity != null) {\n \t\t\t\t\t\t// Firstly for the \"Op only\" or \"Op and Remove\" part\n \t\t\t\t\t\tsbbEntity.getSbbEntityId();\n \t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t.debug(\"Invoking sbbRolledBack for Op Only or Op and Remove\");\n \n \t\t\t\t\t\t}\n \t\t\t\t\t\t//FIXME: baranowb: de is passed for test: tests/sbb/abstractclass/SbbRolledBackNewTransaction.xml\n \t\t\t\t\t\thandleSbbRollback.handleSbbRolledBack(sbbEntity, null, de, new ActivityContextInterfaceImpl(ac), invokerClassLoader, false, txMgr);\n \t\t\t\t\t}\n \t\t\t\t\tif (invokeSbbRolledBackRemove) {\n \t\t\t\t\t\t// Now for the \"Remove Only\" if appropriate\n \t\t\t\t\t\thandleSbbRollback.handleSbbRolledBack(rootSbbEntity, null, null, null, rootInvokerClassLoader, true, txMgr);\t\t\t\t\t\t\n \t\t\t\t\t}\n \n \t\t\t\t\t/*\n \t\t\t\t\t * A note on exception handling here- Any exceptions thrown\n \t\t\t\t\t * further further up that need to be caught in order to\n \t\t\t\t\t * handle rollback or otherwise maintain consistency of the\n \t\t\t\t\t * SLEE state are all handled further up I.e. We *do not*\n \t\t\t\t\t * need to call rollback here. So any exceptions that get\n \t\t\t\t\t * here do not result in the SLEE being in an inconsistent\n \t\t\t\t\t * state, therefore we just log them and carry on.\n \t\t\t\t\t */\n \n \t\t\t\t\trollbackTx = false;\n \t\t\t\t} catch (RuntimeException e) {\n \t\t\t\t\tlogger.error(\n \t\t\t\t\t\t\t\"Unhandled RuntimeException in event router: \", e);\n \t\t\t\t} catch (Exception e) {\n \t\t\t\t\tlogger.error(\"Unhandled Exception in event router: \", e);\n \t\t\t\t} catch (Error e) {\n \t\t\t\t\tlogger.error(\"Unhandled Error in event router: \", e);\n \t\t\t\t\tthrow e; // Always rethrow errors\n \t\t\t\t} catch (Throwable t) {\n \t\t\t\t\tlogger.error(\"Unhandled Throwable in event router: \", t);\n \t\t\t\t} finally {\n \t\t\t\t\ttry {\n \t\t\t\t\t\tif (txMgr.getTransaction() != null) {\n \t\t\t\t\t\t\tif (rollbackTx) {\n \t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t.error(\"Rolling back tx in routeTheEvent.\");\n \t\t\t\t\t\t\t\ttxMgr.rollback();\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t.error(\"Transaction left open in routeTheEvent! It has to be pinned down and fixed! Debug information follows.\");\n \t\t\t\t\t\t\t\tlogger.error(txMgr\n \t\t\t\t\t\t\t\t\t\t.displayOngoingSleeTransactions());\n \t\t\t\t\t\t\t\ttxMgr.commit();\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t} catch (SystemException se) {\n \n \t\t\t\t\t\tlogger.error(\"Failure in TX operation\", se);\n \t\t\t\t\t}\n \t\t\t\t\tif (sbbEntity != null) {\n \t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t.debug(\"Finished delivering the event \"\n \t\t\t\t\t\t\t\t\t\t\t+ de.getEventTypeId()\n \t\t\t\t\t\t\t\t\t\t\t+ \" to the sbbEntity = \"\n \t\t\t\t\t\t\t\t\t\t\t+ sbbEntity.getSbbEntityId()\n \t\t\t\t\t\t\t\t\t\t\t+ \"]]] \\n\\n\\n\");\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\tEventRouterThreadLocals.setInvokingService(null);\n \t\t\t\t\n \t\t\t\tif (eventContextImpl.isSuspendedNotTransacted()) {\n \t\t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t\t\tlogger.debug(\"\\n\\n\\nSuspended event delivery : [[[ eventId \"\n \t\t\t\t\t\t\t+ de.getEventTypeId() + \" on ac \"+de.getActivityContextId()+\"\\n\");\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// need to ensure gotSbb = false if and only if iter.hasNext()\n \t\t\t\t// == false\n \t\t\t} while (gotSbb);\n \n \t\t\t\n \t\t\t/*\n \t\t\t * End of SLEE Originated Invocation Sequence\n \t\t\t * ==========================================\n \t\t\t * \n \t\t\t */\n \n \t\t\tif (de.getEventTypeId().equals(ActivityEndEventImpl.EVENT_TYPE_ID)) {\n \t\t\t\tactivityEndEventPostProcessor.process(de.getActivityContextId(), txMgr, this.container.getActivityContextFactory());\n \t\t\t} else if (de.getEventTypeId().equals(TimerEventImpl.EVENT_TYPE_ID)) {\n \t\t\t\ttimerEventPostProcessor.process(de,this.container.getTimerFacility());\n\t\t\t}\t\t\t\n \n \t\t\t// we got to the end of the event routing, remove the event context\n \t\t\tde.getEventRouterActivity().setCurrentEventContext(null);\n \t\t\t// manage event references\n \t\t\tDeferredEventReferencesManagement eventReferencesManagement = container.getEventRouter().getDeferredEventReferencesManagement();\n \t\t\teventReferencesManagement.eventUnreferencedByActivity(de.getEvent(), de.getActivityContextId());\n \t\t\t\n \t\t} catch (Exception e) {\n \t\t\tlogger.error(\"Unhandled Exception in event router top try\", e);\n \t\t}\n \t}", "public interface Events {\n\n /**\n * Archive has stored the entities within a SIP.\n * <p>\n * Indicates that a SIP has been sent to the archive. May represent an add,\n * or an update.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Number of entities archived</dd>\n * <dt>eventTarget</dt>\n * <dd>every archived entity</dd>\n * </dl>\n * </p>\n */\n public static final String ARCHIVE = \"archive\";\n\n /**\n * Signifies that an entity has been identified as a member of a specific\n * batch load process.\n * <p>\n * There may be an arbitrary number of independent events signifying the\n * same batch (same outcome, date, but different sets of targets). A unique\n * combination of date and outcome (batch label) identify a batch.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Batch label/identifier</dd>\n * <dt>eventTarget</dt>\n * <dd>Entities in a batch</dd>\n * </dl>\n * </p>\n */\n public static final String BATCH = \"batch\";\n\n /**\n * File format characterization.\n * <p>\n * Indicates that a format has been verifiably characterized. Format\n * characterizations not accompanied by a corresponding characterization\n * event can be considered to be unverified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>format, in the form \"scheme formatId\" (whitespace separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of characterized file</dd>\n * </dl>\n * </p>\n */\n public static final String CHARACTERIZATION_FORMAT =\n \"characterization.format\";\n\n /**\n * Advanced file characterization and/or metadata extraction.\n * <p>\n * Indicates that some sort of characterization or extraction has produced a\n * document containing file metadata.\n * </p>\n * *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>id of File containing metadata</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File the metadata describes</dd>\n * </dl>\n */\n public static final String CHARACTERIZATION_METADATA =\n \"characterization.metadata\";\n\n /**\n * Initial deposit/transfer of an item into the DCS, preceding ingest.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>SIP identifier uid</dd>\n * <dt>eventTarget</dt>\n * <dd>id of deposited entity</dd>\n * </dl>\n * </p>\n */\n public static final String DEPOSIT = \"deposit\";\n\n /**\n * Content retrieved by dcs.\n * <p>\n * Represents the fact that content has been downloaded/retrieved by the\n * dcs.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstances\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been downloaded</dd>\n * </dl>\n */\n public static final String FILE_DOWNLOAD = \"file.download\";\n\n /**\n * uploaaded/downloaded file content resolution.\n * <p>\n * Indicates that the reference URI to a unit of uploaded or downloaded file\n * content has been resolved and replaced with the DCS file access URI.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>reference_URI</code> 'to' <code>dcs_URI</code></dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been resolved</dd>\n * </dl>\n */\n public static final String FILE_RESOLUTION_STAGED = \"file.resolution\";\n\n /**\n * Indicates the uploading of file content.\n * <p>\n * Represents the physical receipt of bytes from a client.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstanced\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been uploaded</dd>\n * </dl>\n */\n public static final String FILE_UPLOAD = \"file.upload\";\n\n /**\n * Fixity computation/validation for a particular File.\n * <p>\n * Indicates that a particular digest has been computed for given file\n * content. Digest values not accompanied by a corresponding event may be\n * considered to be un-verified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>computed digest value of the form \"alorithm value\" (whitepsace\n * separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of digested file</dd>\n * </dl>\n * </p>\n */\n public static final String FIXITY_DIGEST = \"fixity.digest\";\n\n /**\n * Assignment of an identifier to the given entity, replacing an\n * existing/temporary id. *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>old_identifier</code> 'to' <code>new_identifier</code></dd>\n * <dt>eventTarget</dt>\n * <dd>new id of object</dd>\n * </dl>\n */\n public static final String ID_ASSIGNMENT = \"identifier.assignment\";\n\n /**\n * Marks the start of an ingest process.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_START = \"ingest.start\";\n\n /**\n * Signifies a successful ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_SUCCESS = \"ingest.complete\";\n\n /**\n * Signifies a failed ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_FAIL = \"ingest.fail\";\n\n /**\n * Signifies that a feature extraction or transform has successfully\n * occurred.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM = \"transform\";\n\n /**\n * Signifies that a feature extraction or transform failed.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM_FAIL = \"transform.fail\";\n\n /**\n * Signifies a file has been scanned by the virus scanner.\n * <p>\n * Indicates that a file has been scanned by a virus scanner. There could be\n * more than one event for a file.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of file whose content was scanned</dd>\n * </dl>\n * </p>\n */\n public static final String VIRUS_SCAN = \"virus.scan\";\n\n /**\n * Signifies an new deliverable unit is being ingested as an update to the target deliverable unit.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of the deliverable unit being updated</dd>\n * </dl>\n * </p>\n */\n public static final String DU_UPDATE = \"du.update\";\n\n}", "private void createEvents() {\n\t\taddBtn.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbuildOutput();\n\t\t\t}\n\t\t});\n\t}", "FutureEventList() {\n q = new PriorityQueue<Event>(10, new EventComperator());\n }", "public List<InputEvent> getEvents() {\n return new ArrayList<>(events);\n }", "UncommittedEvents events() {\n var events = get().stream()\n .flatMap(segment -> segment.getEventList()\n .stream())\n .collect(toList());\n return UncommittedEvents.ofNone()\n .append(events);\n }", "private void registerGlobalEvents() {\n\t\tsubmit(new CycleEvent());\n\t\tsubmit(new CleanupEvent());\n\t\tsubmit(new FloorItemEvent());\n\t}", "void publish(Event event) throws PublishingException;", "private List<Event> generateEvents() {\n\t\tList<Event> events = new ArrayList<Event>();\n\t\tint numEvents = random.nextInt(2) + 1;\n\t\tfor (int i = 0; i < numEvents; i++) {\n\t\t\tEvent newEvent = null;\n\t\t\tdo {\n\t\t\t\tnewEvent = new Event(db);\n\t\t\t} while (events.contains(newEvent)); // make sure only one instance of an event occurs per turn\n\t\t\tevents.add(newEvent);\t\t\t\n\t\t}\n\t\treturn events;\n\t}", "public void doSomeChanges() {\n\n eventBus.publish(\"our.event.coming.from.model\", \"some data passed\");\n }", "ConferenceScheduleBuilderService createEventsFromLunchToNetwork();", "public abstract Event[] getInitialEvents();", "@NotNull Publisher<Void> send(Publisher<VesEvent> messages);", "@Test\n public void registerMultipleObjects() {\n BaseEventBus eventBus = new SynchronousEventBus(LOG);\n\n Object object1 = new Object() {\n @Subscriber\n public void onStringEvent(String event) {\n LOG.debug(\"handled event: {}\", event);\n }\n\n @Subscriber\n public void onIntEvent(Integer event) {\n LOG.debug(\"handled event: {}\", event);\n }\n };\n\n Object object2 = new Object() {\n @Subscriber\n public void onStringEvent(String event) {\n LOG.debug(\"handled event: {}\", event);\n }\n };\n\n eventBus.register(object1);\n eventBus.register(object2);\n assertThat(eventBus.objectSubscriberMethods.size(), is(2));\n assertThat(eventBus.eventTypeToSubscriberMethods.size(), is(2));\n assertThat(eventBus.eventTypeToSubscriberMethods.get(String.class).size(), is(2));\n assertThat(eventBus.eventTypeToSubscriberMethods.get(Integer.class).size(), is(1));\n\n }", "@Override\n public void postEvent(Event event)\n {\n normalQueue.offer(event);\n }", "@Test\n public void testEventSourcingFromAsynchronousSubscribable() throws Exception {\n FunctionalReactives<Void> fr =\n FunctionalReactives.createAsync( //assume source happens in a different thread\n aSubscribableWillAsyncFireIntegerOneToFive() //a subscribable implementation\n )\n .filter(new Predicate<Integer>() {\n @Override\n public boolean apply(Integer input) {\n return input % 2 == 0; //filter out odd integers\n }\n })\n .forEach(println()); //print out reaction results each in a line\n\n fr.start(); //will trigger Subscribable.doSubscribe()\n fr.shutdown(); //will trigger Subscribable.unsubscribe() which in above case will await for all the integers scheduled\n\n //Reaction walk through:\n // Original source: 1 -> 2 -> 3 -> 4 -> 5 -> |\n // Filter events: ---> 2 ------> 4 ------> |\n // Print out results: -> \"2\\n\" ---> \"4\\n\" ---> |\n\n }", "void startPumpingEvents();", "@GetMapping(value = \"/events\", produces = MediaType.TEXT_EVENT_STREAM_VALUE)\n\tpublic Flux<ProductEvent> getProductEvents() {\n\t\treturn Flux.interval(Duration.ofSeconds(1))\n\t\t\t\t.map(val ->\n\t\t\t\t\t\tnew ProductEvent(val, \"Product Event\"));\n\t}", "private void fireEvents() {\n\n if (clockTickCount % clockTicksTillWorkloadChange == 0) {\n clockEventPublisher.fireTriggerWorkloadHandlerEvent(clockTickCount, intervalDurationInMilliSeconds);\n }\n\n // if (clockTickCount % clockTicksTillScalingDecision == 0) {\n // clockEventPublisher.fireTriggerAutoScalerEvent(clockTickCount,\n // intervalDurationInMilliSeconds);\n // }\n\n clockEventPublisher.fireClockEvent(clockTickCount, intervalDurationInMilliSeconds);\n\n // INfrastruktur\n if (clockTickCount % clockTicksTillPublishInfrastructureState == 0) {\n clockEventPublisher.fireTriggerPublishInfrastructureStateEvent(clockTickCount,\n intervalDurationInMilliSeconds);\n\n }\n\n // Queue\n if (clockTickCount % clockTicksTillPublishQueueState == 0) {\n\n clockEventPublisher.fireTriggerPublishQueueStateEvent(clockTickCount, intervalDurationInMilliSeconds);\n }\n\n }", "public abstract Map<String, Event> getEvents();", "EventChannelDestination destination();", "@NonNull\n public List<HubEvent<?>> await() {\n Latch.await(latch);\n return Immutable.of(events);\n }", "@Override\n\tpublic Set<Event> getEvents() {\n return events;\n }", "protected final void registerEvents() {\n LogUtils.i(TAG, \"Register socket event\");\n if (disposables == null || disposables.isDisposed())\n disposables = new CompositeDisposable();\n Disposable socketEvent = RxSocket.getSocketEvent()\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Consumer<SocketEvent>() {\n @Override\n public void accept(SocketEvent socketEvent) throws Exception {\n\n if (socketEvent == null || socketEvent.getEventType() != SocketEvent.EVENT_RECEIVE) {\n LogUtils.w(TAG, \"socket Event -------> null!\");\n return;\n }\n\n UserPreferences userPreferences = UserPreferences.getInstance();\n if (userPreferences.getCurrentFriendChat().equals(socketEvent.getMessage().getSenderId())) {\n //Yourself online in chat room\n LogUtils.w(TAG, \"socket Event ------->Yourself online in chat room\");\n return;\n }\n\n //Send broad cast to show notification panel if has new message from all friend if need\n if (socketEvent.getMessage() != null && socketEvent.getMessage().getMessageType() != null) {\n LogUtils.i(TAG, \"socket Event ------->Show notification on the SnackBar: \" + socketEvent.getMessage().getMessageType().intern());\n onShowNotification(socketEvent.getMessage());\n }\n\n }\n }, new Consumer<Throwable>() {\n @Override\n public void accept(Throwable throwable) throws Exception {\n LogUtils.e(TAG, \"throwable socket \" + throwable.getMessage());\n throwable.printStackTrace();\n }\n });\n\n disposables.add(socketEvent);\n }", "public void bindHandlers() {\n\n _eventBus.addHandler(NewIncidentEvent.TYPE, new NewIncidentEventHandler() {\n\n @Override\n public void onNewIncidentEventHandler(NewIncidentEvent event) {\n\n newIncident(event.getIncident());\n //addTodo(event.getTodoTitle());\n }\n });\n\n _eventBus.addHandler(AddressSearchEvent.TYPE, new AddressSearchEventHandler() {\n\n @Override\n public void onAddressSearchEventHandler(AddressSearchEvent event) {\n requestAddress(event.getTypedAddress());\n //addTodo(event.getTodoTitle());\n }\n });\n\n _eventBus.addHandler(RepairCallEvent.TYPE, new RepairCallEventHandler() {\n\n @Override\n public void onRepairCallEventHandler(RepairCallEvent event) {\n\n updateIncident(event.getIncident());\n //addTodo(event.getTodoTitle());\n }\n });\n }", "public EventsDTO getEvents();", "public void configure() throws Exception {\n\t\t\n\t\tXPathBuilder xPathBuilder = new XPathBuilder\n\t\t\t\t(\"//audit-events/audit-event\");\n\n\t\tfrom(\"activemq:batch.events\").\n\t\t\tsplit(xPathBuilder).\n\t\t\tparallelProcessing().\n\t\t\tto(\"activemq:insurance.events\");\n\t}", "private void initEvents() {\r\n\t\teventPool = new EventPool();\r\n\t\teventPool.addEvent(new BlockGeneratorEvent(this));\r\n\t\teventPool.addEvent(new BlockOffScreenEvent(this));\r\n\t\teventPool.addEvent(new DeathEvent(myDropThis, this));\r\n\t}", "protected void registerContractEvents()\n {\n Event event = new Event(\"aborted\", new ArrayList<TypeReference<?>>(), new ArrayList<TypeReference<?>>());\n registerEvent(event);\n }", "boolean deliver(String busType, String topic, Object event);", "@Counted(name = \"events\", description = \"How many events were fired\")\n public List<Notification> handle(Event event) {\n logger.infov(\"Handling event {0}\", event.name());\n return captainHook.subscriptions().stream()\n .map(subscription -> subscription.yield(event))\n .filter(Optional::isPresent)\n .map(Optional::get)\n .peek(this::handle)\n .collect(Collectors.toList());\n }", "public EventQueue(){}", "public Collection<SapEvent> getEvents(final SessionContext ctx)\n\t{\n\t\treturn EVENTSHANDLER.getValues( ctx, this );\n\t}", "WithCreate withDestination(EventChannelDestination destination);", "private static List<Event> getMyEvents(List<Registration> registrations) {\n List<Event> result = new ArrayList<>();\n for (Registration registration : registrations) {\n result.add(registration.getEvent());\n }\n return result;\n }", "@Override\n protected void initializeEventList()\n {\n }", "@Test\n public void shouldEmitEvents() {\n Observable.just('A', 'B', 'C')\n .subscribeOn(scheduler)\n .subscribe(subscriber);\n\n scheduler.advanceTimeBy(100, TimeUnit.MILLISECONDS);\n subscriber.assertCompleted();\n subscriber.assertValueCount(3);\n subscriber.assertValues('A', 'B', 'C');\n\n TimeDelayer.sleepForOneSecond();\n }", "public interface BAPushDataEventHandler {\n\tpublic void publishedData(BAEvent event);\n}", "@Override\r\n\tpublic IMessageEvents getMessageEvents() {\r\n\t\treturn replay.messageEvents;\r\n\t}", "@MessagingGateway(defaultRequestChannel = \"eventOutput\")\ninterface EventWriter {\n\n @Gateway(requestChannel = \"eventOutput\")\n void writeEvent(Event event);\n}", "public List<Events> getAllSystemEventsListForAll();", "public void removeEvents(){\n for(Entry<Class, List<EventTrigger>> eventGroup: HandlerRegistry.getHandlers().entrySet()){\n String annotation = eventGroup.getKey().getName();\n List<EventTrigger> eventTriggers = new ArrayList<EventTrigger>(eventGroup.getValue());\n for(EventTrigger trigger : eventTriggers){\n if(trigger.getServer()==this) { // do not send own events...\n ESRemoveEvent esre = new ESRemoveEvent(annotation, trigger.getTrigger());\n for(EventShare es : EventShare.getEventShareServers()){\n if(es!=this) {\n if (es.isShareOut()) {\n try {\n es.getEventBusServer().write(esre);\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }\n }\n HandlerRegistry.getHandlers().get(eventGroup.getKey()).remove(trigger);\n System.out.println(HandlerRegistry.getHandlers());\n }\n }\n }\n }", "public Event subscribe(Address resource, String event, int expires, Content body);", "private EventsCollector() {\n\t\tsuper();\n\t}", "public PriorityQueue<Event> getEventList() {\n return new PriorityQueue<Event>(eventsList);\n }", "private void initializeEvents() {\r\n\t}", "ScheduledEvents getScheduledEvents();", "public Set<EventTO> getEvents() {\n\n Iterable<Event> events = eventRepository.findAll();\n LOGGER.info(\"Returning all events\");\n return mapperService.convertToEventTO(events);\n\n }", "private void createEvents() {\n\t\tbtnPushTheButton.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t\n\t\t\tprivate List<String> b;\n\n\t\n\t\t\t//@SuppressWarnings(\"unchecked\")\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tact = true;\n\t\t\t\t\n//\t\t\t\tb = new ArrayList<String>();\n//\t\t\t\t\n//\t\t\t\tthis.b= (List<String>) ((List<Object>) (agent.v.getData())).stream().map(item -> {\n//\t\t\t\t\treturn (String) item;\n//\t\t\t\t});\n//\t\t\t\tString c = String.join(\", \", b);\n//\t\t\t\tclassTextArea.setText(c);\n//\t\t\t\n//\t\t\t\tclassTextArea.setText(b.toString());\n//\t\t\t\t\n//\t\t\t\treturn;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t});\n\t\t\n\t}", "private void eventSimulation() {\n Long minTimestamp;\n EventGenerator generator;\n int eventsRemaining = simulationProperties.getNoOfEventsRequired();\n try {\n while (!isStopped) {\n// if the simulator is paused, wait till it is resumed\n synchronized (this) {\n while (isPaused) {\n wait();\n }\n }\n /**\n * if there is no limit to the number of events to be sent or is the number of event remaining to be\n * sent is > 0, send an event, else stop event simulation\n * */\n if (eventsRemaining == -1 || eventsRemaining > 0) {\n minTimestamp = -1L;\n generator = null;\n /**\n * 1. for each event generator peek the next event (i.e. the next event with least timestamp)\n * 2. take the first event generator will a not null nextEvent as the first refferal value for\n * generator with minimum timestamp event, and take the events timestamp as the minimum timestamp\n * refferal value\n * 3. then compare the timestamp of the remaining not null nextEvents with the minimum timestamp and\n * update the minimum timestamp refferal value accordingly.\n * 4. once all generators are iterated and the event with minimum timestamp if obtained, send event.\n * 5. if all generators has nextEvent == null, then stop event simulation\n * */\n for (EventGenerator eventGenerator : generators) {\n if (eventGenerator.peek() != null) {\n if (minTimestamp == -1L) {\n minTimestamp = eventGenerator.peek().getTimestamp();\n generator = eventGenerator;\n } else if (eventGenerator.peek().getTimestamp() < minTimestamp) {\n minTimestamp = eventGenerator.peek().getTimestamp();\n generator = eventGenerator;\n }\n }\n }\n if (minTimestamp >= 0L && generator != null) {\n log.info(\"Input Event (\" + uuid + \") : \"\n + Arrays.deepToString(generator.peek().getData()));\n EventSimulatorDataHolder.getInstance().getEventStreamService()\n .pushEvent(generator.getExecutionPlanName(), generator.getStreamName(),\n generator.poll());\n } else {\n break;\n }\n if (eventsRemaining > 0) {\n eventsRemaining--;\n }\n Thread.sleep(simulationProperties.getTimeInterval());\n } else {\n break;\n }\n }\n stop();\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n } catch (EventGenerationException e) {\n /**\n * catch exception so that any resources opened could be closed and rethrow an exception indicating which\n * simulation failed\n * */\n stop();\n throw new EventGenerationException(\"Error occurred when generating an event for simulation '\" +\n simulationProperties.getSimulationName() + \"'. \", e);\n }\n }", "ConferenceScheduleBuilderService createEventsFromStartToLunch();", "@Override\n\tpublic <T> Future<T> sendEvent(Event<T> e) {\n\t\tif(!registrationHashMap.containsKey(e)) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\t// retrieving list of microservices subscribed to this type of event\n\t\t\tArrayList<MicroService> a = registrationHashMap.get(e);\n\t\t\t// first microservice in \"queue will receive the message\n\t\t\tMicroService m = a.get(0);\n\t\t\tint index = registeredMicroservice.indexOf(m);\n\t\t\tmicroserviceMessageQueue.get(index).add(e);\n\t\t\t//round robin implementation - after microservice receives a message it is removed and added\n\t\t\t// in order to keep a linear order in which subscribed microservices receive event\n\t\t\tregistrationHashMap.get(e).remove(m);\n\t\t\tregistrationHashMap.get(e).add(m);\n\t\t\t//Future<Event> result = new Future();\n\t\t\treturn null; //WHAT TO RETURNNNN\n\t\t}\n\t}", "void parseEventList() {\n\t\tfor (int eventsId : events.keySet()) {\n\t\t\tfinal Event event = events.get(eventsId);\n\t\t\tif (users.get(event.getUser().getName()).isActiveStatus()\n\t\t\t\t\t&& !event.isViewed()\n\t\t\t\t\t&& event.getInnerSisdate().compareTo(\n\t\t\t\t\t\t\tnew GregorianCalendar()) >= 0) {\n\t\t\t\tevent.setViewed(true);\n\t\t\t\tfinal SimpleDateFormat fm = new SimpleDateFormat(\n\t\t\t\t\t\t\"dd.MM.yyyy-HH:mm:ss\");\n\t\t\t\tt.schedule(new TimerTask() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif (event.isActive()) {\n\t\t\t\t\t\t\tgenerateEventMessage(\"User \"\n\t\t\t\t\t\t\t\t\t+ event.getUser().getName()\n\t\t\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t\t\t+ fm.format(event.getInnerSisdate()\n\t\t\t\t\t\t\t\t\t\t\t.getTime()) + \" \" + event.getText());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}, event.getInnerSisdate().getTime());\n\n\t\t\t}\n\t\t}\n\n\t}", "WithCreate withSource(EventChannelSource source);", "public interface EventFilter {\n\n /**\n * Filter an event\n *\n * @param eventName\n * name of the event to filter\n * @param params\n * objects sent with the event\n * @param eventBus\n * event bus used to fire the event\n * @return false if event should be stopped, true otherwise\n */\n boolean filterEvent(String eventName, Object[] params, Object eventBus);\n}", "EventChannelSource source();", "public ArrayList<Event> getEvents(){return new ArrayList<Event>(events);}", "EventBus getEventBus();" ]
[ "0.63816494", "0.6193212", "0.6067004", "0.5970595", "0.59702307", "0.5939835", "0.58748573", "0.58462924", "0.5833316", "0.57680327", "0.5767944", "0.57488847", "0.56799036", "0.566277", "0.5658286", "0.5642642", "0.56086504", "0.5580137", "0.5538653", "0.5522616", "0.5515886", "0.5512786", "0.54927117", "0.5485312", "0.54746914", "0.54695046", "0.5468544", "0.545226", "0.54271424", "0.5416044", "0.5415304", "0.54045963", "0.540386", "0.5392345", "0.53919184", "0.53894186", "0.53454846", "0.5330882", "0.5316722", "0.53107625", "0.5305094", "0.52885115", "0.52873266", "0.52706504", "0.52504414", "0.5243452", "0.52430934", "0.5219131", "0.52185464", "0.5207919", "0.5198187", "0.51786697", "0.51781124", "0.51769674", "0.5169093", "0.5155899", "0.5138912", "0.51272976", "0.5120572", "0.5117172", "0.51080567", "0.51044905", "0.5084865", "0.5083516", "0.5060131", "0.50478053", "0.5045521", "0.5041953", "0.50384355", "0.5017129", "0.50154525", "0.50054646", "0.4987974", "0.49873212", "0.49866384", "0.49788004", "0.49748155", "0.4970918", "0.4968438", "0.4948758", "0.49480027", "0.49478427", "0.49467838", "0.4946767", "0.49401116", "0.49364275", "0.49356437", "0.49324724", "0.49322233", "0.49266243", "0.4926154", "0.4925905", "0.49246758", "0.49243346", "0.49236068", "0.4913508", "0.4909483", "0.49036774", "0.4899972", "0.48970416" ]
0.52388436
47
get comment to see
public static List<Comment> getCommentByMB(int idtargetmicroblog) throws SQLException { List<Comment> comments = new ArrayList<Comment>(); Connection c = DriverManager.getConnection(connectionString,dbUsername, dbPassword); PreparedStatement ps = null; ResultSet rs = null; try { /*List focusingIdusers = getAllFocusingIdusers(iduser); for(int focusingIduser:focusingIdusers){ focusingIduser }*/ ps = c.prepareStatement(GetCommentByMB);//prepare the statement according to the SQL statement. ps.setInt(1, idtargetmicroblog); rs = ps.executeQuery();//Execute the Query //get data line by line. //stops if rs.next() is false, which means no more lines available while (rs.next()) { int idcomment = rs.getInt("idcomment"); String txt = rs.getString("txt"); int idpublisher = rs.getInt("idpublisher"); //int idtargetmicroblog = rs.getInt("idtargetmicroblog"); Timestamp time = rs.getTimestamp("time"); String publishernickname = rs.getString("publishernickname"); //add this User to the list comments.add(new Comment(idcomment, txt,idpublisher, idtargetmicroblog, time,publishernickname)); } } catch (SQLException e) { e.printStackTrace(); } finally { //Notice!Always close the connection after using. if (rs != null) { rs.close(); } if (ps != null) { ps.close(); } if (c != null) { c.close(); } } return comments; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getComment();", "String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "java.lang.String getComments();", "public final String getComment() {\n return comment;\n }", "public String getComment() {\n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getComment() \" );\n Via via=(Via)sipHeader;\n return via.getComment();\n }", "public String getComment() {\n return comment ;\n }", "public String getComment()\n {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\r\n\t\treturn comment;\r\n\t}", "public String getComment() {\n return this.comment;\n }", "public String getComment(){\n return comment;\n }", "public java.lang.String getComment() {\r\n return comment;\r\n }", "public String getComment() {\n\t\treturn comment;\n\t}", "public String getComment() {\n\t\treturn comment;\n\t}", "public String getComment(int commentType, Address address);", "String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}", "public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}", "public String getComment(){\n return this.comment;\n }", "public java.lang.String getComment() {\n return comment;\n }", "public java.lang.String getComment() {\n return comment;\n }", "public java.lang.String getComment() {\n return comment;\n }", "public String getComment() {\n Object ref = comment_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n comment_ = s;\n }\n return s;\n }\n }", "public String getComment() {\n Object ref = comment_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comment_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String get_comment() throws Exception {\n\t\treturn this.comment;\n\t}", "public ST getComment() { \r\n\t\tST retVal = this.getTypedField(48, 0);\r\n\t\treturn retVal;\r\n }", "public String getCommentContent() {\n return commentContent;\n }", "public String getComment(String path) {\n return getComment(path, null);\n }", "String getComment() {\n final StringBuilder sb = new StringBuilder();\n sb.append(indent(1)).append(\"/**\").append(EOL);\n sb.append(indent(1)).append(\" * \").append(\"{@code\").append(EOL);\n\n // Unwrapped so that you can search through the descriptor\n // file for a message and not have to worry about line breaks\n final String ws = formatString; // wrapText(formatString, 70);\n\n final String[] sa = ws.split(EOL);\n for (final String s : sa) {\n sb.append(indent(1)).append(\" * \").append(s).append(EOL);\n }\n\n sb.append(indent(1)).append(\" * \").append(\"}\").append(EOL);\n sb.append(indent(1)).append(\" */\").append(EOL);\n return sb.toString();\n }", "public String getCommentText() {\n\t return this.commentText;\n\t}", "public String getComment() {\n\t\tif (comment != null)\n\t\t\treturn ProteomeXchangeFilev2_1.COM + TAB\n\t\t\t// + \"comment\" + TAB\n\t\t\t\t\t+ comment;\n\t\treturn null;\n\t}", "public String getSampleComment();", "public String getCommentText() {\r\n\r\n\t\treturn commentText;\r\n\t}", "org.hl7.fhir.String getComments();", "public String getComment() {\n return description;\n }", "public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n\tpublic String getComment() {\n\t\treturn model.getComment();\n\t}", "public Optional<String> getComment() {\n\t\treturn Optional.ofNullable(_comment);\n\t}", "@Test\n public void commentGetContent() {\n comment.match(\"//irgendein Kommentar\\n\");\n Token t = comment.getToken();\n assertEquals(\"//irgendein Kommentar\\n\", t.getContent());\n }", "public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString\n getCommentBytes();", "public String getComment() throws SQLException {\n\t\tloadFromDB();\n\t\treturn rev_comment;\n\t}", "public java.lang.String getComments() {\n java.lang.Object ref = comments_;\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 if (bs.isValidUtf8()) {\n comments_ = s;\n }\n return s;\n }\n }", "public String getComments() { \n\t\treturn getCommentsElement().getValue();\n\t}", "public String getComments() {\r\n return this.comments;\r\n }", "String getCheckinComment();", "public String getjComment() {\n return jComment;\n }", "public String toString () {\n if (this.comment != null) {\n return this.comment;\n }\n return super.toString ();\n }", "public java.lang.String getComments() {\n java.lang.Object ref = comments_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comments_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getComments() {\n return this.comments;\n }", "public String getComments() {\n return _comments;\n }", "public String getFileComment()\r\n {\r\n return sFileComment;\r\n }", "java.lang.String getCommentId();", "String getCommentaire();", "public java.lang.String getHopscomment() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.String) __getCache(\"hopscomment\")));\n }", "public String getComments() {\n return comments;\n }", "public List<Comment> showComment() {\n\t\treturn cdi.showComment();\n\t}", "public String getComments() {\n\t\treturn this.comments;\n\t}", "public int getCommentId();", "String getCommentStringValue(Object comment);", "Comment getBase_Comment();", "@Override\n\t/**\n\t * returns nothing because comments are disabled for classes\n\t * \n\t * @return nothing\n\t */\n\tpublic String getComment() {\n\t\treturn \"\";\n\t}", "public com.google.protobuf.ByteString\n getCommentsBytes() {\n java.lang.Object ref = comments_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n comments_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getComments() {\n\t\treturn comments;\n\t}", "public abstract char getCommentChar();", "int getCommentsMode();", "public java.lang.String getComments () {\r\n\t\treturn comments;\r\n\t}", "public String getComment() {\n return variant == null ? null : variant.getComment(this);\n }", "public com.google.protobuf.ByteString\n getCommentsBytes() {\n java.lang.Object ref = comments_;\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 comments_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getComments () {\n\t\treturn comments;\n\t}", "@Override\n\tpublic Comment getComment(String commentId) {\n\t\treturn commentMap.get(commentId);\n\t}", "com.google.protobuf.ByteString\n getCommentsBytes();", "public void setComment(String c) {\n comment = c ;\n }", "public Comment getComment(VitalParticipant participant) {\n try {\n\t\t\tLong id = participant.getId();\n\t\t\tIterator iter = this.comments.iterator();\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tComment c = (Comment) iter.next();\n\t\t\t\tif (c.getParticipant().getId() == id) return c;\n\t\t\t}\n } catch(Exception e) {\n\t\t\tlogger.warn(\"getComment for VitalParticipant threw \" + e);\n\t\t}\n\t\treturn null;\n }", "public String getComment() throws RuntimeException\n {\n return getTitle();\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getComments();", "public String getCommentId() {\n return commentId.toString();\n }", "public String getComment(String path, String def) {\n return configComments.getOrDefault(path, def);\n }", "@Override\r\n\tpublic Comment getCommentById(long idComment) {\n\t\treturn null;\r\n\t}", "public Color getCommentColor() {\n return this.getConfiguredColor(PreferencesConstants.COLOR_COMMENT);\n }", "String getMovementComments();", "@Lob\r\n @Column (name=\"RECORD_COMMENT\")\r\n\tpublic String getComment() {\r\n\t\treturn comment;\r\n\t}", "public String getComments() {\n return (String) getAttributeInternal(COMMENTS);\n }", "public String getBookComment() {\n return bookComment;\n }", "public String getBookComment() {\n return bookComment;\n }", "public void setComment(String comment){\n this.comment = comment;\n }", "public CommentElements getCommentAccess() {\n\t\treturn (pComment != null) ? pComment : (pComment = new CommentElements());\n\t}", "public void getComment() {\n System.out.println(\"The target was at \" + targetDistance + \" meters\");\n System.out.println(\"Your shot went \" + projDistance + \" meters far\"); //displays stats\n System.out.println(\"The projectile was \" + missDistance + \" from the target\");\n if (abs(missDistance) >= 100) {\n System.out.println(\"That was terrible\");\n }\n else if (abs(missDistance) >= 50) {\n System.out.println(\"It's getting closer\"); //various comments depending on how good the shot was\n }\n else if (abs(missDistance) >= 20) {\n System.out.println(\"You're nearly there\");\n }\n else {\n System.out.println(\"SO INTENSE\");\n }\n }", "public Comment getDisplayComment() {\n return this;\n }", "public CommentView getComment(String commentHandle) throws SQLException {\n CommentView comment = commentDao.queryForId(commentHandle);\n\n if (comment == null) {\n throw new SQLException(\"comment \" + commentHandle + \" not found in cache\");\n }\n\n return comment;\n }" ]
[ "0.8589733", "0.8589733", "0.824988", "0.824988", "0.824988", "0.824988", "0.824988", "0.824988", "0.8016154", "0.78757244", "0.78679794", "0.7858242", "0.78535295", "0.77946013", "0.77946013", "0.77946013", "0.77946013", "0.77946013", "0.77946013", "0.77946013", "0.7739255", "0.77300906", "0.76873267", "0.7684119", "0.76818556", "0.76818556", "0.76586133", "0.7644163", "0.7639423", "0.76185626", "0.7614239", "0.7614239", "0.7614239", "0.7600981", "0.7534918", "0.7525641", "0.74395996", "0.74362594", "0.740523", "0.7401977", "0.73803884", "0.7378544", "0.7366086", "0.7360795", "0.7324161", "0.7279129", "0.7268418", "0.72552466", "0.7211782", "0.720691", "0.71958494", "0.7192519", "0.7184957", "0.71036065", "0.7086197", "0.7066216", "0.70545495", "0.7049242", "0.70231014", "0.6996824", "0.69962835", "0.6994913", "0.6970408", "0.6953352", "0.69508463", "0.694767", "0.6902615", "0.6886617", "0.6878876", "0.68615735", "0.6861076", "0.68167645", "0.6808354", "0.6805379", "0.6800938", "0.6793087", "0.6774495", "0.6752496", "0.67366105", "0.67348677", "0.6709145", "0.66801107", "0.6665248", "0.6661663", "0.6661145", "0.66403353", "0.6631516", "0.66253215", "0.6623985", "0.66159946", "0.66088647", "0.6607453", "0.6597096", "0.6579903", "0.6569816", "0.6569816", "0.655643", "0.6543407", "0.65224236", "0.64792436", "0.6475535" ]
0.0
-1
Encode common menu item configuration.
static void encodeItemConfig(Formatter fmt, FacesContext context, UIComponent item, String text) { String icon = getItemIcon(context, item); String styleClass = (String)item.getAttributes().get("styleClass"); String disabledClass = (String)item.getAttributes().get("disabledClass"); String activeClass = (String)item.getAttributes().get("activeClass"); fmt.format("text:%s", HtmlEncoder.enquote(text, '\'')); fmt.format(",plugins:new Ext.ux.plugins.MenuItemPlugin()"); if (icon != null) fmt.format(",icon:%s", HtmlEncoder.enquote(icon, '\'')); if (HtmlRenderer.isDisabled(item)) fmt.format(",disabled:true"); if (styleClass != null) fmt.format(",itemCls:'%s'", styleClass); if (disabledClass != null) fmt.format(",disabledClass:'%s'", disabledClass); if (activeClass != null) fmt.format(",activeClass:'%s'", activeClass); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setSharedMenuItemStrings()\r\n {\r\n debug(\"setSharedMenuItemStrings() - assigning string values\");\r\n // Build a Menu and Menuitems for Inserting and Deleting Watch Lists\r\n addNewWatchListCmd =\r\n (addNewWatchListCmd == null) ? getString(\"WatchListTableModule.edit_menu.insert_watchlist_text\") : addNewWatchListCmd;\r\n deleteWatchListCmd =\r\n (deleteWatchListCmd == null) ? getString(\"WatchListTableModule.edit_menu.delete_watchlist_text\") : deleteWatchListCmd;\r\n // Build a Menu and Menuitems for Inserting and Deleting Rows\r\n insertBeforeCmd =\r\n (insertBeforeCmd == null) ? getString(\"WatchListTableModule.edit_menu.insert_row_before_text\") : insertBeforeCmd;\r\n insertAfterCmd =\r\n (insertAfterCmd == null) ? getString(\"WatchListTableModule.edit_menu.insert_row_after_text\") : insertAfterCmd;\r\n deleteRowCmd = (deleteRowCmd == null) ? getString(\"WatchListTableModule.edit_menu.delete_row_text\") : deleteRowCmd;\r\n\r\n // Fraction or Decimal Display\r\n fractionCmd = (fractionCmd == null) ? getString(\"WatchListTableModule.edit_menu.fractions_actionCommand\") : fractionCmd;\r\n decimalCmd = (decimalCmd == null) ? getString(\"WatchListTableModule.edit_menu.decimals_actionCommand\") : decimalCmd;\r\n\r\n // Rename the Watch List Command\r\n renameListCmd =\r\n (renameListCmd == null) ? getString(\"WatchListTableModule.edit_menu.rename_watchlist_text\") : renameListCmd;\r\n\r\n // Build a Menu Item to print the WatchList\r\n printListCmd = (printListCmd == null) ? getString(\"WatchListTableModule.edit_menu.print_watchlist_text\") : printListCmd;\r\n // Build a Menu Item for displaying a Table Property Editor\r\n tableProps = (tableProps == null) ? getString(\"WatchListTableModule.edit_menu.view_table_properties\") : tableProps;\r\n\r\n viewOptionChainCmd =\r\n (viewOptionChainCmd == null) ? getString(\"WatchListTableModule.edit_menu.view_option_chain\") : viewOptionChainCmd;\r\n\r\n viewHistoricChartCmd =\r\n (viewHistoricChartCmd == null) ? getString(\"WatchListTableModule.edit_menu.view_historic_chart\") : viewHistoricChartCmd;\r\n\r\n // Make a new Action Trigger, as it is generic and used in many places.\r\n if (actionTrigger == null)\r\n {\r\n actionTrigger = new ActionTrigger();\r\n }\r\n debug(\"setSharedMenuItemStrings() - complete\");\r\n }", "public interface MenuNames {\n public static final String FILE = I18N.get(\"ui.MenuNames.FILE\");\n public static final String FILE_NEW = I18N.get(\"ui.MenuNames.FILE.NEW\");\n public static final String FILE_SAVEVIEW = I18N.get(\"ui.MenuNames.FILE.SAVEVIEW\");\n public static final String EDIT = I18N.get(\"ui.MenuNames.EDIT\");\n public static final String TOOLS_EDIT_ATTRIBUTES = I18N.get(\"ui.MenuNames.EDIT\") + \" \" + I18N.get(\"ui.MenuNames.ATTRIBUTS\");\n public static final String TOOLS_EDIT_GEOMETRY = I18N.get(\"ui.MenuNames.EDIT\") + \" \" + I18N.get(\"ui.MenuNames.GEOMETRY\");\n public static final String VIEW = I18N.get(\"ui.MenuNames.VIEW\");\n public static final String MAP_DECORATIONS = I18N.get(\"ui.MenuNames.VIEW.MAP_DECORATIONS\");\n public static final String LAYER = I18N.get(\"ui.MenuNames.LAYER\");\n public static final String TOOLS = I18N.get(\"ui.MenuNames.TOOLS\");\n //public static final String TOOLS_ADVANCED = I18N.get(\"ui.MenuNames.TOOLS.ADVANCED\"); // not used, not translated\n public static final String TOOLS_ANALYSIS = I18N.get(\"ui.MenuNames.TOOLS.ANALYSIS\");\n public static final String TOOLS_GENERALIZATION = I18N.get(\"ui.MenuNames.TOOLS.GENERALIZATION\");\n public static final String TOOLS_GENERATE = I18N.get(\"ui.MenuNames.TOOLS.GENERATE\");\n public static final String TOOLS_JOIN = I18N.get(\"ui.MenuNames.TOOLS.JOIN\");\n public static final String TOOLS_QA = I18N.get(\"ui.MenuNames.TOOLS.QA\");\n public static final String TOOLS_WARP = I18N.get(\"ui.MenuNames.TOOLS.WARP\");\n //public static final String TOOLS_PROGRAMMING =I18N.get(\"ui.MenuNames.TOOLS.PROGRAMMING\");\n public static final String TOOLS_QUERIES =I18N.get(\"org.openjump.core.ui.plugin.queries.SimpleQuery.menu\");\n public static final String WINDOW = I18N.get(\"ui.MenuNames.WINDOW\");\n public static final String RASTERTOOLS = I18N.get(\"ui.MenuNames.RASTER\");\n // Michael Michaud 2008-04-06\n // New menu for synchronization\n public static final String WINDOW_SYNCHRONIZATION = I18N.get(\"ui.MenuNames.WINDOW.SYNCHRONIZATION\");\n public static final String HELP = I18N.get(\"ui.MenuNames.HELP\");\n public static final String PLUGINS = I18N.get(\"ui.MenuNames.PLUGINS\");\n \n // Michael Michaud 2007-03-23\n // New menu for plugin manager, beanshell console, scripts\n public static final String CUSTOMIZE = I18N.get(\"ui.MenuNames.CUSTOMIZE\");\n \n //erwan begin 2005-12-01 --- SIGLE\t\n //Menu\n public static final String ATTRIBUTS = I18N.get(\"ui.MenuNames.ATTRIBUTS\");\n public static final String SELECTION = I18N.get(\"ui.MenuNames.SELECTION\");\n public static final String RASTER = I18N.get(\"ui.MenuNames.RASTER\");\n public static final String STATISTICS = I18N.get(\"ui.MenuNames.STATISTICS\");\n public static final String GEOPROCESSING = \"SIGLE-\" + I18N.get(\"ui.MenuNames.GEOPROCESSING\");\n \n //Submenu\n //public static final String ONELAYER = I18N.get(\"ui.MenuNames.ONELAYER\");\n //public static final String TWOLAYERS = I18N.get(\"ui.MenuNames.TWOLAYERS\");\n \n public static final String CONVERT = I18N.get(\"ui.MenuNames.CONVERT\");\n public static final String EXTRACT = I18N.get(\"ui.MenuNames.EXTRACT\");\n public static final String MERGE = I18N.get(\"ui.MenuNames.MERGE\");\n public static final String GENERALIZATION = I18N.get(\"ui.MenuNames.GENERALIZATION\");\n public static final String TOPOLOGY = I18N.get(\"ui.MenuNames.TOPOLOGY\");\n //public static final String QA = I18N.get(\"ui.MenuNames.QA\"); // see MenuNames.TOOLS_QA\n public static final String DELETE = I18N.get(\"ui.MenuNames.DELETE\");\n public static final String DETECT = I18N.get(\"ui.MenuNames.DETECT\");\n public static final String PLOT = I18N.get(\"ui.MenuNames.PLOT\");\n \t\n //\terwan end 2005-12-01\n // Submenus for LayerName PopupMenu\n public static final String STYLE = I18N.get(\"ui.MenuNames.STYLE\");\n public static final String DATASTORE = I18N.get(\"ui.MenuNames.DATASTORE\");\n public static final String SCHEMA = I18N.get(\"ui.MenuNames.SCHEMA\");\n \n public static final String LAYERVIEWPANEL_POPUP = I18N.get(\"ui.MenuNames.LAYERVIEWPANEL_POPUP\");\n public static final String ATTRIBUTEPANEL_POPUP = I18N.get(\"ui.MenuNames.ATTRIBUTEPANEL_POPUP\");\n public static final String LAYERNAMEPANEL_LAYER_POPUP = I18N.get(\"ui.MenuNames.LAYERNAMEPANEL_LAYER_POPUP\");\n public static final String LAYERNAMEPANEL_CATEGORY_POPUP = I18N.get(\"ui.MenuNames.LAYERNAMEPANEL_CATEGORY_POPUP\");\n}", "protected abstract void addMenuOptions();", "protected void registerExtendMenuItem(){\n for(int i = 0; i < itemStrings.length; i++){\n inputMenu.registerExtendMenuItem(itemStrings[i], itemdrawables[i], itemIds[i], extendMenuItemClickListener);\n }\n }", "private static void customItems(ItemDefinition itemDef) {\n\n\t\tswitch (itemDef.id) {\n\n\t\tcase 11864:\n\t\tcase 11865:\n\t\tcase 19639:\n\t\tcase 19641:\n\t\tcase 19643:\n\t\tcase 19645:\n\t\tcase 19647:\n\t\tcase 19649:\n\t\tcase 23073:\n\t\tcase 23075:\n\t\t\titemDef.equipActions[2] = \"Log\";\n\t\t\titemDef.equipActions[1] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 13136:\n\t\t\titemDef.equipActions[2] = \"Elidinis\";\n\t\t\titemDef.equipActions[1] = \"Kalphite Hive\";\n\t\t\tbreak;\n\t\tcase 2550:\n\t\t\titemDef.equipActions[2] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 1712:\n\t\tcase 1710:\n\t\tcase 1708:\n\t\tcase 1706:\n\t\t\titemDef.equipActions[1] = \"Edgeville\";\n\t\t\titemDef.equipActions[2] = \"Karamja\";\n\t\t\titemDef.equipActions[3] = \"Draynor\";\n\t\t\titemDef.equipActions[4] = \"Al-Kharid\";\n\t\t\tbreak;\n\n\t\tcase 22000:\n\t\t\titemDef.name = \"Lava partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 22001:\n\t\t\titemDef.name = \"Infernal partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 2552:\n\t\tcase 2554:\n\t\tcase 2556:\n\t\tcase 2558:\n\t\tcase 2560:\n\t\tcase 2562:\n\t\tcase 2564:\n\t\tcase 2566: // Ring of duelling\n\t\t\titemDef.equipActions[2] = \"Shantay Pass\";\n\t\t\titemDef.equipActions[1] = \"Clan wars\";\n\t\t\tbreak;\n\n\t\tcase 21307:\n\t\t\titemDef.name = \"Pursuit crate\";\n\t\t\tbreak;\n\n\t\tcase 12792:\n\t\t\titemDef.name = \"Graceful recolor kit\";\n\t\t\tbreak;\n\n\t\tcase 12022:\n\t\t\titemDef.name = \"Bandos Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Bandos gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12024:\n\t\t\titemDef.name = \"Armadyl Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Armadyl gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12026:\n\t\t\titemDef.name = \"Saradomin Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Saradomin gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12028:\n\t\t\titemDef.name = \"Zamorak Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Zamorak gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 964:\n\t\t\titemDef.name = \"Pet Petie\";\n\t\t\tbreak;\n\n\t\tcase 20853:\n\t\t\titemDef.name = \"Deep Sea Bait\";\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\t/*\n\t\t * case 17014: itemDef.name = \"Dragon flail\"; itemDef.modelId = 50083;\n\t\t * itemDef.modelZoom = 1440; itemDef.modelRotation2 = 272;\n\t\t * itemDef.modelRotation1 = 352; itemDef.modelOffset1 = 32;\n\t\t * //itemDef.modelOffset2 = 0; itemDef.maleModel = 50083; itemDef.femaleModel =\n\t\t * 50083; itemDef.anInt164 = -1; itemDef.anInt188 = -1; itemDef.aByte205 = -8;\n\t\t * itemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t * itemDef.inventoryOptions = new String[] { \"Wear\", null, null, null, \"Drop\" };\n\t\t * itemDef.description = \"An Ancient Dragon Flail.\"; break;\n\t\t */\n\n\t\tcase 33272:\n\t\t\titemDef.name = \"Justiciar's Longsword\";\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modelId = 65472;\n\t\t\titemDef.modelZoom = 1726;\n\t\t\titemDef.modelRotation1 = 1576;\n\t\t\titemDef.modelRotation2 = 242;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\t// itemDef.anInt204 = 0;\n\t\t\t// itemDef.aByte205 = -12;\n\t\t\t// itemDef.aByte154 = 0;\n\t\t\titemDef.maleModel = 65465;\n\t\t\titemDef.femaleModel = 65465;\n\t\t\titemDef.description = \"An ancient longsword received from the Trial of Flames.\";\n\t\t\tbreak;\n\n\t\tcase 33168:\n\t\t\titemDef.name = \"Justiciar kiteshield\";\n\t\t\titemDef.modelId = 65471;\n\t\t\titemDef.modelZoom = 1600;\n\t\t\titemDef.modelRotation2 = 250;\n\t\t\titemDef.modelRotation1 = 300;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.maleModel = 65473;\n\t\t\titemDef.femaleModel = 65474;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An ancient kiteshield. Part of the Justiciar set.\";\n\t\t\tbreak;\n\n\t\tcase 2996:\n\t\t\titemDef.name = \"PKP Ticket\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"Exchange this for a PK Point.\";\n\t\t\tbreak;\n\t\tcase 13226:\n\t\t\titemDef.name = \"Herb Sack\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"A sack for storing grimy herbs.\";\n\t\t\tbreak;\n\t\tcase 13346:\n\t\t\titemDef.name = \"Raid Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Open for chances to receive Raid items & other awesome rewards.\";\n\t\t\tbreak;\n\t\tcase 8800:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 31624;\n\t\t\t// itemDef.stackAmounts = new int[] { 2, 3, 50, 100, 500000, 1000000, 2500000,\n\t\t\t// 10000000, 100000000, 0 };//amount the model will change at\n\t\t\t// itemDef.stackIDs = new int[] { 8801, 8802, 8803, 8804, 8805, 8806, 8807,\n\t\t\t// 8808, 8809, 0 };//new item id to grab the model from\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 853;\n\t\t\titemDef.modelRotation2 = 1885;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8801:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15344;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8802:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15345;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8803:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15346;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8804:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15347;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8805:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15348;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8806:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15349;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8807:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15350;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8808:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15351;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8809:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15352;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 15098:\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.description = \"A 100-sided dice.\";\n\t\t\titemDef.modelId = 31223;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation2 = 215;\n\t\t\titemDef.modelRotation1 = 94;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modelOffset1 = -18;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Public-roll\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.anInt196 = 15;\n\t\t\titemDef.anInt184 = 25;\n\t\t\tbreak;\n\n\t\tcase 32991:\n\t\t\titemDef.name = \"Divine spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with an divine sigil attached to it.\";\n\t\t\titemDef.modelId = 50001;\n\t\t\titemDef.maleModel = 50002;\n\t\t\titemDef.femaleModel = 50002;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32992:\n\t\t\titemDef.name = \"Rainbow spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with all 4 sigils attached to it.\";\n\t\t\titemDef.modelId = 50004;\n\t\t\titemDef.maleModel = 50005;\n\t\t\titemDef.femaleModel = 50005;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32993:\n\t\t\titemDef.name = \"Divine sigil\";\n\t\t\titemDef.description = \"A sigil in the shape of a divine symbol.\";\n\t\t\titemDef.modelId = 50003;\n\t\t\titemDef.modelZoom = 848;\n\t\t\titemDef.modelRotation1 = 267;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33060:\n\t\t\titemDef.name = \"Barrows Sword\";\n\t\t\titemDef.description = \"A sword glowing with otherworldy energy.\";\n\t\t\titemDef.modelId = 22325;\n\t\t\titemDef.maleModel = 50010;\n\t\t\titemDef.femaleModel = 50010;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32994:\n\t\t\titemDef.name = \"Statius's platebody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42602;\n\t\t\titemDef.maleModel = 35951;\n\t\t\titemDef.femaleModel = 35964;\n\t\t\titemDef.modelZoom = 1312;\n\t\t\titemDef.modelRotation1 = 272;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 39;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32995:\n\t\t\titemDef.name = \"Statius's platelegs\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42590;\n\t\t\titemDef.maleModel = 35947;\n\t\t\titemDef.femaleModel = 35961;\n\t\t\titemDef.modelZoom = 1625;\n\t\t\titemDef.modelRotation1 = 355;\n\t\t\titemDef.modelRotation2 = 2046;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32996:\n\t\t\titemDef.name = \"Statius's full helm\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42596;\n\t\t\titemDef.maleModel = 35943;\n\t\t\titemDef.femaleModel = 35958;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 2039;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32997:\n\t\t\titemDef.name = \"Statius's warhammer\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42577;\n\t\t\titemDef.maleModel = 35968;\n\t\t\titemDef.femaleModel = 35968;\n\t\t\titemDef.modelZoom = 1360;\n\t\t\titemDef.modelRotation1 = 507;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32998:\n\t\t\titemDef.name = \"Vesta's chainbody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42593;\n\t\t\titemDef.maleModel = 35953;\n\t\t\titemDef.femaleModel = 35965;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32999:\n\t\t\titemDef.name = \"Vesta's plateskirt\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42581;\n\t\t\titemDef.maleModel = 35950;\n\t\t\titemDef.femaleModel = 35960;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33000:\n\t\t\titemDef.name = \"Vesta's longsword\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42597;\n\t\t\titemDef.maleModel = 35969;\n\t\t\titemDef.femaleModel = 35969;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 738;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33001:\n\t\t\titemDef.name = \"Vesta's spear\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42599;\n\t\t\titemDef.maleModel = 35973;\n\t\t\titemDef.femaleModel = 35973;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 480;\n\t\t\titemDef.modelRotation2 = 15;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33002:\n\t\t\titemDef.name = \"Morrigan's leather body\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42578;\n\t\t\titemDef.maleModel = 35954;\n\t\t\titemDef.femaleModel = 35963;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33003:\n\t\t\titemDef.name = \"Morrigan's leather chaps\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42603;\n\t\t\titemDef.maleModel = 35948;\n\t\t\titemDef.femaleModel = 35959;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 482;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33004:\n\t\t\titemDef.name = \"Morrigan's coif\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42583;\n\t\t\titemDef.maleModel = 35945;\n\t\t\titemDef.femaleModel = 35956;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 537;\n\t\t\titemDef.modelRotation2 = 5;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33005:\n\t\t\titemDef.name = \"Morrigan's javelin\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42592;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42613;\n\t\t\titemDef.femaleModel = 42613;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 282;\n\t\t\titemDef.modelRotation2 = 2009;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33006:\n\t\t\titemDef.name = \"Morrigan's throwing axe\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42582;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42611;\n\t\t\titemDef.femaleModel = 42611;\n\t\t\titemDef.modelZoom = 976;\n\t\t\titemDef.modelRotation1 = 672;\n\t\t\titemDef.modelRotation2 = 2024;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33007:\n\t\t\titemDef.name = \"Zuriels robe top\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42591;\n\t\t\titemDef.maleModel = 35952;\n\t\t\titemDef.femaleModel = 35966;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 373;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33008:\n\t\t\titemDef.name = \"Zuriels robe bottom\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42588;\n\t\t\titemDef.maleModel = 35949;\n\t\t\titemDef.femaleModel = 35962;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33009:\n\t\t\titemDef.name = \"Zuriels hood\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42604;\n\t\t\titemDef.maleModel = 35944;\n\t\t\titemDef.femaleModel = 35957;\n\t\t\titemDef.modelZoom = 720;\n\t\t\titemDef.modelRotation1 = 28;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33010:\n\t\t\titemDef.name = \"Zuriels staff\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42595;\n\t\t\titemDef.maleModel = 35971;\n\t\t\titemDef.femaleModel = 35971;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 366;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33011:\n\t\t\titemDef.name = \"Craw's bow (u)\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35768;\n\t\t\titemDef.femaleModel = 35768;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33012:\n\t\t\titemDef.name = \"Craw's bow\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35769;\n\t\t\titemDef.femaleModel = 35769;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33013:\n\t\t\titemDef.name = \"Thammaron's sceptre (u)\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35772;\n\t\t\titemDef.femaleModel = 35772;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33014:\n\t\t\titemDef.name = \"Thammaron's sceptre\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35773;\n\t\t\titemDef.femaleModel = 35773;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33015:\n\t\t\titemDef.name = \"Viggora's chainmace (u)\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35770;\n\t\t\titemDef.femaleModel = 35770;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33016:\n\t\t\titemDef.name = \"Viggora's chainmace\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35771;\n\t\t\titemDef.femaleModel = 35771;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33018:\n\t\t\titemDef.name = \"Amulet of avarice\";\n\t\t\titemDef.description = \"A hauntingly beautiful amulet bearing the shape of a skull.\";\n\t\t\titemDef.modelId = 35779;\n\t\t\titemDef.maleModel = 35766;\n\t\t\titemDef.femaleModel = 35766;\n\t\t\titemDef.modelZoom = 420;\n\t\t\titemDef.modelRotation1 = 191;\n\t\t\titemDef.modelRotation2 = 86;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33019:\n\t\t\titemDef.name = \"Completionist cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65270;\n\t\t\titemDef.maleModel = 65297;\n\t\t\titemDef.femaleModel = 65316;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33020:\n\t\t\titemDef.name = \"Completionist cape (t)\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65258;\n\t\t\titemDef.maleModel = 65295;\n\t\t\titemDef.femaleModel = 65328;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33021:\n\t\t\titemDef.name = \"Torva full helm\";\n\t\t\titemDef.description = \"An ancient warrior's full helm.\";\n\t\t\titemDef.modelId = 62714;\n\t\t\titemDef.maleModel = 62738;\n\t\t\titemDef.femaleModel = 62738;\n\t\t\titemDef.modelZoom = 672;\n\t\t\titemDef.modelRotation1 = 85;\n\t\t\titemDef.modelRotation2 = 1867;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33022:\n\t\t\titemDef.name = \"Torva platebody\";\n\t\t\titemDef.description = \"An ancient warrior's platebody.\";\n\t\t\titemDef.modelId = 62699;\n\t\t\titemDef.maleModel = 62746;\n\t\t\titemDef.femaleModel = 62746;\n\t\t\titemDef.modelZoom = 1506;\n\t\t\titemDef.modelRotation1 = 473;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33023:\n\t\t\titemDef.name = \"Torva platelegs\";\n\t\t\titemDef.description = \"An ancient warrior's platelegs.\";\n\t\t\titemDef.modelId = 62701;\n\t\t\titemDef.maleModel = 62740;\n\t\t\titemDef.femaleModel = 62740;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 474;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33024:\n\t\t\titemDef.name = \"Pernix cowl\";\n\t\t\titemDef.description = \"An ancient warrior's cowl.\";\n\t\t\titemDef.modelId = 62693;\n\t\t\titemDef.maleModel = 62739;\n\t\t\titemDef.femaleModel = 62739;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 532;\n\t\t\titemDef.modelRotation2 = 14;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33025:\n\t\t\titemDef.name = \"Pernix body\";\n\t\t\titemDef.description = \"An ancient warrior's leather body.\";\n\t\t\titemDef.modelId = 62709;\n\t\t\titemDef.maleModel = 62744;\n\t\t\titemDef.femaleModel = 62744;\n\t\t\titemDef.modelZoom = 1378;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33026:\n\t\t\titemDef.name = \"Pernix chaps\";\n\t\t\titemDef.description = \"An ancient warrior's chaps.\";\n\t\t\titemDef.modelId = 62695;\n\t\t\titemDef.maleModel = 62741;\n\t\t\titemDef.femaleModel = 62741;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 504;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33027:\n\t\t\titemDef.name = \"Virtus mask\";\n\t\t\titemDef.description = \"An ancient warrior's mask.\";\n\t\t\titemDef.modelId = 62710;\n\t\t\titemDef.maleModel = 62736;\n\t\t\titemDef.femaleModel = 62736;\n\t\t\titemDef.modelZoom = 928;\n\t\t\titemDef.modelRotation1 = 406;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33028:\n\t\t\titemDef.name = \"Virtus robe top\";\n\t\t\titemDef.description = \"An ancient warrior's robe top.\";\n\t\t\titemDef.modelId = 62704;\n\t\t\titemDef.maleModel = 62748;\n\t\t\titemDef.femaleModel = 62748;\n\t\t\titemDef.modelZoom = 1122;\n\t\t\titemDef.modelRotation1 = 488;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33029:\n\t\t\titemDef.name = \"Virtus robe legs\";\n\t\t\titemDef.description = \"An ancient warrior's robe legs.\";\n\t\t\titemDef.modelId = 62700;\n\t\t\titemDef.maleModel = 62742;\n\t\t\titemDef.femaleModel = 62742;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33030:\n\t\t\titemDef.name = \"Zaryte bow\";\n\t\t\titemDef.description = \"An ancient warrior's bow.\";\n\t\t\titemDef.modelId = 62692;\n\t\t\titemDef.maleModel = 62750;\n\t\t\titemDef.femaleModel = 62750;\n\t\t\titemDef.modelZoom = 1703;\n\t\t\titemDef.modelRotation1 = 221;\n\t\t\titemDef.modelRotation2 = 404;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33083:\n\t\t\titemDef.name = \"Tokhaar-kal\";\n\t\t\titemDef.description = \"\tA cape made of ancient, enchanted obsidian.\";\n\t\t\titemDef.modelId = 52073;\n\t\t\titemDef.maleModel = 52072;\n\t\t\titemDef.femaleModel = 52071;\n\t\t\titemDef.modelZoom = 1615;\n\t\t\titemDef.modelRotation1 = 339;\n\t\t\titemDef.modelRotation2 = 192;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33089:\n\t\t\titemDef.name = \"Chaotic maul\";\n\t\t\titemDef.description = \"A maul used to claim life from those who don't deserve it.\";\n\t\t\titemDef.modelId = 54286;\n\t\t\titemDef.maleModel = 56294;\n\t\t\titemDef.femaleModel = 56294;\n\t\t\titemDef.modelZoom = 1447;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33094:\n\t\t\titemDef.name = \"Chaotic crossbow\";\n\t\t\titemDef.description = \"A small crossbow, only effective at short distance.\";\n\t\t\titemDef.modelId = 54331;\n\t\t\titemDef.maleModel = 56307;\n\t\t\titemDef.femaleModel = 56307;\n\t\t\titemDef.modelZoom = 1028;\n\t\t\titemDef.modelRotation1 = 249;\n\t\t\titemDef.modelRotation2 = 2021;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -54;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33095:\n\t\t\titemDef.name = \"Chaotic staff\";\n\t\t\titemDef.description = \"This staff makes destructive spells more powerful.\";\n\t\t\titemDef.modelId = 54367;\n\t\t\titemDef.maleModel = 56286;\n\t\t\titemDef.femaleModel = 56286;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33096:\n\t\t\titemDef.name = \"Chaotic kiteshield\";\n\t\t\titemDef.description = \"A large metal shield.\";\n\t\t\titemDef.modelId = 54358;\n\t\t\titemDef.maleModel = 56038;\n\t\t\titemDef.femaleModel = 56038;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 276;\n\t\t\titemDef.modelRotation2 = 1101;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33031:\n\t\t\titemDef.name = \"Chaotic rapier\";\n\t\t\titemDef.description = \"A razor-sharp rapier.\";\n\t\t\titemDef.modelId = 54197;\n\t\t\titemDef.maleModel = 56252;\n\t\t\titemDef.femaleModel = 56252;\n\t\t\titemDef.modelZoom = 1425;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 1370;\n\t\t\titemDef.modelOffset1 = 9;\n\t\t\titemDef.modelOffset2 = 13;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33032:\n\t\t\titemDef.name = \"Chaotic longsword\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 54204;\n\t\t\titemDef.maleModel = 56237;\n\t\t\titemDef.femaleModel = 56237;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33097:\n\t\t\titemDef.name = \"Sword of Onyxia\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 53091;\n\t\t\titemDef.maleModel = 53092;\n\t\t\titemDef.femaleModel = 53092;\n\t\t\titemDef.modelZoom = 2007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33098:\n\t\t\titemDef.name = \"Onyxia longsword\";\n\t\t\titemDef.description = \"A razor-sharp 2h sword.\";\n\t\t\titemDef.modelId = 53093;\n\t\t\titemDef.maleModel = 53094;\n\t\t\titemDef.femaleModel = 53094;\n\t\t\titemDef.modelZoom = 4007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33099:\n\t\t\titemDef.name = \"White scimitar\";\n\t\t\titemDef.description = \"A razor-sharp scimitar.\";\n\t\t\titemDef.modelId = 53097;\n\t\t\titemDef.maleModel = 53098;\n\t\t\titemDef.femaleModel = 53098;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 312;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33100:\n\t\t\titemDef.name = \"White kiteshield\";\n\t\t\titemDef.description = \"a heavy kiteshield.\";\n\t\t\titemDef.modelId = 53095;\n\t\t\titemDef.maleModel = 53096;\n\t\t\titemDef.femaleModel = 53096;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 303;\n\t\t\titemDef.modelRotation2 = 180;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33033:\n\t\t\titemDef.name = \"Agility master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 677, 801, 43540, 43543, 43546, 43549, 43550, 43552, 43554, 43558,\n\t\t\t\t\t43560, 43575 };\n\t\t\titemDef.modelId = 50030;\n\t\t\titemDef.maleModel = 50031;\n\t\t\titemDef.femaleModel = 50031;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33034:\n\t\t\titemDef.name = \"Attack master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 7104, 9151, 911, 914, 917, 920, 921, 923, 925, 929, 931, 946 };\n\t\t\titemDef.modelId = 50032;\n\t\t\titemDef.maleModel = 50033;\n\t\t\titemDef.femaleModel = 50033;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33035:\n\t\t\titemDef.name = \"Construction master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6061, 5945, 6327, 6330, 6333, 6336, 6337, 6339, 6341, 6345, 6347,\n\t\t\t\t\t6362 };\n\t\t\titemDef.modelId = 50034;\n\t\t\titemDef.maleModel = 50035;\n\t\t\titemDef.femaleModel = 50035;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33036:\n\t\t\titemDef.name = \"Cooking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 920, 920, 51856, 51859, 51862, 51865, 51866, 51868, 51870, 51874,\n\t\t\t\t\t51876, 51891 };\n\t\t\titemDef.modelId = 50036;\n\t\t\titemDef.maleModel = 50037;\n\t\t\titemDef.femaleModel = 50037;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33037:\n\t\t\titemDef.name = \"Crafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9142, 9152, 4511, 4514, 4517, 4520, 4521, 4523, 4525, 4529, 4531,\n\t\t\t\t\t4546 };\n\t\t\titemDef.modelId = 50038;\n\t\t\titemDef.maleModel = 50039;\n\t\t\titemDef.femaleModel = 50039;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33038:\n\t\t\titemDef.name = \"Defence master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 10460, 10473, 41410, 41413, 41416, 41419, 41420, 41422, 41424,\n\t\t\t\t\t41428, 41430, 41445 };\n\t\t\titemDef.modelId = 50040;\n\t\t\titemDef.maleModel = 50041;\n\t\t\titemDef.femaleModel = 50041;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33039:\n\t\t\titemDef.name = \"Farming master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 14775, 14792, 22026, 22029, 22032, 22035, 22036, 22038, 22040,\n\t\t\t\t\t22044, 22046, 22061 };\n\t\t\titemDef.modelId = 50042;\n\t\t\titemDef.maleModel = 50043;\n\t\t\titemDef.femaleModel = 50043;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33040:\n\t\t\titemDef.name = \"Firemaking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8125, 9152, 4015, 4018, 4021, 4024, 4025, 4027, 4029, 4033, 4035,\n\t\t\t\t\t4050 };\n\t\t\titemDef.modelId = 50044;\n\t\t\titemDef.maleModel = 50045;\n\t\t\titemDef.femaleModel = 50045;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33041:\n\t\t\titemDef.name = \"Fishing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9144, 9152, 38202, 38205, 38208, 38211, 38212, 38214, 38216,\n\t\t\t\t\t38220, 38222, 38237 };\n\t\t\titemDef.modelId = 50046;\n\t\t\titemDef.maleModel = 50047;\n\t\t\titemDef.femaleModel = 50047;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33042:\n\t\t\titemDef.name = \"Fletching master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6067, 9152, 33670, 33673, 33676, 33679, 33680, 33682, 33684,\n\t\t\t\t\t33688, 33690, 33705 };\n\t\t\titemDef.modelId = 50048;\n\t\t\titemDef.maleModel = 50049;\n\t\t\titemDef.femaleModel = 50049;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33043:\n\t\t\titemDef.name = \"Herblore master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9145, 9156, 22414, 22417, 22420, 22423, 22424, 22426, 22428,\n\t\t\t\t\t22432, 22434, 22449 };\n\t\t\titemDef.modelId = 50050;\n\t\t\titemDef.maleModel = 50051;\n\t\t\titemDef.femaleModel = 50051;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33044:\n\t\t\titemDef.name = \"Hitpoints master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 818, 951, 8291, 8294, 8297, 8300, 8301, 8303, 8305, 8309, 8311,\n\t\t\t\t\t8319 };\n\t\t\titemDef.modelId = 50052;\n\t\t\titemDef.maleModel = 50053;\n\t\t\titemDef.femaleModel = 50053;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\titemDef.femaleOffset = 4;\n\t\t\tbreak;\n\t\tcase 33045:\n\t\t\titemDef.name = \"Hunter master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 5262, 6020, 8472, 8475, 8478, 8481, 8482, 8484, 8486, 8490, 8492,\n\t\t\t\t\t8507 };\n\t\t\titemDef.modelId = 50054;\n\t\t\titemDef.maleModel = 50055;\n\t\t\titemDef.femaleModel = 50055;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33046:\n\t\t\titemDef.name = \"Magic master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 43569, 43685, 6336, 6339, 6342, 6345, 6346, 6348, 6350, 6354,\n\t\t\t\t\t6356, 6371 };\n\t\t\titemDef.modelId = 50056;\n\t\t\titemDef.maleModel = 50057;\n\t\t\titemDef.femaleModel = 50057;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33047:\n\t\t\titemDef.name = \"Mining master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 36296, 36279, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50058;\n\t\t\titemDef.maleModel = 50059;\n\t\t\titemDef.femaleModel = 50059;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33048:\n\t\t\titemDef.name = \"Prayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9163, 9168, 117, 120, 123, 126, 127, 127, 127, 127, 127, 127 };\n\t\t\titemDef.modelId = 50060;\n\t\t\titemDef.maleModel = 50061;\n\t\t\titemDef.femaleModel = 50061;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33049:\n\t\t\titemDef.name = \"Range master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 3755, 3998, 15122, 15125, 15128, 15131, 15132, 15134, 15136,\n\t\t\t\t\t15140, 15142, 15157 };\n\t\t\titemDef.modelId = 50062;\n\t\t\titemDef.maleModel = 50063;\n\t\t\titemDef.femaleModel = 50063;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33050:\n\t\t\titemDef.name = \"Runecrafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9152, 8128, 10318, 10321, 10324, 10327, 10328, 10330, 10332,\n\t\t\t\t\t10336, 10338, 10353 };\n\t\t\titemDef.modelId = 50064;\n\t\t\titemDef.maleModel = 50065;\n\t\t\titemDef.femaleModel = 50065;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33051:\n\t\t\titemDef.name = \"Slayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811 };\n\t\t\titemDef.originalModelColors = new int[] { 912, 920 };\n\t\t\titemDef.modelId = 50066;\n\t\t\titemDef.maleModel = 50067;\n\t\t\titemDef.femaleModel = 50067;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33052:\n\t\t\titemDef.name = \"Smithing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8115, 9148, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50068;\n\t\t\titemDef.maleModel = 50069;\n\t\t\titemDef.femaleModel = 50069;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33053:\n\t\t\titemDef.name = \"Strength master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 931, 27538, 27541, 27544, 27547, 27548, 27550, 27552, 27556,\n\t\t\t\t\t27558, 27573 };\n\t\t\titemDef.modelId = 50070;\n\t\t\titemDef.maleModel = 50071;\n\t\t\titemDef.femaleModel = 50071;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33054:\n\t\t\titemDef.name = \"Thieving master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 11, 0, 58779, 58782, 58785, 58788, 58789, 57891, 58793, 58797,\n\t\t\t\t\t58799, 58814 };\n\t\t\titemDef.modelId = 50072;\n\t\t\titemDef.maleModel = 50073;\n\t\t\titemDef.femaleModel = 50073;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33055:\n\t\t\titemDef.name = \"Woodcutting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 25109, 24088, 6693, 6696, 6699, 6702, 6703, 6705, 6707, 6711,\n\t\t\t\t\t6713, 6728 };\n\t\t\titemDef.modelId = 50074;\n\t\t\titemDef.maleModel = 50075;\n\t\t\titemDef.femaleModel = 50075;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33057:\n\t\t\titemDef.name = \"Abyssal Scythe\";\n\t\t\titemDef.description = \"\tA Scythe recieved from the Trials of Xeric CUSTOM RAID.\";\n\t\t\titemDef.modelId = 50081;\n\t\t\titemDef.maleModel = 50080;\n\t\t\titemDef.femaleModel = 50080;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33090:\n\t\t\titemDef.name = \"Goliath gloves (Black)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50100;\n\t\t\titemDef.femaleModel = 50101;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33091:\n\t\t\titemDef.name = \"Goliath gloves (Red)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50102;\n\t\t\titemDef.femaleModel = 50103;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33092:\n\t\t\titemDef.name = \"Goliath gloves (White)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50104;\n\t\t\titemDef.femaleModel = 50105;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33093:\n\t\t\titemDef.name = \"Goliath gloves (Yellow)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50106;\n\t\t\titemDef.femaleModel = 50107;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 12639:\n\t\tcase 12637:\n\t\tcase 12638:\n\t\t\titemDef.description = \"Provides players with infinite run energy!\";\n\t\t\tbreak;\n\t\tcase 33056:\n\t\t\titemDef.name = \"Events cape (slayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 0, 0, 0, 0 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33081:\n\t\t\titemDef.name = \"Events cape (agility)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 669, 43430, 43430, 43430, 43430 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33080:\n\t\t\titemDef.name = \"Events cape (attack)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9926, 1815, 1815, 1815, 1815 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33059:\n\t\t\titemDef.name = \"Events cape (construction)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6967, 6343, 6343, 6343, 6343 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33061:\n\t\t\titemDef.name = \"Events cape (cooking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 49685, 49685, 49685, 49685 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33062:\n\t\t\titemDef.name = \"Events cape (crafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 7994, 4516, 4516, 4516, 4516 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33063:\n\t\t\titemDef.name = \"Events cape (defence)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 39367, 10472, 10472, 10472, 10472 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33064:\n\t\t\titemDef.name = \"Events cape (farming)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10698, 19734, 19734, 19734, 19734 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33065:\n\t\t\titemDef.name = \"Events cape (firemaking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10059, 4922, 4922, 4922, 4922 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33066:\n\t\t\titemDef.name = \"Events cape (fishing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 36165, 36165, 36165, 36165 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33067:\n\t\t\titemDef.name = \"Events cape (fletching)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 31500, 31500, 31500, 31500 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33068:\n\t\t\titemDef.name = \"Events cape (herblore)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10051, 20889, 20889, 20889, 20889 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33069:\n\t\t\titemDef.name = \"Events cape (hitpoints)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1836, 8296, 8296, 8296, 8296 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33070:\n\t\t\titemDef.name = \"Events cape (hunter)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6916, 8477, 8477, 8477, 8477 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33071:\n\t\t\titemDef.name = \"Events cape (magic)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 43556, 6339, 6339, 6339, 6339 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33072:\n\t\t\titemDef.name = \"Events cape (mining)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 34111, 10391, 10391, 10391, 10391 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33073:\n\t\t\titemDef.name = \"Events cape (prayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9927, 2169, 2169, 2169, 2169 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33074:\n\t\t\titemDef.name = \"Events cape (range)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 3626, 20913, 20913, 20913, 20913 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33075:\n\t\t\titemDef.name = \"Events cape (runecrafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 10323, 10323, 10323, 10323 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33076:\n\t\t\titemDef.name = \"Events cape (smithing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10044, 5412, 5412, 5412, 5412 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33077:\n\t\t\titemDef.name = \"Events cape (strength)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 30487, 30487, 30487, 30487 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33078:\n\t\t\titemDef.name = \"Events cape (thieveing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 8, 57636, 57636, 57636, 57636 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33079:\n\t\t\titemDef.name = \"Events cape (woodcutting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 26007, 6570, 6570, 6570, 6570 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33101:\n\t\t\titemDef.name = \"Vorkath platebody\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53100;\n\t\t\titemDef.maleModel = 53099;\n\t\t\titemDef.femaleModel = 53099;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33102:\n\t\t\titemDef.name = \"Vorkath platelegs\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53102;\n\t\t\titemDef.maleModel = 53101;\n\t\t\titemDef.femaleModel = 53101;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33103:\n\t\t\titemDef.name = \"Vorkath boots\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33104:\n\t\t\titemDef.name = \"Vorkath gloves\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33105:\n\t\t\titemDef.name = \"Vorkath helmet\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53108;\n\t\t\titemDef.maleModel = 53107;\n\t\t\titemDef.femaleModel = 53107;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33106:\n\t\t\titemDef.name = \"Tekton helmet\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53118;\n\t\t\titemDef.maleModel = 53117;\n\t\t\titemDef.femaleModel = 53117;\n\t\t\titemDef.modelZoom = 724;\n\t\t\titemDef.modelRotation1 = 81;\n\t\t\titemDef.modelRotation2 = 1670;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33107:\n\t\t\titemDef.name = \"Tekton platebody\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53110;\n\t\t\titemDef.maleModel = 53109;\n\t\t\titemDef.femaleModel = 53109;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33108:\n\t\t\titemDef.name = \"Tekton platelegs\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53112;\n\t\t\titemDef.maleModel = 53111;\n\t\t\titemDef.femaleModel = 53111;\n\t\t\titemDef.modelZoom = 1550;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 186;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33109:\n\t\t\titemDef.name = \"Tekton gloves\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53116;\n\t\t\titemDef.maleModel = 53115;\n\t\t\titemDef.femaleModel = 53115;\n\t\t\titemDef.modelZoom = 830;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33110:\n\t\t\titemDef.name = \"Tekton boots\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53114;\n\t\t\titemDef.maleModel = 53113;\n\t\t\titemDef.femaleModel = 53113;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33111:\n\t\t\titemDef.name = \"Anti-santa scythe\";\n\t\t\titemDef.description = \"Legend says this is the biggest arse scratcher around.\";\n\t\t\titemDef.modelId = 57002;\n\t\t\titemDef.maleModel = 57001;\n\t\t\titemDef.femaleModel = 57001;\n\t\t\titemDef.modelZoom = 3224;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 714;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33112:\n\t\t\titemDef.name = \"Dominion staff\";\n\t\t\titemDef.description = \"Dominion staff.\";\n\t\t\titemDef.modelId = 59029;\n\t\t\titemDef.maleModel = 59305;\n\t\t\titemDef.femaleModel = 59305;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33113:\n\t\t\titemDef.name = \"Dominion sword\";\n\t\t\titemDef.description = \"Dominion sword.\";\n\t\t\titemDef.modelId = 59832;\n\t\t\titemDef.maleModel = 59306;\n\t\t\titemDef.femaleModel = 59306;\n\t\t\titemDef.modelZoom = 1829;\n\t\t\titemDef.modelRotation1 = 513;\n\t\t\titemDef.modelRotation2 = 546;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33114:\n\t\t\titemDef.name = \"Dominion crossbow\";\n\t\t\titemDef.description = \"Dominion crossbow.\";\n\t\t\titemDef.modelId = 59839;\n\t\t\titemDef.maleModel = 59304;\n\t\t\titemDef.femaleModel = 59304;\n\t\t\titemDef.modelZoom = 1490;\n\t\t\titemDef.modelRotation1 = 362;\n\t\t\titemDef.modelRotation2 = 791;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33115:\n\t\t\titemDef.name = \"Dragonfire Shield (e)\";\n\t\t\titemDef.description = \"unamed shield.\";\n\t\t\titemDef.modelId = 53120;\n\t\t\titemDef.maleModel = 53119;\n\t\t\titemDef.femaleModel = 53119;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 123;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[] { null, \"Wear\", \"Inspect\", \"Empty\", \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33116:\n\t\t\titemDef.name = \"Zilyana's longbow\";\n\t\t\titemDef.description = \"A bow belonged to Zilyana.\";\n\t\t\titemDef.modelId = 53122;\n\t\t\titemDef.maleModel = 53121;\n\t\t\titemDef.femaleModel = 53121;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33117:\n\t\t\titemDef.name = \"Black dragon hunter crossbow\";\n\t\t\titemDef.description = \"Black dragon hunter crossbow.\";\n\t\t\titemDef.modelId = 53124;\n\t\t\titemDef.maleModel = 53123;\n\t\t\titemDef.femaleModel = 53123;\n\t\t\titemDef.modelZoom = 1554;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33118:\n\t\t\titemDef.name = \"Vorkath blowpipe\";\n\t\t\titemDef.description = \"Vorkath blowpipe.\";\n\t\t\titemDef.modelId = 53126;\n\t\t\titemDef.maleModel = 53125;\n\t\t\titemDef.femaleModel = 53125;\n\t\t\titemDef.modelZoom = 1158;\n\t\t\titemDef.modelRotation1 = 768;\n\t\t\titemDef.modelRotation2 = 189;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33119:\n\t\t\titemDef.name = \"Superior twisted bow\";\n\t\t\titemDef.description = \"An upgraded twisted bow.\";\n\t\t\titemDef.modelId = 53128;\n\t\t\titemDef.maleModel = 53127;\n\t\t\titemDef.femaleModel = 53127;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\t\tcase 33123:\n\t\t\titemDef.name = \"Staff of sliske\";\n\t\t\titemDef.description = \"Staff of sliske.\";\n\t\t\titemDef.modelId = 59234;\n\t\t\titemDef.maleModel = 59233;\n\t\t\titemDef.femaleModel = 59233;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33124:\n\t\t\titemDef.name = \"Twisted crossbow\";\n\t\t\titemDef.description = \"Twisted crossbow.\";\n\t\t\titemDef.modelId = 62777;\n\t\t\titemDef.maleModel = 62776;\n\t\t\titemDef.femaleModel = 62776;\n\t\t\titemDef.modelZoom = 926;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33125:\n\t\t\titemDef.name = \"Present\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 24410 };\n\t\t\titemDef.description = \"Santa's stolen present\";\n\t\t\tbreak;\n\t\tcase 33126:\n\t\t\titemDef.name = \"Christmas tree branch\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2412;\n\t\t\titemDef.modelZoom = 940;\n\t\t\titemDef.modelRotation1 = 268;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -21;\n\t\t\titemDef.modifiedModelColors = new int[] { 11144 };\n\t\t\titemDef.originalModelColors = new int[] { 6047 };\n\t\t\titemDef.description = \"Enter examine here.\";\n\t\t\tbreak;\n\t\tcase 33127:\n\t\t\titemDef.name = \"Kbd gloves\";\n\t\t\titemDef.description = \"Kbd gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33085 };\n\t\t\titemDef.originalModelColors = new int[] { 1060 };\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33128:\n\t\t\titemDef.name = \"Kbd boots\";\n\t\t\titemDef.description = \"Kbd boots.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33198, 33202, 33206, 33215, 33210 };\n\t\t\titemDef.originalModelColors = new int[] { 1060, 1061, 1063, 1064, 1065 };\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33129:\n\t\t\titemDef.name = \"Kbd platelegs\";\n\t\t\titemDef.description = \"Kbd platelegs.\";\n\t\t\titemDef.modelId = 59994;\n\t\t\titemDef.maleModel = 59995;\n\t\t\titemDef.femaleModel = 59995;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33130:\n\t\t\titemDef.name = \"Kbd platebody\";\n\t\t\titemDef.description = \"Kbd platebody.\";\n\t\t\titemDef.modelId = 59998;\n\t\t\titemDef.maleModel = 59999;\n\t\t\titemDef.femaleModel = 59999;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33131:\n\t\t\titemDef.name = \"Kbd helmet\";\n\t\t\titemDef.description = \"Kbd helmet.\";\n\t\t\titemDef.modelId = 59996;\n\t\t\titemDef.maleModel = 59997;\n\t\t\titemDef.femaleModel = 59997;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33132:\n\t\t\titemDef.name = \"Kbd cape\";\n\t\t\titemDef.description = \"Kbd cape.\";\n\t\t\titemDef.modelId = 59992;\n\t\t\titemDef.maleModel = 59993;\n\t\t\titemDef.femaleModel = 59993;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33133:\n\t\t\titemDef.name = \"Anti-imp pet\";\n\t\t\titemDef.description = \"Anti-imp pet.\";\n\t\t\titemDef.modelId = 45294;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33134:\n\t\t\titemDef.name = \"Anti-santa pet\";\n\t\t\titemDef.description = \"Anti-santa pet.\";\n\t\t\titemDef.modelId = 29030;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 1966;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33135:\n\t\t\titemDef.name = \"Bandos mask\";\n\t\t\titemDef.description = \"Bandos helmet.\";\n\t\t\titemDef.modelId = 59987;\n\t\t\titemDef.maleModel = 59991;\n\t\t\titemDef.femaleModel = 59991;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33136:\n\t\t\titemDef.name = \"Armadyl mask\";\n\t\t\titemDef.description = \"Armadyl mask.\";\n\t\t\titemDef.modelId = 59986;\n\t\t\titemDef.maleModel = 59990;\n\t\t\titemDef.femaleModel = 59990;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33137:\n\t\t\titemDef.name = \"Zamorak mask\";\n\t\t\titemDef.description = \"Zamorak mask.\";\n\t\t\titemDef.modelId = 59985;\n\t\t\titemDef.maleModel = 59989;\n\t\t\titemDef.femaleModel = 59989;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33138:\n\t\t\titemDef.name = \"Saradomin mask\";\n\t\t\titemDef.description = \"Saradomin mask.\";\n\t\t\titemDef.modelId = 59984;\n\t\t\titemDef.maleModel = 59988;\n\t\t\titemDef.femaleModel = 59988;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33139:\n\t\t\titemDef.name = \"Zamarok godbow\";\n\t\t\titemDef.description = \"Zamarok godbow.\";\n\t\t\titemDef.modelId = 60560;//60553\n\t\t\titemDef.maleModel = 60560;\n\t\t\titemDef.femaleModel = 60560;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33140:\n\t\t\titemDef.name = \"Saradomin godbow\";\n\t\t\titemDef.description = \"Saradomin godbow.\";\n\t\t\titemDef.modelId = 60555;\n\t\t\titemDef.maleModel = 60554;\n\t\t\titemDef.femaleModel = 60554;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33141:\n\t\t\titemDef.name = \"Bandos godbow\";\n\t\t\titemDef.description = \"Bandos godbow.\";\n\t\t\titemDef.modelId = 60559;\n\t\t\titemDef.maleModel = 60558;\n\t\t\titemDef.femaleModel = 60558;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33142:\n\t\t\titemDef.name = \"Fire cape (purple)\";\n\t\t\titemDef.description = \"Fire cape (purple).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33148:\n\t\t\titemDef.name = \"Fire cape (cyan)\";\n\t\t\titemDef.description = \"Fire cape (cyan).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33144:\n\t\t\titemDef.name = \"Fire cape (green)\";\n\t\t\titemDef.description = \"Fire cape (green).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33145:\n\t\t\titemDef.name = \"Fire cape (red)\";\n\t\t\titemDef.description = \"Fire cape (red).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33143:\n\t\t\titemDef.name = \"Infernal cape (blue)\";\n\t\t\titemDef.description = \"Infernal cape (blue).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 39851, 39851, 39851, 39851 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33146:\n\t\t\titemDef.name = \"Infernal cape (green)\";\n\t\t\titemDef.description = \"Infernal cape (green).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 21167, 21167, 21167, 21167 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33147:\n\t\t\titemDef.name = \"Infernal cape (purple)\";\n\t\t\titemDef.description = \"Infernal cape (purple).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 53160, 53160, 53160, 53160 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33150:\n\t\t\titemDef.name = \"Infernal key piece 1\";\n\t\t\titemDef.description = \"Infernal key piece 1.\";\n\t\t\titemDef.modelId = 61001;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33151:\n\t\t\titemDef.name = \"Infernal key piece 2\";\n\t\t\titemDef.description = \"Infernal key piece 2.\";\n\t\t\titemDef.modelId = 61002;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33152:\n\t\t\titemDef.name = \"Infernal key piece 3\";\n\t\t\titemDef.description = \"Infernal key piece 3.\";\n\t\t\titemDef.modelId = 61003;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33153:\n\t\t\titemDef.name = \"Infernal key\";\n\t\t\titemDef.description = \"Infernal key.\";\n\t\t\titemDef.modelId = 61111;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\t\t//DOPES ITEMS NIGGAHAHAHAHAHAHAH\n\t\tcase 2749:\n\t\t\titemDef.name = \"Bloody Axe\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65495;\n\t\t\titemDef.femaleModel = 65495;\n\t\t\titemDef.maleModel = 65495;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 2750:\n\t\t\titemDef.name = \"Bloody Axe Offhand\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65496;\n\t\t\titemDef.femaleModel = 65496;\n\t\t\titemDef.maleModel = 65496;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33154:\n\t\t\titemDef.name = \"Infernal mystery box\";\n\t\t\titemDef.description = \"Infernal mystery box.\";\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33155:\n\t\t\titemDef.name = \"Ethereal sword (red)\";\n\t\t\titemDef.description = \"Ethereal sword (red).\";\n\t\t\titemDef.modelId = 61005;\n\t\t\titemDef.maleModel = 61004;\n\t\t\titemDef.femaleModel = 61004;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33156:\n\t\t\titemDef.name = \"Ethereal sword (blue)\";\n\t\t\titemDef.description = \"Ethereal sword (blue).\";\n\t\t\titemDef.modelId = 61006;\n\t\t\titemDef.maleModel = 61007;\n\t\t\titemDef.femaleModel = 61007;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33157:\n\t\t\titemDef.name = \"Ethereal sword (green)\";\n\t\t\titemDef.description = \"Ethereal sword (green).\";\n\t\t\titemDef.modelId = 61008;\n\t\t\titemDef.maleModel = 61009;\n\t\t\titemDef.femaleModel = 61009;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33158:\n\t\t\titemDef.name = \"Dagon' hai top\";\n\t\t\titemDef.description = \"An elite dark mages robes.\";\n\t\t\titemDef.modelId = 60317;\n\t\t\titemDef.maleModel = 43614;\n\t\t\titemDef.femaleModel = 43689;\n\t\t\titemDef.anInt188 = 44594;\n\t\t\titemDef.anInt164 = 43681;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33159:\n\t\t\titemDef.name = \"Dagon' hai hat\";\n\t\t\titemDef.description = \"An elite dark mages hat.\";\n\t\t\titemDef.modelId = 60319;\n\t\t\titemDef.maleModel = 60318;\n\t\t\titemDef.femaleModel = 60318;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 98;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33160:\n\t\t\titemDef.name = \"Dagon' hai robe\";\n\t\t\titemDef.description = \"An elite dark mages robe.\";\n\t\t\titemDef.modelId = 60321;\n\t\t\titemDef.maleModel = 60320;\n\t\t\titemDef.femaleModel = 60320;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 2216;\n\t\t\titemDef.modelRotation1 = 572;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33161:\n\t\t\titemDef.name = \"Blue infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Blue.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33162:\n\t\t\titemDef.name = \"Green infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33163:\n\t\t\titemDef.name = \"Purple infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33164:\n\t\t\titemDef.name = \"Purple firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33165:\n\t\t\titemDef.name = \"Cyan firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to cyan.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33166:\n\t\t\titemDef.name = \"Green firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33167:\n\t\t\titemDef.name = \"Red firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to red.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33169:\n\t\t\titemDef.name = \"K'ril robe top\";\n\t\t\titemDef.description = \"A top worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62558;\n\t\t\titemDef.maleModel = 62559;\n\t\t\titemDef.femaleModel = 62559;\n\t\t\titemDef.modelZoom = 1358;\n\t\t\titemDef.modelRotation1 = 514;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33170:\n\t\t\titemDef.name = \"K'ril robe bottom\";\n\t\t\titemDef.description = \"A robe worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62553;\n\t\t\titemDef.maleModel = 62554;\n\t\t\titemDef.femaleModel = 62554;\n\t\t\titemDef.modelZoom = 1690;\n\t\t\titemDef.modelRotation1 = 435;\n\t\t\titemDef.modelRotation2 = 9;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33171:\n\t\t\titemDef.name = \"K'ril hat\";\n\t\t\titemDef.description = \"A hat worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62551;\n\t\t\titemDef.maleModel = 62552;\n\t\t\titemDef.femaleModel = 62552;\n\t\t\titemDef.modelZoom = 1236;\n\t\t\titemDef.modelRotation1 = 118;\n\t\t\titemDef.modelRotation2 = 10;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33172:\n\t\t\titemDef.name = \"K'ril swords\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62557;\n\t\t\titemDef.femaleModel = 62557;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33173:\n\t\t\titemDef.name = \"K'ril swords (sheathed)\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62556;\n\t\t\titemDef.femaleModel = 62556;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33174:\n\t\t\titemDef.name = \"Pet demonic gorilla\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31241;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33175:\n\t\t\titemDef.name = \"Pet crawling hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5071;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33176:\n\t\t\titemDef.name = \"Pet cave bug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 23854;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33177:\n\t\t\titemDef.name = \"Pet cave crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5066;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33178:\n\t\t\titemDef.name = \"Pet banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5063;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33179:\n\t\t\titemDef.name = \"Pet cave slime\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5786;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33180:\n\t\t\titemDef.name = \"Pet rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5084;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33181:\n\t\t\titemDef.name = \"Pet cockatrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5070;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33182:\n\t\t\titemDef.name = \"Pet pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5083;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33183:\n\t\t\titemDef.name = \"Pet basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5064;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33184:\n\t\t\titemDef.name = \"Pet infernal mage\";\n\t\t\titemDef.modifiedModelColors = new int[] { -26527, -24618, -25152, -25491, 119 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 148, 0, 924, 924 };\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5047;\n\t\t\titemDef.modelZoom = 3940;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 84;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33185:\n\t\t\titemDef.name = \"Pet bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5065;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33186:\n\t\t\titemDef.name = \"Pet jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5081;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33187:\n\t\t\titemDef.name = \"Pet turoth\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5086;\n\t\t\titemDef.modelZoom = 2600;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33188:\n\t\t\titemDef.name = \"Pet aberrant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5085;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 450;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33189:\n\t\t\titemDef.name = \"Pet dust devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5076;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33190:\n\t\t\titemDef.name = \"Pet kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5082;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33191:\n\t\t\titemDef.name = \"Pet skeletal wyvern\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10350;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 27;\n\t\t\titemDef.modelRotation2 = 1634;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33192:\n\t\t\titemDef.name = \"Pet garygoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5078;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33193:\n\t\t\titemDef.name = \"Pet nechryael\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5074;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33194:\n\t\t\titemDef.name = \"Pet abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5062;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33195:\n\t\t\titemDef.name = \"Pet dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26395;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33196:\n\t\t\titemDef.name = \"Pet night beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32933;\n\t\t\titemDef.modelZoom = 7000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33197:\n\t\t\titemDef.name = \"Pet greater abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33198:\n\t\t\titemDef.name = \"Pet crushing hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32922;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33199:\n\t\t\titemDef.name = \"Pet chasm crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32918;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33200:\n\t\t\titemDef.name = \"Pet screaming banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32823;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33201:\n\t\t\titemDef.name = \"Pet twisted banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32847;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33202:\n\t\t\titemDef.name = \"Pet giant rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32919;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33203:\n\t\t\titemDef.name = \"Pet cockathrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32920;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33204:\n\t\t\titemDef.name = \"Pet flaming pyrelord\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32923;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33205:\n\t\t\titemDef.name = \"Pet monstrous basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32924;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33206:\n\t\t\titemDef.name = \"Pet malevolent mage\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32929;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33207:\n\t\t\titemDef.name = \"Pet insatiable bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33208:\n\t\t\titemDef.name = \"Pet insatiable mutated bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32925;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33209:\n\t\t\titemDef.name = \"Pet vitreous jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32852;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33210:\n\t\t\titemDef.name = \"Pet vitreous warped jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32917;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33211:\n\t\t\titemDef.name = \"Pet cave abomination\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32935;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33212:\n\t\t\titemDef.name = \"Pet abhorrent spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32930;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33213:\n\t\t\titemDef.name = \"pet repugnant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33214:\n\t\t\titemDef.name = \"Pet choke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32927;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33215:\n\t\t\titemDef.name = \"Pet king kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32934;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33217:\n\t\t\titemDef.name = \"Pet nuclear smoke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32928;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33218:\n\t\t\titemDef.name = \"Pet marble gargoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34251;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33219:\n\t\t\titemDef.name = \"Pet nechryarch\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32932;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33220:\n\t\t\titemDef.name = \"Pet Patrity\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32035;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33221:\n\t\t\titemDef.name = \"Pet xarpus\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35383;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33222:\n\t\t\titemDef.name = \"Pet nyclocas vasilias\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35182;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33223:\n\t\t\titemDef.name = \"Pet pestilent bloat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35404;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33224:\n\t\t\titemDef.name = \"Pet maiden of sugadinti\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35385;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33225:\n\t\t\titemDef.name = \"Pet lizardman shaman\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4039;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33226:\n\t\t\titemDef.name = \"Pet abyssal sire\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 29477;\n\t\t\titemDef.modelZoom = 9000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33227:\n\t\t\titemDef.name = \"Pet black demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31984;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 144;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11802:\n\t\tcase 11804:\n\t\tcase 11806:\n\t\tcase 11808:\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\tbreak;// godsword sheathing operating\n\n\t\tcase 33228:\n\t\t\titemDef.name = \"Pet greater demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33229:\n\t\t\titemDef.name = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.description = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28075;\n\t\t\titemDef.maleModel = 62683;\n\t\t\titemDef.femaleModel = 62683;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33230:\n\t\t\titemDef.name = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.description = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28059;\n\t\t\titemDef.maleModel = 62684;\n\t\t\titemDef.femaleModel = 62684;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33231:\n\t\t\titemDef.name = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.description = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28070;\n\t\t\titemDef.maleModel = 62685;\n\t\t\titemDef.femaleModel = 62685;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33232:\n\t\t\titemDef.name = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.description = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28060;\n\t\t\titemDef.maleModel = 62686;\n\t\t\titemDef.femaleModel = 62686;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33233:\n\t\t\titemDef.name = \"Pet revenant imp\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34156;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33234:\n\t\t\titemDef.name = \"Pet revenant goblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34262;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33235:\n\t\t\titemDef.name = \"Pet revenant pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34142;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33236:\n\t\t\titemDef.name = \"Pet revenant hobgoblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34157;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33237:\n\t\t\titemDef.name = \"Pet revenant cyclops\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34155;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33238:\n\t\t\titemDef.name = \"Pet revenant hellhound\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34143;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33239:\n\t\t\titemDef.name = \"Pet revenant demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modifiedModelColors = new int[] { 1690, 910, 912, 1814, 1938 };\n\t\t\titemDef.originalModelColors = new int[] { 43078, 43078, 43078, 43078, 43078, 43078 };\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33240:\n\t\t\titemDef.name = \"Pet revenant ork\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34154;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33242:\n\t\t\titemDef.name = \"Pet revenant dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34158;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33243:\n\t\t\titemDef.name = \"Pet revenant knight\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34145;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33244:\n\t\t\titemDef.name = \"Pet revenant dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34163;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33245:\n\t\t\titemDef.name = \"Pet glob\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26074;\n\t\t\titemDef.modelZoom = 10000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33246:\n\t\t\titemDef.name = \"Pet ice queen\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 104;\n\t\t\titemDef.modifiedModelColors = new int[] { 41, 61, 4550, 12224, 25238, 6798 };\n\t\t\titemDef.originalModelColors = new int[] { -22052, -26150, -24343, -22052, -22052, -23327 };\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33247:\n\t\t\titemDef.name = \"Pet enraged tarn\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60322;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33248:\n\t\t\titemDef.name = \"Pet jaltok-jad\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 33012;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33249:\n\t\t\titemDef.name = \"Pet rune dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34668;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33271:\n\t\t\titemDef.name = \"Moo\";\n\t\t\titemDef.description = \"cow goes moo.\";\n\t\t\titemDef.modelId = 23889;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33250:\n\t\t\titemDef.name = \"Swift gloves (Black)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62657;\n\t\t\titemDef.femaleModel = 62658;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33251:\n\t\t\titemDef.name = \"Swift gloves (Red)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62659;\n\t\t\titemDef.femaleModel = 62660;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33252:\n\t\t\titemDef.name = \"Swift gloves (White)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62661;\n\t\t\titemDef.femaleModel = 62662;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33253:\n\t\t\titemDef.name = \"Swift gloves (Yellow)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62663;\n\t\t\titemDef.femaleModel = 62664;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33254:\n\t\t\titemDef.name = \"Spellcaster gloves (Black)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62665;\n\t\t\titemDef.femaleModel = 62666;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33255:\n\t\t\titemDef.name = \"Spellcaster gloves (Red)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62667;\n\t\t\titemDef.femaleModel = 62668;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33256:\n\t\t\titemDef.name = \"Spellcaster gloves (White)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62669;\n\t\t\titemDef.femaleModel = 62670;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33257:\n\t\t\titemDef.name = \"Spellcaster gloves (Yellow)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62671;\n\t\t\titemDef.femaleModel = 62672;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33258:\n\t\t\titemDef.name = \"Tekton longsword\";\n\t\t\titemDef.description = \"Tekton longsword.\";\n\t\t\titemDef.modelId = 62682;\n\t\t\titemDef.maleModel = 62681;\n\t\t\titemDef.femaleModel = 62681;\n\t\t\titemDef.modelZoom = 1445;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33259:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33260:\n\t\t\titemDef.name = \"Pet drake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36160;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33261:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33262:\n\t\t\titemDef.name = \"Valentines Balloon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62766;\n\t\t\titemDef.maleModel = 62767;\n\t\t\titemDef.femaleModel = 62767;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 270;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33263:\n\t\t\titemDef.name = \"Cupid bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62768;\n\t\t\titemDef.maleModel = 62769;\n\t\t\titemDef.femaleModel = 62769;\n\t\t\titemDef.modelZoom = 1072;\n\t\t\titemDef.modelRotation1 = 127;\n\t\t\titemDef.modelRotation2 = 103;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33264:\n\t\t\titemDef.name = \"Halo and horns\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62771;\n\t\t\titemDef.maleModel = 62770;\n\t\t\titemDef.femaleModel = 62770;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 228;\n\t\t\titemDef.modelRotation2 = 141;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33265:\n\t\t\titemDef.name = \"Heart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62782;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33266:\n\t\t\titemDef.name = \"Valentines mystery box\";\n\t\t\titemDef.description = \"You make me hard.\";\n\t\t\titemDef.modelId = 62773;\n\t\t\titemDef.modelZoom = 464;\n\t\t\titemDef.modelRotation1 = 423;\n\t\t\titemDef.modelRotation2 = 1928;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33267:\n\t\t\titemDef.name = \"Staff of adoration\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62774;\n\t\t\titemDef.maleModel = 62775;\n\t\t\titemDef.femaleModel = 62775;\n\t\t\titemDef.modelZoom = 1579;\n\t\t\titemDef.modelRotation1 = 660;\n\t\t\titemDef.modelRotation2 = 48;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33268:\n\t\t\titemDef.name = \"Valentines crossbow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62778;\n\t\t\titemDef.maleModel = 62779;\n\t\t\titemDef.femaleModel = 62779;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33269:\n\t\t\titemDef.name = \"Onyxia Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 2130, 38693 };\n\t\t\titemDef.description = \"Chances at several unqiue items found only in this box! (ex: Tekton Armor)\";\n\t\t\tbreak;\n\t\tcase 33270:\n\t\t\titemDef.name = \"Dragon Hunter Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 1050 };\n\t\t\titemDef.description = \"Chances for items that give bonuses toward dragons. (ex: Dragonhunter Lance)\";\n\t\t\tbreak;\n\t\tcase 33273:\n\t\t\titemDef.name = \"Ancient sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60201;\n\t\t\titemDef.maleModel = 60200;\n\t\t\titemDef.femaleModel = 60200;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33274:\n\t\t\titemDef.name = \"Armadyl staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60203;\n\t\t\titemDef.maleModel = 60202;\n\t\t\titemDef.femaleModel = 60202;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33275:\n\t\t\titemDef.name = \"Bork axe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60205;\n\t\t\titemDef.maleModel = 60204;\n\t\t\titemDef.femaleModel = 60204;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33276:\n\t\t\titemDef.name = \"Bree bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60207;\n\t\t\titemDef.maleModel = 60206;\n\t\t\titemDef.femaleModel = 60206;\n\t\t\titemDef.modelZoom = 1700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33277:\n\t\t\titemDef.name = \"Infernal staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60209;\n\t\t\titemDef.maleModel = 60208;\n\t\t\titemDef.femaleModel = 60208;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33278:\n\t\t\titemDef.name = \"Infernal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60211;\n\t\t\titemDef.maleModel = 60210;\n\t\t\titemDef.femaleModel = 60210;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33279:\n\t\t\titemDef.name = \"Necrolord staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60213;\n\t\t\titemDef.maleModel = 60212;\n\t\t\titemDef.femaleModel = 60212;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33280:\n\t\t\titemDef.name = \"Insert name here\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60215;\n\t\t\titemDef.maleModel = 60214;\n\t\t\titemDef.femaleModel = 60214;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33281:\n\t\t\titemDef.name = \"Infernal bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60219;\n\t\t\titemDef.maleModel = 60218;\n\t\t\titemDef.femaleModel = 60218;\n\t\t\titemDef.modelZoom = 3334;\n\t\t\titemDef.modelRotation1 = 533;\n\t\t\titemDef.modelRotation2 = 1294;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33282:\n\t\t\titemDef.name = \"Infernal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60221;\n\t\t\titemDef.maleModel = 60220;\n\t\t\titemDef.femaleModel = 60220;\n\t\t\titemDef.modelZoom = 2512;\n\t\t\titemDef.modelRotation1 = 317;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = 45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33283:\n\t\t\titemDef.name = \"Imbued Porazdir's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 13263, 13014, 13243, 13000, 13275 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your strength for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33284:\n\t\t\titemDef.name = \"Imbued Justiciar's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 31661, 31418, 31661, 31167, 31445 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Defence for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32285:\n\t\t\titemDef.name = \"Imbued Derwen's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 930, 936, 940, 950 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Attack for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32286:\n\t\t\titemDef.name = \"Bronze fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 5652, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32287:\n\t\t\titemDef.name = \"Iron fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 33, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32288:\n\t\t\titemDef.name = \"Steel fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 61, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32289:\n\t\t\titemDef.name = \"Black fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32290:\n\t\t\titemDef.name = \"Mithril fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 43297, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32291:\n\t\t\titemDef.name = \"Adamant fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 21662, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32292:\n\t\t\titemDef.name = \"Rune fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 36133, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32293:\n\t\t\titemDef.name = \"Dragon fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing. Can also be used for Deep sea fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32294:\n\t\t\titemDef.name = \"Raw eel\";\n\t\t\titemDef.description = \"Slimy\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32295:\n\t\t\titemDef.name = \"Burnt eel\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8724, 3226, 9754 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32296:\n\t\t\titemDef.name = \"Eel\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 8386, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8088, 6032, 57, 2960 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32297:\n\t\t\titemDef.name = \"Raw baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 103, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 7756, 5349 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32298:\n\t\t\titemDef.name = \"Burnt baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 28, 41 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32299:\n\t\t\titemDef.name = \"Baron shark\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 8109, 4795 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32300:\n\t\t\titemDef.name = \"Raw cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60223;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32301:\n\t\t\titemDef.name = \"Burnt cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60227;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32302:\n\t\t\titemDef.name = \"Cavefish\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 60228;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32303:\n\t\t\titemDef.name = \"Dragonfire visage (e)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26456;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modifiedModelColors = new int[] { 45, 41, 33, 24, 20, 57, 22, 37 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 1, 2, 3, 4, 5, 6, 7 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33285:\n\t\t\titemDef.name = \"Easter Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"Chances for all sorts of Easter Items!\";\n\t\t\tbreak;\n\n\t\tcase 33286:\n\t\t\titemDef.name = \"Easter Cape\";\n\t\t\titemDef.inventoryOptions = new String[] { null, \"wear\", null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"An Easter Cape.\";\n\t\t\tbreak;\n\n\t\tcase 33287:\n\t\t\titemDef.name = \"Pet Easter Bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"You've captured the Easter bunny!\";\n\t\t\tbreak;\n\n\t\tcase 33288:\n\t\t\titemDef.name = \"Pet Choco\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 7079 };\n\t\t\tbreak;\n\n\t\tcase 33289:\n\t\t\titemDef.name = \"Pet Milkie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 6040 };\n\t\t\tbreak;\n\n\t\tcase 33290:\n\t\t\titemDef.name = \"Pet Goldie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"oh wow... a rare golden bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 9152 };\n\t\t\tbreak;\n\n\t\tcase 33291:\n\t\t\titemDef.name = \"Pet Blue\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"A blue bunny... kinda looks like the easter bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 35321 };\n\t\t\tbreak;\n\n\t\tcase 33292:\n\t\t\titemDef.name = \"Crazed bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 23901;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"What a bloody mess...\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5413, 5417, 5421 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 111, 127 };\n\t\t\tbreak;\n\n\t\tcase 33293:\n\t\t\titemDef.name = \"Peter Rabbit\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 28602;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"Hi Peter!\";\n\t\t\tbreak;\n\n\t\tcase 33294:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947 };\n\t\t\titemDef.originalModelColors = new int[] { 8128 };\n\t\t\tbreak;\n\n\t\tcase 33295:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 25511 };\n\t\t\tbreak;\n\n\t\tcase 33296:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 38835 };\n\t\t\tbreak;\n\n\t\tcase 33297:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 947 };\n\t\t\tbreak;\n\n\t\tcase 33305:\n\t\t\titemDef.name = \"$10 bond\";\n\t\t\titemDef.description = \"$10 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 84, 84, 84, 84, 84, 84, 84 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33306:\n\t\t\titemDef.name = \"$25 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 87, 87, 87, 87, 87, 87, 87 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33307:\n\t\t\titemDef.name = \"$50 bond\";\n\t\t\titemDef.description = \"$50 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 65, 65, 65, 65, 65, 65, 65 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33308:\n\t\t\titemDef.name = \"$100 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 75, 75, 75, 75, 75, 75, 75 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33309:\n\t\t\titemDef.name = \"$200 bond\";\n\t\t\titemDef.description = \"$200 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 88, 88, 88, 88, 88, 88, 88 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33310:\n\t\t\titemDef.name = \"$500 bond\";\n\t\t\titemDef.description = \"$500 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 85, 85, 85, 85, 85, 85, 85 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33311:\n\t\t\titemDef.name = \"$1000 bond\";\n\t\t\titemDef.description = \"$1000 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 86, 86, 86, 86, 86, 86, 86 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33312:\n\t\t\titemDef.name = \"Armadyl battlestaff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60332;\n\t\t\titemDef.maleModel = 60333;\n\t\t\titemDef.femaleModel = 60333;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 225;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33313:\n\t\t\titemDef.name = \"Colossal platebody\";\n\t\t\titemDef.description = \"Colossal platebody.\";\n\t\t\titemDef.modelId = 60323;\n\t\t\titemDef.maleModel = 60324;\n\t\t\titemDef.femaleModel = 60324;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33314:\n\t\t\titemDef.name = \"Colossal platelegs\";\n\t\t\titemDef.description = \"Colossal platelegs.\";\n\t\t\titemDef.modelId = 60325;\n\t\t\titemDef.maleModel = 60326;\n\t\t\titemDef.femaleModel = 60326;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33315:\n\t\t\titemDef.name = \"Colossal boots\";\n\t\t\titemDef.description = \"Colossal boots.\";\n\t\t\titemDef.modelId = 60329;\n\t\t\titemDef.maleModel = 60329;\n\t\t\titemDef.femaleModel = 60329;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33316:\n\t\t\titemDef.name = \"Colossal gloves\";\n\t\t\titemDef.description = \"Colossal gloves.\";\n\t\t\titemDef.modelId = 60330;\n\t\t\titemDef.maleModel = 60331;\n\t\t\titemDef.femaleModel = 60331;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33317:\n\t\t\titemDef.name = \"Colossal helmet\";\n\t\t\titemDef.description = \"Colossal helmet.\";\n\t\t\titemDef.modelId = 60327;\n\t\t\titemDef.maleModel = 60328;\n\t\t\titemDef.femaleModel = 60328;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33318:\n\t\t\titemDef.name = \"Polypore staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60334;\n\t\t\titemDef.maleModel = 60335;\n\t\t\titemDef.femaleModel = 60335;\n\t\t\titemDef.modelZoom = 3750;\n\t\t\titemDef.modelRotation1 = 1454;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33319:\n\t\t\titemDef.name = \"Ganodermic platebody\";\n\t\t\titemDef.description = \"Ganodermic platebody.\";\n\t\t\titemDef.modelId = 60338;\n\t\t\titemDef.maleModel = 60339;\n\t\t\titemDef.femaleModel = 60339;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33320:\n\t\t\titemDef.name = \"Ganodermic platelegs\";\n\t\t\titemDef.description = \"Ganodermic platelegs.\";\n\t\t\titemDef.modelId = 60340;\n\t\t\titemDef.maleModel = 60341;\n\t\t\titemDef.femaleModel = 60341;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33321:\n\t\t\titemDef.name = \"Ganodermic helmet\";\n\t\t\titemDef.description = \"Ganodermic helmet.\";\n\t\t\titemDef.modelId = 60336;\n\t\t\titemDef.maleModel = 60337;\n\t\t\titemDef.femaleModel = 60337;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33322:\n\t\t\titemDef.name = \"Grotesque platebody\";\n\t\t\titemDef.description = \"Grosteq platebody.\";\n\t\t\titemDef.modelId = 60347;\n\t\t\titemDef.maleModel = 60348;\n\t\t\titemDef.femaleModel = 60348;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33323:\n\t\t\titemDef.name = \"Grotesque platelegs\";\n\t\t\titemDef.description = \"Grosteq platelegs.\";\n\t\t\titemDef.modelId = 60349;\n\t\t\titemDef.maleModel = 60350;\n\t\t\titemDef.femaleModel = 60350;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33324:\n\t\t\titemDef.name = \"Grotesque helmet\";\n\t\t\titemDef.description = \"Grosteqc helmet.\";\n\t\t\titemDef.modelId = 60345;\n\t\t\titemDef.maleModel = 60346;\n\t\t\titemDef.femaleModel = 60346;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33325:\n\t\t\titemDef.name = \"Grotesque cape\";\n\t\t\titemDef.description = \"Grosteq cape.\";\n\t\t\titemDef.modelId = 60351;\n\t\t\titemDef.maleModel = 60352;\n\t\t\titemDef.femaleModel = 60352;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33326:\n\t\t\titemDef.name = \"Stunning Hammer\";\n\t\t\titemDef.description = \"Has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60353;\n\t\t\titemDef.maleModel = 60354;\n\t\t\titemDef.femaleModel = 60354;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33327:\n\t\t\titemDef.name = \"Stunning Katagon platebody\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60356;\n\t\t\titemDef.maleModel = 60357;\n\t\t\titemDef.femaleModel = 60357;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33328:\n\t\t\titemDef.name = \"Stunning Katagon platelegs\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60358;\n\t\t\titemDef.maleModel = 60359;\n\t\t\titemDef.femaleModel = 60359;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33329:\n\t\t\titemDef.name = \"Stunning Katagon helmet\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60360;\n\t\t\titemDef.maleModel = 60361;\n\t\t\titemDef.femaleModel = 60361;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33331:\n\t\t\titemDef.name = \"Ancient platebody\";\n\t\t\titemDef.description = \"Ancient platebody.\";\n\t\t\titemDef.modelId = 60366;\n\t\t\titemDef.maleModel = 60367;\n\t\t\titemDef.femaleModel = 60367;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33332:\n\t\t\titemDef.name = \"Ancient platelegs\";\n\t\t\titemDef.description = \"Ancient platelegs.\";\n\t\t\titemDef.modelId = 60368;\n\t\t\titemDef.maleModel = 60369;\n\t\t\titemDef.femaleModel = 60369;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33334:\n\t\t\titemDef.name = \"Ancient boots\";\n\t\t\titemDef.description = \"Ancient boots.\";\n\t\t\titemDef.modelId = 60372;\n\t\t\titemDef.maleModel = 60372;\n\t\t\titemDef.femaleModel = 60372;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33335:\n\t\t\titemDef.name = \"Ancient gloves\";\n\t\t\titemDef.description = \"Ancient gloves.\";\n\t\t\titemDef.modelId = 60370;\n\t\t\titemDef.maleModel = 60371;\n\t\t\titemDef.femaleModel = 60371;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33336:\n\t\t\titemDef.name = \"Ancient helmet\";\n\t\t\titemDef.description = \"Ancient helmet.\";\n\t\t\titemDef.modelId = 60364;\n\t\t\titemDef.maleModel = 60365;\n\t\t\titemDef.femaleModel = 60365;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33341:\n\t\t\titemDef.name = \"Vanguard helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60391;\n\t\t\titemDef.maleModel = 60392;\n\t\t\titemDef.femaleModel = 60392;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33342:\n\t\t\titemDef.name = \"Vanguard platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60393;\n\t\t\titemDef.maleModel = 60394;\n\t\t\titemDef.femaleModel = 60394;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33343:\n\t\t\titemDef.name = \"Vanguard platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60395;\n\t\t\titemDef.maleModel = 60396;\n\t\t\titemDef.femaleModel = 60396;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33344:\n\t\t\titemDef.name = \"Vanguard boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60398;\n\t\t\titemDef.maleModel = 60398;\n\t\t\titemDef.femaleModel = 60398;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33345:\n\t\t\titemDef.name = \"Vanguard gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60373;\n\t\t\titemDef.maleModel = 60397;\n\t\t\titemDef.femaleModel = 60397;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33346:\n\t\t\titemDef.name = \"Celestial staff of light\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60401;\n\t\t\titemDef.maleModel = 60402;\n\t\t\titemDef.femaleModel = 60402;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 101 };\n\t\t\titemDef.originalModelColors = new int[] { 12 };\n\t\t\titemDef.maleOffset = -6;\n\t\t\titemDef.femaleOffset = -6;\n\t\t\tbreak;\n\n\t\tcase 33347:\n\t\t\titemDef.name = \"Hood of sorrow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60438;\n\t\t\titemDef.maleModel = 60403;\n\t\t\titemDef.femaleModel = 60403;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33348:\n\t\t\titemDef.name = \"Celestial robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60404;\n\t\t\titemDef.maleModel = 60405;\n\t\t\titemDef.femaleModel = 60405;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33349:\n\t\t\titemDef.name = \"Celestial robe legs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60406;\n\t\t\titemDef.maleModel = 60407;\n\t\t\titemDef.femaleModel = 60407;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33350:\n\t\t\titemDef.name = \"Primal 2h sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60408;\n\t\t\titemDef.maleModel = 60409;\n\t\t\titemDef.femaleModel = 60409;\n\t\t\titemDef.modelZoom = 1701;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.modelRotation2 = 1529;\n\t\t\titemDef.modelRotation1 = 1713;\n\t\t\titemDef.modelRotationY = 898;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33353:\n\t\t\titemDef.name = \"Primal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60417;\n\t\t\titemDef.maleModel = 60418;\n\t\t\titemDef.femaleModel = 60418;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.modelRotation2 = 1793;\n\t\t\titemDef.modelRotation1 = 1473;\n\t\t\titemDef.modelRotationY = 1121;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33354:\n\t\t\titemDef.name = \"Primal maul\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60419;\n\t\t\titemDef.maleModel = 60420;\n\t\t\titemDef.femaleModel = 60420;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33359:\n\t\t\titemDef.name = \"Primal rapier\";\n\t\t\titemDef.description = \"Good for fighting the ...\";\n\t\t\titemDef.modelId = 60433;\n\t\t\titemDef.maleModel = 60433;\n\t\t\titemDef.femaleModel = 60433;\n\t\t\titemDef.modelZoom = 1300;\n\t\t\titemDef.modelRotation1 = 1401;\n\t\t\titemDef.modelRotation2 = 1724;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 15;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33360:\n\t\t\titemDef.name = \"Primal spear\";\n\t\t\titemDef.description = \"Good for fighting the Corperal Beast.\";\n\t\t\titemDef.modelId = 60434;\n\t\t\titemDef.maleModel = 60435;\n\t\t\titemDef.femaleModel = 60435;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -10;\n\t\t\titemDef.maleOffset = -10;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33361:\n\t\t\titemDef.name = \"Primal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60436;\n\t\t\titemDef.maleModel = 60437;\n\t\t\titemDef.femaleModel = 60437;\n\t\t\titemDef.modelZoom = 1330;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 148;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33362:\n\t\t\titemDef.name = \"Chitin helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60445;\n\t\t\titemDef.maleModel = 60446;\n\t\t\titemDef.femaleModel = 60446;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33364:\n\t\t\titemDef.name = \"Chitin platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60447;\n\t\t\titemDef.maleModel = 60448;\n\t\t\titemDef.femaleModel = 60448;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33365:\n\t\t\titemDef.name = \"Chitin platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60449;\n\t\t\titemDef.maleModel = 60450;\n\t\t\titemDef.femaleModel = 60450;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33366:\n\t\t\titemDef.name = \"Chitin cape\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60443;\n\t\t\titemDef.maleModel = 60444;\n\t\t\titemDef.femaleModel = 60444;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33367:\n\t\t\titemDef.name = \"Supreme void helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60467;\n\t\t\titemDef.maleModel = 60464;\n\t\t\titemDef.femaleModel = 60464;\n\t\t\titemDef.modelZoom = 900;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33368:\n\t\t\titemDef.name = \"Supreme void robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60468;\n\t\t\titemDef.maleModel = 60465;\n\t\t\titemDef.femaleModel = 60465;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33369:\n\t\t\titemDef.name = \"Supreme void robe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60469;\n\t\t\titemDef.maleModel = 60466;\n\t\t\titemDef.femaleModel = 60466;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33370:\n\t\t\titemDef.name = \"Korasi's sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60471;\n\t\t\titemDef.maleModel = 60470;\n\t\t\titemDef.femaleModel = 60470;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 330;\n\t\t\titemDef.modelRotation2 = 1505;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\n\t\tcase 33371:\n\t\t\titemDef.name = \"Spiked slayer helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60475;\n\t\t\titemDef.maleModel = 60476;\n\t\t\titemDef.femaleModel = 60476;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33372:\n\t\t\titemDef.name = \"Slayer platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60478;\n\t\t\titemDef.maleModel = 60479;\n\t\t\titemDef.femaleModel = 60479;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33373:\n\t\t\titemDef.name = \"Slayer platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60474;\n\t\t\titemDef.maleModel = 60477;\n\t\t\titemDef.femaleModel = 60477;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33374:\n\t\t\titemDef.name = \"Slayer boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60472;\n\t\t\titemDef.maleModel = 60473;\n\t\t\titemDef.femaleModel = 60473;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33375:\n\t\t\titemDef.name = \"Blood Justiciar helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60482;\n\t\t\titemDef.maleModel = 60483;\n\t\t\titemDef.femaleModel = 60483;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33376:\n\t\t\titemDef.name = \"Blood Justiciar platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60484;\n\t\t\titemDef.maleModel = 60485;\n\t\t\titemDef.femaleModel = 60485;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33377:\n\t\t\titemDef.name = \"Blood justiciar platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60486;\n\t\t\titemDef.maleModel = 60487;\n\t\t\titemDef.femaleModel = 60487;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33378:\n\t\t\titemDef.name = \"Blood justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60488;\n\t\t\titemDef.maleModel = 60488;\n\t\t\titemDef.femaleModel = 60488;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33379:\n\t\t\titemDef.name = \"Blood justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60489;\n\t\t\titemDef.maleModel = 60490;\n\t\t\titemDef.femaleModel = 60490;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33380:\n\t\t\titemDef.name = \"Blood scythe of vitur\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60480;\n\t\t\titemDef.maleModel = 60481;\n\t\t\titemDef.femaleModel = 60481;\n\t\t\titemDef.modelZoom = 3850;\n\t\t\titemDef.modelRotation1 = 727;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33381:\n\t\t\titemDef.name = \"Skiller cape\";\n\t\t\titemDef.description = \"Skiller cape.\";\n\t\t\titemDef.modelId = 60494;\n\t\t\titemDef.maleModel = 60493;\n\t\t\titemDef.femaleModel = 60492;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33382:\n\t\t\titemDef.name = \"Justiciar faceguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33383:\n\t\t\titemDef.name = \"Justiciar faceguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33384:\n\t\t\titemDef.name = \"Justiciar faceguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33385:\n\t\t\titemDef.name = \"Justiciar faceguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33387:\n\t\t\titemDef.name = \"Justiciar faceguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33389:\n\t\t\titemDef.name = \"Justiciar faceguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33390:\n\t\t\titemDef.name = \"Justiciar chestguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33391:\n\t\t\titemDef.name = \"Justiciar chestguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33392:\n\t\t\titemDef.name = \"Justiciar chestguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33393:\n\t\t\titemDef.name = \"Justiciar chestguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33394:\n\t\t\titemDef.name = \"Justiciar chestguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33395:\n\t\t\titemDef.name = \"Justiciar chestguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33396:\n\t\t\titemDef.name = \"Justiciar legguards (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33397:\n\t\t\titemDef.name = \"Justiciar legguards (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33398:\n\t\t\titemDef.name = \"Justiciar legguards (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33399:\n\t\t\titemDef.name = \"Justiciar legguards (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33400:\n\t\t\titemDef.name = \"Justiciar legguards (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33401:\n\t\t\titemDef.name = \"Justiciar legguards (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33402:\n\t\t\titemDef.name = \"Pet andy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 50169;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33403:\n\t\t\titemDef.name = \"Pet mod divine\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 14283;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33404:\n\t\t\titemDef.name = \"Celestial fairy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60491;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 947 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 937, 11200 };\n\t\t\titemDef.originalModelColors = new int[] { 42663, 41883 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33405:\n\t\t\titemDef.name = \"Lava partyhat (red)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33406:\n\t\t\titemDef.name = \"Lava partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33407:\n\t\t\titemDef.name = \"Lava partyhat (cyan)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33408:\n\t\t\titemDef.name = \"Lava partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33409:\n\t\t\titemDef.name = \"Infernal partyhat (blue)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33410:\n\t\t\titemDef.name = \"Infernal partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33411:\n\t\t\titemDef.name = \"Infernal partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33412:\n\t\t\titemDef.name = \"Infernal partyhat (rainbow)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33413:\n\t\t\titemDef.name = \"Celestial partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33414:\n\t\t\titemDef.name = \"Blood partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33415:\n\t\t\titemDef.name = \"Shadow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33416:\n\t\t\titemDef.name = \"Light blue partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33417:\n\t\t\titemDef.name = \"Easter partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33418:\n\t\t\titemDef.name = \"Dark sparkle partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33419:\n\t\t\titemDef.name = \"Rainbow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33420:\n\t\t\titemDef.name = \"Fire partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33421:\n\t\t\titemDef.name = \"Pet star sprite\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60506;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33422:\n\t\t\titemDef.name = \"Stargaze Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33423:\n\t\t\titemDef.name = \"Star Dust\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Exchange\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 60496;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 279;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 47;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33424:\n\t\t\titemDef.name = \"Blood twisted bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32799;\n\t\t\titemDef.maleModel = 32674;\n\t\t\titemDef.femaleModel = 32674;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10318, 10334 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66 };\n\t\t\titemDef.modifiedModelColors = new int[] { 14236, 13223 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33425:\n\t\t\titemDef.name = \"Celestial crow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60507;\n\t\t\titemDef.modelZoom = 1000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10382 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10378, 10502 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33426:\n\t\t\titemDef.name = \"Celestial penguin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60508;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10343 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 16, 12, 20, 24, 8, 10332, 10337 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33427:\n\t\t\titemDef.name = \"Celestial snake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60509;\n\t\t\titemDef.modelZoom = 1800;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10644, 10512 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78, 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10413, 10405, 10524 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33428:\n\t\t\titemDef.name = \"Celestial scorpion\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60510;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 142 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 4884, 4636, 3974, 4525, 4645 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33429:\n\t\t\titemDef.name = \"Armadyl dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\tbreak;\n\n\t\tcase 33430:\n\t\t\titemDef.name = \"Guthix dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\tbreak;\n\n\t\tcase 33431:\n\t\t\titemDef.name = \"Zamorak dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\tbreak;\n\n\t\tcase 33432:\n\t\t\titemDef.name = \"Ancient dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\tbreak;\n\n\t\tcase 33433:\n\t\t\titemDef.name = \"Bandos dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\tbreak;\n\n\t\tcase 33434:\n\t\t\titemDef.name = \"Saradomin dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\tbreak;\n\n\t\tcase 33435:\n\t\t\titemDef.name = \"Celestial egg\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 7171;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelRotation2 = 16;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 476 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Hatch\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\tcase 33436:\n\t\t\titemDef.name = \"Elite void top (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10586;\n\t\t\titemDef.maleModel = 10687;\n\t\t\titemDef.anInt188 = 10681;\n\t\t\titemDef.femaleModel = 10694;\n\t\t\titemDef.anInt164 = 10688;\n\t\t\titemDef.modelZoom = 1221;\n\t\t\titemDef.modelRotation1 = 459;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33437:\n\t\t\titemDef.name = \"Elite void robe (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60528;\n\t\t\titemDef.maleModel = 60526;\n\t\t\titemDef.femaleModel = 60527;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33438:\n\t\t\titemDef.name = \"Blood chest\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60516;\n\t\t\titemDef.modelZoom = 2640;\n\t\t\titemDef.modelRotation1 = 114;\n\t\t\titemDef.modelRotation2 = 1883;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33439:\n\t\t\titemDef.name = \"Blood bird\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60517;\n\t\t\titemDef.modelZoom = 2768;\n\t\t\titemDef.modelRotation1 = 141;\n\t\t\titemDef.modelRotation2 = 1790;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.originalTextureColors = new int[] { 1946, 2983, 6084, 2735, 5053, 6082, 4013, 2733, 4011, 2880,\n\t\t\t\t\t8150 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66 };\n\t\t\tbreak;\n\n\t\tcase 33440:\n\t\t\titemDef.name = \"Blood Death\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60441;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33442:\n\t\t\titemDef.name = \"10 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33446:\n\t\t\titemDef.name = \"10 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33450:\n\t\t\titemDef.name = \"10 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33454:\n\t\t\titemDef.name = \"10 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33458:\n\t\t\titemDef.name = \"10 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33462:\n\t\t\titemDef.name = \"10 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33443:\n\t\t\titemDef.name = \"30 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33447:\n\t\t\titemDef.name = \"30 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33451:\n\t\t\titemDef.name = \"30 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33455:\n\t\t\titemDef.name = \"30 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33459:\n\t\t\titemDef.name = \"30 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33463:\n\t\t\titemDef.name = \"30 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33444:\n\t\t\titemDef.name = \"60 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33448:\n\t\t\titemDef.name = \"60 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33452:\n\t\t\titemDef.name = \"60 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33456:\n\t\t\titemDef.name = \"60 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33460:\n\t\t\titemDef.name = \"60 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33464:\n\t\t\titemDef.name = \"60 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33445:\n\t\t\titemDef.name = \"120 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33449:\n\t\t\titemDef.name = \"120 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33453:\n\t\t\titemDef.name = \"120 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33457:\n\t\t\titemDef.name = \"120 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33461:\n\t\t\titemDef.name = \"120 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33465:\n\t\t\titemDef.name = \"120 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33466:\n\t\t\titemDef.name = \"Deathtouched dart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60534;\n\t\t\titemDef.maleModel = 60533;\n\t\t\titemDef.femaleModel = 60533;\n\t\t\titemDef.modelZoom = 1053;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33467:\n\t\t\titemDef.name = \"Justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60535;\n\t\t\titemDef.maleModel = 60535;\n\t\t\titemDef.femaleModel = 60535;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33468:\n\t\t\titemDef.name = \"Justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31022;\n\t\t\titemDef.maleModel = 31006;\n\t\t\titemDef.femaleModel = 31013;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 2015;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 123, 70 };\n\t\t\titemDef.originalModelColors = new int[] { 6736, 59441 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33469:\n\t\t\titemDef.name = \"Magic mushroom\";\n\t\t\titemDef.description = \"offers a 10% droprate increase while this pet follows you.\";\n\t\t\titemDef.modelId = 60532;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33470:\n\t\t\titemDef.name = \"Twisted staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60538;\n\t\t\titemDef.maleModel = 60539;\n\t\t\titemDef.femaleModel = 60539;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33471:\n\t\t\titemDef.name = \"Cowboy hat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60540;\n\t\t\titemDef.maleModel = 60541;\n\t\t\titemDef.femaleModel = 60541;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 108;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33472:\n\t\t\titemDef.name = \"Stick\";\n\t\t\titemDef.description = \"Careful of that chub.\";\n\t\t\titemDef.modelId = 60545;\n\t\t\titemDef.maleModel = 60545;\n\t\t\titemDef.femaleModel = 60545;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33473:\n\t\t\titemDef.name = \"#1 Tob cape\";\n\t\t\titemDef.description = \"Reward to the first to complete tob solo and in a team.\";\n\t\t\titemDef.modelId = 60551;\n\t\t\titemDef.maleModel = 60550;\n\t\t\titemDef.femaleModel = 60550;\n\t\t\titemDef.modelZoom = 2295;\n\t\t\titemDef.modelRotation1 = 367;\n\t\t\titemDef.modelRotation2 = 1212;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33474:\n\t\t\titemDef.name = \"Supreme void upgrade kit\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4847;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 163;\n\t\t\titemDef.modelRotation2 = 73;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { -32709, 10295, 10304, 10287, 10275, 10283 };\n\t\t\titemDef.originalModelColors = new int[] { 10, 10, 10, 10, 10, 10 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33475:\n\t\t\titemDef.name = \"Hunter's penguin\";\n\t\t\titemDef.description = \"the one and only's pet.\";\n\t\t\titemDef.modelId = 60548;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33476:\n\t\t\titemDef.name = \"Chef Harambe\";\n\t\t\titemDef.description = \"I like to dip my balls in a deep fryer.\";\n\t\t\titemDef.modelId = 60921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33477:\n\t\t\titemDef.name = \"Void knight champion jr\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60463;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33478:\n\t\t\titemDef.name = \"Custom pet token\";\n\t\t\titemDef.description = \"Trade this to corey after filling out a form on the forums post custom pets\";\n\t\t\titemDef.modelId = 13838;\n\t\t\titemDef.modelZoom = 530;\n\t\t\titemDef.modelRotation1 = 415;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33479:\n\t\t\titemDef.name = \"Mr jaycorr\";\n\t\t\titemDef.description = \"The autistic one.\";\n\t\t\titemDef.modelId = 60592;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33480:\n\t\t\titemDef.name = \"Broom broom\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60593;\n\t\t\titemDef.maleModel = 60593;\n\t\t\titemDef.femaleModel = 60593;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33481:\n\t\t\titemDef.name = \"Test\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11773:\n\t\tcase 11771:\n\t\tcase 11770:\n\t\tcase 11772:\n\t\t\titemDef.anInt196 += 45;\n\t\t\tbreak;\n\t\tcase 22610:\n\t\t\titemDef.name = \"Vesta's spear (deg)\";\n\t\t\tbreak;\n\t\tcase 22614:\n\t\t\titemDef.name = \"Vesta's longsword (deg)\";\n\t\t\tbreak;\n\t\tcase 22616:\n\t\t\titemDef.name = \"Vesta's chainbody (deg)\";\n\t\t\tbreak;\n\t\tcase 22619:\n\t\t\titemDef.name = \"Vesta's plateskirt (deg)\";\n\t\t\tbreak;\n\t\tcase 22622:\n\t\t\titemDef.name = \"Statius's warhammer (deg)\";\n\t\t\tbreak;\n\t\tcase 22625:\n\t\t\titemDef.name = \"Statius's full helm (deg)\";\n\t\t\tbreak;\n\t\tcase 22628:\n\t\t\titemDef.name = \"Statius's platebody (deg)\";\n\t\t\tbreak;\n\t\tcase 22631:\n\t\t\titemDef.name = \"Statius's platelegs (deg)\";\n\t\t\tbreak;\n\t\tcase 22638:\n\t\t\titemDef.name = \"Morrigan's coif (deg)\";\n\t\t\tbreak;\n\t\tcase 22641:\n\t\t\titemDef.name = \"Morrigan's leather body (deg)\";\n\t\t\tbreak;\n\t\tcase 22644:\n\t\t\titemDef.name = \"Morrigan's leather chaps (deg)\";\n\t\t\tbreak;\n\t\tcase 22647:\n\t\t\titemDef.name = \"Zuriel's staff (deg)\";\n\t\t\tbreak;\n\t\tcase 22650:\n\t\t\titemDef.name = \"Zuriel's hood (deg)\";\n\t\t\tbreak;\n\t\tcase 22653:\n\t\t\titemDef.name = \"Zuriel's robe top (deg)\";\n\t\t\tbreak;\n\t\tcase 22656:\n\t\t\titemDef.name = \"Zuriel's robe bottom (deg)\";\n\t\t\tbreak;\n\n\t\tcase 13303:\n\t\t\titemDef.name = \"Event Key (Tarn)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13302:\n\t\t\titemDef.name = \"Event Key (Graardor)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13305:\n\t\t\titemDef.name = \"Tastey-Looking Key\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 2697:\n\t\t\titemDef.name = \"$10 Scroll\";\n\t\t\titemDef.description = \"Get donor status at a cheaper cost!\";\n\t\t\tbreak;\n\t\tcase 2698:\n\t\t\titemDef.name = \"$50 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Super Donator status.\";\n\t\t\tbreak;\n\t\tcase 2699:\n\t\t\titemDef.name = \"$100 Donator\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Extreme Donator status.\";\n\t\t\tbreak;\n\t\tcase 2700:\n\t\t\titemDef.name = \"$5 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Legendary Donator status.\";\n\t\t\tbreak;\n\t\tcase 1464:\n\t\t\titemDef.name = \"Vote ticket\";\n\t\t\titemDef.description = \"This ticket can be exchanged for a voting point.\";\n\t\t\tbreak;\n\n\t\tcase 11739:\n\t\t\titemDef.name = \"Daily reward box\";\n\t\t\titemDef.description = \"Open this box for a daily reward.\";\n\t\t\tbreak;\n\n\t\tcase 13066:// super set\n\t\tcase 12873:// barrows\n\t\tcase 12875:\n\t\tcase 12877:\n\t\tcase 12879:\n\t\tcase 12881:\n\t\tcase 12883:\n\t\tcase 12789:// clue box\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "protected void fillCommonRelationshipsMenu() {\n common_relationships_menu.removeAll();\n // -- Common relationships\n JMenuItem mi;\n BundlesG globals = getRTParent().getRootBundles().getGlobals();\n //\n //\n //\n if (globals.fieldIndex(\"sip\") != -1 && globals.fieldIndex(\"dip\") != -1) {\n common_relationships_menu.add(mi = new JMenuItem(\"sip => dip\"));\n mi.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) {\n addRelationship(\"sip\", Utils.SQUARE_STR, false, \"dip\", Utils.SQUARE_STR, false, STYLE_SOLID_STR, true, true); } } );\n }\n //\n //\n //\n if (globals.fieldIndex(\"srcip\") != -1 && globals.fieldIndex(\"dstip\") != -1) {\n common_relationships_menu.add(mi = new JMenuItem(\"srcip => dstip\"));\n mi.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) {\n addRelationship(\"srcip\", Utils.SQUARE_STR, false, \"dstip\", Utils.SQUARE_STR, false, STYLE_SOLID_STR, true, true); } } );\n }\n //\n //\n //\n if (globals.fieldIndex(\"sip\") != -1 && globals.fieldIndex(\"dip\") != -1 && globals.fieldIndex(\"dpt\") != -1) {\n common_relationships_menu.add(mi = new JMenuItem(\"sip => dpt => dip\"));\n mi.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) {\n addRelationship(\"sip\", Utils.SQUARE_STR, false, \"dpt\", Utils.CIRCLE_STR, true, STYLE_SOLID_STR, true, true);\n addRelationship(\"dpt\", Utils.CIRCLE_STR, true, \"dip\", Utils.SQUARE_STR, false, STYLE_SOLID_STR, true, true); } } );\n }\n //\n //\n //\n if (globals.fieldIndex(\"sip\") != -1 && globals.fieldIndex(\"dip\") != -1 && globals.fieldIndex(\"dpt\") != -1 && globals.fieldIndex(\"spt\") != -1) {\n common_relationships_menu.add(mi = new JMenuItem(\"sip => spt => dpt => dip\"));\n mi.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) {\n addRelationship(\"sip\", Utils.SQUARE_STR, false, \"spt\", Utils.CIRCLE_STR, true, STYLE_SOLID_STR, true, true);\n addRelationship(\"spt\", Utils.CIRCLE_STR, true, \"dpt\", Utils.CIRCLE_STR, true, STYLE_SOLID_STR, true, true);\n addRelationship(\"dpt\", Utils.CIRCLE_STR, true, \"dip\", Utils.SQUARE_STR, false, STYLE_SOLID_STR, true, true); } } );\n }\n //\n //\n //\n if (globals.fieldIndex(\"DBYT\") != -1 && globals.fieldIndex(\"SBYT\") != -1 && globals.fieldIndex(\"dpt\") != -1 && globals.fieldIndex(\"spt\") != -1) {\n common_relationships_menu.add(mi = new JMenuItem(\"DBYT => dpt => SBYT\"));\n mi.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) {\n addRelationship(\"DBYT\", Utils.DIAMOND_STR, true, \"dpt\", Utils.CIRCLE_STR, true, STYLE_SOLID_STR, true, true);\n addRelationship(\"dpt\", Utils.CIRCLE_STR, true, \"SBYT\", Utils.DIAMOND_STR, true, STYLE_SOLID_STR, true, true); } } );\n }\n //\n //\n //\n if (globals.fieldIndex(\"DOCT\") != -1 && globals.fieldIndex(\"SOCT\") != -1 && globals.fieldIndex(\"dpt\") != -1 && globals.fieldIndex(\"spt\") != -1) {\n common_relationships_menu.add(mi = new JMenuItem(\"DOCT => dpt => SOCT\"));\n mi.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) {\n addRelationship(\"DOCT\", Utils.DIAMOND_STR, true, \"dpt\", Utils.CIRCLE_STR, true, STYLE_SOLID_STR, true, true);\n addRelationship(\"dpt\", Utils.CIRCLE_STR, true, \"SOCT\", Utils.DIAMOND_STR, true, STYLE_SOLID_STR, true, true); } } );\n }\n //\n //\n //\n if (globals.fieldIndex(\"domain\") != -1 && globals.fieldIndex(\"ip\") != -1) {\n common_relationships_menu.add(mi = new JMenuItem(\"domain => ip\"));\n mi.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) {\n addRelationship(\"domain\", Utils.TRIANGLE_STR, false, \"ip\", Utils.SQUARE_STR, false, STYLE_SOLID_STR, true, true); } } );\n }\n // -- Recent Relationships\n String recents[] = RTPrefs.retrieveStrings(RECENT_RELATIONSHIPS_PREF_STR);\n if (recents != null && recents.length > 0) {\n // Prepare the lookup...\n recent_relationships_lu = new HashMap<String,String>();\n // and the menu...\n common_relationships_menu.addSeparator();\n // and the blanks list...\n Set<String> blanks_set = new HashSet<String>();\n String blanks[] = KeyMaker.blanks(getRTParent().getRootBundles().getGlobals());\n for (int i=0;i<blanks.length;i++) blanks_set.add(blanks[i]);\n // Go through the recents...\n for (int i=0;i<recents.length;i++) {\n\t// Extract the relationships\n StringTokenizer st = new StringTokenizer(recents[i], BundlesDT.DELIM);\n\tString delimited = Utils.decFmURL(st.nextToken());\n\t// Get the header elements -- make sure they exist in the current data set\n\tString fm_hdr = relationshipFromHeader(delimited),\n\t to_hdr = relationshipToHeader(delimited);\n if (blanks_set.contains(fm_hdr) == false || blanks_set.contains(to_hdr) == false) continue; \n\t// Change them to a human representation and add them to the lookups\n String recents_in_human = fm_hdr + \" => \" + to_hdr;\n recent_relationships_lu.put(recents_in_human, delimited);\n common_relationships_menu.add(mi = new JMenuItem(recents_in_human));\n\tmi.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) {\n\t String cmd = ae.getActionCommand(); cmd = recent_relationships_lu.get(cmd);\n\t // System.err.println(\"Command = \\\"\" + cmd + \"\\\"\");\n\t String fm_hdr = relationshipFromHeader(cmd), fm_ico = relationshipFromIcon(cmd); boolean fm_typed = relationshipFromTyped(cmd);\n\t String to_hdr = relationshipToHeader(cmd), to_ico = relationshipToIcon(cmd); boolean to_typed = relationshipToTyped(cmd);\n String style = relationshipStyle(cmd); boolean ignore_ns = relationshipIgnoreNotSet(cmd);\n\t addRelationship(fm_hdr, fm_ico, fm_typed, to_hdr, to_ico, to_typed, style, ignore_ns, false);\n\t} } );\n }\n // Add an option to clear out the recent relationships\n common_relationships_menu.addSeparator();\n common_relationships_menu.add(mi = new JMenuItem(\"Clear Relationships\"));\n mi.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) {\n RTPrefs.store(RECENT_RELATIONSHIPS_PREF_STR, new String[0]);\n } } );\n }\n }", "protected void getSaveMenuItems(List items, boolean forMenuBar) {\n super.getSaveMenuItems(items, forMenuBar);\n\n items.add(GuiUtils.makeMenuItem(\"Save Chart Image...\", getChart(),\n \"saveImage\"));\n\n }", "@Override\n\tpublic void creatConfigUI(Composite parent, Map<String, String> params) {\n\n\t}", "public String getKeyBuyMenuName() {\r\n return keyBuyMenuName;\r\n }", "private String createCustomInfoString() {\r\n String CustomInfo = \"\";\r\n Iterator<String> iterator = mCustomParameters.keySet().iterator();\r\n while (iterator.hasNext()) {\r\n String CurrentKey = iterator.next();\r\n String CurrentVal = mCustomParameters.get(CurrentKey);\r\n CustomInfo += CurrentKey + \" = \" + CurrentVal + \"\\n\";\r\n }\r\n return CustomInfo;\r\n }", "private void itemEncode(Player player) {\n\t\tPlayerInventory inventory = player.getInventory();\n\t\tItemStack heldItem = inventory.getItemInMainHand();\n\t\tList<String> data = CryptoSecure.encodeItemStack(heldItem);\n\t\t\n\t\tItemStack holder = new ItemStack(Material.WRITTEN_BOOK);\n\t\tBookMeta meta = (BookMeta) holder.getItemMeta();\n\t\tmeta.setAuthor(\"WATCHBOX\");\n\t\tmeta.setTitle(\"(Placeholder)\");\n\t\tmeta.setPages(data);\n\t\tholder.setItemMeta(meta);\n\t\t\n\t\tinventory.addItem(holder);\n\t}", "private void updateMenu() {\n\n\t\t\tblockActionsStart();\n\n\t\t\tArrayList<OutputConfig> theConfigs = OutputConfig.getConfigs(getDbID(), type);\n\t\t\ttheConfigs.add(0, OutputConfig.getDefaultObject(type));\n\t\t\tif (!theConfigs.contains(config)) {\n\t\t\t\ttheConfigs.add(0, config);\n\t\t\t}\n\t\t\tif (showNullObject && !config.isNull()) {\n\t\t\t\ttheConfigs.add(0, OutputConfig.getNullObject(type));\n\t\t\t}\n\n\t\t\tconfigMenu.removeAllItems();\n\t\t\tfor (OutputConfig theConfig : theConfigs) {\n\t\t\t\tconfigMenu.addItem(theConfig);\n\t\t\t}\n\t\t\tconfigMenu.setSelectedItem(config);\n\n\t\t\tupdateConfig();\n\n\t\t\tblockActionsEnd();\n\t\t}", "protected String getConfigKey ()\n {\n return \"ConfigEditor.\" + ResourceUtil.getPrefsPrefix() + (_readOnly ? \".readonly\" : \"\");\n }", "private void constructMenuItems()\n\t{\n\t\tthis.saveImageMenuItem = ComponentGenerator.generateMenuItem(\"Save Image\", this, KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));\n\t\tthis.quitMenuItem = ComponentGenerator.generateMenuItem(\"Quit\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));\n\t\tthis.undoMenuItem = ComponentGenerator.generateMenuItem(\"Undo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Z, ActionEvent.CTRL_MASK));\n\t\tthis.redoMenuItem = ComponentGenerator.generateMenuItem(\"Redo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Y, ActionEvent.CTRL_MASK));\n\t\tthis.removeImageMenuItem = ComponentGenerator.generateMenuItem(\"Remove Image from Case\", this);\n\t\tthis.antiAliasMenuItem = ComponentGenerator.generateMenuItem(\"Apply Anti Aliasing\", this);\n\t\tthis.brightenMenuItem = ComponentGenerator.generateMenuItem(\"Brighten by 10%\", this);\n\t\tthis.darkenMenuItem = ComponentGenerator.generateMenuItem(\"Darken by 10%\", this);\n\t\tthis.grayscaleMenuItem = ComponentGenerator.generateMenuItem(\"Convert to Grayscale\", this);\n\t\tthis.resizeMenuItem = ComponentGenerator.generateMenuItem(\"Resize Image\", this);\n\t\tthis.cropMenuItem = ComponentGenerator.generateMenuItem(\"Crop Image\", this);\n\t\tthis.rotate90MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 90\\u00b0 Right\", this);\n\t\tthis.rotate180MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 180\\u00b0 Right\", this);\n\t\tthis.rotate270MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 270\\u00b0 Right\", this);\n\t}", "public String showMainCourseMenuOptions(){\n stringBuilder = new StringBuilder();\n int counter = 0;\n for (String key : menuLoader.getMainCourseMenu().keySet()) {\n counter++;\n stringBuilder.append(\" '\" + key + \"',\");\n if (counter%10 == 0){\n stringBuilder.append(\"\\n\");\n }\n }\n return stringBuilder.toString();\n }", "protected abstract String getXmppConfigResources();", "@Override\r\n \tpublic String toString() {\n \t\tString itemString = \"\" + item.getTypeId() + ( item.getData().getData() != 0 ? \":\" + item.getData().getData() : \"\" );\r\n \t\t\r\n \t\t//saving the item price\r\n \t\tif ( !listenPattern )\r\n \t\t\titemString += \" p:\" + new DecimalFormat(\"#.##\").format(price);\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" s:\" + slot;\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" d:\" + item.getDurability();\r\n \t\t\r\n \t\t//saving the item amounts\r\n \t\titemString += \" a:\";\r\n \t\tfor ( int i = 0 ; i < amouts.size() ; ++i )\r\n \t\t\titemString += amouts.get(i) + ( i + 1 < amouts.size() ? \",\" : \"\" );\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasLimit() ) \r\n \t\t\titemString += \" gl:\" + limit.toString();\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasPlayerLimit() ) \r\n \t\t\titemString += \" pl:\" + limit.playerLimitToString();\r\n \t\t\r\n \t\t//saving enchantment's\r\n \t\tif ( !item.getEnchantments().isEmpty() ) {\r\n \t\t\titemString += \" e:\";\r\n \t\t\tfor ( int i = 0 ; i < item.getEnchantments().size() ; ++i ) {\r\n \t\t\t\tEnchantment e = (Enchantment) item.getEnchantments().keySet().toArray()[i];\r\n \t\t\t\titemString += e.getId() + \"/\" + item.getEnchantmentLevel(e) + ( i + 1 < item.getEnchantments().size() ? \",\" : \"\" );\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\t//saving additional configurations\r\n \t\tif ( stackPrice )\r\n \t\t\titemString += \" sp\";\r\n \t\tif ( listenPattern )\r\n \t\t\titemString += \" pat\";\r\n \t\t\r\n \t\treturn itemString;\r\n \t}", "public void initializeMenuItems() {\n menuItems = new LinkedHashMap<TestingOption, MenuDrawerItem>();\n menuItems.put(TestingOption.TESTING_OPTION, create(TestingOption.TESTING_OPTION, getResources().getString(R.string.testing_section).toUpperCase(), MenuDrawerItem.SECTION_TYPE));\n menuItems.put(TestingOption.ANNOTATION_OPTION, create(TestingOption.ANNOTATION_OPTION, getResources().getString(R.string.option_annotation_POI), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VIEW_SETTINGS_OPTION, create(TestingOption.MAP_VIEW_SETTINGS_OPTION, getResources().getString(R.string.option_map_view_settings), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_CACHE_OPTION, create(TestingOption.MAP_CACHE_OPTION, getResources().getString(R.string.option_map_cache), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.LAST_RENDERED_FRAME_OPTION, create(TestingOption.LAST_RENDERED_FRAME_OPTION, getResources().getString(R.string.option_last_rendered_frame), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, create(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, getResources().getString(R.string.option_ccp_animation_custom_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.BOUNDING_BOX_OPTION, create(TestingOption.BOUNDING_BOX_OPTION, getResources().getString(R.string.option_bounding_box), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.INTERNALIZATION_OPTION, create(TestingOption.INTERNALIZATION_OPTION, getResources().getString(R.string.option_internalization), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATE_OPTION, create(TestingOption.ANIMATE_OPTION, getResources().getString(R.string.option_animate), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_STYLE_OPTION, create(TestingOption.MAP_STYLE_OPTION, getResources().getString(R.string.option_map_style), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.SCALE_VIEW_OPTION, create(TestingOption.SCALE_VIEW_OPTION, getResources().getString(R.string.option_scale_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.CALLOUT_VIEW_OPTION, create(TestingOption.CALLOUT_VIEW_OPTION, getResources().getString(R.string.option_callout_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTING_OPTION, create(TestingOption.ROUTING_OPTION, getResources().getString(R.string.option_routing), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTE_WITH_POINTS, create(TestingOption.ROUTE_WITH_POINTS, getResources().getString(R.string.option_routing_with_points),MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VERSION_OPTION, create(TestingOption.MAP_VERSION_OPTION, getResources().getString(R.string.option_map_version_information), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.OVERLAYS_OPTION, create(TestingOption.OVERLAYS_OPTION, getResources().getString(R.string.option_overlays), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POI_TRACKER, create(TestingOption.POI_TRACKER, getResources().getString(R.string.option_poi_tracker), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POSITION_LOGGING_OPTION, create(TestingOption.POSITION_LOGGING_OPTION, getResources().getString(R.string.option_position_logging), MenuDrawerItem.ITEM_TYPE));\n\n list = new ArrayList<MenuDrawerItem>(menuItems.values());\n drawerList.setAdapter(new MenuDrawerAdapter(DebugMapActivity.this, R.layout.element_menu_drawer_item, list));\n drawerList.setOnItemClickListener(new DrawerItemClickListener());\n\n }", "public String toString(){\n return super.toString() + \" (perishable)\"; // String representation of the PerishableItem\n\n }", "@Override\n public String storeItem() {\n return \"N/\" + description;\n }", "@Override\r\n\tpublic String getInCode() {\n\t\treturn InterFacesCodeConsts.COMMON.SAVE_ROLE_MENU;\r\n\t}", "public interface Config {\n String SUCCESS = \"success\";\n String SUCCESS_CODE = \"10000\";\n String ERROR = \"error\";\n String ERROR_CODE = \"20000\";\n\n String ROLE_ADMIN = \"SYS_ADMIN\";\n String ROLE_GUEST = \"SYS_GUEST\";\n String IMG_FILE_PATH = \"upload/image\";\n String IMG_BANNER_TYPE = \"BANNER\";\n String IMG_ALBUM_TYPE = \"ALBUM\";\n String IMG_GLOBAL_TYPE = \"GLOBAL\";\n String GLOBAL_ABOUT_CODE=\"ABOUT\";\n String GLOBAL_REASON_CODE=\"REASON\";\n String AES_KEY = \"harlanking021109\";\n String HMAC_KEY = \"harlanking021109\";\n\n String CURRENT_USER_KEY = \"user\";\n}", "public String clientToString(){\n return leftPad(itemId, 15) + itemDescription;\n }", "void changeMenuItemName(String itemName, byte type, String msgPlus);", "public void setMenu(){\n opciones='.';\n }", "private void buildSettingsMenu() {\r\n settingsMenu = new JMenu( Msgs.str( \"Settings\" ) );\r\n\r\n qMarkItem = new JCheckBoxMenuItem( Msgs.str( \"Qmarks\" ), qMarksOn );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_Q, Event.ALT_MASK );\r\n qMarkItem.setAccelerator( ks );\r\n qMarkItem.setMnemonic( 'Q' );\r\n qMarkItem.addActionListener( listener );\r\n\r\n newGameItem = new JMenuItem( Msgs.str( \"game.new\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_F2, 0 );\r\n newGameItem.setAccelerator( ks );\r\n newGameItem.addActionListener( listener );\r\n\r\n showSettingsItem = new JMenuItem( Msgs.str( \"settings.change\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_C, Event.ALT_MASK );\r\n showSettingsItem.setAccelerator( ks );\r\n showSettingsItem.setMnemonic( 'C' );\r\n showSettingsItem.addActionListener( listener );\r\n\r\n settingsMenu.add( qMarkItem );\r\n settingsMenu.add( newGameItem );\r\n settingsMenu.add( showSettingsItem );\r\n }", "public String showSmallMenuOptions(){\n stringBuilder = new StringBuilder();\n menuLoader = new MenuLoader();\n int counter = 0;\n for (String key: menuLoader.getSmallMenu().keySet()) {\n counter++;\n stringBuilder.append(\" '\" + key + \"',\");\n if (counter%10 == 0){\n stringBuilder.append(\"\\n\");\n }\n }\n return stringBuilder.toString();\n }", "Map<String, List<String>> getElementBaseConfigurationOptions();", "public abstract String getConfigurationFolderKey();", "public interface Constants {\n\n /*TODO KEY VALUE 参数*/\n String BUNDLE = \"bundle\";\n\n /*TODO APP 渠道*/\n String APP_SHANXI = \"SHANXI\";\n}", "public interface JpsubsitesSystemConstants {\r\n\t\r\n\t/**\r\n\t * The name of the Spring bean mapping the Subsite Manager.\r\n\t */\r\n\tpublic static final String SUBSITE_MANAGER = \"jpsubsitesSubsiteManager\";\r\n\t\r\n\t/**\r\n\t * The name of the configuration item containing the Subsites Configuration.\r\n\t */\r\n\tpublic static final String SUBSITE_CONFIG_ITEM = \"jpsubsites_subsiteConfig\";\r\n\t\r\n\t/**\r\n\t * The name of the request parameter containing the current subsite.\r\n\t */\r\n\tpublic static final String REQUEST_PARAM_CURRENT_SUBSITE = \"jpsubsites_currentSubsite\";\r\n\t\r\n\tpublic static final String CONTENT_LIST_HELPER = \"jpsubsitesContentListHelper\";\r\n\t\r\n\tpublic static final String BREADCRUMBS_NAVIGATION_PARSER = \"jpsubsitesBreadcrumbsNavigatorParser\";\r\n \r\n public static final String SUBSITE_SUFFIX_SEPARATOR = \"@\";\r\n \r\n public static final String SUBSITE_GROUP_PREFIX = \"subsite\";\r\n \r\n public static final String SESSION_PAR_CURRENT_SUBSITE = \"currentSubsite\";\r\n\t\r\n}", "public SysMenuParams() {\n\t\tsuper();\n\t}", "@Override\n public String[] getMenuOptions() {\n String[] options = {\"Change your username\", \"Change your password\", \"Change your email\"};\n return options;\n }", "public HashMap<String,Comida> getMenuComida(){\n\t\treturn menuComidas;\n\t}", "public void _addPropertyConfigMenuItem(JComponent parentMenu, String name, BasicPropertyList pl) {\n JMenu menu = new JMenu(name + \" Display\");\n parentMenu.add(menu);\n\n for (BasicPropertyList.BasicProperty bp : pl.getProperties()) {\n if (bp instanceof BasicPropertyList.BooleanProperty)\n menu.add(_createBooleanPropertyMenuItem((BasicPropertyList.BooleanProperty)bp, pl));\n else if (bp instanceof BasicPropertyList.ChoiceProperty)\n menu.add(_createChoicePropertyMenu((BasicPropertyList.ChoiceProperty)bp, pl));\n }\n }", "public interface IItemDataEnum extends IStringSerializable{\n\t/**\n\t * This should return the unlocalized name of the sub item/block, without the mod ID or the item ID this is a sub item/block of\n\t * \n\t * @return\n\t */\n\tString getUnlocalizedName();\n\t\n\t/**\n\t * This should return the full unlocalized name for use in texture registry\n\t * \n\t * @return\n\t */\n\tString getTextureName();\n\t\n\t/**\n\t * Returns the meta value of the sub item/block\n\t * \n\t * @return\n\t */\n\tint getMeta();\n}", "public interface ConstantsKey {\n// Values\n String TEXT_FONT_STYLE_NAME=\"WorkSans_Regular.ttf\";\n// Urls\n String BASE_URL=\"http://test.code-apex.com/codeapex_project/index.php/api/user/\";\n String BASEURL =\"baseurl\" ;\n// Keys\n}", "private void setItemMenu() {\n choices = new ArrayList<>();\n \n choices.add(Command.INFO);\n if (item.isUsable()) {\n choices.add(Command.USE);\n }\n if (item.isEquipped()) {\n choices.add(Command.UNEQUIP);\n } else {\n if (item.isEquipable()) {\n choices.add(Command.EQUIP);\n }\n }\n \n if (item.isActive()) {\n choices.add(Command.UNACTIVE);\n } else {\n if (item.isActivable()) {\n choices.add(Command.ACTIVE);\n }\n }\n if (item.isDropable()) {\n choices.add(Command.DROP);\n }\n if (item.isPlaceable()) {\n choices.add(Command.PLACE);\n }\n choices.add(Command.DESTROY);\n choices.add(Command.CLOSE);\n \n this.height = choices.size() * hItemBox + hGap * 2;\n }", "private void setMenuItemSpecialFeatures(JMenuItem menuItem, char mNemonic,\r\n\t\t\tString toolTip, KeyStroke keyStroke, Class module) {\r\n\t\tmenuItem.setMnemonic(mNemonic);\r\n\t\tmenuItem.setToolTipText(toolTip);\r\n\t\tmenuItem.setAccelerator(keyStroke);\r\n\t\tmenuItem.addActionListener(new CustomActionListener(module));\r\n\t}", "public void generateCodeItemCode() {\n\t\tcodeItem.generateCodeItemCode();\n\t}", "String getMenus(MmtConfig cfg);", "protected DynamicEnumerationMenu() {\n super(true);\n }", "public String getConfig () { \n StringBuffer ar_sb = new StringBuffer();\n if (active_relationships.size() > 0) {\n ar_sb.append(Utils.encToURL(active_relationships.get(0)));\n for (int i=1;i<active_relationships.size();i++) ar_sb.append(\",\" + Utils.encToURL(active_relationships.get(i)));\n }\n\n return \"RTGraphPanel\" + BundlesDT.DELIM +\n \"nodesize=\" + Utils.encToURL(nodeSize()) + BundlesDT.DELIM +\n \"nodecolor=\" + Utils.encToURL(nodeColor()) + BundlesDT.DELIM +\n\t \"linksize=\" + Utils.encToURL(linkSize()) + BundlesDT.DELIM +\n\t \"linkcolor=\" + Utils.encToURL(linkColor()) + BundlesDT.DELIM +\n\t \"linkcurves=\" + Utils.encToURL(\"\" + linkCurves()) + BundlesDT.DELIM +\n\t \"linktrans=\" + Utils.encToURL(\"\" + linksTransparent()) + BundlesDT.DELIM +\n\t \"arrows=\" + Utils.encToURL(\"\" + drawArrows()) + BundlesDT.DELIM +\n\t \"timing=\" + Utils.encToURL(\"\" + drawTiming()) + BundlesDT.DELIM +\n\t \"strict=\" + Utils.encToURL(\"\" + strictMatches()) + BundlesDT.DELIM +\n\t \"dynlabels=\" + Utils.encToURL(\"\" + dynamicLabels()) + BundlesDT.DELIM +\n\t \"nodelabels=\" + Utils.encToURL(\"\" + nodeLabels()) + BundlesDT.DELIM +\n\t \"linklabels=\" + Utils.encToURL(\"\" + linkLabels()) + BundlesDT.DELIM +\n\t \"nlabels=\" + commaDelimited(nodeLabelsArray()) + BundlesDT.DELIM +\n\t \"clabels=\" + commaDelimited(colorLabelsArray()) + BundlesDT.DELIM +\n\t \"llabels=\" + commaDelimited(linkLabelsArray()) +\n\t (ar_sb.length() > 0 ? BundlesDT.DELIM + \"relates=\" + ar_sb.toString() : \"\");\n }", "public String toString()\n {\n return key.toString() + \" => \" + item.toString();\n }", "protected abstract List<OpcionMenu> inicializarOpcionesMenu();", "private void setMenuBarMnemonics()\n {\n if (!OSUtil.IS_MAC)\n {\n // Menus\n if (this.menuFile.getText().length() > 0)\n this.menuFile.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile\").charAt(0));\n if (this.menuProfiles.getText().length() > 0)\n this.menuProfiles.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuProfiles\").charAt(0));\n if (this.menuHelp.getText().length() > 0)\n this.menuHelp.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp\").charAt(0));\n // File sub menus\n if (this.menuFile_Parameters.getText().length() > 0)\n this.menuFile_Parameters.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile_Parameters\").charAt(0));\n if (this.menuFile_Quit.getText().length() > 0)\n this.menuFile_Quit.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile_Quit\").charAt(0));\n // Help sub menus\n if (this.menuHelp_Update.getText().length() > 0)\n this.menuHelp_Update.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_Update\").charAt(0));\n if (this.menuHelp_Doc.getText().length() > 0)\n this.menuHelp_Doc.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_Doc\").charAt(0));\n if (this.menuHelp_FAQ.getText().length() > 0)\n this.menuHelp_FAQ.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_FAQ\").charAt(0));\n if (this.menuHelp_About.getText().length() > 0)\n this.menuHelp_About.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_About\").charAt(0));\n }\n }", "@SuppressWarnings({ \"rawtypes\" })\n\tprotected ItemGui(ExtendedConfig eConfig) {\n\t\tsuper(eConfig);\n\t\tthis.guiID = Helpers.getNewId(IDType.GUI);\n\t}", "public String encode() {\n return encodeToBase64(encKey.getEncoded()) + \":\" + encodeToBase64(macKey.getEncoded());\n }", "public static void registerMenuItems(SIPCommMenu parentMenu)\n {\n if(protocolProviderListener == null)\n {\n protocolProviderListener = new ProtocolProviderListener(parentMenu);\n GuiActivator.bundleContext\n .addServiceListener(protocolProviderListener);\n }\n\n for (ProtocolProviderFactory providerFactory : GuiActivator\n .getProtocolProviderFactories().values())\n {\n for (AccountID accountID : providerFactory.getRegisteredAccounts())\n {\n ServiceReference<ProtocolProviderService> serRef\n = providerFactory.getProviderForAccount(accountID);\n ProtocolProviderService protocolProvider\n = GuiActivator.bundleContext.getService(serRef);\n\n addAccountInternal(protocolProvider, parentMenu);\n }\n }\n\n // if we are in disabled menu mode and we have only one item\n // change its name (like global auto answer)\n if( ConfigurationUtils.isAutoAnswerDisableSubmenu()\n && getAutoAnswerItemCount(parentMenu) == 1)\n {\n updateItem(getAutoAnswerItem(parentMenu, 0), true);\n }\n }", "@Override\r\n \tpublic boolean onPrepareOptionsMenu(Menu menu) {\r\n \t\tmenu.removeGroup(0);\r\n \t\tmenu.removeGroup(1);\r\n \t\tResources res = getResources();\r\n \t\tif(keyValue == 1)\r\n \t\t{\r\n \t\t\tmenu.add(0, R.id.selectAll, 0, res.getString(R.string.select_all))\r\n \t\t\t\t.setIcon(android.R.drawable.checkbox_on_background);\r\n \t\t\tmenu.add(1, R.id.deSelect, 1, res.getString(R.string.deselect_all))\r\n \t\t\t\t.setIcon(android.R.drawable.checkbox_off_background);\r\n \t\t}\r\n \t\treturn true;\r\n \r\n \t}", "private void makeUtilitiesMenu() {\r\n\t\tJMenu utilitiesMnu = new JMenu(\"Utilidades\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Reportes\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Reportes\",\r\n\t\t\t\t\timageLoader.getImage(\"reports.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'r',\r\n\t\t\t\t\t\"Ver los reportes del sistema\", null,\r\n\t\t\t\t\tReports.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"ConsultarPrecios\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Consultar Precios\",\r\n\t\t\t\t\timageLoader.getImage(\"money.gif\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'p',\r\n\t\t\t\t\t\"Consultar los precios de los productos\", null,\r\n\t\t\t\t\tPriceRead.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Calculadora\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Calculadora Impuesto\",\r\n\t\t\t\t\timageLoader.getImage(\"pc.gif\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'c',\r\n\t\t\t\t\t\"Calculadora de impuesto\", null, Calculator.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tutilitiesMnu.addSeparator();\r\n\t\tif (StoreCore.getAccess(\"Categorias\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Categorias Inventario\",\r\n\t\t\t\t\timageLoader.getImage(\"group.gif\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'i',\r\n\t\t\t\t\t\"Manejar las categorias del inventario\", null, Groups.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Impuestos\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Impuestos\");\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 't',\r\n\t\t\t\t\t\"Manejar el listado de impuestos\", null, Tax.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Ciudades\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Ciudades\");\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'u',\r\n\t\t\t\t\t\"Manejar el listado de ciudades\", null, City.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\tutilitiesMnu.setMnemonic('u');\r\n\t\t\tadd(utilitiesMnu);\r\n\t\t}\r\n\t}", "public interface Menu {\n\n /**\n * Add an item to the menu.\n *\n * @param title Title of the item (which will be interpreted as plain text and\n * HTML-escaped if necessary)\n * @param callback Code to execute when the item is selected\n * @return A MenuItem representing the added item\n */\n MenuItem addItem(String title, Command callback);\n\n /**\n * Add an item to the menu.\n *\n * @param title Title of the item, as a {@link SafeHtml}\n * @param callback Code to execute when the item is selected\n * @return A MenuItem representing the added item\n */\n MenuItem addItem(SafeHtml title, Command callback);\n}", "public String encode() {\n\t\tString encoded_string = ATTRIBUTE_FIELD;\n\t\tif (attribute != null)\n\t\t\tencoded_string += attribute.encode();\n\t\treturn encoded_string + Separators.NEWLINE;\n\t}", "public String configureOptionsMenu() {\n SharedPreferences settings = context.getSharedPreferences(PREFS, 0);\n boolean shuffle = settings.getBoolean(\"shuffle\", true);\n String buttonText = \"Hello\";\n \n if (shuffle) {\n buttonText = \" Off \";\n } else {\n buttonText = \" On \";\n }\n \n return buttonText;\n }", "public void InitializeMenu(){\n\t\tmnbBar = new JMenuBar();\n\t\tmnuFile = new JMenu(\"File\");\n\t\tmnuFormat = new JMenu(\"Format\");\n\t\tmniOpen = new JMenuItem(\"Open\");\n\t\tmniExit = new JMenuItem(\"Exit\");\n\t\tmniSave = new JMenuItem(\"Save\");\n\t\tmniSaveAs = new JMenuItem(\"Save as\");\n\t\tmniSaveAs.setMnemonic(KeyEvent.VK_A);\n\t\tmniSave.setMnemonic(KeyEvent.VK_S);\n\t\tmniChangeBgColor = new JMenuItem(\"Change Backgroud Color\");\n\t\tmniChangeFontColor = new JMenuItem(\"Change Font Color\");\n\t\t//them menu item vao menu file\n\t\tmnuFile.add(mniOpen);\n\t\tmnuFile.addSeparator();\n\t\tmnuFile.add(mniExit);\n\t\tmnuFile.add(mniSaveAs);\n\t\tmnuFile.add(mniSave);\n\t\t//them menu item vao menu format\n\t\tmnuFormat.add(mniChangeBgColor);\n\t\tmnuFormat.addSeparator();\n\t\tmnuFormat.add(mniChangeFontColor);\n\t\t//them menu file va menu format vao menu bar\n\t\tmnbBar.add(mnuFile);\n\t\tmnbBar.add(mnuFormat);\n\t\t//thiet lap menubar thanh menu chinh cua frame\n\t\tsetJMenuBar(mnbBar);\n\t}", "private MenuBar setupMenu () {\n MenuBar mb = new MenuBar ();\n Menu fileMenu = new Menu (\"File\");\n openXn = makeMenuItem (\"Open Connection\", OPEN_CONNECTION);\n closeXn = makeMenuItem (\"Close Connection\", CLOSE_CONNECTION);\n closeXn.setEnabled (false);\n MenuItem exit = makeMenuItem (\"Exit\", EXIT_APPLICATION);\n fileMenu.add (openXn);\n fileMenu.add (closeXn);\n fileMenu.addSeparator ();\n fileMenu.add (exit);\n\n Menu twMenu = new Menu (\"Tw\");\n getWksp = makeMenuItem (\"Get Workspace\", GET_WORKSPACE);\n getWksp.setEnabled (false);\n twMenu.add (getWksp);\n\n mb.add (fileMenu);\n mb.add (twMenu);\n return mb;\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t\ttry {\n\t\t\tFile propertyFile = new File(startup.filePath + \"properties.xml\");\n\t\t\tBuilder builder = new Builder();\n\t\t\tdoc = builder.build(propertyFile);\n\t\t\t\n\t\t\tElement root = doc.getRootElement();\n\t\t\tElement menu = root.getFirstChildElement(\"menu\");\n\t\t\tElements menuItems = menu.getChildElements();\n\t\t\t\n\t\t\tfor(int i = 0; i < 99; i++){\n\t\t\t\tElement menuItem = menuItems.get(i);\n\t\t\t\tElement itemNumber = menuItem.getFirstChildElement(\"itemName\");\n\t\t\t\tElement name = menuItem.getFirstChildElement(\"name\");\n\t\t\t\tElement price = menuItem.getFirstChildElement(\"price\");\n\t\t\t\tElement color = menuItem.getFirstChildElement(\"color\");\n\t\t\t\tElement red = color.getFirstChildElement(\"red\");\n\t\t\t\tElement green = color.getFirstChildElement(\"green\");\n\t\t\t\tElement blue = color.getFirstChildElement(\"blue\");\n\t\t\t\tString colorString = (String) table.getValueAt(i, 3);\n\t\t\t\tString[] colorStringArray = colorString.split(\", \");\n\t\t\t\t\n\t\t\t\tname.removeChildren();\n\t\t\t\tname.appendChild((String) table.getValueAt(i, 1));\n\t\t\t\tprice.removeChildren();\n\t\t\t\tprice.appendChild((String) table.getValueAt(i, 2));\n\t\t\t\t\n\t\t\t\tred.removeChildren();\n\t\t\t\tred.appendChild(colorStringArray[0]);\n\t\t\t\tgreen.removeChildren();\n\t\t\t\tgreen.appendChild(colorStringArray[1]);\n\t\t\t\tblue.removeChildren();\n\t\t\t\tblue.appendChild(colorStringArray[2]);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tFileOutputStream propOutStream = new FileOutputStream(propertyFile);\n\t Serializer serializer = new Serializer(propOutStream, \"ISO-8859-1\");\n\t serializer.setIndent(4);\n\t serializer.setMaxLength(150);\n\t serializer.write(doc);\n\t propOutStream.close();\n\t \n\n\t\t\t\n\t\t} catch (ValidityException ex) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tex.printStackTrace();\n\t\t} catch (ParsingException ex) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tex.printStackTrace();\n\t\t} catch (IOException ex) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tex.printStackTrace();\n\t\t}\n \n\t}", "@Override\n public com.gensym.util.Sequence getItemConfiguration() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.ITEM_CONFIGURATION_);\n return (com.gensym.util.Sequence)retnValue;\n }", "@Override\n public Pair<String, String> getMenuLocation() {\n return CONFIG_TAB.getMenuLocation();\n }", "public interface AdminToolConfig \n{\n\tpublic static final String WEBJARS_CDN_PREFIX = \"https://cdn.jsdelivr.net/webjars/\";\n\t\n\tpublic static final String WEBJARS_CDN_PREFIX_BOWER = WEBJARS_CDN_PREFIX + \"org.webjars.bower/\";\n\t\n\tpublic static final String WEBJARS_LOCAL_PREFIX = \"/webjars/\";\n\t\n\t/**\n\t * should print the configuration to log\n\t */\n\tpublic void printConfig();\n\t\n\t/**\n\t * should return if component is active or deactivated\n\t * @return\n\t */\n\tpublic boolean isEnabled();\n}", "private HashMap<String, String> getAttributesWithDeploysAsJsonString(final IItem item) {\n final HashMap<String, String> map = new HashMap<String, String>();\n map.putAll(item.getAttributes());\n for (final Entry<String, IItem> deploy : item.getDeploys().entrySet()) {\n map.put(deploy.getKey(), deploy.getValue().toJson());\n }\n return map;\n }", "@Override\n public String toString()\n {\n StringBuilder sb = new StringBuilder();\n sb.append(\"<Merchant \");\n IContentGenerator dbaGenerator = m_pciMerchant.getDBAGenerator();\n IContentGenerator otherIndustriesGenerator = m_pciMerchant.getOtherIndustriesGenerator();\n sb.append(\"acquirer-relationship=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getAcquirerRelationship()));\n sb.append(\"\\\" agent-relationship=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getAgentRelationship()));\n sb.append(\"\\\" ecommerce=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getECommerce()));\n sb.append(\"\\\" grocery=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getGrocery()));\n sb.append(\"\\\" mail-order=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getMailOrder()));\n sb.append(\"\\\" payment-application=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getPaymentApplication()));\n sb.append(\"\\\" payment-version=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getPaymentVersion()));\n sb.append(\"\\\" petroleum=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getPetroleum()));\n sb.append(\"\\\" retail=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getRetail()));\n sb.append(\"\\\" telecommunication=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getTelecommunication()));\n sb.append(\"\\\" travel=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getTravel()));\n sb.append(\"\\\" company=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getCompany()));\n sb.append(\"\\\" email-address=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getEmailAddress()));\n sb.append(\"\\\" first-name=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getFirstName()));\n sb.append(\"\\\" last-name=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getLastName()));\n sb.append(\"\\\" phone-number=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getPhoneNumber()));\n sb.append(\"\\\" title=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getTitle()));\n sb.append(\"\\\">\");\n ContactAddress address = m_pciMerchant.getAddress();\n if (address != null)\n {\n sb.append(\"<Address city=\\\"\");\n sb.append(StringUtils.xmlEscape(address.getCity()));\n sb.append(\"\\\" country=\\\"\");\n sb.append(StringUtils.xmlEscape(address.getCountry()));\n sb.append(\"\\\" line1=\\\"\");\n sb.append(StringUtils.xmlEscape(address.getLine1()));\n sb.append(\"\\\" line2=\\\"\");\n sb.append(StringUtils.xmlEscape(address.getLine2()));\n sb.append(\"\\\" state=\\\"\");\n sb.append(StringUtils.xmlEscape(address.getState()));\n sb.append(\"\\\" zip=\\\"\");\n sb.append(StringUtils.xmlEscape(address.getZip()));\n sb.append(\"\\\"/>\");\n }\n if (dbaGenerator != null)\n {\n sb.append(dbaGenerator.toString());\n }\n if (otherIndustriesGenerator != null)\n {\n sb.append(otherIndustriesGenerator.toString());\n }\n sb.append(\"</Merchant>\");\n return sb.toString();\n }", "public interface IMenu {\r\n public class MenuItem {\r\n \r\n public static final MenuItem SEPARATOR = new MenuItem(\"SEPARATOR\", \"Separator\");\r\n \r\n private String menuId;\r\n private String menuText;\r\n private boolean checked;\r\n \r\n public MenuItem(String menuId, String menuText) {\r\n this.menuId = menuId;\r\n this.menuText = menuText;\r\n }\r\n\r\n public MenuItem(String menuText, boolean checked) {\r\n this.menuText = menuText; \r\n this.checked = checked;\r\n }\r\n\r\n public String getMenuId() {\r\n return menuId;\r\n }\r\n\r\n public void setMenuId(String menuId) {\r\n this.menuId = menuId;\r\n }\r\n\r\n public String getMenuText() {\r\n return menuText;\r\n }\r\n\r\n public void setMenuText(String menuText) {\r\n this.menuText = menuText;\r\n }\r\n\r\n public boolean isChecked() {\r\n return checked;\r\n }\r\n\r\n public void setChecked(boolean checked) {\r\n this.checked = checked;\r\n }\r\n }\r\n \r\n /**\r\n * Callback function for Caller when the MenuItem is clicked\r\n * \r\n * @param menuItemSelected The selected MenuItem\r\n */\r\n public void menuClicked(MenuItem menuItemSelected);\r\n}", "private static String getMenu() { // method name changes Get_menu to getMenu()\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"\\nLibrary Main Menu\\n\\n\")\r\n\t\t .append(\" M : add member\\n\")\r\n\t\t .append(\" LM : list members\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" B : add book\\n\")\r\n\t\t .append(\" LB : list books\\n\")\r\n\t\t .append(\" FB : fix books\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" L : take out a loan\\n\")\r\n\t\t .append(\" R : return a loan\\n\")\r\n\t\t .append(\" LL : list loans\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" P : pay fine\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" T : increment date\\n\")\r\n\t\t .append(\" Q : quit\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\"Choice : \");\r\n\t\t \r\n\t\treturn sb.toString();\r\n\t}", "public SettingsMenu(ChatWindow chatWindow)\n {\n super(Messages.getI18NString(\"settings\").getText());\n \n this.chatWindow = chatWindow;\n \n typingNotificationsItem.setName(\"typingNotifications\");\n sendingMessageCommandItem.setName(\"sendingMessageCommand\");\n autoPopupItem.setName(\"autopopup\");\n \n this.setMnemonic(Messages.getI18NString(\"settings\").getMnemonic());\n \n this.typingNotificationsItem.setMnemonic(\n typingNotifString.getMnemonic());\n \n this.sendingMessageCommandItem.setMnemonic(\n useCtrlEnterString.getMnemonic());\n \n this.autoPopupItem.setMnemonic(\n autoPopupString.getMnemonic());\n \n this.add(typingNotificationsItem);\n this.add(sendingMessageCommandItem);\n this.add(autoPopupItem);\n \n this.typingNotificationsItem.addActionListener(this);\n this.sendingMessageCommandItem.addActionListener(this);\n this.autoPopupItem.addActionListener(this);\n \n this.autoPopupItem.setSelected(\n ConfigurationManager.isAutoPopupNewMessage());\n \n this.typingNotificationsItem.setSelected(\n ConfigurationManager.isSendTypingNotifications());\n \n if(ConfigurationManager.getSendMessageCommand()\n == ConfigurationManager.ENTER_COMMAND) \n this.sendingMessageCommandItem.setSelected(true);\n else\n this.sendingMessageCommandItem.setSelected(false);\n \n }", "public interface Constants {\n\n String KEY_BOOK_INFO = \"key_book_info\";\n\n}", "public String toString(){\n return \"item1: \" + item1.toString() + \" | item2: \" + item2.toString();\n }", "private void showCommonOptions (Menu mMenu, LinearLayout llCO) {\n \t\t\n for(int i=0; i<OptionManager.getCommonOptionSize(); i++) {\n \t\n \tOption _Option = OptionManager.getCommonOption(i);\n \t\n \tLinearLayout llEachLine = new LinearLayout(this);\n\t\t\tllEachLine.setLayoutParams(new LayoutParams(500,LayoutParams.WRAP_CONTENT));\n\t\t\tllEachLine.setPadding(0, 0, 10, 4);\n\t\t\tllEachLine.setOrientation(LinearLayout.HORIZONTAL);\n\t\t\tllEachLine.setGravity(Gravity.LEFT);\n\t\t\t \n\t\t\tint nCountId = IdManager.getCommonOptionCountId(i);\n\t\t\tint nDownId = nCountId - 1000;\n\t\t\tint nUpId = nCountId + 1000;\n\t\t\t \n\t\t\t// option name\n\t\t\t \n\t\t\tString strTextTitle = TextFormatter.getText(_Option.NAME_ENG, _Option.NAME_OTH,26);\n\t\t\t \n\t\t\tTextView tvOptionName = new TextView(this);\n\t\t\ttvOptionName.setGravity(Gravity.LEFT|Gravity.CENTER);\n\t\t\ttvOptionName.setText(strTextTitle);\n\t\t\ttvOptionName.setTextSize(14);\n\t\t\ttvOptionName.setTextColor(0xff000000);\n\t\t\ttvOptionName.setHeight(50);\n\t\t\ttvOptionName.setWidth(270);\n\t\t\t \n\t\t\t// option count \n\t\t\t \n\t\t\tTextView tvCount = new TextView(this); \n\t\t\ttvCount.setGravity(Gravity.CENTER);\n\t\t\ttvCount.setId(nCountId);\n\t\t\ttvCount.setText(String.valueOf(\"0\"));\n\t\t\ttvCount.setTextColor(0xff000000);\n\t\t\ttvCount.setWidth(50);\n\t\t\ttvCount.setHeight(30);\n\t\t\t \n\t\t\t_Option.MENU_RESOURCE_ID = mMenu.RESOURCE_ID;\n\t\t\t \n\t\t\tResourceManager.put(nCountId, tvCount);\n\t\t\tResourceManager.put(tvCount, _Option);\n\t\t\t \n\t\t\t// Button Down\n\t\t\t \n\t\t\tImageButton btDown = new ImageButton(this);\n\t\t\tbtDown.setId(nDownId);\n\t\t\tbtDown.setBackgroundDrawable(getResources().getDrawable(R.drawable.down));\n\t\t\tbtDown.setLayoutParams(new LayoutParams(Property.POPUP_ARROW_IMG_WIDTH,Property.POPUP_ARROW_IMG_HEIGHT));\n\t\t\tbtDown.setOnClickListener(new OnClickListener() {\n\t\t\t\tpublic void onClick(View v) {\n \t \t\n\t\t\t\t\tint nDownId = v.getId();\n \t \tint nCountId = nDownId+1000;\n \t \tint nCount = 0;\n \t \t\n \t \tTextView tvCount = (TextView) ResourceManager.get(nCountId);\n \t \tOption _Option = (Option)ResourceManager.get(tvCount);\n \t \t\n \t\tString strCount = (String) tvCount.getText();\n \t\tnCount = Integer.valueOf(strCount);\n \t \t\n \t \tif(nCount>0) {\n \t\t\t\tnCount -= 1;\n \t \ttvCount.setText(String.valueOf(nCount));\n \t \t_Option.ORDER_COUNT = nCount;\n \t OrderManager.setOptionCount(_Option.DB_ID, nCount);\n \t \t}\n \t }\n });\n \n // Button Up\n \n ImageButton btUp = new ImageButton(this);\n btUp.setId(nUpId);\n btUp.setBackgroundDrawable(getResources().getDrawable(R.drawable.up));\n btUp.setLayoutParams(new LayoutParams(Property.POPUP_ARROW_IMG_WIDTH,Property.POPUP_ARROW_IMG_HEIGHT));\n btUp.setOnClickListener(new OnClickListener() {\n \t public void onClick(View v) {\n \t \t\n \t \tint nUpId = v.getId();\n \t \tint nCountId = nUpId - 1000;\n \t \tint nCount = 0;\n \t \t\n \t \tTextView tvCount = (TextView) ResourceManager.get(nCountId);\n \t \tOption _Option = (Option)ResourceManager.get(tvCount);\t\n \t \t\n \t \tString strCount = (String) tvCount.getText();\n \t\tnCount = Integer.valueOf(strCount);\n \t\t\n \t \tnCount += 1;\n \t \t\n \t \ttvCount.setText(String.valueOf(nCount));\n \t \t_Option.ORDER_COUNT = nCount;\n OrderManager.setOptionCount(_Option.DB_ID, nCount);\n \t }\n });\n \n llEachLine.addView(tvOptionName);\n llEachLine.addView(tvCount);\n llEachLine.addView(btDown);\n llEachLine.addView(btUp);\n \n llCO.addView(llEachLine);\n }\n \t\t\n \t}", "@Override\n public void setItemConfiguration(com.gensym.util.Sequence itemConfiguration) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.ITEM_CONFIGURATION_, itemConfiguration);\n }", "public String getMenucode() {\n return menucode;\n }", "public final void onMMMenuItemSelected(MenuItem menuItem, int i) {\n int i2;\n int i3;\n Throwable e;\n int i4 = 0;\n AppMethodBeat.i(7652);\n j.this.utJ = false;\n com.tencent.mm.plugin.webview.ui.tools.jsapi.d dVar;\n if (j.g(menuItem)) {\n b bVar = (b) menuItem.getMenuInfo();\n if (bVar != null) {\n dVar = j.this.cZv().uhz;\n ab.i(\"MicroMsg.JsApiHandler\", \"onCustomMenuClick\");\n HashMap hashMap = new HashMap();\n hashMap.put(\"key\", bVar.key);\n hashMap.put(\"title\", bVar.title);\n dVar.uFo.evaluateJavascript(\"javascript:WeixinJSBridge._handleMessageFromWeixin(\" + i.a.b(\"menu:custom\", hashMap, dVar.uFv, dVar.uFw) + \")\", null);\n }\n AppMethodBeat.o(7652);\n return;\n }\n String stringExtra;\n String stringExtra2;\n String stringExtra3;\n e cYc;\n e cYc2;\n j jVar;\n j jVar2;\n j jVar3;\n com.tencent.mm.plugin.webview.ui.tools.jsapi.d dVar2;\n Intent intent;\n Bundle JL;\n Bundle bundle;\n switch (menuItem.getItemId()) {\n case 1:\n stringExtra = j.this.cZv().getIntent().getStringExtra(\"KPublisherId\");\n stringExtra2 = j.this.cZv().getIntent().getStringExtra(\"KAppId\");\n stringExtra3 = j.this.cZv().getIntent().getStringExtra(\"srcUsername\");\n cYc = j.this.cZv().ulI.cYc();\n cYc.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(1), Integer.valueOf(1), stringExtra, stringExtra2, stringExtra3};\n cYc.b(j.this.cZv().icy);\n j.this.cZv().uvr = j.this.cZv().icz.cZT().dmm();\n j.this.cZv().clH();\n AppMethodBeat.o(7652);\n return;\n case 2:\n stringExtra = j.this.cZv().getIntent().getStringExtra(\"KPublisherId\");\n stringExtra2 = j.this.cZv().getIntent().getStringExtra(\"KAppId\");\n stringExtra3 = j.this.cZv().getIntent().getStringExtra(\"srcUsername\");\n cYc = j.this.cZv().ulI.cYc();\n cYc.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(2), Integer.valueOf(1), stringExtra, stringExtra2, stringExtra3};\n cYc.b(j.this.cZv().icy);\n j.this.cZv().uvr = j.this.cZv().icz.cZT().dmm();\n if (j.this.utG.containsKey(j.this.cZv().pzf.getUrl())) {\n i4 = ((Integer) j.this.utG.get(j.this.cZv().pzf.getUrl())).intValue();\n }\n j.a(j.this, i4);\n AppMethodBeat.o(7652);\n return;\n case 3:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(3), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n h.pYm.a(157, 6, 1, false);\n j.this.cZv().uvr = j.this.cZv().icz.cZT().dmm();\n j.this.cZO();\n AppMethodBeat.o(7652);\n return;\n case 5:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(4), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n stringExtra = (String) j.this.cZv().uwb.get(j.this.cZv().pzf.getUrl());\n if (stringExtra == null) {\n stringExtra = j.this.cZv().getIntent().getStringExtra(\"srcUsername\");\n }\n jVar = j.this;\n stringExtra3 = \"Contact_Scene\";\n if (jVar.cZv().uhz != null) {\n Bundle bundle2 = new Bundle();\n bundle2.putInt(stringExtra3, 43);\n dVar = jVar.cZv().uhz;\n try {\n dVar.icy.a(21, bundle2, dVar.uqj);\n } catch (Exception e2) {\n ab.printErrStackTrace(\"MicroMsg.JsApiHandler\", e2, \"\", new Object[0]);\n ab.w(\"MicroMsg.JsApiHandler\", \"updateJsapiArgsBundleKV, ex = \".concat(String.valueOf(e2)));\n }\n }\n j.this.cZv().afK(stringExtra);\n AppMethodBeat.o(7652);\n return;\n case 6:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(5), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n jVar2 = j.this;\n if (jVar2.cZv().pzf == null) {\n ab.e(\"MicroMsg.WebViewMenuHelper\", \"copyLink fail, viewWV is null\");\n AppMethodBeat.o(7652);\n return;\n }\n CharSequence url = jVar2.cZv().pzf.getUrl();\n if (url == null || url.length() == 0) {\n ab.e(\"MicroMsg.WebViewMenuHelper\", \"copyLink fail, url is null\");\n AppMethodBeat.o(7652);\n return;\n }\n CharSequence aek;\n try {\n aek = jVar2.cZv().icy.aek(url);\n } catch (Exception e3) {\n ab.e(\"MicroMsg.WebViewMenuHelper\", \"copy link failed\");\n aek = url;\n }\n ClipboardManager clipboardManager = (ClipboardManager) jVar2.cZv().getApplication().getSystemService(\"clipboard\");\n if (clipboardManager != null) {\n try {\n clipboardManager.setText(aek);\n Toast.makeText(jVar2.cZv(), jVar2.cZv().getString(R.string.g1w), 0).show();\n AppMethodBeat.o(7652);\n return;\n } catch (Exception e4) {\n ab.printErrStackTrace(\"MicroMsg.WebViewMenuHelper\", e4, \"clip.setText error\", new Object[0]);\n AppMethodBeat.o(7652);\n return;\n }\n }\n ab.e(\"MicroMsg.WebViewMenuHelper\", \"clipboard manager is null\");\n AppMethodBeat.o(7652);\n return;\n case 7:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(13), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n WebViewUI cZv = j.this.cZv();\n com.tencent.mm.plugin.webview.stub.d dVar3 = cZv.icy;\n if (!cZv.isFinishing()) {\n stringExtra = cZv.dae();\n if (bo.isNullOrNil(stringExtra)) {\n ab.e(\"MicroMsg.BrowserChooserHelper\", \"open in browser fail, url is null\");\n AppMethodBeat.o(7652);\n return;\n }\n if (dVar3 != null) {\n try {\n stringExtra = dVar3.aek(stringExtra);\n } catch (Exception e5) {\n ab.e(\"MicroMsg.BrowserChooserHelper\", \"showAndOpenInBrowser, getShareUrl, exception = %s\", e5);\n }\n }\n if (!(stringExtra.startsWith(\"http://\") || stringExtra.startsWith(\"https://\"))) {\n stringExtra = \"http://\".concat(String.valueOf(stringExtra));\n }\n Intent intent2 = new Intent(\"android.intent.action.VIEW\", Uri.parse(stringExtra));\n try {\n if (bo.gT(cZv) || g.dnY()) {\n cZv.startActivity(intent2);\n AppMethodBeat.o(7652);\n return;\n }\n cZv.startActivityForResult(com.tencent.mm.plugin.webview.modeltools.a.a(cZv, intent2, stringExtra), 2);\n AppMethodBeat.o(7652);\n return;\n } catch (Exception e42) {\n ab.e(\"MicroMsg.BrowserChooserHelper\", \"open in browser failed : %s\", e42.getMessage());\n }\n }\n AppMethodBeat.o(7652);\n return;\n case 8:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(15), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n jVar3 = j.this;\n jVar3.cZv().uhz.bJ(\"sendEmail\", true);\n dVar2 = jVar3.cZv().uhz;\n if (dVar2.ready) {\n dVar2.uFo.evaluateJavascript(\"javascript:WeixinJSBridge._handleMessageFromWeixin(\" + i.a.b(\"menu:share:email\", new HashMap(), dVar2.uFv, dVar2.uFw) + \")\", null);\n AppMethodBeat.o(7652);\n return;\n }\n ab.e(\"MicroMsg.JsApiHandler\", \"onSendMail fail, not ready\");\n AppMethodBeat.o(7652);\n return;\n case 9:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(7), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n j jVar4 = j.this;\n com.tencent.mm.ui.base.h.a(jVar4.cZv(), jVar4.cZv().getString(R.string.p5), null, null, jVar4.cZv().getString(R.string.p4), new com.tencent.mm.ui.base.h.d() {\n public final void bV(int i, int i2) {\n AppMethodBeat.i(7648);\n switch (i2) {\n case -1:\n Bundle bundle = new Bundle();\n bundle.putLong(\"fav_local_id\", j.this.cZv().getIntent().getLongExtra(\"fav_local_id\", -1));\n try {\n if (j.this.cZv().icy.aa(bundle)) {\n ab.i(\"MicroMsg.WebViewMenuHelper\", \"del fav web url ok, finish webview ui\");\n j.this.cZv().ulI.q(\"mm_del_fav\", Boolean.TRUE);\n j.this.cZv().finish();\n AppMethodBeat.o(7648);\n return;\n }\n ab.w(\"MicroMsg.WebViewMenuHelper\", \"try to del web url fail\");\n AppMethodBeat.o(7648);\n return;\n } catch (Exception e) {\n ab.printErrStackTrace(\"MicroMsg.WebViewMenuHelper\", e, \"\", new Object[0]);\n ab.e(\"MicroMsg.WebViewMenuHelper\", \"try to del web url crash\");\n AppMethodBeat.o(7648);\n return;\n }\n default:\n ab.i(\"MicroMsg.WebViewMenuHelper\", \"do del cancel\");\n AppMethodBeat.o(7648);\n return;\n }\n }\n });\n AppMethodBeat.o(7652);\n return;\n case 10:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(11), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n j.this.afG(null);\n AppMethodBeat.o(7652);\n return;\n case 11:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(8), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n if (j.this.cZv().uvb.getVisibility() == 8) {\n j.this.cZv().uvb.startAnimation(AnimationUtils.loadAnimation(j.this.cZv(), R.anim.b9));\n j.this.cZv().uvb.setVisibility(0);\n AppMethodBeat.o(7652);\n return;\n }\n Animation loadAnimation = AnimationUtils.loadAnimation(j.this.cZv(), R.anim.b_);\n loadAnimation.setAnimationListener(new AnimationListener() {\n public final void onAnimationStart(Animation animation) {\n }\n\n public final void onAnimationRepeat(Animation animation) {\n }\n\n public final void onAnimationEnd(Animation animation) {\n AppMethodBeat.i(7651);\n j.this.cZv().uvb.setVisibility(8);\n AppMethodBeat.o(7651);\n }\n });\n j.this.cZv().uvb.startAnimation(loadAnimation);\n j.this.cZv().uvb.setVisibility(8);\n AppMethodBeat.o(7652);\n return;\n case 12:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(6), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n intent = new Intent();\n intent.putExtra(\"key_fav_scene\", 2);\n intent.putExtra(\"key_fav_item_id\", j.this.cZv().getIntent().getLongExtra(\"fav_local_id\", -1));\n com.tencent.mm.plugin.fav.a.b.b(j.this.cZv(), \".ui.FavTagEditUI\", intent);\n j.this.cZv().ulI.aeG(\"mm_edit_fav_count\");\n AppMethodBeat.o(7652);\n return;\n case 14:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(9), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n if (j.this.cZv().uvZ) {\n j.a(j.this, j.this.utE);\n AppMethodBeat.o(7652);\n return;\n }\n j.a(j.this, j.this.cZv().pzf.getUrl(), j.this.cZv().pzf.getSettings().getUserAgentString(), j.this.width, j.this.height);\n AppMethodBeat.o(7652);\n return;\n case 15:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(19), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n j.a(j.this, menuItem);\n AppMethodBeat.o(7652);\n return;\n case 16:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(21), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n j.a(j.this, menuItem);\n AppMethodBeat.o(7652);\n return;\n case 17:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(20), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n j.a(j.this, menuItem);\n AppMethodBeat.o(7652);\n return;\n case 18:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(22), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n j.a(j.this, menuItem);\n AppMethodBeat.o(7652);\n return;\n case 19:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(23), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n j.a(j.this, menuItem);\n AppMethodBeat.o(7652);\n return;\n case 20:\n j.this.cZv().uvr = j.this.cZv().icz.cZT().dmm();\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(17), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n jVar3 = j.this;\n jVar3.cZv().uhz.bJ(\"shareQQ\", true);\n dVar2 = jVar3.cZv().uhz;\n if (dVar2.ready) {\n JL = dVar2.JL(1);\n if (JL == null || !JL.getBoolean(\"WebViewShare_reslut\", false)) {\n dVar2.uFo.evaluateJavascript(\"javascript:WeixinJSBridge._handleMessageFromWeixin(\" + i.a.b(\"menu:share:qq\", new HashMap(), dVar2.uFv, dVar2.uFw) + \")\", null);\n AppMethodBeat.o(7652);\n return;\n }\n dVar2.h(JL, \"shareQQ\");\n AppMethodBeat.o(7652);\n return;\n }\n ab.e(\"MicroMsg.JsApiHandler\", \"onShareQQ fail, not ready\");\n AppMethodBeat.o(7652);\n return;\n case 21:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(18), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n jVar3 = j.this;\n jVar3.cZv().uhz.bJ(\"shareWeiboApp\", true);\n dVar2 = jVar3.cZv().uhz;\n if (dVar2.ready) {\n dVar2.uFo.evaluateJavascript(\"javascript:WeixinJSBridge._handleMessageFromWeixin(\" + i.a.b(\"menu:share:weiboApp\", new HashMap(), dVar2.uFv, dVar2.uFw) + \")\", null);\n AppMethodBeat.o(7652);\n return;\n }\n ab.e(\"MicroMsg.JsApiHandler\", \"onShareWeiboApp fail, not ready\");\n AppMethodBeat.o(7652);\n return;\n case 22:\n j.this.cZv().uvr = j.this.cZv().icz.cZT().dmm();\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(24), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n jVar3 = j.this;\n jVar3.cZv().uhz.bJ(\"shareQZone\", true);\n dVar2 = jVar3.cZv().uhz;\n if (dVar2.ready) {\n JL = dVar2.JL(1);\n if (JL == null || !JL.getBoolean(\"WebViewShare_reslut\", false)) {\n dVar2.uFo.evaluateJavascript(\"javascript:WeixinJSBridge._handleMessageFromWeixin(\" + i.a.b(\"menu:share:QZone\", new HashMap(), dVar2.uFv, dVar2.uFw) + \")\", null);\n AppMethodBeat.o(7652);\n return;\n }\n dVar2.h(JL, \"shareQZone\");\n AppMethodBeat.o(7652);\n return;\n }\n ab.e(\"MicroMsg.JsApiHandler\", \"onShareQzone fail, not ready\");\n AppMethodBeat.o(7652);\n return;\n case 23:\n intent = new Intent();\n stringExtra2 = j.this.cZv().getIntent().getStringExtra(\"sns_local_id\");\n if (stringExtra2 != null) {\n intent.putExtra(\"sns_send_data_ui_activity\", true);\n intent.putExtra(\"sns_local_id\", stringExtra2);\n } else {\n intent.putExtra(\"Retr_Msg_Id\", Long.valueOf(j.this.cZv().getIntent().getLongExtra(\"msg_id\", Long.MIN_VALUE)));\n }\n com.tencent.mm.bp.d.f(j.this.cZv(), \".ui.chatting.ChattingSendDataToDeviceUI\", intent);\n AppMethodBeat.o(7652);\n return;\n case 24:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(16), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n jVar = j.this;\n try {\n bundle = new Bundle();\n bundle.putString(\"enterprise_action\", \"enterprise_connectors\");\n ArrayList stringArrayList = jVar.cZv().icy.g(71, bundle).getStringArrayList(\"enterprise_connectors\");\n if (stringArrayList == null || stringArrayList.size() <= 0) {\n AppMethodBeat.o(7652);\n return;\n } else if (stringArrayList.size() == 1) {\n jVar.afF((String) stringArrayList.get(0));\n AppMethodBeat.o(7652);\n return;\n } else {\n jVar.ec(stringArrayList);\n com.tencent.mm.ui.tools.j jVar5 = new com.tencent.mm.ui.tools.j(jVar.cZv());\n jVar5.a(jVar.cZv().pzf, jVar.cZv(), null);\n jVar5.zFT = new a() {\n public final void a(ImageView imageView, MenuItem menuItem) {\n AppMethodBeat.i(7657);\n if (j.g(menuItem)) {\n imageView.setVisibility(8);\n AppMethodBeat.o(7657);\n return;\n }\n String str = menuItem.getTitle();\n if (j.this.utC.get(str) == null || ((Bitmap) j.this.utC.get(str)).isRecycled()) {\n ab.w(\"MicroMsg.WebViewMenuHelper\", \"on attach icon, load from cache fail\");\n try {\n String aff = j.this.cZv().icy.aff(str);\n if (!bo.isNullOrNil(aff)) {\n Bitmap afx = g.afx(aff);\n if (!(afx == null || afx.isRecycled())) {\n imageView.setImageBitmap(afx);\n j.this.utC.put(str, afx);\n }\n }\n AppMethodBeat.o(7657);\n return;\n } catch (Exception e) {\n ab.w(\"MicroMsg.WebViewMenuHelper\", \"getheadimg, ex = \" + e.getMessage());\n AppMethodBeat.o(7657);\n return;\n }\n }\n imageView.setImageBitmap((Bitmap) j.this.utC.get(str));\n AppMethodBeat.o(7657);\n }\n };\n jVar5.zFU = new n.b() {\n public final void a(TextView textView, MenuItem menuItem) {\n AppMethodBeat.i(7643);\n String str = menuItem.getTitle();\n if (textView != null) {\n CharSequence charSequence = (String) j.this.utD.get(str);\n if (bo.isNullOrNil(charSequence)) {\n textView.setText(str);\n AppMethodBeat.o(7643);\n return;\n }\n textView.setText(com.tencent.mm.pluginsdk.ui.e.j.b(j.this.cZv(), charSequence, textView.getTextSize()));\n }\n AppMethodBeat.o(7643);\n }\n };\n jVar5.b(jVar.cZv().pzf, new AnonymousClass3(stringArrayList), new n.d() {\n public final void onMMMenuItemSelected(MenuItem menuItem, int i) {\n AppMethodBeat.i(7645);\n j.this.afF(menuItem.getTitle().toString());\n AppMethodBeat.o(7645);\n }\n });\n jVar5.cuu();\n AppMethodBeat.o(7652);\n return;\n }\n } catch (Exception e422) {\n ab.w(\"MicroMsg.WebViewMenuHelper\", \"builder add, ex = \" + e422.getMessage());\n AppMethodBeat.o(7652);\n return;\n }\n case 25:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(26), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n jVar3 = j.this;\n jVar3.cZv().uhz.bJ(\"sendAppMessage\", true);\n dVar2 = jVar3.cZv().uhz;\n if (dVar2.ready) {\n dVar2.uFo.evaluateJavascript(\"javascript:WeixinJSBridge._handleMessageFromWeixin(\" + i.a.b(\"menu:share:appmessage\", new HashMap(), dVar2.uFv, dVar2.uFw) + \")\", null);\n try {\n dVar2.icy.L(\"scene\", \"wework\", dVar2.uqj);\n AppMethodBeat.o(7652);\n return;\n } catch (Exception e4222) {\n ab.w(\"MicroMsg.JsApiHandler\", \"jsapiBundlePutString, ex = \" + e4222.getMessage());\n AppMethodBeat.o(7652);\n return;\n }\n }\n ab.e(\"MicroMsg.JsApiHandler\", \"onShareWeWork fail, not ready\");\n AppMethodBeat.o(7652);\n return;\n case 26:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(27), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n jVar2 = j.this;\n stringExtra = null;\n try {\n stringExtra = jVar2.cZv().icy.aek(jVar2.cZv().pzf.getUrl());\n } catch (Exception e22) {\n ab.e(\"MicroMsg.WebViewMenuHelper\", \"getShareUrl failed : %s\", e22.getMessage());\n }\n if (bo.isNullOrNil(stringExtra)) {\n stringExtra = jVar2.cZv().cOG;\n }\n try {\n stringExtra = \"weread://mp?url=\" + q.encode(stringExtra, ProtocolPackage.ServerEncoding);\n } catch (Exception e222) {\n ab.e(\"MicroMsg.WebViewMenuHelper\", \"encode url failed ; %s\", e222.getMessage());\n }\n ab.i(\"MicroMsg.WebViewMenuHelper\", \"now url = %s\", stringExtra);\n Intent intent3 = new Intent(\"android.intent.action.VIEW\", Uri.parse(stringExtra));\n intent3.addFlags(268435456);\n if (bo.k(jVar2.cZv(), intent3)) {\n jVar2.cZv().startActivity(intent3);\n AppMethodBeat.o(7652);\n return;\n }\n ab.e(\"MicroMsg.WebViewMenuHelper\", \"not availble app match this intent\");\n AppMethodBeat.o(7652);\n return;\n case 27:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(32), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n if (!j.this.cZv().cWG()) {\n j.this.cZv().finish();\n AppMethodBeat.o(7652);\n return;\n }\n break;\n case com.tencent.view.d.MIC_BASE_CHANNELSHARPEN /*28*/:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(10), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n j.this.cZv().aYe();\n AppMethodBeat.o(7652);\n return;\n case 29:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(31), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n j.this.cZR();\n AppMethodBeat.o(7652);\n return;\n case 31:\n h.pYm.a(480, 1, 1, false);\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(28), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n if (!j.this.cZv().uvj.isShown()) {\n j.this.cZv().uvj.reset();\n j.this.cZv().uvj.dcX();\n j.this.cZv().uvj.show();\n AppMethodBeat.o(7652);\n return;\n }\n break;\n case 33:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(14), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n jVar3 = j.this;\n jVar3.cZv().uhz.bJ(\"sendAppMessage\", true);\n dVar2 = jVar3.cZv().uhz;\n if (dVar2.ready) {\n dVar2.uFo.evaluateJavascript(\"javascript:WeixinJSBridge._handleMessageFromWeixin(\" + i.a.b(\"menu:share:appmessage\", new HashMap(), dVar2.uFv, dVar2.uFw) + \")\", null);\n try {\n dVar2.icy.L(\"scene\", \"facebook\", dVar2.uqj);\n AppMethodBeat.o(7652);\n return;\n } catch (Exception e42222) {\n ab.w(\"MicroMsg.JsApiHandler\", \"jsapiBundlePutString, ex = \" + e42222.getMessage());\n AppMethodBeat.o(7652);\n return;\n }\n }\n ab.e(\"MicroMsg.JsApiHandler\", \"onShareFaceBook fail, not ready\");\n AppMethodBeat.o(7652);\n return;\n case 34:\n jVar3 = j.this;\n ab.i(\"MicroMsg.WebViewMenuHelper\", \"JumpToReadArticle\");\n if (jVar3.cZv().uhz != null) {\n dVar2 = jVar3.cZv().uhz;\n if (dVar2.ready) {\n ab.i(\"MicroMsg.JsApiHandler\", \"onArticleReadBtnClicked\");\n al.d(new AnonymousClass19(i.a.b(\"onArticleReadingBtnClicked\", new HashMap(), dVar2.uFv, dVar2.uFw)));\n } else {\n ab.e(\"MicroMsg.JsApiHandler\", \"onArticleReadBtnClicked fail, not ready\");\n AppMethodBeat.o(7652);\n return;\n }\n }\n AppMethodBeat.o(7652);\n return;\n case 35:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(33), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n j.this.cZv().uie.nT(false);\n AppMethodBeat.o(7652);\n return;\n case 36:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(34), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n j.this.cZv().uie.nT(true);\n AppMethodBeat.o(7652);\n return;\n case com.tencent.mm.plugin.appbrand.jsapi.e.g.CTRL_INDEX /*37*/:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(35), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n j.a(j.this);\n AppMethodBeat.o(7652);\n return;\n case 38:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(36), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n j.b(j.this, 1);\n AppMethodBeat.o(7652);\n return;\n case 39:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(37), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n j.b(j.this, 0);\n AppMethodBeat.o(7652);\n return;\n default:\n cYc2 = j.this.cZv().ulI.cYc();\n cYc2.une = new Object[]{j.this.cZv().cOG, Integer.valueOf(16), Integer.valueOf(1)};\n cYc2.b(j.this.cZv().icy);\n stringExtra3 = menuItem.getTitle();\n if (!bo.isNullOrNil(stringExtra3)) {\n try {\n bundle = new Bundle();\n bundle.putString(\"data\", stringExtra3);\n bundle = j.this.cZv().icy.g(50, bundle);\n if (bundle != null) {\n i2 = bundle.getInt(\"key_biz_type\") == 2 ? 1 : 0;\n try {\n if (bundle.getInt(\"key_biz_type\") == 3) {\n i3 = 1;\n } else {\n i3 = 0;\n }\n } catch (RemoteException e6) {\n e = e6;\n }\n } else {\n i3 = 0;\n }\n } catch (RemoteException e7) {\n e = e7;\n i2 = 0;\n ab.printErrStackTrace(\"MicroMsg.WebViewMenuHelper\", e, \"\", new Object[0]);\n i3 = i2;\n if (i3 != 0) {\n }\n }\n if (i3 != 0) {\n jVar3 = j.this;\n jVar3.cZv().uhz.bJ(\"sendAppMessage\", false);\n dVar2 = jVar3.cZv().uhz;\n if (dVar2.ready) {\n HashMap hashMap2 = new HashMap();\n hashMap2.put(\"scene\", \"connector\");\n dVar2.uFo.evaluateJavascript(\"javascript:WeixinJSBridge._handleMessageFromWeixin(\" + i.a.b(\"menu:share:appmessage\", hashMap2, dVar2.uFv, dVar2.uFw) + \")\", null);\n try {\n dVar2.icy.L(\"connector_local_send\", stringExtra3, dVar2.uqj);\n dVar2.icy.L(\"scene\", \"connector\", dVar2.uqj);\n AppMethodBeat.o(7652);\n return;\n } catch (Exception e422222) {\n ab.w(\"MicroMsg.JsApiHandler\", \"jsapiBundlePutString, ex = \" + e422222.getMessage());\n break;\n }\n }\n ab.e(\"MicroMsg.JsApiHandler\", \"onSendToConnector fail, not ready\");\n AppMethodBeat.o(7652);\n return;\n }\n j.this.afF(stringExtra3);\n AppMethodBeat.o(7652);\n return;\n }\n break;\n }\n AppMethodBeat.o(7652);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tmenu.add(0, 0, 0, \"分享\");\n\t\tmenu.add(0, 1, 1, \"编辑\");\n\t\tmenu.add(0, 2, 2, \"保存\");\n\t\tmenu.add(0,3,3,\"上传\");\n\t\tmenu.add(0, 4, 4, \"重拍\");\n\t\tif(!Common.IsConnectNet){\n\t\t\tmenu.getItem(0).setEnabled(false);\n\t\t\tmenu.getItem(3).setEnabled(false);\n\t\t}\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "private void setMenu() {\n\n if (tree.isEmpty() || !treeGrid.anySelected()) {\n mainMenu.setItems(newMenuItem, new MenuItemSeparator(), settingMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecord() == null) {\n mainMenu.setItems(renameMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecords().length > 1) {\n ListGridRecord[] selectedNode = treeGrid.getSelectedRecords();\n if (isSameExtension(selectedNode, Extension.FP)) {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem, exportMenuItem);\n } else if (isSameExtension(selectedNode, Extension.FPS)) {\n mainMenu.setItems(newFPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.BPS)) {\n mainMenu.setItems(newBPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.SCSS)) {\n mainMenu.setItems(newSCSItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n }\n } else if (tree.isFolder(treeGrid.getSelectedRecord())) {\n mainMenu.setItems(newMenuItem, deleteMenu, renameMenuItem, copyMenuItem, pasteMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem, downloadMenuItem,\n copyPathMenuItem);\n } else {\n FileTreeNode selectedNode = (FileTreeNode) treeGrid.getSelectedRecord();\n VMResource resource = selectedNode.getResource();\n if (resource instanceof VMDirectory) {\n return;\n }\n Extension extension = ((VMFile) resource).getExtension();\n if (extension == null) {\n mainMenu.setItems(openWithMenuItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n } else\n switch (extension) {\n case ARC:\n mainMenu.setItems(newBPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FM:\n mainMenu.setItems(newFMCItem, newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FMC:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case TC:\n mainMenu.setItems(newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n case FPS:\n mainMenu.setItems(newFPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, exportMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BPS:\n mainMenu.setItems(newBPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCSS:\n mainMenu.setItems(newSCSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCS:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n default:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n }\n }\n }", "public void addSubMenus() {\n configMenu.remove(colorMI);\r\n configMenu.remove(sizeMI);\r\n\r\n // set color and size as JMenu\r\n colorMenu = new JMenu(\"Color\");\r\n sizeMenu = new JMenu(\"Size\");\r\n\r\n // set new JMenuItem\r\n redColor = new JMenuItem(\"Red\");\r\n greenColor = new JMenuItem(\"Green\");\r\n blueColor = new JMenuItem(\"Blue\");\r\n sixteenSize = new JMenuItem(\"16\");\r\n twentySize = new JMenuItem(\"20\");\r\n twentyfourSize = new JMenuItem(\"24\");\r\n\r\n // add menu item to menu\r\n colorMenu.add(redColor);\r\n colorMenu.add(greenColor);\r\n colorMenu.add(blueColor);\r\n sizeMenu.add(sixteenSize);\r\n sizeMenu.add(twentySize);\r\n sizeMenu.add(twentyfourSize);\r\n\r\n // add menu\r\n configMenu.add(colorMenu);\r\n configMenu.add(sizeMenu);\r\n }", "private void appendKeyGeneratorSettings() {\n Label keyGeneratorSettings = new Label(Localization.lang(\"Key generator settings\"));\n keyGeneratorSettings.getStyleClass().add(\"sectionHeader\");\n builder.add(keyGeneratorSettings, 1, 10);\n builder.add(autoGenerateOnImport, 1, 11);\n builder.add(letterStartA, 2, 11);\n builder.add(warnBeforeOverwriting, 1, 12);\n builder.add(letterStartB, 2, 12);\n builder.add(dontOverwrite, 1, 13);\n builder.add(alwaysAddLetter, 2, 13);\n builder.add(generateOnSave, 1, 14);\n\n builder.add((new Label(Localization.lang(\"Replace (regular expression)\") + ':')), 1, 15);\n builder.add(new Label(Localization.lang(\"by\") + ':'), 2, 15);\n\n builder.add(keyPatternRegex, 1, 16);\n builder.add(keyPatternReplacement, 2, 16);\n\n dontOverwrite.setOnAction(e ->\n // Warning before overwriting is only relevant if overwriting can happen:\n warnBeforeOverwriting.setDisable(dontOverwrite.isSelected()));\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.action_settings) {\n\n Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n String shareBody = \"https://play.google.com/store/apps/details?id=lohitprojects.bitcointrack&hl=en\";\n String shareContent1=\"\\n✦ Bitcoin Track\\n\";\n String shareContent2=\"✦ Everything you need to know about Bitcoin \\n✦ Live bitcoin rate Tracking in any Currency | Wallets | Mining | Historical Records\";\n String shareContent3 = \"\\n✦ \";\n sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Subject Here\");\n sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareContent1+shareContent2+shareContent3+shareBody);\n startActivity(Intent.createChooser(sharingIntent, \"Share via\"));\n\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n protected TreeMap<String, String> getCommonParamMap() {\n TreeMap commonParam = new TreeMap();\n commonParam.put(\"clintInfo\", getClientInfo());\n if(!TextUtils.isEmpty(SharedPreferencesUtil.getString(KeelApplication.getApplicationConext(),\"sessionid\"))){\n commonParam.put(\"sessionid\", SharedPreferencesUtil.getString(KeelApplication.getApplicationConext(),\"sessionid\"));\n }\n// commonParam.put(\"platformType\", \"2\");\n// commonParam.put(\"ver\", version);\n return commonParam;\n }", "public String getActivationMenu();", "public abstract String getConfig();", "private void saveSettings() {\n // Serialize the mIncludes map into a compact String. The mIncludedBy map can be\n // inferred from it.\n String encoded = encodeMap(mIncludes);\n\n try {\n if (encoded.length() >= 2048) {\n // The maximum length of a setting key is 2KB, according to the javadoc\n // for the project class. It's unlikely that we'll\n // hit this -- even with an average layout root name of 20 characters\n // we can still store over a hundred names. But JUST IN CASE we run\n // into this, we'll clear out the key in this name which means that the\n // information will need to be recomputed in the next IDE session.\n mProject.setPersistentProperty(CONFIG_INCLUDES, null);\n } else {\n String existing = mProject.getPersistentProperty(CONFIG_INCLUDES);\n if (!encoded.equals(existing)) {\n mProject.setPersistentProperty(CONFIG_INCLUDES, encoded);\n }\n }\n } catch (CoreException e) {\n AdtPlugin.log(e, \"Can't store include settings\");\n }\n }", "public ItemMenu(JDealsController sysCtrl) {\n super(\"Item Menu\", sysCtrl);\n\n this.addItem(\"Add general good\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.GOODS);\n }\n });\n this.addItem(\"Restourant Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.RESTOURANT);\n }\n });\n this.addItem(\"Travel Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.TRAVEL);\n }\n });\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle item selection\n switch (item.getItemId()) {\n case R.id.english:\n Log.i(\"LANGUAGE SELECTION\", \"english\");\n setLocale(\"en\");\n return true;\n case R.id.finnish:\n Log.i(\"LANGUAGE SELECTION\", \"finnish\");\n setLocale(\"fi\");\n return true;\n case R.id.swedish:\n Log.i(\"LANGUAGE SELECTION\", \"swedish\");\n setLocale(\"sv\");\n return true;\n case R.id.hungarian:\n Log.i(\"LANGUAGE SELECTION\", \"hungarian\");\n setLocale(\"hu\");\n return true;\n case R.id.nepali:\n Log.i(\"LANGUAGE SELECTION\", \"nepali\");\n setLocale(\"ne\");\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "private void populateSpecialEvent() {\n try {\n vecSpecialEventKeys = new Vector();\n vecSpecialEventLabels = new Vector();\n StringTokenizer stk = null;\n //MSB -09/01/05 -- Changed configuration file and Keys\n // config = new ConfigMgr(\"customer.cfg\");\n // String strSubTypes = config.getString(\"SPECIAL_EVENT_TYPES\");\n// config = new ConfigMgr(\"ArmaniCommon.cfg\");\n config = new ArmConfigLoader();\n String strSubTypes = config.getString(\"SPECIAL_EVT_TYPE\");\n int i = -1;\n if (strSubTypes != null && strSubTypes.trim().length() > 0) {\n stk = new StringTokenizer(strSubTypes, \",\");\n } else\n return;\n types = new String[stk.countTokens()];\n while (stk.hasMoreTokens()) {\n types[++i] = stk.nextToken();\n String key = config.getString(types[i] + \".CODE\");\n vecSpecialEventKeys.add(key);\n String value = config.getString(types[i] + \".LABEL\");\n vecSpecialEventLabels.add(value);\n }\n cbxSpcEvt.setModel(new DefaultComboBoxModel(vecSpecialEventLabels));\n } catch (Exception e) {}\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_encrypt, menu);\n return true;\n }", "public interface IMenuItem {\r\n\r\n\t/**\r\n\t * Returns an unique identifier of this element.\r\n\t * \r\n\t * @return an unique identifier of this element.\r\n\t */\r\n\tString getId();\r\n\r\n\t/**\r\n\t * Sets an unique identifier for this element. \r\n\t * \r\n\t * @param id\r\n\t *\t\t\tan unique identifier for this element.\r\n\t */\r\n\tvoid setId(String id);\r\n\r\n\t/**\r\n\t * Returns the key in the resource bundle to obtain the label of this element. \r\n\t * \r\n\t * @return the key in the resource bundle to obtain the label of this element.\r\n\t */\r\n\tString getKey();\r\n\r\n\t/**\r\n\t * Returns the key in the resource bundle to obtain the description\r\n\t * of this element. \r\n\t * \r\n\t * @return\r\n\t * \t\tthe key in the resource bundle to obtain the description\r\n\t *\t\tof this element.\r\n\t */\r\n\tString getDescriptionKey();\r\n\r\n\t/**\r\n\t * Returns the icon path of the element.\r\n\t * \r\n\t * @return the icon path of the element.\r\n\t */\r\n\tString getIcon();\r\n\r\n\t/**\r\n\t * Return the parent element or <code>null</code> if it is the root node.\r\n\t * \r\n\t * @return the parent element.\r\n\t */\r\n\tIMenuItem getParent();\r\n\r\n\t/**\r\n\t * Sets the parent element.\r\n\t * \r\n\t * @param menuItem\r\n\t *\t\t\tthe parent element.\r\n\t */\r\n\tvoid setParent(IMenu menuItem);\r\n\r\n\t/**\r\n\t * Returns an {@link java.util.Iterator} object of {@link IMenuItem} that\r\n\t * reprensets the path from this node to the root node.\r\n\t * \r\n\t * @return an {@link java.util.Iterator} object of {@link IMenuItem}.\r\n\t */\r\n\tIterator getMenuPath();\r\n\r\n\t/**\r\n\t * Returns an {@link String} with the action to executed.\r\n\t * \r\n\t * @return an {@link String} with the action to executed.\r\n\t */\r\n\tString getReference();\r\n\r\n\t/**\r\n\t * Sets the security roles that are allowed for this element.\r\n\t * \r\n\t * @param roles\r\n\t * \t\t\tComma-separated list of security roles.\r\n\t */\r\n\tvoid setRole(String roles);\r\n\r\n\t/**\r\n * Returns a <code>Set</code> with the security roles that are allowed\r\n * in this element.\r\n\t * \r\n\t * @return a <code>Set</code> with the security roles, it can be empty. \r\n\t */\r\n\tSet getRoles();\r\n\r\n\t/**\r\n * Appends <code>actionListener</code> to the end of the listener list. \r\n\t * \r\n\t * @param actionListener\r\n\t * element to be appended to this list.\r\n\t */\r\n\tvoid addActionListener(IActionListener actionListener);\r\n\r\n\t/**\r\n * Returns an iterator over the listeners in this element. \r\n\t * \r\n\t * @return an iterator over the listeners in this menu.\r\n\t */\r\n\tIterator actionListeners();\r\n\r\n\t/**\r\n\t * Method needed by this element to allow to be visited by an {@link IMenuVisitor}. \r\n\t * \r\n\t * @param visitor\r\n\t *\t\t\tan implementation of the {@link IMenuVisitor}.\r\n\t * @throws MenuVisitorException\r\n\t * if an unexpected error occurs.\r\n\t */\r\n\tvoid visit(IMenuVisitor visitor) throws MenuVisitorException;\r\n\r\n}", "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"<\"+key.toString()+\",\"+value.toString()+\">\";\n\t\t}", "public void init() {\n\t\tsuper.init();\n\n\t\tsetName(NAME);\n\n\t\tmoveUpMenuItem = new JMenuItem(MENU_ITEM_MOVE_UP);\n\t\tmoveUpMenuItem.setName(NAME_MENU_ITEM_MOVE_UP);\n\t\tmoveUpMenuItem.setEnabled(true);\n\t\tmoveUpMenuItem.addActionListener(moveUpAction);\n\t\tmoveUpMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_UP,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\tmoveDownMenuItem = new JMenuItem(MENU_ITEM_MOVE_DOWN);\n\t\tmoveDownMenuItem.setName(NAME_MENU_ITEM_MOVE_DOWN);\n\t\tmoveDownMenuItem.setEnabled(true);\n\t\tmoveDownMenuItem.addActionListener(moveDownAction);\n\t\tmoveDownMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t\t\tKeyEvent.VK_DOWN, ActionEvent.ALT_MASK));\n\n\t\tdeleteMenuItem = new JMenuItem(MENU_ITEM_DELETE);\n\t\tdeleteMenuItem.setName(NAME_MENU_ITEM_DELETE);\n\t\tdeleteMenuItem.setEnabled(true);\n\t\tdeleteMenuItem.addActionListener(deleteAction);\n\t\tdeleteMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t\t\tKeyEvent.VK_DELETE, 0));\n\n\t\taddMenuItem = new JMenuItem(MENU_ITEM_ADD);\n\t\taddMenuItem.setName(NAME_MENU_ITEM_ADD);\n\t\taddMenuItem.setEnabled(true);\n\t\taddMenuItem.addActionListener(addAction);\n\t\taddMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\teditMenuItem = new JMenuItem(MENU_ITEM_EDIT);\n\t\teditMenuItem.setName(NAME_MENU_ITEM_EDIT);\n\t\teditMenuItem.setEnabled(true);\n\t\teditMenuItem.addActionListener(editAction);\n\t\teditMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_E,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\tsendMidiMenuItem = new JMenuItem(MENU_ITEM_SEND_MIDI);\n\t\tsendMidiMenuItem.setName(NAME_MENU_ITEM_SEND_MIDI);\n\t\tsendMidiMenuItem.setEnabled(false);\n\t\tsendMidiMenuItem.addActionListener(sendMidiAction);\n\t\tsendMidiMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M,\n\t\t\t\tActionEvent.ALT_MASK));\n\t}", "@Override\n\tpublic void onSaveConfigClicked(IBlurb player) {\n\n\t}", "public ConfigurationItemDTO toConfigurationItemDTO() {\r\n\t\tfinal ConfigurationItemDTO dto = new ConfigurationItemDTO();\r\n\t\tdto.setKey(key);\r\n\t\tfinal String value;\r\n\t\tswitch (type) {\r\n\t\t\tcase CONTENT_TYPE:\r\n\t\t\t\tvalue = get(contentTypeValue);\r\n\t\t\t\tbreak;\r\n\t\t\tcase CATEGORY:\r\n\t\t\t\tvalue = get(categoryValue);\r\n\t\t\t\tbreak;\r\n\t\t\tcase FILE:\r\n\t\t\t\tvalue = get(fileValue);\r\n\t\t\t\tbreak;\r\n\t\t\tcase STRING:\r\n\t\t\t\tvalue = stringValue;\r\n\t\t\t\tbreak;\r\n\t\t\tcase CHOICE:\r\n\t\t\t\tvalue = stringValue;\r\n\t\t\t\tbreak;\r\n\t\t\tcase INTEGER:\r\n\t\t\t\tvalue = (integerValue == null) ? null : integerValue.toString();\r\n\t\t\t\tbreak;\r\n\t\t\tcase BOOLEAN:\r\n\t\t\t\tvalue = (booleanValue == null) ? null : booleanValue.toString();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tvalue = null;\r\n\t\t}\r\n\t\tdto.setCurrentValue(value);\r\n\t\treturn dto;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == R.id.chinese) {\n tvDBS.setText(\"星展银行\");\n tvOCBC.setText(\"华侨银行\");\n tvUOB.setText(\"大华银行\");\n return true;\n }\n else {\n tvDBS.setText(\"DBS\");\n tvOCBC.setText(\"OCBC\");\n tvUOB.setText(\"UOB\");\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void generateMenu () \n {\n mCoffeeList = mbdb.getCoffeeMenu();\n for(int i =0;i<mCoffeeList.size();i++){\n coffeeTypeCombo.addItem(mCoffeeList.get(i).toString());\n }\n mWaffleList = mbdb.getWaffleMenu();\n for(int j =0;j<mWaffleList.size();j++){\n waffleTypeCombo.addItem(mWaffleList.get(j).toString());\n }\n }", "public GuiConfig(GuiScreen parentScreen, List<IConfigProperty> properties, boolean areAllPropsHotLoadable, String modID,\n boolean allowNonHotLoadConfigChanges, String title, String titleLine2)\n {\n this.mc = Minecraft.getMinecraft();\n this.parentScreen = parentScreen;\n this.properties = properties;\n this.propertyList = new GuiPropertyList(this, mc);\n this.areAllPropsHotLoadable = areAllPropsHotLoadable;\n this.modID = modID;\n this.allowNonHotLoadConfigChanges = allowNonHotLoadConfigChanges;\n this.title = title;\n this.titleLine2 = titleLine2;\n }", "public interface Config {\n String BASE_URL = \"http://www.chahuitong.com/\";\n\n String BASE_GOODS_DETAIL_URL = BASE_URL + \"wap/index.php/Home/Index/goods?goods_id=\";\n\n String BASE_GOODS_BODY_URL = BASE_URL + \"mobile/index.php?act=goods&op=goods_body&goods_id=\";\n\n /** 默认订单列表是否获取支付方式 */\n boolean DEFAULT_GET_PAYMENT = false;\n\n /** 默认列表页每页显示数量 */\n int DEFAULT_PAGE_SIZE = 20;\n\n // 这是Bmob的ApplicationId,用于初始化操作\n String applicationId = \"c9a6c7e8fe89e14a6458ed592209e96c\";\n\n // shopNc md5\n String MD5_KEY = \"804451dc13014b1c785fb73b1617b760\";\n\n // 用于服务端判断客户端类型\n String CLIENT_TYPE = \"android\";\n\n // 微信appID、appSecret\n String WX_ID = \"wx025bfd51ec3b664a\";\n String WX_SECRET =\"cdfc0e3a367f44bf4b22e41b4073f274\";\n\n // 微博appID appSecret\n String WB_ID = \"848852268\";\n String WB_SECRET = \"c312c8076d3289a648e7663787cfea86\";\n\n // QQ appID appSecret\n String QQ_ID = \"1104563629\";\n String QQ_SECRET = \"rJbMttJCa47MBsCk\";\n}", "public abstract String getConfigElementName();", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n Stack<StackItem> stack = new Stack<>();\n List<MenuItem> items = this.items;\n Collections.reverse(items);\n for (MenuItem i : items) {\n stack.push(new StackItem(i, 0));\n }\n while (stack.size() != 0) {\n StackItem stackItem = stack.pop();\n sb.append(this.getMenuItemRepresentation(stackItem.getMenuItem().toString(), stackItem.getLevel()));\n List<MenuItem> childs = stackItem.getMenuItem().getChilds();\n Collections.reverse(childs);\n for (MenuItem child : childs) {\n stack.push(new StackItem(child, stackItem.getLevel() + 1));\n }\n }\n return sb.toString();\n }", "static void add_the_general_registers(){\n\t\tgeneral_registers.add('A');\n\t\tgeneral_registers.add('B');\n\t\tgeneral_registers.add('C');\n\t\tgeneral_registers.add('D');\n\t\tgeneral_registers.add('E');\n\t\tgeneral_registers.add('H');\n\t\tgeneral_registers.add('L');\n\t}", "public interface MenuItem {\n\tpublic int getBasePrice();\n\tpublic int getAddOnPrice();\n\tpublic int getTotalGuestPrice(int additionalGuestTotal);\n\tpublic String getName();\n\tpublic String getDetails();\n}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tmenu.add(1, 1, 1, (getString(R.string.app_name)));\r\n\t\tmenu.add(2, 2, 2, (getString(R.string.action_settings)));\r\n\t\treturn true;\r\n\t}", "private static JMenu getConvertMenu(final EnvironmentFrame frame, final int specialCaseForTuringConverted) {\n\t\tfinal Environment environment = frame.getEnvironment();\n\t\tfinal JMenu menu = new JMenu(\"Convert\");\n\t\tenvironment.getObject();\n\n\t\treturn menu;\n\t}", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n\n int id = item.getItemId();\n\n if(id == R.id.action_setting){\n Toast.makeText(getContext(), \"Settings Clicked\", Toast.LENGTH_LONG).show();\n }\n if(id == R.id.sub_item1_setting){\n Toast.makeText(getContext(), \"Settings: Sub item1\", Toast.LENGTH_LONG).show();\n }\n if(id == R.id.sub_item2_setting){\n Toast.makeText(getContext(), \"Settings: Sub item2\", Toast.LENGTH_LONG).show();\n }\n if(id == R.id.sub_item3_setting){\n Toast.makeText(getContext(), \"Settings: Sub item3\", Toast.LENGTH_LONG).show();\n }\n if(id == R.id.sub_item4_setting){\n Toast.makeText(getContext(), \"Settings: Sub item4\", Toast.LENGTH_LONG).show();\n }\n if(id == R.id.action_more){\n Toast.makeText(getContext(), \"More options Clicked\", Toast.LENGTH_LONG).show();\n }\n if(id == R.id.action_search){\n Toast.makeText(getContext(), \"Search Call\", Toast.LENGTH_LONG).show();\n }\n\n\n return super.onOptionsItemSelected(item);\n }" ]
[ "0.5257674", "0.50026006", "0.49863255", "0.497345", "0.49024972", "0.48737353", "0.48552683", "0.47931182", "0.47875917", "0.47786695", "0.47682256", "0.47676736", "0.47496846", "0.47440782", "0.47427365", "0.47277683", "0.47267693", "0.47124735", "0.47094074", "0.47093382", "0.47029248", "0.47003213", "0.46913323", "0.46815154", "0.46613464", "0.46592474", "0.4651825", "0.46446884", "0.46381104", "0.46324936", "0.46318617", "0.46150726", "0.4594158", "0.45721892", "0.4569087", "0.45677134", "0.45611623", "0.45578223", "0.45567748", "0.4545129", "0.45359868", "0.4528641", "0.4501665", "0.4499953", "0.44980982", "0.44812047", "0.44630656", "0.4452012", "0.4441646", "0.44386753", "0.44361487", "0.44197053", "0.44180188", "0.44165346", "0.44164217", "0.4409192", "0.44077212", "0.44063386", "0.440514", "0.44015267", "0.44004214", "0.4393742", "0.43921056", "0.43823445", "0.4372505", "0.43724114", "0.43715388", "0.43698648", "0.4366682", "0.4365782", "0.4360561", "0.43490362", "0.43466803", "0.43453473", "0.43452454", "0.43372384", "0.4336362", "0.4334451", "0.43336576", "0.43271023", "0.43265122", "0.43214554", "0.432119", "0.43163896", "0.43131155", "0.43064275", "0.43046144", "0.429236", "0.42903942", "0.4289948", "0.42832023", "0.42821297", "0.42770913", "0.42758012", "0.427231", "0.42718413", "0.42680377", "0.42678308", "0.42623806", "0.4260539" ]
0.6787664
0
encode body of component to get inner text
static String getInnerItemText(FacesContext context, UIComponent item) { ResponseWriter curWriter = context.getResponseWriter(); StringWriter strWriter = new StringWriter(); ResponseWriter bufWriter = curWriter.cloneWithWriter(strWriter); try { context.setResponseWriter(bufWriter); for (UIComponent kid : item.getChildren()) { kid.encodeAll(context); } context.setResponseWriter(curWriter); } catch (IOException ex) { throw new FacesException(ex); } return strWriter.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DISPID(-2147417083)\n @PropGet\n java.lang.String outerText();", "@DISPID(-2147417085)\n @PropGet\n java.lang.String innerText();", "public static String encodeComponent(UIComponent component, FacesContext context) {\n FastStringWriter output = new FastStringWriter();\n ResponseWriter originalWriter = context.getResponseWriter();\n\n if (originalWriter != null) {\n context.setResponseWriter(originalWriter.cloneWithWriter(output));\n }\n else {\n context.setResponseWriter(getRenderKit(context).createResponseWriter(output, \"text/html\", \"UTF-8\"));\n }\n\n try {\n component.encodeAll(context);\n }\n catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n finally {\n if (originalWriter != null) {\n context.setResponseWriter(originalWriter);\n }\n }\n\n return output.toString();\n }", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "@DISPID(-2147417086)\n @PropGet\n java.lang.String innerHTML();", "public String getPlainText();", "public String getContent() {\r\n \r\n return text;\r\n }", "public String getContent();", "@Override\n public String toTxt() {\n return this.content;\n }", "public abstract String getContentString();", "@Override\r\n public String getContent() {\r\n return content;\r\n }", "String content();", "String getTransformedText();", "public abstract String getFormattedContent();", "public final native String getContent() /*-{\n return this.getContent();\n }-*/;", "public String getEncoded()\n\t{\n\t\treturn this.encodedText;\n\t}", "@Override\n public abstract String asText();", "@DISPID(-2147417084)\n @PropPut\n void outerHTML(\n java.lang.String rhs);", "private String renderBody() {\n return \"\";\n }", "@JsProperty\n String getTextContent();", "@DISPID(-2147417084)\n @PropGet\n java.lang.String outerHTML();", "public byte[] getTextBytes();", "public java.lang.String getContent() {\n java.lang.Object ref = content_;\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 if (bs.isValidUtf8()) {\n content_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String getBody();", "String getBody();", "String getBody();", "String getBody();", "public java.lang.String getContent() {\n java.lang.Object ref = content_;\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 if (bs.isValidUtf8()) {\n content_ = s;\n }\n return s;\n }\n }", "public java.lang.String getContent() {\n java.lang.Object ref = content_;\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 if (bs.isValidUtf8()) {\n content_ = s;\n }\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getContent() {\n java.lang.Object ref = content_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n content_ = s;\n return s;\n }\n }", "public String getContent() { return this.content; }", "public String getText() {\n return codeBuilder != null ? codeBuilder.toString() : \"\";\n }", "public java.lang.String getContent() {\n java.lang.Object ref = content_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n content_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@JsProperty\n String getInnerText();", "abstract String getContent();", "public String getContent() {\n return instance.getContent();\n }", "public String getContent() {\n return instance.getContent();\n }", "String renderHTML();", "public byte[] getText() {\n\t\treturn this.text;\n\t}", "public String getContent() {\n Object ref = content_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n content_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getContent() {\n Object ref = content_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n content_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getContent() {\n Object ref = content_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n content_ = s;\n return s;\n }\n }", "@Override\n public final String getRaw(){\n return getDocument().getTextCache(this, () -> {\n /// Raw text is adding up raw text of each child.\n StringBuilder builder = new StringBuilder();\n\n for (Span span: this){\n builder.append(span.getRaw());\n }\n return builder.toString();\n });\n }", "public java.lang.String getContent() {\n return content;\n }", "public java.lang.String getContent() {\n java.lang.Object ref = content_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n content_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getContent () {\n\t\treturn content;\n\t}", "public String getContent() {\n Object ref = content_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n content_ = s;\n return s;\n }\n }", "public String getContentAsString() {\n \tif (getContent()!=null && isText()) {\n \t\treturn new String(getContent());\n \t}\n \treturn \"\";\n }", "public java.lang.String getContent() {\n return content;\n }", "@Override\r\n\t\t\tpublic String getText() {\n\t\t\t\treturn text;\r\n\t\t\t}", "public String getContent() {\n return instance.getContent();\n }", "public String getContent() {\n return instance.getContent();\n }", "@Override\n public byte[] getMessage() {\n jsonData = textPane.getText();\n return buildData();\n }", "public String geteContent() {\n return eContent;\n }", "public String getContent() {\r\n return content;\r\n }", "public String getContent() {\r\n return content;\r\n }", "public String getContent() {\n return this.content;\n }", "String getToText();", "public String toString() {\n StringBuffer result = new StringBuffer(this.m_content.length() + 2);\n result.append('\"');\n if (this.m_content != null) result.append(escape(this.m_content));\n result.append('\"');\n return result.toString();\n }", "public java.lang.CharSequence getContent() {\n return Content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n\t return content;\n }", "public java.lang.CharSequence getContent() {\n return Content;\n }", "public String getContent() {\n\t\treturn content.toString();\n\t}", "String getContentEncoding();", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return this.content;\n }", "@Override\n public String getBody() {\n Object ref = body_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n body_ = s;\n return s;\n }\n }", "public String getText()\n {\n return getComponent().getText();\n }" ]
[ "0.6253634", "0.616753", "0.6093692", "0.6088882", "0.6088882", "0.6088882", "0.6088882", "0.6088882", "0.6088882", "0.6081948", "0.6081948", "0.6081948", "0.6081948", "0.6081948", "0.6081948", "0.6081948", "0.6081948", "0.60238045", "0.59959334", "0.5992281", "0.59187555", "0.59125274", "0.58842415", "0.5866531", "0.5859134", "0.5808925", "0.5801857", "0.5767861", "0.5746924", "0.574043", "0.5724353", "0.5723071", "0.5703693", "0.5666001", "0.56603736", "0.5648341", "0.56376255", "0.56376255", "0.56376255", "0.56376255", "0.5633646", "0.5633646", "0.56261176", "0.56209284", "0.56077594", "0.5605315", "0.5600593", "0.5587119", "0.55639195", "0.55639195", "0.55627006", "0.556045", "0.5557415", "0.5557415", "0.55459934", "0.5545918", "0.55382687", "0.55295414", "0.5529277", "0.55266905", "0.55253714", "0.55217355", "0.5518993", "0.55156374", "0.55156374", "0.5507643", "0.54959476", "0.547959", "0.547959", "0.54737234", "0.54690987", "0.5467998", "0.5455118", "0.5451624", "0.5451624", "0.5451624", "0.5451624", "0.5451624", "0.5451624", "0.5451624", "0.5451624", "0.5451624", "0.5451624", "0.5451624", "0.5451624", "0.5451624", "0.5451624", "0.5451624", "0.5451624", "0.5451624", "0.54510325", "0.5447798", "0.5430865", "0.5429707", "0.5427582", "0.5427582", "0.5427582", "0.5427582", "0.5426124", "0.54245245" ]
0.59264904
20
Created by vitaliy on 22.04.17.
public interface MessageConstants { public static String WRONG_DATA="Wrong data!!!Try again:"; public static String INPUT_ADDRESS="Input address: "; public static String INPUT_PHONE="Input phone nummber:"; public static String INPUT_NICKNAMME="Input nickname:"; public static String Input_EMAIL="Input email:"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\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}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void nadar() {\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 rozmnozovat() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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}", "public void mo38117a() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "protected boolean func_70814_o() { return true; }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void init() {\n\n\t}", "private void strin() {\n\n\t}", "@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 dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\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 void init() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@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\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 public void inizializza() {\n\n super.inizializza();\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@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 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 einkaufen() {\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "private void m50366E() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void mo6081a() {\n }", "Petunia() {\r\n\t\t}", "@Override\n public void memoria() {\n \n }", "public Pitonyak_09_02() {\r\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private void init() {\n\n\n\n }", "static void feladat4() {\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "protected void mo6255a() {\n }" ]
[ "0.57551473", "0.5675498", "0.5636096", "0.5537745", "0.5526978", "0.5492709", "0.5492709", "0.5482239", "0.5448311", "0.54456145", "0.54404116", "0.5427322", "0.5412908", "0.5400134", "0.5397338", "0.5394746", "0.5381879", "0.5365525", "0.5360716", "0.5360235", "0.53562015", "0.53286594", "0.53286594", "0.53286594", "0.53286594", "0.53286594", "0.5315706", "0.531316", "0.530255", "0.5282268", "0.52791435", "0.5266665", "0.5258976", "0.5240596", "0.5240596", "0.52335024", "0.52335024", "0.5232515", "0.52293396", "0.5229246", "0.5227058", "0.52236176", "0.5219984", "0.5213253", "0.5205844", "0.52013946", "0.5196331", "0.5196331", "0.5196331", "0.51946974", "0.51870894", "0.51857305", "0.51831114", "0.51812667", "0.51812667", "0.51812667", "0.51812667", "0.51812667", "0.51812667", "0.5174458", "0.5174458", "0.5174458", "0.5169513", "0.5168886", "0.51679254", "0.516269", "0.5157738", "0.5157738", "0.5157738", "0.5154966", "0.5154966", "0.5154966", "0.5154966", "0.5154966", "0.5154966", "0.5154966", "0.5150038", "0.51487964", "0.51435417", "0.51435417", "0.51389694", "0.5133382", "0.51253635", "0.51242477", "0.5110501", "0.51093125", "0.5107964", "0.5102656", "0.5093481", "0.5087588", "0.50865465", "0.5080426", "0.5077305", "0.5075623", "0.5072861", "0.5066136", "0.506528", "0.50542474", "0.5046953", "0.50371313", "0.5032231" ]
0.0
-1
TODO Autogenerated method stub
public ActionForward deleteRepeatFpkj(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { String sql="delete from skq_fpkj where fphm in (select fphm from skq_fpkj group by fphm having count(fphm) > 1) and sid not in (select min(sid) from skq_fpkj group by fphm having count(fphm )>1)"; System.out.println(sql); Query.updateField(sql); try { response.getWriter().print("删除成功!"); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } 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
public ActionForward deleteRepeatFpkjmx(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { String nsrwjbm=request.getParameter("nsrwjbm"); String startdate=request.getParameter("startdate"); String enddate=request.getParameter("enddate"); String sql="delete from skq_fpkj where nsrwjbm='"+nsrwjbm+"' and kprq>'"+startdate+" 00:00:00' and kprq<'"+enddate+" 23:59:59'"; System.out.println(sql); int count= Query.updateField(sql); try { response.getWriter().print("共删除"+count+"条数据!"); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } 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